-
Notifications
You must be signed in to change notification settings - Fork 635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HC-SR501 PIR MOTION DETECTOR #503
Comments
@MariusLaurinaitis have four the according part of
works fine and gets published via @xoseperez btw - i'd love to have a way to get this discovered by |
@gretel thank you very much! |
You have the digital sensor that does just that: report the status of a digital GPIO. |
Hi Xose,
But it can't work, is there any other setting or problem with my settings? |
GPIO3 is RX in the Sonoff Basic, you are probably producing noise there. Why don't you use GPIO14 which is in the header? |
Closing this since there has been no feedback in 3 months. Feel free to reopen if necessary. |
The EventSensor now supports events. Check fba8a9f. |
Thanks @xoseperez. I tried the latest version of the espurna-sensors, but the delivery time of the PIR status (HC-SR501) from detecting motion to the Home Assistant through the MQTT is still very slow. I then modified the sensors.h file as shown below: |
@nqdanyb my "old" approach works without any noticeable latency. |
Thanks @gretel . I have edited the file hardware.h as your guide. It is true that the PIR state (HC-SR501) reads very fast. But I do not know how to send it via MQTT to Home Assistant |
There is no support to send button event to HA at the moment. |
Hello Xose,
You are growing fast! It would be very cool to add PIR sensor (HC-SR501) support too like [https://www.mpja.com/download/31227sc.pdf] It would be possible to see status through mqtt. Then one Wemos D1 or NodeMCU could work with a whole set of sensors.
And if we could even plug an OLED screen (popular monochrome 128x64, SPI SD1306 driver or SPI SH1106 driver) to output mqtt values :)
Best regards
Marius
The text was updated successfully, but these errors were encountered: