This repository has been archived on 2023-06-10. You can view files and clone it, but cannot push or open issues or pull requests.
homeassistant-config/packages/light/light_snapshot.yaml

20 lines
536 B
YAML
Raw Permalink Normal View History

2022-08-30 16:42:25 +00:00
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