Split home arrival into two scripts for day and night #51

This commit is contained in:
2022-10-12 18:56:22 -04:00
parent c3a23754d4
commit 0b8fee1bb6
2 changed files with 73 additions and 43 deletions

View File

@ -178,8 +178,17 @@
entity_id: binary_sensor.internet
state: 'off'
action:
- service: script.family_is_home
data: {}
- if:
- condition: state
entity_id: input_boolean.early_night_mode
state: 'on'
then:
- service: script.family_is_home_night
data: {}
else:
- service: script.family_is_home_day
data: {}
alias: Check early night mode, choose which script to run
mode: restart
- id: '1641102018783'
alias: Family Has Left