Hello,
I’m trying to create an automation to when my front door opens, my LED strip turns on red. Then I want the LED strip returns to its original state.
But it’s not working. The LED strip turns on red, but it does not return to its original state.
The snapshot scene is created and when I try to execute manually, nothing happens.
The funny part is the LED strip device in Home Assistant panel is marked as off when it’s actually on.
alias: Door opens
description: ''
trigger:
- platform: state
entity_id: binary_sensor.suite
from: 'off'
to: 'on'
condition: []
action:
- service: scene.create
data:
scene_id: before
snapshot_entities:
- light.cama
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: light.turn_on
target:
entity_id: light.cama
data:
color_name: red
brightness_pct: 100
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- service: scene.turn_on
target:
entity_id: scene.before
mode: single
I added the delay between scene.create
and
light.turn_on
as an attempt to make it works (didn’t work).