Time variable show wrong time, looks like it works ok in schedules.
Chelsea will check this.
TIME function is from the document.
But time unit of var is number of seconds.
So I suggest you make the following small change.
o
Hi,
command : VAR = TIME / 100 * 60 + TIME % 100 gives time format 00:hh:mm. Can you please give example for hh:mm:ss
I havent been following this chain closely but the way time is SUPPOSED to work is you can do math, comparisons and everythign one could want to do with time using teh HH;MM:SS manipulations. Just make sure to use the range TIME, not hours, minutes, seconds.
IF TIME > 12:00:00 THEN START FAN
IF TIME > 13:00:00 THEN STOP FAN
This will turn the fan on from noon to 1PM every day.
The following is HH:MM:SS
20 VAR1 = TIME\ 100 * 3600 + TIME\ 1 % 100 * 60 + TIME* 1000 % 1000 * 36 / 1000
This is really getting complex. What are we trying to achieve here?
If your var is in the units of TIME then you just do math and logic as I showed earlier. A person is not supposed to have to go through gyrations like this to do logic with TIME.
Update:
IF+ TIME > 08:00:00 THEN START FAN
IF+ TIME > 20:00:00 THEN STOP FAN
The fan should go on at 8AM and off at 8PM. I have instructed Chelsea to make it work like this. Its how I have used it over the years, if we somehow got off track and it doesnt work like this then we have to step back and investigate how to make it work like this again without disrupting existing systems.
Please update our latest firmware rev64.7, we will fix our document about TIME fuction.
then it is easy for you to show the time, dont need convert it.
That’s how its supposed to work. Thanks Chelsea.