homebridge / verified

Plugins Verified by Homebridge
https://homebridge.io/w/Verified-Plugins
GNU General Public License v3.0
366 stars 17 forks source link

@fjs21/homebridge-blueair #345

Closed fjs21 closed 2 years ago

fjs21 commented 2 years ago

Link To GitHub Repo

https://github.com/fjs21/homebridge-blueair

Link To NPM Package

https://www.npmjs.com/package/@fjs21/homebridge-blueair

github-actions[bot] commented 2 years ago

:white_check_mark: Pre-checks completed successfully.

donavanbecker commented 2 years ago

TypeError: this.blueair.devices is not iterable
    at BlueAirHomebridgePlatform.discoverDevices (/usr/local/lib/node_modules/@fjs21/homebridge-blueair/src/platform.ts:86:39)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Please update node engine to 14.18.1 or 16.13.0 and homebridge engine to 1.3.0 or higher

fjs21 commented 2 years ago

Done. I've updated the engine requirements in version 0.6.5 of the plugin.

donavanbecker commented 2 years ago

still getting the following error which is causing homebridge to go into a loop restart:

[BlueAir] {
  message: '401 - Unauthorized',
  propagatedException: null,
  requestedUri: '/v2/owner/undefined/device/',
  stack: '401 - Unauthorized',
  state: 401
}
[BlueAir] Found undefined devices.
TypeError: this.blueair.devices is not iterable
    at BlueAirHomebridgePlatform.discoverDevices (/usr/local/lib/node_modules/@fjs21/homebridge-blueair/src/platform.ts:86:39)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
fjs21 commented 2 years ago

Should be fixed in v0.6.6.

donavanbecker commented 2 years ago
TypeError: this.blueair.devices is not iterable
    at BlueAirHomebridgePlatform.discoverDevices (/usr/local/lib/node_modules/@fjs21/homebridge-blueair/src/platform.ts:91:39)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
fjs21 commented 2 years ago

Sorry. My bad. It should be fixed in 0.6.7.

donavanbecker commented 2 years ago

/check

github-actions[bot] commented 2 years ago

:white_check_mark: Pre-checks completed successfully.

donavanbecker commented 2 years ago

Still getting this after upgrading to 0.6.7:


[11/11/2021, 5:32:57 PM] [BlueAir] x-auth-token: null
[11/11/2021, 5:32:58 PM] [BlueAir] Found undefined devices.
[11/11/2021, 5:32:58 PM] TypeError: this.blueair.devices is not iterable
    at BlueAirHomebridgePlatform.discoverDevices (/usr/local/lib/node_modules/@fjs21/homebridge-blueair/src/platform.ts:91:39)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)```
fjs21 commented 2 years ago

May I ask what’s in the config json? I know I should catch incorrect entries but this might help me debug.

donavanbecker commented 2 years ago
        {
            "username": "a",
            "password": "a",
            "options": [
                "Disable.a"
            ],
            "platform": "BlueAir"
        },
fjs21 commented 2 years ago

Thanks! Please see v.6.10. That should solve the issue.

/check

donavanbecker commented 2 years ago

/check

github-actions[bot] commented 2 years ago

:white_check_mark: Pre-checks completed successfully.

github-actions[bot] commented 2 years ago

Everything Looks Good!

github-actions[bot] commented 2 years ago

Congratulations! Your plugin has been verified.

You can now add the Verified by Homebridge badge to your plugin's README:

verified-by-homebridge

[![verified-by-homebridge](https://badgen.net/badge/homebridge/verified/purple)](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)

Your plugin is now also eligible to display a :heart: Donate button on it's tile in the Homebridge UI. See https://github.com/oznu/homebridge-config-ui-x/wiki/Developers:-Donation-Links for instructions.

Thank you for your contribution to the Homebridge Community. https://homebridge.io