diff --git a/custom_templates/status.jinja b/custom_templates/status.jinja index b6162f1..73fee29 100644 --- a/custom_templates/status.jinja +++ b/custom_templates/status.jinja @@ -577,7 +577,7 @@ Tony is currently streaming. The current stream category is {{ game }}. The curr {% endif %} {% endmacro %} -{% macro emma_sleep_notification(type,method) %} +{% macro emmaSleepNotification(type,method) %} {% set asleep = state_attr('input_datetime.emma_down_for_nap','timestamp') | int %} {% set wakeup = state_attr('input_datetime.emma_up_from_nap','timestamp') | int %} {% set day = now().strftime("%-d") %} diff --git a/packages/emmalynn.yaml b/packages/emmalynn.yaml index a04d4b5..43634ca 100644 --- a/packages/emmalynn.yaml +++ b/packages/emmalynn.yaml @@ -157,9 +157,9 @@ automation: type: alert title: Emma Sleeping message: > - {% from 'status.jinja' import emma_sleep_notification %} + {% from 'status.jinja' import emmaSleepNotification %} {% from 'formatting.jinja' import cleanup %} - {{ cleanup(emma_sleep_notification()) }} + {{ cleanup(emmaSleepNotification()) }} tag: emma-sleep - conditions: - condition: trigger @@ -209,9 +209,9 @@ automation: type: alert title: Emma Awakens message: > - {% from 'status.jinja' import emma_sleep_notification %} + {% from 'status.jinja' import emmaSleepNotification %} {% from 'formatting.jinja' import cleanup %} - {{ cleanup(emma_sleep_notification()) }} + {{ cleanup(emmaSleepNotification()) }} tag: emma-wake - service: script.emma_wakeup diff --git a/templates/speech/welcome_home.yaml b/templates/speech/welcome_home.yaml index 3c2ea42..54c87ea 100644 --- a/templates/speech/welcome_home.yaml +++ b/templates/speech/welcome_home.yaml @@ -4,7 +4,7 @@ {%- macro getReport() -%} {% from 'speech.jinja' import dadjoke %} {% from 'time.jinja' import input_datetime_read %} - {% from 'status.jinja' import emma_sleep %} + {% from 'status.jinja' import emmaSleep %} {% from 'easy_time.jinja' import count_the_days %} {% from 'weather.jinja' import weatherReport %}

@@ -124,7 +124,7 @@

- {{ emma_sleep() }} + {{ emmaSleep() }}