I have a PIR sensor working on my raspberry pi, i can see the pin get a signal every time it detects motion using weboipi, so that part is working
Now for HA i have this in my configuration.yaml file I have
#RPI GPIO prox
binary_sensor:
- platform: rpi_gpio
ports:
12: PIR Office
This shows up on my dashboard as PIR office and in an ON state all the time, I would like to use this to turn on a led on the board when it detects motion.
I cannot figure out how to get the status on the dash to flip from on to off or vice versa with this sensor ?
There is nothing in the logs from when it should be changing states, however it does work when I change it from the dev options in HA
Any pointers on where to look to figure this out?
Thanks