com.xiaomi-miio
com.xiaomi-miio copied to clipboard
Xiaomi ClearGrass Air Monitor
Hi,
As shortly discussed on Slack a while ago, I want to see if we could get the Xiaomi ClearGrass Air Monitor working on Homey. Especially when someone already implemented the device in Home Assistent. I received the device a few days ago and what a machine it is.
As it turns out, 99% of the code was copied from the Xiaomi Air Quality Monitor: https://community.home-assistant.io/t/xiaomi-cleargrass-air-detector/112315
Device name: ClearGrass Air Monitor Model: CGS1 Manufacturer": Qingping Technology Co. Ltd.
The device is generating the following values:
- PM2.5
- CO2
- TVOC
- Temperature
- Humidity
I want to contribute as much as I can, like packet capturing. According to the Home Assistant implementator he found out the next parameters in the following order: ‘battery’, ‘battery_state’, ‘co2’, ‘humidity’, ‘pm25’ , ‘temperature’, ‘tvoc’.
Please let me know what you need and will make sure you get the information.
I can not add it to my app if it is not added to the nodejs miio library. Since that is no longer maintained I do expect this device will be supported.
@jghaanstra Thanks for replying! I know the problem with the miio library, I probably misread you reply on Slack.
What about this Python based library? https://github.com/rytilahti/python-miio This library seems to be covering more devices and is maintained. Or are you stuck with Node?
Since Homey is nodejs we are stuck with that. I lack the coding skills to develop the miio library myself so you are out of luck I guess.
For the ones who is interested in this device on Homey. Through Home Assistant I managed to get the device fully working in Homey. So, if you have an HA instance you can try that. I made a fork of the io.homeassistant app for Homey.
Maybe my PR #122 would work for that model as well... But this looks unmaintained, no answer from repo owner since more than a week.
Closing old issues. This app needs financial support for further development and upgrade to SDK3. For more info see: https://community.homey.app/t/app-pro-xiaomi-mi-home-app-for-wifi-devices/118/943