Hi guys,
i’ve a lot of magnetic windows sensors and i want to integrate it by home assistant and by GPIO of raspberry p3+.
I try to search but i don’t found (and i don t understand how to do it).
Can you help a newbie?
thanks
What are you searching for?
HACS has the GPIO integration. The rest is a matter of connection the pins.
I however don’t understand what your goal is here. How are you connect the sensors?
Hi recte,
I want to read status of magnetic sensor (simply contact close/contact open). I’ve connected one wire to gpio5 and one wire to gnd.
binary_sensor:
- platform: remote_rpi_gpio
host: 192.168.1.xxx
invert_logic: true
ports:
5: Sensore Raspberry
But On ha , if i discottect the ground , sensor state will not change.
Thanks
I haven’t done too much with GPIOs, but my fan regulator on the Pi worked like a charm.
Are you familiar with the schema below?
Src: https://pinout.xyz/resources/raspberry-pi-pinout.png
FYI, I connected the pins of the CPU fan to the physical pins 4,6 and 8 (2nd,3rd and 4th on the top row), where 8 is 14 for GPIO.