Troubleshooting

API for UPS HAT DFR0494

userHead Marc.Villanueva Mir 2025-11-19 22:57:10 4 Views0 Replies

I am struggling with the UPS HAT DFR0494, which I bought for my Raspberry Pi 3B+. My goal is to have the Raspberry run in an autonomous installation and handle a graceful shutdown if power is accidentally cut.

I followed the instructions provided in the DF Wiki, but I am missing a more comprehensive API or at least some clarifications on what this hat can and can't do.

- I assume that the hat can't auto-boot (or boot the Raspberry) when it receives power in the charging USB socket. So far, the only option I found to boot the Raspberry Pi (before the UPS turned off under 7% charge) is to physically press the function button. Can you confirm that?- Could you confirm is there any way to know if the hat is charging? Is there any address to get that value or do I have to compare the battery fluctuation to know this?- I am running a Python script that shuts down my Pi cleanly when power is cut. I can track the difference on voltage in the hat to guess if mains power has been cut and trigger the shutdown sequence, but I'd like to shut down the hat as well, since I don't need it to keep running when the Pi is down. Doesn't the hat support any delayed shutdown mode?Has someone gone deeper with the hat's API, or is it restricted to the only commands that appear on the wiki? Thank you so much for your clarifications!