Blocky script doesn't do what I want Topic is solved

Moderator: leecollings

Post Reply
HoogendoornJH
Posts: 29
Joined: Wednesday 31 July 2019 16:43
Target OS: Windows
Domoticz version: 12736
Location: Netherlands
Contact:

Blocky script doesn't do what I want

Post by HoogendoornJH »

I want to turn on a fan when the CO2 level in a room is above 750 ppm and turn it off when the CO2 level is below 725 ppm. However, at temperatures above 25°C under no circumstances the fan should be switched on when the outside temperature is above the inside temperature.

For this I made the attached Blocky script. However, it doesn't work. It did work without the condition that the fan should not be turned on at temperatures above 25°C when the outside temperature is above the inside temperature.

Now, is the script wrong or is Blocky unable to handle the nested If statements?

Blocky_script.jpg
Blocky_script.jpg (112.72 KiB) Viewed 2291 times

In the script it is:
Buiten Temp/Humi (Davis) = outside temperature;
Binnen Temp/Hum (Davis) = inside temperature;
CO2 Woonkamer = CO2 level in the room;
Switch Suskast Werkkamer = Switch fan.
Aeotec Z-wave Gen5, RFXtrx433xl, Philips Hue Bridge, Davies Weather Station, Honeywell HGI/S80, AurAir CO2
cobra045
Posts: 46
Joined: Friday 12 February 2016 20:58
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.4834
Contact:

Re: Blocky script doesn't do what I want

Post by cobra045 »

Hoi HoogendoornJH,

I think you chose the wrong "if" function.
2x * is not possible.
See image

2022-05-22_18h03_20.png
2022-05-22_18h03_20.png (124.01 KiB) Viewed 2282 times

Kind regards cobra045
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest