GithubHelp home page GithubHelp logo

homebridge-mi-pm2_5's People

Contributors

yinhangcode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

homebridge-mi-pm2_5's Issues

Regarding air quality range (to convert dust sensor value to AQI)

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,

  • 0 ~11 µg/m3 : exellent
  • 12~35 µg/m3 : good
  • 36~55 µg/m3 : fair
  • 56~149 µg/m3 : inferior

Please check it.

Your updated 'homebridge-mi-pm2_5' would be appreciated.

typeError after update miio

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

it's not showing up in homebridge

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?

Xiaomi sensors update (Air Purifier Pro / PM2.5)

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.