Strange behavior conversion
Posted: Thursday 10 December 2020 23:05
Something strange happens. I have a FIBARO Smart Implant device attached to a SenseAir tSENSE CO2-meter which sends the 0-10V voltage signal of the CO2-meter to Domoticz. A virtual sensor "VoltageCO2" contains the voltage from the CO2-meter and a dzVents script converts the voltage to the virtual sensor "CO2 Woonkamer". In the Devices Current Status list the value of "CO2 Woonkamer" is displayed correctly. However, under Devices and Utility the value of "CO2 Woonkamer" is 0. What goes wrong here?
The script
The script
Code: Select all
return
{
on =
{
devices =
{
'VoltageCO2',
},
},
logging =
{
level = domoticz.LOG_DEBUG, -- change to domiticz.LOG_ERROR when all OK
marker = 'Conversion',
},
execute = function(dz, item)
dz.devices('CO2 Woonkamer').update(item.voltage*200)
end
}