Page 1 of 1
Blockly script not working
Posted: Friday 10 January 2025 19:47
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 (23.05 KiB) Viewed 394 times
Re: Blockly script not working
Posted: Friday 10 January 2025 20:53
by waltervl
What is the trigger for the script? Should be device or time or All (not preferred).
Re: Blockly script not working
Posted: Friday 10 January 2025 21:00
by waltervl
It seems you need the if-then block (without the blue gearwheel).
You used the else-if block....
Re: Blockly script not working
Posted: Saturday 11 January 2025 10:43
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?
Re: Blockly script not working
Posted: Saturday 11 January 2025 19:18
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.
Re: Blockly script not working
Posted: Sunday 12 January 2025 18:51
by WilcoEHV
Hi,
An update; the script is running as expected by now!
Thx for the help.