What can be reloaded without restarting?

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.

2 Likes

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ā€)

5 Likes

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
8 Likes

I made a script that does this automatically whenever you update those files, feedback and imporvements are much appriciated:

1 Like

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.

1 Like

alerts are not yet part of these easy reload options right?

3 Likes