Scheduling behavior for K morning briefing can now have manual location
This commit is contained in:
@ -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 %}
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user