deanlyoung / homebridge-awair-local Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Heya! Apologies if I'm missing anything obvious but how are this project and https://github.com/deanlyoung/homebridge-awair different? The Readmes seem almost identical and I'm having a hard time figuring out what local
means here.
Thanks!
Hi,
The latest local version appears to be broken. I am getting the error below and no data into HomeKit. I've verified the local endpoint is still accessible.
[3/18/2020, 10:52:19 AM] [Cafe Awair] [awair-element_994] url: http://192.168.123.68/air-data/latest
[3/18/2020, 10:52:19 AM] [Cafe Awair] [awair-element_994] ReferenceError: w is not defined
Here is my config:
{
"accessory": "AwairLocal",
"name": "Cafe Awair",
"ip": "192.168.123.68",
"model": "Awair Element",
"devType": "awair-r2",
"devId": "994",
"serial": "awair-element_994",
"carbonDioxideThreshold": 1900,
"carbonDioxideThresholdOff": 1000,
"air_quality_method": "awair-score",
"polling_interval": 10,
"logging": true
},
Hello!
Why is there a PM10 value visible on the Air Quality Sensor? Awair does not report this vaue? And it's always 0 :)
My device serial / model / version number is also not picked up from http://x.x.x.x/settings/config/data but i can see the values when browse to the awair webpage
I'am Using the Awair 2nd Edition with frimware 1.0.9
Hi,
The config.json should have "AwairLocal" as the "Accessory" instead of "Awair", otherwise HomeBridge will complain that the accessory isn't registered by any plugins.
Thanks!
I just sent my Awair in for servicing (hooray moving parts), and up until I restarted homebridge, the last-reported air data was still being reported as current. After restarting homebridge, the humidity was being reported as 0%, the temp as 32F (probably internally 0 degrees C), CO2 reported as 0 ppm, Air quality as unknown (this seems more or less correct), and the PM10, PM2.5, and VOC as all zero.
If it's easy to get homebridge to report "No response" after some amount of time without a measurement, or after restarting homebridge before a measurement from the Awair has arrived, that would probably be better.
Hi there,
I just updated from 1.2.1 to 1.2.7 and now get this error on bootup of my hoobs (v.3.2.6 on node 12.16.3) instance:
7/27/2020, 12:06:40 AM Error loading plugin "homebridge-awair-local".7/27/2020, 12:06:40 AM /home/hoobs/.hoobs/node_modules/homebridge-awair-local/index.js:302 .setCharacteristic(Characteristic.PM10Density, "--");
SyntaxError: Unexpected token '.' at wrapSafe (internal/modules/cjs/loader.js:1047:16) at Module._compile (internal/modules/cjs/loader.js:1097:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10) at Module.load (internal/modules/cjs/loader.js:977:32) at Function.Module._load (internal/modules/cjs/loader.js:877:14) at Module.require (internal/modules/cjs/loader.js:1019:19) at require (internal/modules/cjs/helpers.js:77:18) at Plugin.load (/usr/local/lib/node_modules/@hoobs/hoobs/bridge/plugin.js:44:35) at /usr/local/lib/node_modules/@hoobs/hoobs/bridge/server.js:152:24 at Array.forEach (<anonymous>)
My configuration for Awair looks like this:
"accessories": [ { "accessory": "AwairLocal", "name": "Awair 2nd Edition", "ip": "192.168.178.24", "manufacturer": "Awair", "devType": "awair", "devId": "awair-r2_15862", "serial": "70886B13049C", "model": "Awair-r2", "carbonDioxideThreshold": 1200, "carbonDioxideThresholdOff": 1200, "voc_mixture_mw": 72.6657827301974, "air_quality_method": "awair-score", "polling_interval": 10, "limit": 12, "logging": false, "plugin_map": { "plugin_name": "homebridge-awair-local", "index": 0 }, "logging_level": 0 } ],
sudo npm install -g homebridge-awair-local
npm WARN deprecated [email protected]: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported
+ [email protected]
added 54 packages from 64 contributors in 70.839s
Thanks for this great plugin!
Just recently started getting a bunch of these alerts:
[4/2/2021, 2:35:13 PM] [homebridge-awair-local] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "NaN" (number). See https://git.io/JtMGR for more info.
Looks like it refers to this: https://github.com/homebridge/homebridge/wiki/Characteristic-Warnings#this-plugin-generated-a-warning-from-the-characteristic
First of all, thanks for publishing this plugin, it seems to work well and exposes the data from my new Awair Element to Homekit. Much appreciated!
A few enhancement requests:
Is it possible to expose the CO2 and air quality metrics directly in the Homekit widgets? As currently implemented, you need to click into the widget, then click into the Settings to see the actual readings.
It would be great to separate out the air quality data into separate widgets: one for VOC and one for 2.5 ug particulates. (I didn't realize until i enabled the web api that the device reports a 10 ug estimate, not sure how this is done or how valuable it is.)
For particulates it would be great to show the actual 2.5 ug/m3 readings rather than the generalized "good" etc values on the widget itself.
For CO2 it would be great to show the actual PPM reading on the widget itself
thanks!
Would it be possible to add a configuration option to hide specific attributes from a specific device?
For example, if I didn’t want CO2 to show up on one device or Humidity on another...
Thanks for the great plugin!
The label for VOCs that is shown in the Home app is "Volatile Organic Compound Density". This label is too long, as it only allows for the display of the first two digits of the VOC density value (e.g. "20...") . This is problematic because there's no indication of how many digits are hidden by the ellipses. Further, on small-screen devices like the original iphone SE and 5s, the ellipses start in the middle of the word "density" and so no information is shown. Also, it is generally not possible to get Siri to report the value. Asking "what is the volatile organic chemical density in the living room" will work on occasion, so I know that's the right syntax, but it fails 9 times out of ten, preferring to give me the results of a web search.
Shortening "Volatile Organic Compound Density" to "VOC density" or just "VOC" or "VOC Level" or "V.O.C." so that the label can be displayed along with the value, and so that Siri can recognize a request for and report the value. I just noticed that in the Eve app, this field is labeled VOC Density, so I'm aware it's entirely possible that this is just Apple not testing their code with real data at all, and that VOC Density is a standardized Homekit quantity just like Temperature or Humidity, and you have no ability to change how the Home app displays it or how Siri misidentifies it.
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.