Set Time to variable in Event

Moderator: leecollings

Post Reply
syl20
Posts: 6
Joined: Tuesday 17 November 2015 22:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Set Time to variable in Event

Post 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 !
JuanUil
Posts: 497
Joined: Friday 22 May 2015 12:21
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11083
Location: Asten NB Nederland
Contact:

Re: Set Time to variable in Event

Post by JuanUil »

Hi There
see viewtopic.php?f=38&t=8799
you can adjust it to your needs I think

success
Jan
Your mind is like a parachute,
It only works when it is opened!

RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
syl20
Posts: 6
Joined: Tuesday 17 November 2015 22:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Set Time to variable in Event

Post 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?
syl20
Posts: 6
Joined: Tuesday 17 November 2015 22:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Set Time to variable in Event

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests