mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-19 11:38:30 +00:00
New Code for Template Fix : #1140
This commit is contained in:
@@ -54,8 +54,8 @@ automation:
|
|||||||
|
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: >
|
value_template: >
|
||||||
{%- if states.automation.juicebox_selfheal.attributes.last_triggered -%}
|
{%- if state_attr('automation.juicebox_selfheal', 'last_triggered')-%}
|
||||||
{{ (as_timestamp(now()) - as_timestamp(states.automation.juicebox_selfheal.attributes.last_triggered)) > 10000 }}
|
{{ (as_timestamp(now()) - as_timestamp(state_attr('automation.juicebox_selfheal', 'last_triggered'))) > 10000 }}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
true
|
true
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
Reference in New Issue
Block a user