Strange error in blocky

Moderator: leecollings

Post Reply
tjabas
Posts: 562
Joined: Sunday 11 December 2016 13:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Strange error in blocky

Post by tjabas »

I get an error message in the log with this blocky:
sol.PNG
sol.PNG (29.84 KiB) Viewed 382 times
2020-05-03 00:06:08.915 Error: EventSystem: Lua script error (Blockly), Name: Varmvatten beredare sol_1 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: attempt to compare number with nil
2020-05-03 00:06:08.915 Error: EventSystem: Lua script error (Blockly), Name: Varmvatten beredare sol_2 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: attempt to compare nil with number
2020-05-03 00:06:10.177 Error: EventSystem: Lua script error (Blockly), Name: Varmvatten beredare sol_1 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: attempt to compare number with nil
2020-05-03 00:06:10.177 Error: EventSystem: Lua script error (Blockly), Name: Varmvatten beredare sol_2 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: attempt to compare nil with number


This is an hotwater heater that should start heating when the solar production is over 3000watts, and it should stop heating when the solar production is less than 2500watts

any sugestions?
wouterlet
Posts: 109
Joined: Tuesday 02 October 2018 20:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Strange error in blocky

Post by wouterlet »

Are you sure the value of 'Production 12,5 kw' is a number?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest