Why rebooting after every single change


#1

Howdy!

Can someone explain to me why almost every single change you make to the configs or software in general requires a reboot.

I’ve been working in IT industry for awhile now and our production servers (Running CentOS) haven’t been rebooted in at least a year. Meanwhile, we constant update / install new software and change configurations.

Was very surprised by this fact… It’s almost like if there is a small problem - reboot. Another problem - reboot.

Cheers!


#2

You don’t need to reboot the OS.
You can restart hass under Configuration -> General -> Server Management after config of components.
When you use Lovelace as UI, you only have to refresh the browser.


#3

If its an automation, group, or script, you can reload those from the Configuration menu. Reload core will pull in customization values some of the time. A restart (not reboot) is recommended once you have everything working like you want it. You’re right on everything else, you have to restart to make changes to the main configuration, sensors, etc.


#4

Gotcha, just seems a bit strange being that it’s *nix and not windows that’s all :slight_smile:


#5

You just need to restart the service though. That’s not really anything to do with what the OS is.


#6

I am a long term fhem user and have set up HA just recently because of the much better user interface. Was very surprised that in HA the addition of a new device component requires a restart of the server/service most of the time.


#7

I think it’s due to the way that the configs are read in.
All serialized from yaml

I think


#8

I suspect it’s an architectural decision. The simplest way to handle a change (add/modify/delete something) is to simply start from scratch: restart the system and process everything from the beginning.

OpenHAB works the same way. Only difference is it monitors its config files for changes. If it detects the file has been altered, it automatically restarts and loads it. It is convenient but can pose a possible problem if you made syntax errors. HA lets you ‘check config’ before committing your changes.

Both systems have low ‘granularity’. In other words, they only see things at the level of a file (its all or nothing). They don’t understand that you only added one sensor or made one minor change (sensor’s name).

FWIW, the home automation system I’ve used for many years has high granularity. I can add a new driver (a.k.a. component), a switch, change the name of a sensor, add automation logic, or just tweak a single line of an automation, without ever having to restart the HA system. In other words, there’s just no reason to restart it. Perhaps some day Home Assistant will work this way as well.