Closes #352
This commit is contained in:
parent
47d29c521f
commit
4b67988868
|
@ -248,14 +248,15 @@ automation:
|
||||||
hours: '/8'
|
hours: '/8'
|
||||||
minutes: 15
|
minutes: 15
|
||||||
seconds: 00
|
seconds: 00
|
||||||
condition:
|
# condition:
|
||||||
- condition: template
|
# - condition: template
|
||||||
value_template: >
|
# value_template: >
|
||||||
{%- if states.automation.random_house_stats.attributes.last_triggered -%}
|
# {%- if states.automation.random_house_stats.attributes.last_triggered -%}
|
||||||
{{ (as_timestamp(now()) - as_timestamp(states.automation.random_house_stats.attributes.last_triggered)) > 2000 }}
|
# {{ (as_timestamp(now()) - as_timestamp(states.automation.random_house_stats.attributes.last_triggered)) > 2000 }}
|
||||||
{%- else -%}
|
# {
|
||||||
true
|
# %- else -%}
|
||||||
{%- endif -%}
|
# true
|
||||||
|
# {%- endif -%}
|
||||||
action:
|
action:
|
||||||
- service: notify.ccostan
|
- service: notify.ccostan
|
||||||
data_template:
|
data_template:
|
||||||
|
|
Loading…
Reference in New Issue