Hello,
In server controls, the shutdown button has disappeared. How to turn off Home Assistant correctly? Thanks a lot!
There seems to be a shutdown service in Developer Tools âŚ
The two posts above represent two different operations:
-
Stop Home Assistant Core (which is the function performed by the button that was removed from Configuration > Settings > Server Controls).
-
Shutdown the host system (remains available as a button in Configuration > Add-ons Backups and Supervisor > Services > Shutdown Host).
Ok. Thank you very much!
Thank you very much!!
Itâs great to know the difference between the two. This allows you to use one or the other depending on what you want to do. Thank you very much!!
Youâre welcome!
Please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topicâs title which signals to other users that this topic has been resolved. This helps users find answers to similar questions. For more information, refer to guideline 21 in the FAQ.
Hi,
Thatâ is clear how to stop HA using the service in developper tools.
When HA is stopped using this method , how we can restart it , the UI interface being unavailable ?
Thank you
Done! but I have a doubt. If turning off the Core is the function that the button was removed from. Shut down the host what exactly does it do? Thanks for your help!
Just got to be sure what you mean here:
You intend to start the host system, after it has been turned off through the service call?
You would probably have to physically press the power button on your server, unless you can setup something akin to Wake on Lan, which I believe not all hosts support.
It turns off the computer hosting Home Assistant.
Hi @bjorn.sivertsen ,
what i mean : to restart HA through UI after turning off HA through the service call.
Obviously if youâve already shut down HA, the HA UI isnât going to be available.
The best solution Iâve found (running HA on a headless server) is to use SSH:
The link above will bring you a little more than half-way down the page, to the section entitled Home Assistant via the command line.
I keep a text file handy with a list of common command-line commands that I use infrequently, so I donât have to look them up each time.
Thanks for the explanation of the two differences: shutdown core and shutdown host.
So, the correct way to shutdown the system would be:
- shutdown core
â âcore stopâ
and after that - shutdown host
â âhost shutdownâ
That was a little confusing because it seemed like it didnât work and I would just get little black square pop up in the lower left: Failed to call service hassio.host_shutdown. undefined.
Several minutes later and half of the web UI is broken, like Energy, Map, Media. Other options sit on loading forever. Notifications > Dismiss: Failed to call service persistent_notification/dismiss. undefined. Stuff on Overview still seems to work, but maybe itâs just cached.
Really it did work, there was just no good feedback that it had shutdown. Reloading the webpage and getting nothing proved it.
Is this the only way to power off a headless Home Assistant Operating System instance from the web UI?
I think that Settings > System > Shutdown/Reboot would make a lot of sense. And better feedback at the shutdown location that it is or seems to be shutdown.
Home Assistant Core 2022.6.6
HAOS 8.2
If you think the HA service can be improved then please consider putting in a feature request.
I couldnât find it in the GUI until I saw your post! Thank you!