fjs21 / homebridge-blueair

BlueAir air purifier plugin for homebridge
https://www.npmjs.com/package/@fjs21/homebridge-blueair
Apache License 2.0
50 stars 6 forks source link

Connecting to EU endpoint but no devices found. #281

Closed niccottrell closed 1 year ago

niccottrell commented 1 year ago

Hi! I've set up my BlueAir in their app and it works fine - I can control it. I think I've set up everything for the homebridge-blueair but it's saying that no devices are found. How can I debug this further?

[5/2/2023, 3:19:38 PM] Registering platform '@fjs21/homebridge-blueair.BlueAir'
[5/2/2023, 3:19:38 PM] [BlueAir] Initializing BlueAir platform...
[5/2/2023, 3:19:38 PM] [BlueAir] base_API_url: https://api.blueair.io/v2/user/<REMOVED>/homehost/
[5/2/2023, 3:19:40 PM] [BlueAir] Got homehost: api-eu-west-1.blueair.io
[5/2/2023, 3:19:40 PM] [BlueAir] x-auth-token: <REMOVED>
[5/2/2023, 3:19:40 PM] [BlueAir] Found 0 devices.
niccottrell commented 1 year ago

I tried changing the region to "us" but it still seems to be directed to the EU endpoint. I still see

Got homehost: api-eu-west-1.blueair.io in the logs

niccottrell commented 1 year ago

Looks like I had a DustMagnet (AWS compatible) unit, so upgrade to Node v20 and upgrading the plugin has fixed the issue for me. Thanks @jonato1 !