This commit is contained in:
ccostan 2018-05-13 09:42:38 -04:00
parent 47d29c521f
commit 4b67988868
1 changed files with 9 additions and 8 deletions

View File

@ -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: