29 lines
899 B
YAML
29 lines
899 B
YAML
## -------------------------------------------------------------------------------------------------##
|
|
## Light_Store
|
|
## https://github.com/pnbruckner/homeassistant-config/blob/master/python_scripts/light_store.py
|
|
## -------------------------------------------------------------------------------------------------##
|
|
script:
|
|
light_store_save:
|
|
sequence:
|
|
- service: python_script.light_store
|
|
data:
|
|
store_name: flash_store
|
|
entity_id:
|
|
- light.bed
|
|
- light.closet
|
|
- light.desk
|
|
- light.direct
|
|
- light.tv
|
|
light_store_off:
|
|
sequence:
|
|
- service: script.light_store_save
|
|
- service: light.turn_off
|
|
entity_id: light.all_lights
|
|
light_store_restore:
|
|
sequence:
|
|
- service: python_script.light_store
|
|
data:
|
|
store_name: flash_store
|
|
operation: restore
|
|
|