Home Assistant OS shutdown indicator

Hello,

I am currently running Home Assistant OS (11.1) and Home Assistant Core (2023.11.3) on a Raspberry Pi 4 and would like to know if a particular feature that is available when running Raspberry Pi OS is also available when running Home Assistant OS.

Raspberry Pi OS allows you to configure a GPIO pin to signal when the Raspberry Pi has fully shut down. Typically I attach an LED to the specified GPIO pin and when the LED lights up I know it is safe to power down the Raspberry Pi. To enable this feature, you add the following to the /boot/config.txt file:

dtoverlay=gpio-poweroff,gpiopin=25,active_high

This is extremely handy when working with ‘headless’ Raspberry Pi’s.

So, is it possible to enable this feature under Home Assistant OS?

1 Like

There is a way. It’s in the DEV docs someplace. You would have to dig around for it.

That’s great news! I hope I can locate that bit of info.

-Wes

I think you missed the point.

I found some info Googling and it makes it sound like I’d have to modify and recompile the OS. Do you agree?

I used option 1, but the logic was reversed. LED off, safe to turn off

https://forums.raspberrypi.com/viewtopic.php?t=267032#p1622869