WTH do I need to restart HA to implement (most) changes or updates

I think an effort to fix this was made with the quick reload of YAML, but:

  • It’s not very clear what it affects and what needs a full restart
  • A lot of things still need a full restart

While I’m no developer I understand that changing this might need a lot of architectural work. But maybe it’s worth it?

Having to restart a app to implement updates feels a bit… dated.

Restarts are normal for software updates - so updating HA itself, or installing any new custom integration. There’s no way around the former, and the latter is hard so unlikely to happen.

Changes to integrations, that’s different. UI integrations already don’t require restarts, it’s only the ones that purely use YAML.

As more of those move to UI setup that problem should go away, or as developers decide to add support to reload the YAML. Unfortunately that needs the developer of that integration to want to make the necessary changes - and there’s a lot of integrations for not a lot of developers.

That’s slowly happening over time anyway - I remember when almost any change needed a restart. There’s still a way to go, but it’s happening.

Yes and no. With cernain approach it’s possible to achieve modularity where only restart of selected modules is needed while the rest of the system is not influenced.

There were several discussions about modular approach in the past.

Not arguing against it’s hard task to accomplish in case of architecture manifested by HA

Oh, sure. Windows and Linux have been working on that for more than a decade now, and it’s still not mainstream.

Possible, yes. Easy, no.

1 Like

Or using a core integration for the first time (after that reloading may be possible).

Not requiring a restart is unlikely to ever exist for changes to core or HAOS. The reason being that it is virtually impossible to know every side-effect of an update meaning that by not restarting there may be some random odd behaviors.

A more plausible option is to restart when no one is using the system. Here is a WTH for that: WTH -- Why don't updates allow "Update Tonight"?