Page 1 of 1

If CO2 is to high set fan on

Posted: Sunday 23 June 2019 17:36
by jonathan12
Hi all,

I'm trying to turn on the house ventilation (mechanische ventilatie) when the CO2 is too high using a Sonoff wifi swich like this topic: https://www.domoticz.com/forum/viewtopic.php?t=12544

I have a working MHZ19 sensor on a NodeMCU. It is working in Domoticz.
I have a Sonoff wich I will connect to my ventilator (DUCO). For now I have connected a lamp on it. The switch in domoticz is working.

I created this blockly script:

Image

Why is it not working when I blow into the CO2 sensor and make the CO2 higher then 800ppm?

Re: If CO2 is to high set fan on

Posted: Sunday 23 June 2019 17:45
by jonathan12
Fixed it with another type of if do:

Image

And this is also working:

Image