Hi there,
Can anyone help me out please?
I try to make a automation for my doorbell.
When someone presses the doorbell it needs to flash my lights blue and than go back to the state before the bell was pressed.
this is what i have now:
alias: bel_flikker
description: Bel lampen laten knipperen.
trigger:
- platform: state
entity_id: binary_sensor.doorbell_button_state
from: 'off'
to: 'on'
condition: []
action:
- service: scene.create
data:
snapshot_entities:
- light.kleurstrip
- light.keuken
- light.werklamp
scene_id: belscenee
- service: light.turn_on
target:
entity_id:
- light.keuken
- light.kleurstrip
- light.werklamp
data:
flash: long
color_name: blue
brightness_pct: 100
- delay:
hours: 0
minutes: 0
seconds: 16
milliseconds: 0
- service: scene.turn_on
target:
entity_id: scene.belscenee
mode: single
The scipt flashes but doesnt go back to the latest state. The lights stay blue.
Thanks in favour.
Martijn