Hi, when I activate my button
( input_boolean.tema_romantico ) I would like automation to start taking a snapshot of the following lights:
light.yeelight_colorc_0x1b0ffc9a
light.yeelight_colorc_0x18906fb6
light.yeelight_colorc_0x189042ff
light.faretti_camera_da_bed
light.suprema_smart_controller_rgbww_4
to then start a script already created that changes the brightness and color of the lights in question. When the input_boolean.tema_romantico is turned off I would like it to load the snapshot made previously.
I tried to search the internet for how to do it, but I only found this piece of code that could help me but I don’t know how to complete it:
alias: Camera da letto snapshot
description: ''
trigger:
- entity_id: input_boolean.tema_romantico
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data:
snapshot_entities: light.yeelight_colorc_0x1b0ffc9a light.yeelight_colorc_0x18906fb6
light.yeelight_colorc_0x189042ff light.faretti_camera_da_letto light.suprema_smart_controller_rgbww_4
service: scene.create
- service: script.1643407098523
- delay: 00:00:04