Yeelight rgb bulb flash notify

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

Take a look at…

1 Like

You can get more direct info on the python_script discussed in the post @silvrr mentioned on this doc page.

Also, I’m pretty sure there is no such thing as a scene.turn_off service.

1 Like

You are correct. See the bottom of this page for reference