lucavb / homebridge-hc-sr501

Homebridge plugin for the hc-sr501 motion sensor
GNU General Public License v3.0
10 stars 1 forks source link

HC-SR501 not working in homebridge #3

Closed 0wneeejj closed 6 years ago

0wneeejj commented 7 years ago

Hey :)

I downloaded and installed the plugin, but it is not working have the sensor connected on Pin 24 but it wont detect any thing. I have tested it with a python script and it detects motion. I bought mine sensor from Aliexpress maybe this is the issue maybe a fake HC-SR501 ?

lucavb commented 7 years ago

Make sure to use the correct pin. There are different naming conventions for the pins. The plugin that I am using is using the BCM schema. Assuming that you are using the wiringPi convention I'd suggest you try 19 instead.

consider this image use whatever number it says after GPIO.

0wneeejj commented 7 years ago

Hey there

Thanks for the quick reply, so you mean i need to use pin 35 (gpio19)? And for the config file i need to use pinId 19? Instead of 35?

0wneeejj commented 7 years ago

Got it to work! thanks for the advise! :D

lucavb commented 7 years ago

you're welcome

ceviixx commented 6 years ago

Hey, i use this Plugin and have problems. The motion sensor don’t toggle between heigh and low so the info in HomeKit is not correct. I show you some pictures and I hope somebody can help. Image Image I can’t find the problems

Thank you!

lucavb commented 6 years ago

Hey, try and make sure that the motion sensor is recognised correctly first. Since you are German this guide tells you what to do. https://www.einplatinencomputer.com/raspberry-pi-pir-bewegungsmelder-ansteuern/

Also keep in mind the different mappings for the pins so make sure to use the right number.

ceviixx commented 6 years ago

Hi, with Python i can read The State of The Sensor correct. At The same Pin. I don‘t reconice The Problem.

lucavb commented 6 years ago

could you please post the entry you added to your homebridge configuration file?

ceviixx commented 6 years ago

Image

lucavb commented 6 years ago

try 22 instead. you are using the wrong pin number scheme same as the previous poster.

ceviixx commented 6 years ago

ok thank You, i will try it tonight. however I had it with the pin 22 tasted there however no movement determined

ceviixx commented 6 years ago

Image

problem still exists

ceviixx commented 6 years ago

*White = Signal

lucavb commented 6 years ago

you changed the pin you are using. please use the image below and use the number it says after GPIO, i.e. 4 in the case of GPIO4.

https://www.raspberrypi-spy.co.uk/wp-content/uploads/2012/06/Raspberry-Pi-GPIO-Layout-Model-B-Plus-rotated-2700x900.png

ceviixx commented 6 years ago

Now it work Thank You!!!

Memfya commented 4 years ago

Hi! Help me please! My sr501 always triggered. I tried different GPIO. try another sr501. nothing helps :(