New morning briefing, and scheduling changes
This commit is contained in:
@ -99,6 +99,18 @@ automation:
|
||||
action:
|
||||
- service: script.daily_briefing
|
||||
|
||||
- id: 5d06ba92-de10-4bf3-bc08-86f5be60c4a7
|
||||
alias: Morning Briefing
|
||||
trigger:
|
||||
- platform: time
|
||||
at: input_datetime.morning_report
|
||||
condition:
|
||||
condition: state
|
||||
entity_id: binary_sensor.people_present
|
||||
state: 'on'
|
||||
action:
|
||||
- service: script.morning_report
|
||||
|
||||
script:
|
||||
reset_annc_switches:
|
||||
sequence:
|
||||
@ -153,4 +165,11 @@ script:
|
||||
- service: script.speech_engine
|
||||
data_template:
|
||||
who: "{{ who }}"
|
||||
message: !include ../templates/speech/daily_briefing.yaml
|
||||
message: !include ../templates/speech/daily_briefing.yaml
|
||||
|
||||
morning_report:
|
||||
sequence:
|
||||
- service: script.speech_engine
|
||||
data_template:
|
||||
who: "{{ who }}"
|
||||
message: !include ../templates/speech/morning_briefing.yaml
|
@ -98,6 +98,26 @@ automation:
|
||||
{% else %}
|
||||
09:00
|
||||
{% endif %}
|
||||
- service: input_datetime.set_datetime
|
||||
entity_id: input_datetime.morning_report
|
||||
data_template:
|
||||
time: >
|
||||
{% if is_state('input_boolean.school_today','on') %}
|
||||
08:20
|
||||
{% elif is_state('input_boolean.work_today','on') and is_state('input_boolean.school_today','off') %}
|
||||
{{ (state_attr('input_datetime.tina_workday_start', 'timestamp') - 1800) | timestamp_custom('%H:%M', false) }}
|
||||
{% else %}
|
||||
12:00
|
||||
{% endif %}
|
||||
- service: input_datetime.set_datetime
|
||||
entity_id: input_datetime.daily_briefing
|
||||
data_template:
|
||||
time: >
|
||||
{% if is_state('input_boolean.school_today','on') %}
|
||||
14:15
|
||||
{% else %}
|
||||
{{ (state_attr('input_datetime.tina_workday_end', 'timestamp') + 1800) | timestamp_custom('%H:%M', false) }}
|
||||
{% endif %}
|
||||
|
||||
- id: 55293e9a-ec3b-46bb-af47-94e95f3c9951
|
||||
alias: House Scheduling - Evening
|
||||
|
Reference in New Issue
Block a user