mirror of https://github.com/arendst/Tasmota.git
Updated Wemos D1 Mini and HC SR501 PIR Motion Sensor (markdown)
parent
bb42e39f3c
commit
9e12a2f2a5
|
@ -38,7 +38,6 @@ 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 4
|
||||
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.
|
||||
|
@ -48,5 +47,4 @@ 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 4
|
||||
Rule2 1
|
Loading…
Reference in New Issue