What configurations can be reloaded without restarting? reload_core_config only reloads customization? What about groups and views?
Also, according to this automations can be reloaded without restarting, by toggling their state, but it does not seem to work.
Iām curious about this as well. I have gotten some things to reload, but I am usually better served just restarting the whole service.
Groups and automations have their own services for reloading.
Go to the services page in your web UI (the one that looks like a mobile device with a signal bar - it is the left most icon under āDeveloper Toolsā).
Once there, itās just three steps:
- Click on the ādomainā drop down, select āGroupsā (or āautomationsā)
- Click on the āserviceā drop down, select āreloadā
- Click on āCall Serviceā
This will work in a pinch, and is much nicer than waiting for HASS to restart everything completely while developing and testing. I find once I am done tweaking things, a good full restart is still usually a good idea. These āon-the-flyā reloads sometimes leave things in a weird state. (For example, I will sometimes end up with multiple copies of the same groups in the Web UI).
BTW - @abmantis, the āreload_core_configā as far as I know just reloads any customizations you have. (eg: things in the "customize: " stanza of your yaml - friendly names, icons, visibility, etc).
(edit: cleared up ambiguous usage of āreloadā vs ārestartā)
I see! The group and automation reloads are very useful, thank you.
Cool! Havenāt noticed those services! Great tip.
Also worth mentioning here, because it comes up on a search for āreloading automationsā is that you can create scripts for these so they can appear on your front end like this:
script:
restart_ha:
alias: Restart HomeAssistant
sequence:
- alias: Restart HA
service: homeassistant.restart
reload_automations:
alias: Reload Automations
sequence:
- alias: Reload-Automations
service: automation.reload
I made a script that does this automatically whenever you update those files, feedback and imporvements are much appriciated:
What about packages? How to reload the stuff in them? It seems that functionality is broken. For example, groups disappear if they are in packages and are reloadedā¦
How appear on front. I copy and past your script in script.yaml
, bit nothing show on Hass,io frontend.
alerts are not yet part of these easy reload options right?