A radical idea

I know I’m clearly crazy, but here goes: I propose…an OFF BUTTON.

Not something buried three menus deep… (after running through every other menu option)
Not something I need to Youtube surf for 2 hours and spend another 3 lovelace jockey-ing…
Not something I need to HACS together…

…but an OFF button. Top left or right corner (not picky, dealer’s choice), MAIN MENU, TOP MENU, simple, conspicuous. Baked in to both Web UI AND APP. One simple single button that will shut my HA server down RIGHT FIRETRUCKING NOW. Right now. Turn it off.

Yes, I know I can hook it up to a UPS. Yes I know I can I physically go to the unit and press the power button. Great. Awesome. How about putting one button up front & top menu so I can shut the damn thing down when the storm is coming, or some other power grid issue is clearly imminent?

OFF button.

Not a huge ask. Not sure why it’s EVEN an ask, years into this project.

OFF BUTTON.

No way. Far too easy for uneducated users to activate or to be accidentally activated, which is not good for a server that is supposed to be on all the time. So I doubt it will ever be added (I’ve been wrong before).

You can of course easily add this yourself.

Put a button on your dashboard and set the tap action to call the service hassio.host_shutdown.

I’d recommend using the confirmation option.

6 Likes

I’ve been using HA for years now, I feel like I’ve needed an off button maybe 5 times total. The only times I’ve ever used it is in rare cases when I needed to muck with something in .storage. In those cases I shut HA down, do what I need to do and then bring it back up again via the cli. Not a common task for sure and one that really no one should do in truth.

Can I ask why you need this often enough that you want an easier way to get to it? Like what kinds of uses cases cause you to go looking for an off button?

EDIT: oh wait, is this host shutdown or ha stop that you’re looking for? Since those are different. If it’s host shutdown then I may be even more confused. I think I used that option exactly twice: once when I physically moved HA to a new location and once when I migrated to a new device. So now I’m even less sure what the use cases are…

Simply use a prominent button card to call the HOST shutdown service.

It’s hard to take a post serious that basically is a rant without justification. Why would stopping HA or the hardware it’s running be so important to stop (frequently, it seems is the need) when it’s essentially designed to be always on?

I couldn’t help but think of Steve Jobs’ hate relationship with (physical) buttons.

Well done on choosing a clickbait title. Totally got me.

4 Likes

They did give their reasoning for requiring it:

Wow! That was a long echo return:

Having said that, there is no excuse for the OP’s language.

2 Likes

Fixed.

1 Like

Worse case scenario, run your system with a Wi-Fi enabled plug.
You can even put the “Kill Me” button in Home Assistant on a Dashboard.
Boom… done.

Sure it’s not the best way to politely shut down a server. (the OP didn’t sound all that polite anyway)
Sure you’ll need a cloud based app to trigger it back on again.
But would it work… Yes. How do I know this?
Because I have one.

There have been rare occasions when my previous SD Card based Raspberry Pi (on a more reliable SSD now) would just hang, and I was miles away from my rack, but needed to reboot the dead machine.

Jim
(let the flaming begin)

Yeah that is really not recommended. It’s a good way to corrupt your file system.

2 Likes

And that goes for any computer, running HA or not.

2 Likes

Yeah, understood.
I did say, “Worse case scenario”
I believe it was a corrupted file that was causing the system to hang in the first place.

But it sounded like the OP just wanted to:
“…shut my HA server down RIGHT FIRETRUCKING NOW. Right now. Turn it off.”

And this would surely work.

And yes, I have a PIN restriction on that button in my dashboard so it doesn’t get accidentally triggered.

Another radical idea: a downvote button :crazy_face:

3 Likes

I have a similar setup, had issues with SSD leading to HA hanging up. Using a cheap tuya plug with SmartAtHome.co.uk - My Smart Life Devices webserver.

1 Like

I put an inexpensive UPS on my RPi power supply. Power outages are not that unusual around here, but HA just keeps chugging.

They also sell remote reboot devices with all kinds of options to automatically reboot when some failure is detected (like a failed ping.) Again, you wouldn’t use this if you could shut HA down through the UI or SSH, but if it’s locked up sometimes a hard reboot is your best hope.

The comments about being unable to find the shutdown option in the UI could apply to anything in HA. There is a learning curve to find out where everything is, and things do get moved around from version to version. I don’t think it’s possible to ever satisfy everyone. Luckily, as has been pointed out a few times already in this thread, you can make HA look and work however you prefer. Personally, I just learn where things are (and on the next release, re-learn where they’ve been moved to) and get over it. It’s not like HA is my full-time job.

3 Likes

I did miss the storm coming thing. In my defense, I started skimming after it was clear it was a rant.

I guess that’s fair then. It’s definitely not how I would’ve solved this problem (ups all the way for me) but to each their own. I guess we’ll see if others upvote it then.

Although as an aside I would totally support a request to add shutdown to the ‘c’ menu. I may rarely use it but I still think all management actions should be in there. And then that would make it more accessible for folks. I’ll pass on an ootb prominent button though.

3 Likes

Going with the UPS idea, automation can be created. Shut down the HA system if there is a severe weather warning in the area and send a distress alert to all connected devices e.g Chromecasts, mobiles etc just like the recent Ukraine alarm system.

Look at NUT

Sometimes you have to innovate with these kinds of offline UPSs.

Weell, to all of you that think this is stupid, useless, not recommended, etc.
Here I am, 40 minutes searching for a shutdown button, and still not found it.
I set up my raspberry pi, and now it’s working i need to shut it down just to relocate it to it’s final location.
Seems my hassio version still has no posts indicating where is the shutdown button hidden, if there is any.
Per this post, it seems i have to create a card and call a service, if I’m lucky that’s another 30 minutes minimum for a newbie like me. (Or buy and add an UPS to the system… lol)

It’s not that crazy of a request, just add an accessible shutdown button…