I have setup a raspberry pi gpio binary sensor as such
binary_sensor:
platform: rpi_gpio
ports:
11: PIR Loungeroom
But is always showing as 'On". I’ve heard issue with the PIR sensors being too close to other components but does anyone know of any other issues?
The automations I have setup work a treat but the sensor triggers all the time obviously so it’s not working.
lambtho
(Lambtho)
June 6, 2017, 8:12am
2
are you sure it is wired correctly ? (you may have inverted VCC and GND)
I swear I’ve checked the wiring like 500 times, although I still may have it wrong. Would that give the always on reading though?
lambtho
(Lambtho)
June 6, 2017, 8:19am
4
Yup, I had the same error the very first time I wired a PIR sensor (always on), and it was just an inversion of VCC and GND wires
ok, looks like I’m pulling it apart and switching those wires around tonight. Thanks!
lambtho
(Lambtho)
June 6, 2017, 8:21am
6
If you have the most common generic PIR sesnor, here is what it should looks like
That’s it alright. I’m going through a breadboard but basically the same thing. Was actually thinking of adding the camera soon too.
lambtho
(Lambtho)
June 6, 2017, 8:28am
8
Ok if wires are correct, then are you sure you 11 is your GPIO number and not the pin number ?
Man am I screwing this up royally. First off, I did have the GND and VCC mixed up. Now going back to my wiring I’m on PIN 11 which is actually GPIO 17 right?
I must have had too many reds the other day when wiring this up as I swear I was correct. I’m using a cobbler plus breakout so got confused .
Definitely on Pin 11 though.
I feel rather stupid about now
lambtho
(Lambtho)
June 6, 2017, 8:42am
10
At least you learnt something today
Hope everything will work fine now
Thank you, all seems to be working correctly now and yes I did learn to check my work at least one more time LOL
2 Likes