Error "now >= time 20:30" trigger allways on rule creator

Daniel Cañada shared this problem 8 years ago
Solved

I have this rule (attached file). The conditional time "if [now >= time (20:00)]" try to switch on the lights when the door opens later than 20:00, but the light turn on allways!!! at 6:00, at 12:00, at 14:00...


Is something wrong in the rule?


Thanks

Comments (14)

photo
1

Hi try using the between puzzle....

photo
1

HeroS wrote:

Hi try using the between puzzle....
It doesn't work, the lights turn on every time I open the door.

photo
1

Remove the stop and try....


When door = any


If between ....


Join


If door = open

Run scene...


Else

wait 15 sec

Light = 0

photo
1

Still the issue.... I think this should be a bug, I don't understand where is the problem... The device is not binded with any other device or light, and the rule I think is correct...

photo
1

I think the scene is the problem. Try with a light.


Also to test put some email messages between the rules.

photo
1

It's not a bug and solution is pretty simple. You should use 'time between' puzzle (Variable group).

Your rule should look like this:

ROmY8rPgoNRUDV8mbbPD

photo
1

Okay, I'll try it now. One question: What is the purpose of "Stop" and "Join"?


Thanks

photo
1

Stop will stop rule execution (something like return).

Join will stop execution of other instances of same rule if there is any (useful when rule have wait puzzle and rule is re-triggered while previous one is waiting).

photo
1

Still not working.... Are you sure it's not a bug? I only want that lights switch on when the door opens between 20:00 and 7:00 (in the night), but it switch on the light allways.


/481

photo
3

Your is breaking our compiler and your new rule was never executed.

Try to create rule like this:

v1vpXIgphNmL3jd9oaAK

photo
1

I've deleted the previous rule and created a new one. Now it looks like this:


0AbPdy8m5a9KA62zG4ze

Now the lights never are turned on when the door is open. I've being trying all the day (at 10:00, at 20:30...)... nothing occurs.


I'm starting to think that it's impossible to do that!!! ...


PS: Sorry about my english.

photo
2

Daniel, did you try to add some emailmessages for testing?/ to see where the rule stops and try without the scene.

photo
1

No I didn't. I'm gonna try to put e-mail traces.


Thanks!

photo
1

It's solved!!! I have deleted the rule and created again. The problem was in "Where" condition, It never fired (I don't know why). Making the rule again solved the problem.


Thanks everybody for you help.


;)