Add individual allow switches for housewide briefings
This commit is contained in:
@ -2893,36 +2893,39 @@
|
|||||||
- id: '1696362054868'
|
- id: '1696362054868'
|
||||||
alias: House Briefings
|
alias: House Briefings
|
||||||
description: ''
|
description: ''
|
||||||
trigger:
|
triggers:
|
||||||
- platform: time
|
- at: input_datetime.morning_briefing
|
||||||
at: input_datetime.morning_briefing
|
|
||||||
id: house-morning
|
id: house-morning
|
||||||
alias: Morning Briefing Time
|
alias: Morning Briefing Time
|
||||||
- platform: time
|
trigger: time
|
||||||
at: input_datetime.daily_briefing
|
- at: input_datetime.daily_briefing
|
||||||
id: house-daily
|
id: house-daily
|
||||||
alias: Daily Briefing Time
|
alias: Daily Briefing Time
|
||||||
- platform: time
|
trigger: time
|
||||||
at: input_datetime.nightly_briefing
|
- at: input_datetime.nightly_briefing
|
||||||
id: house-nightly
|
id: house-nightly
|
||||||
alias: Nightly Briefing Time
|
alias: Nightly Briefing Time
|
||||||
condition:
|
trigger: time
|
||||||
|
conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.vacation_mode
|
entity_id: input_boolean.vacation_mode
|
||||||
state: 'off'
|
state: 'off'
|
||||||
alias: We are not on vacation
|
alias: We are not on vacation
|
||||||
action:
|
actions:
|
||||||
- alias: Choose briefing
|
- alias: Choose briefing
|
||||||
choose:
|
choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: and
|
- alias: Morning Briefing
|
||||||
|
condition: and
|
||||||
conditions:
|
conditions:
|
||||||
- condition: trigger
|
- condition: trigger
|
||||||
id: house-morning
|
id: house-morning
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.morning_briefing_allowed
|
||||||
|
state: 'on'
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.good_morning
|
entity_id: input_boolean.good_morning
|
||||||
state: 'off'
|
state: 'off'
|
||||||
alias: Morning Briefing
|
|
||||||
sequence:
|
sequence:
|
||||||
- alias: Skip if Kallen has school but stayed overnight elsewhere
|
- alias: Skip if Kallen has school but stayed overnight elsewhere
|
||||||
if:
|
if:
|
||||||
@ -2932,47 +2935,53 @@
|
|||||||
%}\n true\n{% endif %}\n"
|
%}\n true\n{% endif %}\n"
|
||||||
alias: If Kallen was not elsewhere overnight on a school morning
|
alias: If Kallen was not elsewhere overnight on a school morning
|
||||||
then:
|
then:
|
||||||
- service: script.morning_briefing
|
- data:
|
||||||
data:
|
|
||||||
who: '{{ ''alexa_everywhere'' if is_state(''binary_sensor.master_bedroom_occupied'',''on'')
|
who: '{{ ''alexa_everywhere'' if is_state(''binary_sensor.master_bedroom_occupied'',''on'')
|
||||||
else ''common'' }}
|
else ''common'' }}
|
||||||
|
|
||||||
'
|
'
|
||||||
alias: Run morning briefing script
|
alias: Run morning briefing script
|
||||||
|
action: script.morning_briefing
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: and
|
- alias: Daily Briefing
|
||||||
|
condition: and
|
||||||
conditions:
|
conditions:
|
||||||
- condition: trigger
|
- condition: trigger
|
||||||
id: house-daily
|
id: house-daily
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.daily_briefing_allowed
|
||||||
|
state: 'on'
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.daily_briefing
|
entity_id: input_boolean.daily_briefing
|
||||||
state: 'off'
|
state: 'off'
|
||||||
alias: Daily Briefing
|
|
||||||
sequence:
|
sequence:
|
||||||
- service: script.daily_briefing
|
- data:
|
||||||
data:
|
|
||||||
who: '{{ ''alexa_everywhere'' if is_state(''binary_sensor.master_bedroom_occupied'',''on'')
|
who: '{{ ''alexa_everywhere'' if is_state(''binary_sensor.master_bedroom_occupied'',''on'')
|
||||||
else ''common'' }}
|
else ''common'' }}
|
||||||
|
|
||||||
'
|
'
|
||||||
alias: Run daily briefing script
|
alias: Run daily briefing script
|
||||||
|
action: script.daily_briefing
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: and
|
- alias: Nightly Briefing
|
||||||
|
condition: and
|
||||||
conditions:
|
conditions:
|
||||||
- condition: trigger
|
- condition: trigger
|
||||||
id: house-nightly
|
id: house-nightly
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.nightly_briefing_allowed
|
||||||
|
state: 'on'
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.nightly_briefing
|
entity_id: input_boolean.nightly_briefing
|
||||||
state: 'off'
|
state: 'off'
|
||||||
alias: Nightly Briefing
|
|
||||||
sequence:
|
sequence:
|
||||||
- service: script.nightly_briefing
|
- data:
|
||||||
data:
|
|
||||||
who: '{{ ''alexa_everywhere'' if is_state(''binary_sensor.master_bedroom_occupied'',''on'')
|
who: '{{ ''alexa_everywhere'' if is_state(''binary_sensor.master_bedroom_occupied'',''on'')
|
||||||
else ''common'' }}
|
else ''common'' }}
|
||||||
|
|
||||||
'
|
'
|
||||||
alias: Run nightly briefing script
|
alias: Run nightly briefing script
|
||||||
|
action: script.nightly_briefing
|
||||||
mode: single
|
mode: single
|
||||||
- id: '1696362140540'
|
- id: '1696362140540'
|
||||||
alias: Kallen Briefing Location Change
|
alias: Kallen Briefing Location Change
|
||||||
|
@ -103,6 +103,15 @@ input_boolean:
|
|||||||
sun_reports:
|
sun_reports:
|
||||||
name: Sun Reports
|
name: Sun Reports
|
||||||
icon: mdi:weather-sunny-alert
|
icon: mdi:weather-sunny-alert
|
||||||
|
morning_briefing_allowed:
|
||||||
|
name: Morning Briefing Allowed
|
||||||
|
icon: mdi:bullhorn
|
||||||
|
daily_briefing_allowed:
|
||||||
|
name: Daily Briefing Allowed
|
||||||
|
icon: mdi:bullhorn
|
||||||
|
nightly_briefing_allowed:
|
||||||
|
name: Nightly Briefing Allowed
|
||||||
|
icon: mdi:bullhorn
|
||||||
|
|
||||||
intent_script:
|
intent_script:
|
||||||
PlayAnnouncement:
|
PlayAnnouncement:
|
||||||
|
Reference in New Issue
Block a user