I need to use the round function to round the PM2.5 value to an integer.
I used code:
Code: Select all
rreturn {
on = {
devices = {'airly'},
},
execute = domoticz.round('PM2,5 Norma',0)
end
}
Device name: Airly
Value: Pm2.5 Norma
Please, tell me what I'm doing wrong.
Thanks