> {# Master Bedroom Wakeup #} {%- macro getReport() -%} {% from 'speech.jinja' import greeting, today_is %} {% from 'status.jinja' import tony_status_report, tina_status_report, kallen_status_report, emma_status_report %} {% from 'weather.jinja' import weatherReport %}

{{ greeting('date') }}

{{ today_is() }}

{{ weatherReport('alerts','tts','day') }} {{ tony_status_report('full','tts') }} {{ tina_status_report('full','tts') }} {{ kallen_status_report('full','tts') }} {{ emma_status_report('full','tts') }}

Do not forget to set the living room thermostat to your desired daytime temperature!

{% if is_state('input_boolean.briefing_extras','on') %} "And now we have the following extra information to pass along. {{ states('input_text.briefing_extras') }} " {% endif %}

{%- endmacro -%} {# a macro that removes all newline characters, empty spaces, and returns formatted text #} {%- macro cleanup(data) -%} {%- for item in data.split("\n") if item | trim != "" -%} {{ item | trim }} {% endfor -%} {%- endmacro -%} {# a macro to call all macros :) #} {%- macro mother_of_all_macros() -%} {{ getReport() }} {%- endmacro -%} {# Call the macro #} {{- cleanup(mother_of_all_macros()) -}}