When door opens yeelight bulbs flashing for 2 sec. But then they are continue to shine, although they was turned off before. If lights was on its ok, after flashing they continue to shine same color. How should i change script to make lights return to previous state after flashing?
scene:
- name: notify
entities:
group.yeelight:
state: on
effect: WhatsApp
automation
- alias: YeeFlashify Door
trigger:
platform: state
to: 'on'
entity_id: binary_sensor.door_window_sensor_158d0001c0e158
action:
- service: scene.turn_on
entity_id: scene.notify
- delay: '00:00:02'
- service: scene.turn_off
entity_id: scene.notify