I try to switch On a light if there is a move AND it is night. So I've made a blocky event. But it is not working. So I cuted it in 2 parts : Test of "it is somebody during the night or not" setting a user variable "PresenceNocturne". This part is working fine.
Then I want to use this variable to switch the light. And even the value is '1', it is not executing the (first) right "if" case.
User variable "PresenceNocturne" is an integer, and initialized to 0.
The third test "time>00:00" is just because "else" test doesn't exists by itself, just "else if". If you have a trick for that, I take it.
And finally, the log displays :
2015-02-22 23:29:00.324 Ni off ni On !
2015-02-22 23:29:00.324 1
So, the user variable "PresenceNocturne" is 1, but the first test "PresenceNocturne=1" is not executed, only the default one.
Thank you for your help !