save lights before turn off

This commit is contained in:
darthsandmann 2022-08-09 22:27:38 +02:00
parent bcda160690
commit cc620be332

View File

@ -175,6 +175,13 @@ script:
- service: scene.turn_on - service: scene.turn_on
target: target:
entity_id: scene.light_bright entity_id: scene.light_bright
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- service: script.light_store_save
mode: single mode: single
#----------------------------------------------------------------------------------# #----------------------------------------------------------------------------------#
# Down # Down
@ -182,6 +189,7 @@ script:
pos_down: pos_down:
alias: pos_down alias: pos_down
sequence: sequence:
- service: script.light_store_save
# 0,0 # 0,0
- if: - if:
- condition: and - condition: and