I really wish Home Assistant had an option for a reconciliation loop flow instead of the event based one that it uses now, it would make things much more robust.

#HomeAssistant

@ainmosni same, I've been dreaming about having something like that for forever, it would be much nicer...
@ainmosni Can you tell me an example? I do not understand the term.

@viper539 So, right now, automations in HA work based on events, for example "IF window switches to open THEN turn heating down", but if it fails turning the heating down when it detects the window state change, the heating will never be turned down.

In a reconciliation loop you define very similarly, that if the window is open, the heating has to be set to a lower temperature, but instead of doing that action based on events, it will check the state of the window every minute or so, and see if the heating state matches, and it changes the heating state if it doesn't match. This is much more resilient, and also has a habit of self-healing.

@ainmosni I know some of the automations @BillieCodes has written include effectively implementing reconciliation loops by triggering every minute, but it's definitely a pain to write them yourself
@mirahimage @BillieCodes Yeah, you can do that, and I have, but it would be nice if it's the default paradigm.
@ainmosni @mirahimage @BillieCodes isn’t this just a choice of what to use as trigger? The ‘classical’ way is to trigger on the event. And the reconciliation way is to trigger on a time pattern and use the desired state(s) as extra condition.
I never heard the term ‘reconciliation’ in this context, so i am trying to understand…
@ainmosni I completely agree with this! This brings me back to this exact consideration when I started years ago. I do have to say it isn't an issue actually. Also, It isn't perfect, but I do work around it usually by simply also triggering on the entity i'm controlling, triggering on it becoming available. This way it is able to apply a desired state not only on when an intended trigger happened, but also when the device recoveres from a reboot or power outage, etc.
@ainmosni I also written down how I deal with a more complex yaml setup in a blog post. Maybe it contains some interesting approaches: https://blog.netk.nl/2025/home-assistant-yaml/
Organizing way too much YAML and why

A deep-dive into my over-engineered Home Assistant YAML setup and what perks it gives me

Michiel on Home Automation
@ainmosni I’m using #nodered for all my automation. Be careful, it can be addictive 😉