From 1c88914a9aeb2d06b129b48c07163a1c39f7d016 Mon Sep 17 00:00:00 2001 From: Adrian Scillato <35405447+ascillato@users.noreply.github.com> Date: Wed, 29 May 2019 18:03:31 -0300 Subject: [PATCH] Updated Wemos D1 Mini and HC SR501 PIR Motion Sensor (markdown) --- Wemos-D1-Mini-and-HC-SR501-PIR-Motion-Sensor.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Wemos-D1-Mini-and-HC-SR501-PIR-Motion-Sensor.md b/Wemos-D1-Mini-and-HC-SR501-PIR-Motion-Sensor.md index 52f25651..e49e3d80 100644 --- a/Wemos-D1-Mini-and-HC-SR501-PIR-Motion-Sensor.md +++ b/Wemos-D1-Mini-and-HC-SR501-PIR-Motion-Sensor.md @@ -37,7 +37,7 @@ Then go to console in the webinterface and add a rule that sends a MQTT message Switchmode1 1 Switchtopic 0 - Rule1 on switch1#state=1 do publish stat/sonoff/PIRSENSOR1 ON endon on switch1#state=0 do publish stat/sonoff/PIRSENSOR1 OFF endon + Rule1 on switch1#state=1 do publish stat/sonoff/PIR1 ON endon on switch1#state=0 do publish stat/sonoff/PIR1 OFF endon Rule1 1 Note: the webinterface (obviously) won't show the relay state as "ON" or "OFF" any more - you have to watch the MQTT messages on the console to see the PIR trigger. @@ -46,5 +46,5 @@ If you want to attach a second PIR to another GPIO (e.g. D1 / GPIO5), configure Switchmode2 1 Switchtopic 0 - Rule2 on switch2#state=1 do publish stat/sonoff/PIRSENSOR2 ON endon on switch2#state=0 do publish stat/sonoff/PIRSENSOR2 OFF endon + Rule2 on switch2#state=1 do publish stat/sonoff/PIR2 ON endon on switch2#state=0 do publish stat/sonoff/PIR2 OFF endon Rule2 1 \ No newline at end of file