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.
When writing your automations in yaml, don’t use device actions. It’s far more complicated and has no advantage compared to the services i used. Just a little hint, it makes the things much more easy
Thanks for the help. Ultimately I’d like to replace " switch.basement_light_switch" with “binary_sensor.washer_wash_complete” and trigger the “light.washer_dryer_notification_bulb_mintransitionlight”. Will the code still work if I do this? Ultimately I want a light bulb to flash whenever the washing machine has finished. I was using the above code as a test before adding the washer.
Yes you can. Just exchange the entities in the automation an it will work. Using the services there is no fiddeling with device ids or domains, just entity id and thats all!