Added in a condition to make sure Rainy Day Automation doesn't trigger more than ~3 hours at a time. #95
This commit is contained in:
parent
2e72549d1b
commit
f9094e57d4
|
@ -45,6 +45,13 @@
|
|||
- condition: state
|
||||
entity_id: group.family
|
||||
state: 'home'
|
||||
- condition: template # Only run once every ~3 hours tops.
|
||||
value_template: >
|
||||
{%- if states.automation.dark_house_little_extra_light.attributes.last_triggered -%}
|
||||
{{ (as_timestamp(now()) - as_timestamp(states.automation.dark_house_little_extra_light.attributes.last_triggered)) > 10000 }}
|
||||
{%- else -%}
|
||||
true
|
||||
{%- endif -%}
|
||||
|
||||
action:
|
||||
- service: light.turn_on
|
||||
|
|
Loading…
Reference in New Issue