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/lightstore.yaml

81 lines
2.6 KiB
YAML
Raw Normal View History

2022-07-29 01:05:27 +00:00
## -------------------------------------------------------------------------------------------------##
## Light_Store
## https://github.com/pnbruckner/homeassistant-config/blob/master/python_scripts/light_store.py
## -------------------------------------------------------------------------------------------------##
script:
2022-08-09 09:21:13 +00:00
#----------------------------------------------------------------------------------#
# All Lights
#----------------------------------------------------------------------------------#
2022-07-29 01:05:27 +00:00
light_store_save:
sequence:
- service: python_script.light_store
data:
store_name: flash_store
entity_id:
- light.bed
2022-08-02 12:03:44 +00:00
- light.ceiling
2022-07-29 01:05:27 +00:00
- light.desk
2022-08-02 12:03:44 +00:00
- light.bed_ceiling
2022-07-29 01:05:27 +00:00
- 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
2022-08-07 18:10:43 +00:00
2022-08-09 09:21:13 +00:00
#----------------------------------------------------------------------------------#
# Ceiling only
#----------------------------------------------------------------------------------#
2022-08-07 18:10:43 +00:00
light_ceiling_save:
sequence:
- service: python_script.light_store
data:
store_name: ceiling_store
entity_id:
- light.ceiling
light_ceiling_restore:
sequence:
- service: python_script.light_store
data:
store_name: ceiling_store
operation: restore
2022-08-09 09:21:13 +00:00
#----------------------------------------------------------------------------------#
# Ceiling Bed only
#----------------------------------------------------------------------------------#
2022-08-07 18:10:43 +00:00
light_ceiling_bed_save:
sequence:
- service: python_script.light_store
data:
store_name: ceiling_store
entity_id:
- light.bed_ceiling
light_ceiling_bed_restore:
sequence:
- service: python_script.light_store
data:
store_name: ceiling_store
operation: restore
2022-08-09 09:21:13 +00:00
#----------------------------------------------------------------------------------#
# Indirect only
#----------------------------------------------------------------------------------#
2022-08-07 18:10:43 +00:00
light_indirect_save:
sequence:
- service: python_script.light_store
data:
store_name: ceiling_store
entity_id:
- light.all_indirect
light_indirect_restore:
sequence:
- service: python_script.light_store
data:
store_name: ceiling_store
operation: restore