Blockly script not working

Moderator: leecollings

Post Reply
WilcoEHV
Posts: 7
Joined: Monday 02 January 2023 15:52
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Eindhoven
Contact:

Blockly script not working

Post by WilcoEHV »

Hi,
Anybody got a clue why the heater in the heater in the garage is not turning on?
Today all three conditions were met; temp below 8 degrees, solarpanels producing more than 1000 watts and heater was off.
Schermafbeelding 2025-01-10 194254.png
Schermafbeelding 2025-01-10 194254.png (23.05 KiB) Viewed 147 times
Raspberry 3B with Raspberry PI OS
User avatar
waltervl
Posts: 5293
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Blockly script not working

Post by waltervl »

What is the trigger for the script? Should be device or time or All (not preferred).
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
waltervl
Posts: 5293
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Blockly script not working

Post by waltervl »

It seems you need the if-then block (without the blue gearwheel).
You used the else-if block....
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
willemd
Posts: 625
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

Re: Blockly script not working

Post by willemd »

WilcoEHV wrote: Friday 10 January 2025 19:47 Hi,
Anybody got a clue why the heater in the heater in the garage is not turning on?
Today all three conditions were met; temp below 8 degrees, solarpanels producing more than 1000 watts and heater was off.

Schermafbeelding 2025-01-10 194254.png
Your script tests for actuals > 1000 kWh while your mail mentions > 1000 Watts?
Which unit does your sensor show? Factor 1000?
WilcoEHV
Posts: 7
Joined: Monday 02 January 2023 15:52
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Eindhoven
Contact:

Re: Blockly script not working

Post by WilcoEHV »

Hi,
Thx for the replies!
I changed the if then block to one without gearwheel.
Hopefully this works!!

Triggers are in the script.
Solaredge reports watts and kwh (although i named it kWh).
I've got it on a different system where it's responding to watts.
Raspberry 3B with Raspberry PI OS
WilcoEHV
Posts: 7
Joined: Monday 02 January 2023 15:52
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Eindhoven
Contact:

Re: Blockly script not working

Post by WilcoEHV »

Hi,
An update; the script is running as expected by now!
Thx for the help.
Raspberry 3B with Raspberry PI OS
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest