Page 1 of 1
[SOLVED] Why is this not working ?
Posted: Tuesday 26 April 2016 20:25
by Kerneldomoticz
Hello all,
i created a blocky script but at night the set level will not work

if i change the value during the day time it works like a charm ... anybody knows why ?
if you have any idea they will be more than welcome.
Thx by advance !
FLo
here is the script :
Re: Why is this not working ?
Posted: Tuesday 26 April 2016 20:30
by jvdz
It is probably confused about time>= 23:00 and time < 06:15 as that feels pretty impossible ever happening.
Jos
Re: Why is this not working ?
Posted: Tuesday 26 April 2016 23:11
by Kerneldomoticz
why ??? between 11pm and 6;15am it doesn't exist ?
what would you do ?
Flo
Re: Why is this not working ?
Posted: Tuesday 26 April 2016 23:42
by MikeF
'or' not 'and'
Re: Why is this not working ?
Posted: Wednesday 27 April 2016 9:29
by jvdz
You are testing for the condition to occur for when the time is both bigger than 23 and smaller than 6 which obviously never will happen. So indeed it test needs to be that the time is either after 23:00 or before 6:15.
Jos
Re: Why is this not working ?
Posted: Wednesday 27 April 2016 20:33
by Kerneldomoticz
ok thx all for the explanation...
in a normal way of thinking time exist between 10pm and 6am
but looks like domoticz reset a counter at midnight which break my first logic.
the OR change worked like a charm
Thx all for your help
Flo