homekitfans / homebridge-mi-pm2_5 Goto Github PK
View Code? Open in Web Editor NEWXiaoMi PM2.5 sensor plugin for HomeBridge.
XiaoMi PM2.5 sensor plugin for HomeBridge.
First of all, Thanks for your homebridge.
I am really happy using XIAOMI iot devices on HomeKit as of you.
Additionally, I would like to suggest the option for homebridge-mi-pm2_5.
Current value for dust sensor is absolute values (unit is ㎍/㎥) such as '0 - 50: exellent, -100 good, -200 fair, -300 inferior' on your code.
However, these range are based on AQI (Air Quality Index) I think.
(refer to this site => http://aqicn.org/scale/)
So, current your design range is based on AQI, but the values are absolute figures from dust senor.
these figures should be converted to AQI's.
(this is convert site to change value - https://aqicn.org/calculator/ )
=> Based on converted dust sensor value to AQI,
Please check it.
Your updated 'homebridge-mi-pm2_5' would be appreciated.
After 'miio' updated, it's not work with follwoing message.
TypeError: miio.Device is not a constructor
I solved this error But I have another error
TypeError: that.device.call is not a function
Please solve it
Hi, please support this new device:
https://en.miui.com/thread-5297887-1-1.html
I'v discovered with miio and this is the info:
Device ID: 257501366
Model info: Unknown
Address: 192.168.1.54
Token: ???
Support: Unknown
Any chance to get support? it's an amazing air quality detector
After 'miio' updated, it's not work with follwoing message.
TypeError: miio.Device is not a constructor
~~
Please check and update it.
Hey guys,
i'm quite new with homebridge. Maybe i'm doing something wrong. I installed the package with the command, edited config.json with the token and ip from my pm2.5 sensor. homebridge runs without any issue. "loaded config.json with 0 accessories and 1 platforms"
{
"bridge": {
"name": "MiBridge",
"username": "18:xx:xx:60:BC:1B",
"port": 5xxx5,
"pin": "031-45-174"
},
"platforms": [{
"platform": "eDomoticz",
"name": "eDomoticz",
"server": "127.0.0.1",
"port": "xxxx",
"ssl": 0,
"roomid": 0,
"mqtt": 1,
"excludedDevices": []
,
"accessories": [{
"accessory": "MiPM2_5",
"name": "AirQuality Sensor",
"showTimeSwitchDisable": true,
"showTimeSwitchName": "AirQuality Sensor show time",
"ip": "192.168.xxx.xxx",
"token": "ebbxxxxxxxxxx0bb76ce137d9"
}]
}]
}
THats my config.json. i changed some values with "x" just as a privacy thing. I see that everyone does that. As i said i'm new :)
Any ideas how i can fix it? Maybe name should be the device id?
Hello,
After working 1 month to build my Homebridge, I am very happy with the result and would like to thank all the contributors of this project, it's just fabulous! I still have a shadow on the board, the automatic update of Xiaomi sensor information that does not work. I have an "Air Purifier Pro" that I integrated using the plugin "Homebridge Mi Airpurifier"
and a "PM2.5" integrated with "Homebridge Mi Pm2_5", both distributed by @deserteageal.
I saw that the "polling" had worked, I added the lines of code to the .json Air Purifier Pro device, but nothing better. For PM2.5, no more updates ...
I am forced to relaunch the app to get the update, which prevents any automatic use ... If anyone had a solution or idea to solve this problem? Thanks in advance
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.