Airthings TVOC level below threshold. Aqara Home for US Turns on/off plug .

Turn off exhaust fan when VOC drops below threshold, but only if CO2 is also below threshold

Connect

When VOC drops below threshold, the exhaust fans should turn off only if the CO2 in the room is also below threshold. For it to work, edit the "filter" stage. If using Aqara, just uncomment the code in the "if" clause (delete the slashes "//"). Otherwise, just delete that 1 line and copy/paste a line from the help panel which enables you to turn off a plug/outlet from whatever service you are using.