Change E's status macro names to be consistent with others
This commit is contained in:
@ -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") %}
|
||||
|
@ -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
|
||||
|
||||
|
@ -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 %}
|
||||
<p>
|
||||
@ -124,7 +124,7 @@
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{{ emma_sleep() }}
|
||||
{{ emmaSleep() }}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
Reference in New Issue
Block a user