Smoke detectors as air quality sensors!
Posted: Saturday 28 December 2024 19:39
Hi - I have a couple of Xioami smoke detectors working for a long time. I recently got some Ikea air quality sensors as well.
It occurred to me today after some sort of issue and poking around the smoke detector sensor logs, that the smoke detectors are actually reporting particle counts to Domoticz! I could use these as air quality sensors!
My one issue - The data is clearly going into Domoticz, but the default smoke sensor created by the Xioami plugin is just a switch. I'm not sure if this extra data is just dumped. If that is the case, I was wondering if it was possible to create a virtual sensor to log this and someone get this data to that sensor (I've done the latter before with data from various sources, but not sure HOW I can get this data).
Here is the log line from the Domoticz log
2024-12-28 18:08:17.894 Status: XiaomiGateway: {"cmd":"report","model":"smoke","sid":"158d0001db8bcd","short_id":57386,"data":"{\"density\":\"12\"}"}
Is there any way to get hold of that 'density' value? (that's the particle count) If so, I can just create said virtual sensor and push that value there on each update, then I will have some extra air quality sensors
Thanks!
It occurred to me today after some sort of issue and poking around the smoke detector sensor logs, that the smoke detectors are actually reporting particle counts to Domoticz! I could use these as air quality sensors!
My one issue - The data is clearly going into Domoticz, but the default smoke sensor created by the Xioami plugin is just a switch. I'm not sure if this extra data is just dumped. If that is the case, I was wondering if it was possible to create a virtual sensor to log this and someone get this data to that sensor (I've done the latter before with data from various sources, but not sure HOW I can get this data).
Here is the log line from the Domoticz log
2024-12-28 18:08:17.894 Status: XiaomiGateway: {"cmd":"report","model":"smoke","sid":"158d0001db8bcd","short_id":57386,"data":"{\"density\":\"12\"}"}
Is there any way to get hold of that 'density' value? (that's the particle count) If so, I can just create said virtual sensor and push that value there on each update, then I will have some extra air quality sensors
Thanks!