Giter Club home page Giter Club logo

Comments (10)

fjs21 avatar fjs21 commented on August 17, 2024

Can you enable debugging in the homebridge UI and see what is being reported when the device list is queried from BlueAir? It will be immediately after the "x-auth-token" log.

from homebridge-blueair.

Teone55 avatar Teone55 commented on August 17, 2024

[10/12/2021, 10:57:19] [BlueAir] x-auth-token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Im1hdHRlby5jYWNjaWFAZ21haWwuY29tIiwianRpIjoiMjhhZTk3YmQtMmFiNy00MDNhLTk1ZWItZTY1ODFlYmM5NjJmIiwiZXhwIjoxNjcwNjY2MjM5MTQxLCJleHBpcmF0aW9uRGF0ZSI6MTY3MDY2NjIzOTE0MX0.5orQyixr0g9dGZqo6_iIyUrqQ2xMiqL-T3wCt6tPCco
[10/12/2021, 10:57:19] [BlueAir] {
message: "Can't find address for service HandshakeLab",
propagatedException: null,
requestedUri: '/v2/owner/myemail@myemail/device/',
stack: '[obfuscated]',
state: 503
}
[10/12/2021, 10:57:19] [BlueAir] Found undefined devices.
[10/12/2021, 10:57:19] TypeError: this.blueair.devices is not iterable
at BlueAirHomebridgePlatform.discoverDevices (/usr/local/lib/node_modules/@fjs21/homebridge-blueair/dist/platform.js:73:43)
at processTicksAndRejections (node:internal/process/task_queues:96:5)

[10/12/2021, 10:57:19] Got SIGTERM, shutting down Homebridge...

from homebridge-blueair.

fjs21 avatar fjs21 commented on August 17, 2024

Ok. This looks like the server returned an error message from the API request to list all the devices in your system.

To be honest, I'm not sure what is causing this. What type of BlueAir device do you have in your account? This plugin has only been tested with the Classic series (280i and 680i). I know there are issues with HealthProtect models, see #1.

Please doublecheck the settings to make sure your username and password are accurate.

I will issue a patch to make sure this error is being handled better by the plugin and instead just causes the plugin to fail and not cause the continuous reboot of Homebridge.

from homebridge-blueair.

Teone55 avatar Teone55 commented on August 17, 2024

from homebridge-blueair.

motaker avatar motaker commented on August 17, 2024

Hi, I have 480i and 205. It seems have same error caused by 205.

from homebridge-blueair.

Teone55 avatar Teone55 commented on August 17, 2024

from homebridge-blueair.

fjs21 avatar fjs21 commented on August 17, 2024

Which BlueAir server are you going to? It should be on a previous line in the log.

Mine is: api-us-east-1.blueair.io

I was reading that 503 can mean "service unavailable". I just want to see if this is server or account specific issue.

from homebridge-blueair.

Teone55 avatar Teone55 commented on August 17, 2024

Got homehost: api-eu-west-1.blueair.io

from homebridge-blueair.

lensherm avatar lensherm commented on August 17, 2024

@fjs21 , I posted this in another issue, but I have a feeling they might be related. Take a look at this, when you get a chance:

#2 (comment)_

from homebridge-blueair.

fjs21 avatar fjs21 commented on August 17, 2024

@fjs21 , I posted this in another issue, but I have a feeling they might be related. Take a look at this, when you get a chance:

#2 (comment)_

The "iterable" error just means the format of the response from the server is not in the format expected by the code. For #2, this is due to the absence of the datapoint functionality hence a blank data response which triggers the error. In this case, the error is generated because the response isn't JSON formatted at all - and instead just an error message from the server.

This one is very tricky to fix because it suggests that API is different. We'd need the postman response when using the app to find out what's actually being sent to/received from the BlueAir server.

from homebridge-blueair.

Related Issues (20)

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.