Help with Shelly1 + PIR + Rules #19960
Replies: 5 comments 7 replies
-
Have you had a look to auto-off-motion-sense-switch ? |
Beta Was this translation helpful? Give feedback.
-
My current rule is this: ON switch1#state=1 DO Backlog Power1 ON; RuleTimer1 30 ENDON ON Rules#Timer=1 DO Power1 OFF ENDON and Switchmode1 set to 14. |
Beta Was this translation helpful? Give feedback.
-
I solved this with two rules: SwitchMode1 13 rule1 ON Switch1#state=1 DO Backlog event checksunrise=%time%; event checksunset=%time% ENDON ON event#checksunrise<%sunrise% DO Backlog Power1 ON; RuleTimer1 5 ENDON ON event#checksunset>%sunset% DO Backlog Power1 ON; RuleTimer1 5 ENDON ON Rules#Timer=1 DO Power1 OFF ENDON rule2 on switch1#state=1 do publish PIR ON endon on switch1#state=0 do publish PIR OFF endon and I changed the active rule via mqtt cmd |
Beta Was this translation helpful? Give feedback.
-
The console output with your rule (timer set to 30 seconds): 17:54:12.312 RUL: SWITCH1#STATE=1 performs "Backlog event checksunrise=1074; event checksunset=1074" The bold lines are where the delay occurs I think, but why? |
Beta Was this translation helpful? Give feedback.
-
Hello, This discussion was about how to change the lights to be permanently ON My Rule1 does only work with SwitchMode1 13 ... the example on tasmota.github is SwitchMode1 14 !!! Please try both |
Beta Was this translation helpful? Give feedback.
-
Hello guys,
I have a Shelly1 (non plus) with a MH-SR602 PIR sensor connected and latest tasmota.
What I try to setup for a few days now but did not succeed is the follwing:
This Shelly + PIR sensor should turn on my stair lights on montion detection and turn them off after 30 seconds. This is working so far as it should.
BUT I would like to have the option to turn the lights on manually AND permanently - they should then not be turned off by the rule that is executed by montion detection from the PIR sensor, which would turn the lights off after 30 seconds.
Please help on that.
Thanks and best regards
Thomas
Beta Was this translation helpful? Give feedback.
All reactions