Add some occupancy stuff to use with #159
This commit is contained in:
@ -2642,7 +2642,8 @@
|
||||
state: 'off'
|
||||
alias: We are not on vacation
|
||||
action:
|
||||
- choose:
|
||||
- alias: Choose briefing
|
||||
choose:
|
||||
- conditions:
|
||||
- condition: and
|
||||
conditions:
|
||||
@ -2653,7 +2654,8 @@
|
||||
state: 'off'
|
||||
alias: Morning Briefing
|
||||
sequence:
|
||||
- if:
|
||||
- alias: Skip if Kallen has school but stayed overnight elsewhere
|
||||
if:
|
||||
- condition: template
|
||||
value_template: "{% if is_state('input_boolean.kallen_school_today','on')
|
||||
and is_state('input_boolean.kallen_overnight','on') %}\n false\n{% else
|
||||
@ -2661,9 +2663,12 @@
|
||||
alias: If Kallen was not elsewhere overnight on a school morning
|
||||
then:
|
||||
- service: script.morning_briefing
|
||||
data: {}
|
||||
data:
|
||||
who: '{{ ''alexa_everywhere'' if is_state(''binary_sensor.master_bedroom_occupied'',''on'')
|
||||
else ''common'' }}
|
||||
|
||||
'
|
||||
alias: Run morning briefing script
|
||||
alias: Skip if Kallen has school but stayed overnight elsewhere
|
||||
- conditions:
|
||||
- condition: and
|
||||
conditions:
|
||||
@ -2675,7 +2680,10 @@
|
||||
alias: Daily Briefing
|
||||
sequence:
|
||||
- service: script.daily_briefing
|
||||
data: {}
|
||||
data: '{{ ''alexa_everywhere'' if is_state(''binary_sensor.master_bedroom_occupied'',''on'')
|
||||
else ''common'' }}
|
||||
|
||||
'
|
||||
alias: Run daily briefing script
|
||||
- conditions:
|
||||
- condition: and
|
||||
@ -2688,9 +2696,11 @@
|
||||
alias: Nightly Briefing
|
||||
sequence:
|
||||
- service: script.nightly_briefing
|
||||
data: {}
|
||||
data: '{{ ''alexa_everywhere'' if is_state(''binary_sensor.master_bedroom_occupied'',''on'')
|
||||
else ''common'' }}
|
||||
|
||||
'
|
||||
alias: Run nightly briefing script
|
||||
alias: Choose briefing
|
||||
mode: single
|
||||
- id: '1696362140540'
|
||||
alias: Kallen Briefing Location Change
|
||||
|
Reference in New Issue
Block a user