mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-09-14 15:51:02 +00:00
Made a weird mistake with Last_triggered so had to back it out. There has to be a better way but for now, this is fine.
This commit is contained in:
@@ -52,18 +52,13 @@ automation:
|
||||
for:
|
||||
minutes: 5
|
||||
|
||||
- condition: numeric_state
|
||||
entity_id: automation.juicebox_selfheal
|
||||
attribute: last_triggered
|
||||
above: 10000
|
||||
|
||||
# - condition: template
|
||||
# value_template: >
|
||||
# {%- if states.automation.juicebox_selfheal.attributes.last_triggered -%}
|
||||
# {{ (as_timestamp(now()) - as_timestamp(states.automation.juicebox_selfheal.attributes.last_triggered)) > 10000 }}
|
||||
# {%- else -%}
|
||||
# true
|
||||
# {%- endif -%}
|
||||
- condition: template
|
||||
value_template: >
|
||||
{%- if states.automation.juicebox_selfheal.attributes.last_triggered -%}
|
||||
{{ (as_timestamp(now()) - as_timestamp(states.automation.juicebox_selfheal.attributes.last_triggered)) > 10000 }}
|
||||
{%- else -%}
|
||||
true
|
||||
{%- endif -%}
|
||||
|
||||
action:
|
||||
- service: homeassistant.turn_on
|
||||
|
Reference in New Issue
Block a user