[UPDATE] v0.6.1 of Xiaomi MiJia Honeywell Smoke Detector device driver for Hubitat
So while working on the new Xiaomi Gas Detector driver, I noticed a typo I made in the Xiaomi Smoke Detector driver code which will prevent the sensitivity level change feature from working. That has been fixed.
Also, I have learned that there is a way to ask the device what its currently set sensitivity level is. This can be accomplished in this driver with a new
Check Sensitivity Level command, found in the Hubitat hub's web UI device details page for a paired smoke detector. Press that command button in the web UI and the smoke detector should return a message with data representing the currently set sensitivity level. For now, this data will only show up as a debug log message (your driver will need debug messages enabled).
If anyone with a Xiaomi Smoke Detector could please report back with debug log output that occurs immediately after using the
Check Sensitivity Level command (if it is actually working), then I can use that data to add code to parse the response message and produce a plain English info log message (and perhaps a state variable that can be viewed on the device details page.)
The updated Xiaomi Smoke Detector driver code can be grabbed from here.
Detailed List of Changes
- Fixed a typo that prevented sensitivity level change command from working
Check Sensitivity Levelcommand (untested) which should result in a message from the sensor (received as a debug log message) with data representing its currently set sensitivity level.
- Improvements to description / explanation text in the header section of the code