arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
22.04k stars 4.78k forks source link

Setting up HC-SR501 PIR MOTION DETECTOR with Home Assistant #836

Closed dawsmac closed 6 years ago

dawsmac commented 7 years ago

If this has been covered and the wrong location by all means remove :)

So I wanted to setup a PIR sensor that would bring on 3 security light in my back garden. I placed 3 sonoff basic inside HALF LANTERN WALL LIGHT at the top, flashed them all with the Tasmota firmware and added them to HA following the guides online. this all seems to work fine. then came to adding the PIR sensor... I wired it up went onto Web UI and selected the correct setting Switch1 ( GPOI14) etc.. nothing seems to work. I then came across this post regarding a bypass to run PIR of 3.3 vDC after this mod PIR started to spring into life. but brought only a single light on and off... now because I wanted to control all three and only to come on at night time I needed to understand "Switchtopic". After lots of trying and trying I set the switchtopic in the web UI to "Switchtopic Garage_PIR" and switchmode "SwitchMode1":1" This meant that every time the PIR flagged a movement it would send a MQTT like this cmnd/Garage_PIR/POWER1 = ON. I then updated my HA configuration to include the following in my sensors section

Hopefully, this will help others out there :)

BTW thanks for making this possible with the Sonoff-Tasmota firmware

arcanum246 commented 7 years ago

Thanks Heaps for the help. Could not figure it out on my own.

meirion commented 6 years ago

Would you mind posting some details or photos of how you installed the mini pir sensor?

I'm interested in building the same setup. Did you replace the PIR in an existing sensor light? How did you power it, and where did you locate the sonoff? Thanks for your help.

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 6 years ago

This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem.