Add morning announcements for K
This commit is contained in:
@ -13,9 +13,21 @@
|
|||||||
{% set houseEveningRan = is_state('input_boolean.house_scheduling_evening_ran','on') %}
|
{% set houseEveningRan = is_state('input_boolean.house_scheduling_evening_ran','on') %}
|
||||||
{% set masterBedroomEveningRan = is_state('input_boolean.master_bedroom_scheduling_evening_ran','on') %}
|
{% set masterBedroomEveningRan = is_state('input_boolean.master_bedroom_scheduling_evening_ran','on') %}
|
||||||
{% set emmaEveningRan = is_state('input_boolean.emma_scheduling_evening_ran','on') %}
|
{% set emmaEveningRan = is_state('input_boolean.emma_scheduling_evening_ran','on') %}
|
||||||
|
{% set kallenMorningAnnc = is_state('input_boolean.kallen_morning_announcements','on') %}
|
||||||
{% set kallenText = 'Kallen' %}
|
{% set kallenText = 'Kallen' %}
|
||||||
{% set kallenTTS = 'Collin' %}
|
{% set kallenTTS = 'Collin' %}
|
||||||
|
|
||||||
|
{% macro morning_annc(type,method) %}
|
||||||
|
{% if method == 'text' %}
|
||||||
|
{% set identKallen = kallenText %}
|
||||||
|
{% elif method == 'tts' %}
|
||||||
|
{% set identKallen = kallenTTS %}
|
||||||
|
{% endif %}
|
||||||
|
{% if kallenMorningAnnc %}
|
||||||
|
First things first, we have some announcements for {{ identKallen }}. {{ states('input_text.kallen_morning_announcements') }}
|
||||||
|
{% endif %}
|
||||||
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro laundry_report(type,method) %}
|
{% macro laundry_report(type,method) %}
|
||||||
{% macro data() %}
|
{% macro data() %}
|
||||||
{% set washerTimer = states('timer.washer_timer') %}
|
{% set washerTimer = states('timer.washer_timer') %}
|
||||||
|
@ -61,6 +61,10 @@ input_text:
|
|||||||
name: Kallen Briefing Extras
|
name: Kallen Briefing Extras
|
||||||
icon: mdi:plus
|
icon: mdi:plus
|
||||||
max: 255
|
max: 255
|
||||||
|
kallen_morning_announcements:
|
||||||
|
name: Kallen Morning Announcements
|
||||||
|
icon: mdi:bullhorn
|
||||||
|
max: 255
|
||||||
|
|
||||||
input_boolean:
|
input_boolean:
|
||||||
briefing_extras:
|
briefing_extras:
|
||||||
@ -69,6 +73,9 @@ input_boolean:
|
|||||||
kallen_briefing_extras:
|
kallen_briefing_extras:
|
||||||
name: Kallen Briefing Extras
|
name: Kallen Briefing Extras
|
||||||
icon: mdi:plus
|
icon: mdi:plus
|
||||||
|
kallen_morning_announcements:
|
||||||
|
name: Kallen Morning Announcements
|
||||||
|
icon: mdi:bullhorn
|
||||||
good_morning:
|
good_morning:
|
||||||
name: Good Morning Ran
|
name: Good Morning Ran
|
||||||
icon: mdi:home-analytics
|
icon: mdi:home-analytics
|
||||||
|
@ -394,11 +394,7 @@ script:
|
|||||||
{% set kallenbriefing = state_attr('input_datetime.kallen_morning_briefing','timestamp') %}
|
{% set kallenbriefing = state_attr('input_datetime.kallen_morning_briefing','timestamp') %}
|
||||||
{% set kallenloc = states('input_select.kallen_morning_briefing_location') %}
|
{% set kallenloc = states('input_select.kallen_morning_briefing_location') %}
|
||||||
{% if is_state('input_boolean.kallen_school_today','on') %}
|
{% if is_state('input_boolean.kallen_school_today','on') %}
|
||||||
{% if is_state('input_boolean.two_hour_delay','on') %}
|
{{ (state_attr('input_datetime.kallen_school_day_start','timestamp') - 3300) | timestamp_custom('%H:%M', false) }}
|
||||||
9:20
|
|
||||||
{% else %}
|
|
||||||
{{ (state_attr('input_datetime.kallen_school_day_start','timestamp') - 2400) | timestamp_custom('%H:%M', false) }}
|
|
||||||
{% endif %}
|
|
||||||
{% elif is_state('input_boolean.work_today','on') and is_state('input_boolean.kallen_school_today','off') %}
|
{% elif is_state('input_boolean.work_today','on') and is_state('input_boolean.kallen_school_today','off') %}
|
||||||
{% if (state_attr('input_datetime.tina_workday_start','timestamp')) > 43200 %}
|
{% if (state_attr('input_datetime.tina_workday_start','timestamp')) > 43200 %}
|
||||||
{% if kallenloc == 'Common Areas' and kallenbriefing == 43200 %}
|
{% if kallenloc == 'Common Areas' and kallenbriefing == 43200 %}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
{% from 'formatting.jinja' import cleanup %}
|
{% from 'formatting.jinja' import cleanup %}
|
||||||
{%- macro getReport() -%}
|
{%- macro getReport() -%}
|
||||||
{% from 'speech.jinja' import greeting, dadjoke, inspirational_quote, today_is %}
|
{% from 'speech.jinja' import greeting, dadjoke, inspirational_quote, today_is %}
|
||||||
{% from 'status.jinja' import tony_status_report, tina_status_report, kallen_status_report, emma_status_report %}
|
{% from 'status.jinja' import tony_status_report, tina_status_report, kallen_status_report, emma_status_report, morning_annc %}
|
||||||
{% from 'easy_time.jinja' import count_the_days %}
|
{% from 'easy_time.jinja' import count_the_days %}
|
||||||
{% from 'weather.jinja' import weatherReport %}
|
{% from 'weather.jinja' import weatherReport %}
|
||||||
{% from 'sports.jinja' import sports_updates %}
|
{% from 'sports.jinja' import sports_updates %}
|
||||||
@ -14,6 +14,10 @@
|
|||||||
{{ today_is() }}
|
{{ today_is() }}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
{{ morning_annc('full','tts') }}
|
||||||
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
{{ weatherReport('full','tts','morning') }}
|
{{ weatherReport('full','tts','morning') }}
|
||||||
</p>
|
</p>
|
||||||
|
Reference in New Issue
Block a user