Question regarding Value of Ikea Air quality Sensor
Posted: Monday 14 February 2022 12:12
Hi All,
I made 2 Ikea Air Quality Sensors to Custom sensors to send the Data via mqtt to my Domoticz.
This is working since Weeks now.
What I try to do now, is to send a Mail when the Value is too high
and add the Value Data to the Mail.
For Values like Temperature, this is working with : bla bla bla ..temp.. °C bla bla bla
But I can´t fins equivalent for my Sensor, the Senso looks like this in Domoticz: I tried with ..value.. or ..sensordatavalues[1].value.. or ..sensordatavalues[1]..
Nothing works, always Nil Value in Data.
Here is the Script:
Did anyone has an Idea here?
//
clemens
I made 2 Ikea Air Quality Sensors to Custom sensors to send the Data via mqtt to my Domoticz.
This is working since Weeks now.
What I try to do now, is to send a Mail when the Value is too high
and add the Value Data to the Mail.
For Values like Temperature, this is working with : bla bla bla ..temp.. °C bla bla bla
But I can´t fins equivalent for my Sensor, the Senso looks like this in Domoticz: I tried with ..value.. or ..sensordatavalues[1].value.. or ..sensordatavalues[1]..
Nothing works, always Nil Value in Data.
Here is the Script:
Code: Select all
return {
active = true,
--on = { devices = { 'Feinstaubsensor EG'}},
on = {timer = {"every 1 Minutes between 00:10 and 23:50"}},
execute = function(domoticz, device, email)
if domoticz.devices('Feinstaubsensor EG').sensorValue >= 80 --110 --86
then domoticz.devices('Feinstaubbelastung EG').updateAlertSensor(domoticz.ALERTLEVEL_RED, 'stark erhöht, FFP2 oder FFP3 Maske anziehen')
domoticz.email('Feinstaubbelastung EG', 'Achtung stark erhöhte Feinstaubwerte, es könnte auch ein Feuer sein' ..sensordatavalues[1].value.. ' Partikel Dichte', '[email protected]')
elseif domoticz.devices('Feinstaubsensor EG').sensorValue >= 36
then domoticz.devices('Feinstaubbelastung EG').updateAlertSensor(domoticz.ALERTLEVEL_YELLOW, 'leicht erhöht, eventuell Lüften')
elseif domoticz.devices('Feinstaubsensor EG').sensorValue <= 35
then domoticz.devices('Feinstaubbelastung EG').updateAlertSensor(domoticz.ALERTLEVEL_GREEN, 'gering keine besonderen Maßnahmen nötig')
end
end
}
//
clemens