Formatting

This commit is contained in:
2023-10-03 16:38:14 -04:00
parent 34bdc989b7
commit 9c61bc8105

View File

@ -1311,8 +1311,14 @@
state: 'on'
- condition: template
value_template: '{% set rearm = state_attr(''input_datetime.morning_alarm_rearm'',''timestamp'')
%} {% set wake = state_attr(''input_datetime.master_bedroom_wakeup'',''timestamp'')
%} {% set diff = wake - rearm %} {{ diff > 1800 }}
%}
{% set wake = state_attr(''input_datetime.master_bedroom_wakeup'',''timestamp'')
%}
{% set diff = wake - rearm %}
{{ diff > 1800 }}
'
action: