Scheduling behavior for K morning briefing can now have manual location

This commit is contained in:
2022-08-24 07:36:17 -04:00
parent d889bbd1ab
commit 11b7a7ad98
2 changed files with 20 additions and 1 deletions

View File

@ -44,6 +44,14 @@ input_datetime:
has_time: true has_time: true
icon: mdi:clock-edit icon: mdi:clock-edit
input_select:
kallen_morning_briefing_location:
name: Kallen Morning Briefing Location
options:
- Kallen Bedroom
- Common Areas
icon: mdi:map-marker
################################ ################################
# Announcment Automation - fires at the time of the above input_datetimes # Announcment Automation - fires at the time of the above input_datetimes
################################ ################################
@ -170,8 +178,10 @@ script:
- service: script.speech_engine - service: script.speech_engine
data: data:
who: > who: >
{% if is_state('input_boolean.school_today', 'on') %} {% if is_state('input_select.kallen_morning_briefing_location','Kallen Bedroom') %}
kallen_bedroom kallen_bedroom
{% elif is_state('input_select.kallen_morning_briefing_location','Common Areas') %}
common
{% else %} {% else %}
common common
{% endif %} {% endif %}

View File

@ -79,6 +79,15 @@ automation:
{% else %} {% else %}
10:00 10:00
{% endif %} {% endif %}
- service: input_select.select_option
entity_id: input_select.kallen_morning_briefing_location
data_template:
option: >
{% if is_state('input_boolean.school_today','on') %}
Kallen Bedroom
{% else %}
Common Areas
{% endif %}
- if: - if:
- condition: trigger - condition: trigger
id: kallen-evening id: kallen-evening