Hi,
I’m rather new to HA. I followed this youtube to create an automation, and then go to the previous state on some lightening.
This resulted in the following code …
if:
- condition: trigger
id:
- Keuken Beweging
then:
- service: scene.create
data:
scene_id: memory
snapshot_entities:
- light.hue_lightstrip_plus_2_links
- light.hue_lightstrip_plus_rechts
- light.hue_go_1_keuken
- light.hue_color_lamp_keuken
- light.hue_smart_plug_1
- service: light.turn_on
metadata: {}
data:
transition: 10
kelvin: 4835
brightness_pct: 100
target:
entity_id:
- light.hue_lightstrip_plus_2_links
- light.hue_lightstrip_plus_rechts
- service: light.turn_on
metadata: {}
data: {}
target:
entity_id: light.hue_smart_plug_1
- service: light.turn_on
metadata: {}
data:
transition: 10
rgb_color:
- 207
- 139
- 23
brightness_pct: 100
target:
entity_id: light.hue_go_1_keuken
- service: light.turn_on
metadata: {}
data:
transition: 10
rgb_color:
- 207
- 139
- 23
brightness_pct: 100
target:
entity_id:
- light.hue_color_lamp_keuken
else:
- service: scene.turn_on
data:
transition: 10
target:
entity_id: scene.memory
Now the on/off and brighteness values are stored correctly in the ‘memory’ scene.
However, the colors stored are the ones assigned in the script.
How is this possible, the script is run top to bottom, right?
Regards,
Gunther.