Nightly briefing added #52
This commit is contained in:
@ -147,6 +147,23 @@ automation:
|
||||
data:
|
||||
who: common
|
||||
|
||||
- id: 933acebd-c788-4640-babd-6c30093cd2ba
|
||||
alias: Nightly Briefing
|
||||
trigger:
|
||||
platform: time
|
||||
at: input_datetime.nightly_report
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.people_present
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: input_boolean.vacation_mode
|
||||
state: 'off'
|
||||
action:
|
||||
- service: script.nightly_briefing
|
||||
data:
|
||||
who: common
|
||||
|
||||
- id: d7641b5e-3cbb-4fb3-b6ed-5edf3157b88d
|
||||
alias: Kallen Briefing Location Change
|
||||
trigger:
|
||||
@ -236,6 +253,13 @@ script:
|
||||
who: "{{ who }}"
|
||||
message: !include ../templates/speech/daily_briefing.yaml
|
||||
|
||||
nightly_briefing:
|
||||
sequence:
|
||||
- service: script.speech_engine
|
||||
data_template:
|
||||
who: "{{ who }}"
|
||||
message: !include ../templates/speech/nightly_briefing.yaml
|
||||
|
||||
morning_report:
|
||||
sequence:
|
||||
- service: script.speech_engine
|
||||
|
@ -331,6 +331,11 @@ script:
|
||||
|
||||
house_scheduling_evening:
|
||||
sequence:
|
||||
- service: input_datetime.set_datetime
|
||||
entity_id: input_datetime.nightly_report
|
||||
data:
|
||||
time: >
|
||||
{{ (state_attr('input_datetime.kallen_bedtime','timestamp') - 3600) | timestamp_custom('%H:%M', false) }}
|
||||
- service: input_datetime.set_datetime
|
||||
entity_id: input_datetime.audible_notification_off
|
||||
data_template:
|
||||
|
Reference in New Issue
Block a user