Can't have this rule to work

JB Blanc shared this question 10 years ago
Answered

Hi, I am trying to control a light from 2 motion sensory ( top and bottom of my staircase) but what ever i do it works well for one of them and on the second it just doesn't take into acocunt my virtual sensor ( light comes on even during the day).What am I doing wrong ?

Replies (11)

photo
1

Don't know for sure


But try this:

... (remove virtual)

If Sensor Es.. motion or Sensor Es..motion

If Virtual Daylight=false

Esc... light goto 100


Else

....

photo
1

Hi HeroS,


Good idea, I tried that before and it did not work either.


I tried to remove the virtual sensor and just use a Schedule too.

photo
1

HeroS is right.

Your current rule will never trigger because you will never get two events at the same time (sensor AND sensor).

Here is example that should work:

4uN3HlsFTMGFmV94bRGX

photo
1

Well I just tried this and even though daylight is true. The light goes on when "Sensor Escalier Bas" is triggered.


HY5VpYDgA0oZOeYdPIuE

photo
1

If you restarted your box after virtual sensor latest state was set then box will assume it's in false state.

Try to call Activate url for your virtual sensor and then test your rule.

photo
1

Thanks but still the same behavior

photo
1

JB >> Try putting some email messages between the rules so you can see where it stops.

photo
1

Hi HeroS,


Not sure if this will help, the problem is it works were it should not be. During the day when the virtual sensor is true nothing should happen. this is fine when one of the sensor but it wrongly trigger with the other one.

photo
2

Everything is ok with the rule, you should test it in the way HeroS suggested (you would see that it never passed the first if condition).

Your sensor "Sensor Escalier Bas" is binded with "Escalier light" and because of that your light is turning on/off. Just remove binding (don't forget to sync) and everything should work fine.

photo
1

Nenad is right I found the wrong binding and corrected it.


thanks for you assistance.

photo
1

Ok great! have fun.

Leave a Comment
 
Attach a file