Giter Site home page Giter Site logo

homebridge-awair-local's People

Contributors

deanlyoung avatar dependabot[bot] avatar derekpcollins avatar gh-action-bump-version avatar ndpdev avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

homebridge-awair-local's Issues

Latest Version Broken: ReferenceError: w is not defined

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
    },

PM10 / Device Model / Serial

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

enhancement: Make homebridge report awair as non responsive when appropriate

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.

SyntaxError after update to 1.2.7

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 } ],

Deprecation warnings

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

Characteristic warning flooding homebridge logs

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

Enhancement request

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:

  1. 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.

  2. 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.)

  3. 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.

  4. For CO2 it would be great to show the actual PPM reading on the widget itself

thanks!

Option to Hide Attributes

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!

VOCs can't be displayed in Home app or reported by Siri

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.

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.