Hello
I’m trying to set up an automation that occurs when one light turns off causing another one to flash on and off. Can someone look at this yaml code and tell me what I need to do to make this automation work? Right now when the “switch.basement_light_switch” goes from “on” to “off”, nothing happens.
Thanks in advance for any help that can be provided.
alias: Notification
description: ''
trigger:
- platform: state
entity_id:
- switch.basement_light_switch
from: 'on'
to: 'off'
condition: []
action:
- type: turn_on
device_id: 654b1aedfd56068db0376a100ab8de2b
entity_id: light.washer_dryer_notification_bulb_mintransitionlight
domain: light
data:
brightness: 255
rgb_color: [255, 255, 255]
- delay:
seconds: 1
- type: turn_off
device_id: 654b1aedfd56068db0376a100ab8de2b
entity_id: light.washer_dryer_notification_bulb_mintransitionlight
domain: light-
delay:
seconds: 1
- type: turn_on
device_id: 654b1aedfd56068db0376a100ab8de2b
entity_id: light.washer_dryer_notification_bulb_mintransitionlight
domain: light
data:
brightness: 255
rgb_color: [255, 255, 255]
- delay:
seconds: 1
- type: turn_off
device_id: 654b1aedfd56068db0376a100ab8de2b
entity_id: light.washer_dryer_notification_bulb_mintransitionlight
domain: light