I’m using a binary_sensor with rpi_gpio to monitor AC Power failure.
I’m getting voltage from the 3.3V on the pi and running it through a 10k pull-up resistor.
When I power up the pi the status could read on or off depending and how I have the circuit set. When I change the circuit state it will change to the other state on the dashboard like it is supposed to.
When I change the circuit state again though, it doesn’t update on the dashboard. Could Anyone see if there’s anything wrong with my code?
From my configuration.yaml
binary_sensor:
-platform: rpi_gpio
ports:
19: AC Power
pull_mode: "UP"
invert_logic: true