diff --git a/config/automation/dark_rainy_day.yaml b/config/automation/dark_rainy_day.yaml index 657cb5d2..4ee45af9 100755 --- a/config/automation/dark_rainy_day.yaml +++ b/config/automation/dark_rainy_day.yaml @@ -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