I would like to control a lamp connected to Shelly Plus 1PM with two Shelly Motion 2 sensors.
These 2 sensors cover different areas of the room.
I would like the two Shelly Motion 2 sensors act as two parallel connected switches. This means, the light should go on (Shelly Plus 1PM is on) after at least one sensor (Shelly Motion 2) detects a motion. And the light should go off after the last sensor (Shelly Motion 2) stops detecting motion (and this is my problem).
The I/O Actions seem to work well with only one Shelly Motion 2, it turns the Shelly Plus 1PM on when motion is detected and turns it off after no motion is detected.
Two Shelly Motion 2 connected via I/O Actions to the Shelly Plus 1PM will turn the switch off after the first of the stops detecting movement, despite the second one still detecting movement.
is there a way the Shelly Plus 1PM would count how many times it was turned on/off?
2x Shelly Motion 2 + 1x Shelly Plus 1PM
-
- Shelly Motion 2
-
marian kison -
1. Oktober 2023 um 21:59 -
Unerledigt
-
-
I have solved the problem by using Scenes.
One Scene for Light On and another for Light Off. -
can do it this way.. on motion send http command to toggle plus 1pm
in http you just enter the toggle http command ie.. http://192.168.X.X/relay/0?turn=toggle
-
can do it this way.. on motion send http command to toggle plus 1pm
in http you just enter the toggle http command ie.. http://192.168.X.X/relay/0?turn=toggle
This works for 1 sensor. but it doesn't work properly for multiple sensors.
The first sensor will properly turn the light on.
But the light will be turned off even if 1 of 2 sensors still detects motion.
Or the 2nd sensor detects motion and will toggle (flip the switch) and turn light off.