Hi,
It is normal that automations that i turned off coming back to on after home Assistant restart?
Yes it’s normal which is a bit of a PITA but just something to check when you update.
You could set the initial_state: ‘off’ to the ones you’d like to be disabled on restart. But curious, why do you need to turn automations off instead of just having a condition that they execute?
I have automations for the winter, and now i don’t need them,
I think that i will make a automation that trigger when home Assistant start and will turn off the automations that i don’t need.
That makes sense. FYI There is a season sensor you could add and then use a condition to only run in winter.
I agree. I have an automation that turns the lights on IF it’s after 4PM AND the sun is below 25° so in Winter the sun is down earlier that 4pm but it won’t trigger till after 4PM. In Summer, it can be 7PM before the sun is below 25° and the lights won’t go on until then.Much better way than a blunt instrument you’ll need to adjust all the time.
eg:
- action:
- data:
brightness_pct: 75
entity_id: light.lounge
kelvin: 3100
service: light.turn_on
alias: Turn Lounge Light On Elevation < 25° & after 4PM
condition:
- after: '16:00:00'
before: '22:00:00'
condition: time
- condition: template
value_template: '{{states.sun.sun.attributes.elevation < 25}}'
id: '1505977024304'
trigger:
- below: '25'
entity_id: sun.sun
platform: numeric_state
value_template: '{{ state.attributes.elevation }}'
- at: '16:00:00'
platform: time
Thank you for your help