Hi,
is there a possibility to shutdown the host os from the ui?
This could be useful if you want to shutdown the pi to make a backup of the sd-card etc.
Hi,
is there a possibility to shutdown the host os from the ui?
This could be useful if you want to shutdown the pi to make a backup of the sd-card etc.
shell_command: sudo shutdown -h now ?
~Cheers
I tried it, does not work.
Why doesn’t it work?
~Cheers
It doesn’t do anything. (nothing showing up in the logs)
Did you try it with hass.io or with a normal hass installation?
I have not tried it at all. That was just my educated guess ^^ I’ll look into it after work and report back.
~Cheers
Any update to this?
I installed hass.io yesterday, and tried to power off the system when I wanted to move the Raspberry Pi 3 to another room, but couldn’t find a way (I also didn’t succeed through SSH). A shutdown option would be appreciated.
Came here looking for the same thing.
Surprised it isn’t already an option in Advanced settings alongside reboot?
I will add it soon to CLI
At the Moment use on ssh addon:
curl -X POST http://172.17.0.2/host/shutdown
Will there be an option for restart instead of just shutdown?
If you look at the CLI of Hassio you can shutdown the host by hassio host shutdown
I saw the options of “hassio host shutdown”, “hassio host restart” when using SSH, exactly what I was looking for.
Restart option is already in UI, looking forward to a shutdown option being added.
We can shutdown Raspberry Pi by going Hass.io>System>Host System>Shutdown.
Is there any YAML code that I can use to make a shortcut in Lovelace UI?
You can use the hassio.host_shutdown service to shutdown HA and host system in same time ! tested on my system and works fine
Yes, written a script and added in Lovelace for easy shutdown my Pi.
hass_turn_off:
alias: Shutdown Home Assistant
sequence:
- service: hassio.host_shutdown