Power button on raspberry pi 5

On the Raspberry Pi 5, there is a hardware power button. When the power is cut and then restored, the system does not automatically restart.
Is it possible to disable this behavior directly from Home Assistant?

I just ran a quick test on my RPi 5. I performed an orderly shutdown of HAOS on the PI. The LED turned RED. I then unplugged the Official Raspberry Pi 5 power supply from the mains, counted to 10, and then plugged the power supply back into the mains. The RPi 5 booted up without any manual intervention.

I then ran a second test. Instead of performing an orderly shutdown of HAOS, I simply unplugged the power supply, counted to 10, and then plugged it back in. Once again, the RPi 5 booted up without touching the manual power button.

Please note that cutting the power to a RPi without doing an orderly shutdown of Home Assistant may corrupt the file system which has been known to cause issues with HA.

1 Like

Thanks. Yes, I am aware of the risk. I ran my test on a test/development HAOS RPi 5 system. I just wanted to make sure I covered a typical power outage without UPS scenario. :wink:

Having this issue. I have had some power failures and each time I have to manually press the power on button on my Pi-5 running HA.
How can I set it to boot when power is restored? I am considering using something other than a Raspberry Pi now that this keeps happening. Any suggestions?

I am having a similar but not reproducable issue - 9 out of ten times the raspberry starts without problem, but the 10th time I have to press the bower button.

Sometimes I also have to press the power button after a regular shutdown, removal and reattachment of power.

Therefore I’d also like to disable the button completely as the raspberry sits on a remote location for monitoring.

What is the status of your J2 and Pi firmware configuration?
This is at a lower level than HomeAssistant. Bare metal stuff.

1 Like

(not sure this is a feature request?)

Sounds like two problems:

  1. The Pi is shutting down when it shouldn’t be, in a way that’s “staying off”
  2. Once it’s off, it doesn’t come back on (various reasons)

I use several Pi’s and recommend searching for “UPS hat”, as that would solve both problems. Most of them support one or more of the following useful features -
(a) ensure the Pi knows when it’s running on batteries
(b) control what happens when running on batteries (graceful shutdown ASAP vs. keep running for as long as possible, or somewhere in between)
(c) configurable what to do when power is restored (turn the Pi on ASAP / wait until batteries are charged / etc)
(d) hat expansion cards manage recharging speeds, general battery management, etc.

Brands with UPS hats include WaveShare, DFRobot, SupTronics (via Geekworm), and more. You might need to do some homework to make sure the one you pick is compatible with your Pi + you can provide the UPS with the right power supply / connector, etc.