They should show me the CO2 value.
The following rule does not work:
Code: Select all
on MH-Z19#PPM do
if [MH-Z19#PPM]<=700
if %systime% > 08:00:00 and %systime% < 20:00:00
NeoPixelAll,0,80,0,0 // gruen tagsueber
else
NeoPixelAll,0,8,0,0 // gruen abends
endif
endif
if [MH-Z19#PPM]>=700 and [MH-Z19#PPM]<=1200
if %systime% > 08:00:00 and %systime% < 20:00:00
NeoPixelAll,60,60,0,0 // gelb tagsueber
else
NeoPixelAll,8,8,0,0
endif
endif
if [MH-Z19#PPM]>=1200
if %systime% > 08:00:00 and %systime% < 20:00:00
NeoPixelAll,80,0,0,0 // rot tagsueber
else
NeoPixelAll,8,0,0,0
endif
endif
endon
Code: Select all
On MH-Z19#PPM<700 do
NeoPixelAll,0,80,0,0 // gruen
endon
On MH-Z19#PPM>700 do
if [MH-Z19#PPM]<1200
NeoPixelAll,50,50,0,0 // gelb
else
NeoPixelAll,80,0,0,0 // rot
endif
endon