20 lines
536 B
YAML
20 lines
536 B
YAML
|
automation:
|
||
|
- alias: light_all_snapshot
|
||
|
mode: single
|
||
|
trigger:
|
||
|
- platform: time_pattern
|
||
|
seconds: "30"
|
||
|
condition:
|
||
|
- condition: state
|
||
|
entity_id: light.all_lights
|
||
|
state: "on"
|
||
|
action:
|
||
|
- service: scene.create
|
||
|
data:
|
||
|
scene_id: snapshot_all
|
||
|
snapshot_entities:
|
||
|
- light.all_indirect
|
||
|
- light.bed_ceiling
|
||
|
- light.ceiling
|
||
|
- switch.adaptive_lighting_sleep_mode_default
|
||
|
- switch.adaptive_lighting_default
|