Page 1 of 1

Youless and blockly problem

Posted: Saturday 05 June 2021 22:59
by Ptje
Hello,

I have a youless meter with lan. I want to switch some nodes when the youless says the energy is above 1001 or less then 1000. When I make a simple blockly structure

Blockly.jpg
Blockly.jpg (99.06 KiB) Viewed 237 times
I get this error

021-06-05 22:21:35.569 Error: EventSystem: Lua script error (Blockly), Name: Energie_1 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: attempt to compare nil with number
2021-06-05 22:21:35.569 Error: EventSystem: Lua script error (Blockly), Name: Energie_2 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: attempt to compare number with nil

Does somebody know what the problem can be ?

Greetings,
Peter