Automatically shut down the system at a certain time

137 / 5.000

Risultati della traduzione

Risultato di traduzione

Good evening, I am new to this subject, I wanted to know if there is a command to shut down the system at a certain time of day thanks.

Hi, welcome to the forum!

I don’t think there is such an option.
But why would you want to shut down your HA server automatically/scheduled?
If you have integrated HA in your everyday life, how will things run without it.

How about…?

triggers:
  - trigger: time
    at: "12:00:00"
actions:
  - action: homeassistant.stop

Hi Jack, I tried this with HAOS but it doesn’t stop the machine/system over here, only Core.

1 Like

Yes, I just discovered that too! :smile:

This is what I use when my laptop battery is about to die after a power cut:

actions:
  - action: hassio.host_shutdown

@marcavatar note that I agree with @Nick4 and personally think that shutting down your server is a bad idea.
I only use it to do a graceful shutdown in case of power loss, and only because I configured my server to automatically start up once power is restored.

What is the reason for wanting to shut your system down every day?

1 Like

Thanks for sharing that!

I didn’t know that ‘hassio’ is still so much present so tried in the Developer tools with home assistant and that’s how I found homeassistant.stop.

Also looked at the CLI but now I ‘found’:

1 Like

Sorry if I have not answered you in this time but I have not been at home and thank you for answering me, I tried but it does not work do you have a tutorial I am completely inexperienced in the matter, a second question if you do not mind, I have integrated jellyfin mediaserver, is it possible to create a button to restart the jellyfin service, it is found in docker on openmediavault thanks.

Show what you have already.

for now I only have switches on the screen nothing special just external hard drives that I use every now and then with jellyfin for now I’m inexperienced and so I didn’t want to keep the card on all day then in the future when I get the hang of it maybe I won’t turn it off.

Well in that case, there is a shutdown option on the Settings page (sidebar menu) → 3 dots in the right hand corner so you can manually shut down your server.

Regarding you jellyfin question: can’t help you there.