The first one is an air particulate sensor (Dylos DC1100), which measures the PM10 and PM2.5 particles. I send the data to the domotics/in MQTT channel, and it is received and retransmitted on the /out channel.
I modelled it after temp+humidity sensors, like thus:
/in:
Code: Select all
{"idx":24,"nvalue":0,"svalue":"261;11"}
Code: Select all
{
"Battery" : 255,
"RSSI" : 12,
"dtype" : "Air Quality",
"id" : "82024",
"idx" : 24,
"name" : "Dylos",
"nvalue" : 0,
"stype" : "Voltcraft CO-20",
"svalue1" : "196",
"svalue2" : "0",
"unit" : 1
}
Also, the graph does not appear with the two svalues.
Q: How does one create a device for a new type of signal and how does one create a double graph for these values?
Preferably something like this quickly photoshopped adaption: I tried searching in the domoticz 'config' directory, but that seems mostly Z-Wave devices. The only other reference to the 'Voltcraft' device above is in the domoticz binary. Are all sensors hard coded???
I am happy to create a wiki page for this if I know how to do it.
Still learning...
Axel