Page 1 of 1

Set Time to variable in Event

Posted: Tuesday 17 November 2015 22:56
by syl20
Hello All

I'm e new user and trying to create two Time range for scheduling Heating (Days of the Week and Week End).
I initiate Time Variables for starting and ending heating at different hours when it's week end or a day of the week.

But i have the folowing errors when i try to set these variable in Events.

2015-11-17 22:20:45.336 Error: EventSystem: Error updating variable Chauffage Salon Cal1 Debut: Not a valid time notation (HH:MM)
2015-11-17 22:20:45.337 Error: EventSystem: Error updating variable Chauffage Salon Cal1 Fin: Not a valid time notation (HH:MM)

I need a time type to compare with the current time and the variables in a lua script

Thanks in advance for your help !

Re: Set Time to variable in Event

Posted: Tuesday 17 November 2015 23:04
by JuanUil
Hi There
see viewtopic.php?f=38&t=8799
you can adjust it to your needs I think

success
Jan

Re: Set Time to variable in Event

Posted: Tuesday 17 November 2015 23:08
by syl20
Thanks for your quick reply.
I'm going to take a look and try to understand the scrirpt :)

But any idea on how to set a variable in events whith a time type?

Re: Set Time to variable in Event

Posted: Thursday 19 November 2015 11:36
by syl20
I found this which should fix my problem

Correction in beta 3598 :
Fixed: Blockly, string uservariables where saved with quotes when not using with set-after