Youless and blockly problem

Moderator: leecollings

Post Reply
Ptje
Posts: 73
Joined: Sunday 06 March 2016 23:56
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Schaijk
Contact:

Youless and blockly problem

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

Who is online

Users browsing this forum: No registered users and 1 guest