I’ve been trying to change my LED strip to a color when motion is detected. After a 3 seconds, the LED strip (“light.desk_lights”) should revert back to whatever color it was. I’ve been following this thread (Flash light red when motion detected) as it seems very similar. However, I can’t seem to get it working. When I run the actions in the automation, the LEDs change color, but don’t revert back to what they were before. For what its worth, the LEDs don’t flash either, they just turn on.
Banging my head against the wall. What am I missing here?
alias: LED test
description: ''
trigger:
- platform: state
entity_id: binary_sensor.front_door_motion
condition: []
action:
- service: scene.create
data:
scene_id: before
snapshot_entities: light.desk_lights
- service: light.turn_on
data:
flash: long
color_name: red
target:
entity_id: light.desk_lights
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- service: scene.turn_on
target:
entity_id: scene.before
mode: single