Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4874

Beginners • Re: Measuring voltage on GPIO to detect blackout

$
0
0
I use huge 100W power bank with power thru mode, it charges itself using some algorithms… TLDR measuring input to power bank is absolutely wrong way

I need to send trigger about blackout to home assistant that runs on raspberry pi
Basically I will write simple python script that will check power on GPIO continuously . When script detects no power I will throw message to home assistant via MQTT. Also there is some integration for home assistant that can work with GPIO. I’ve never played with GPIO before so I don’t know now which way of sending notification to HA I will select.

I use raspberry pi 4B+ with argon one case
OS is raspberry pi OS bookworm on Debian 12, home assistant runs in docker containers

Statistics: Posted by ecp — Mon Jul 29, 2024 6:35 pm



Viewing all articles
Browse latest Browse all 4874

Trending Articles