mylesagray / homebridge-blueair

BlueAir air purifier plugin for homebridge
Apache License 2.0
39 stars 20 forks source link

plugin doesn't work and entire homebridge became "no response" #35

Closed motaker closed 4 years ago

motaker commented 4 years ago

Hi, I could use this plugin without problem till 2 days ago. I have updated all my devices to iOS 14 and homebridge version 1.1.6 to 1.2.2.

I have this error "airPurifierIndex specified is higher than number of air purifiers available" because of this all of other homebridge accessory became "no response" due to endless message cycle appeared as descried in log file. When I exclude this plugin from config.json, everything works as same as before.

I am running Homebridge v1.2.2 now but when I downgraded to v1.1.6, it doesn't work also, very strange... I am not sure it is related to iOS update but it happened at same time, just for your reference.

I have tried hard reboot of homebridge hub(raspberry pi 3B+), deleted all purifier and re-registered again into blueair app, even only one purifier registered in both blueair app and homebridge config file without statement "airPurifierIndex": "0", same error message "airPurifierIndex specified is higher than number of air purifiers available"

please be so kind to help, how to fix this.

homebridge.log in debug mode [9/18/2020, 11:10:31] [HB Supervisor] Restarting Homebridge... [9/18/2020, 11:10:31] [HB Supervisor] Starting Homebridge with extra flags: -I -D [9/18/2020, 11:10:31] [HB Supervisor] Started Homebridge v1.2.2 with PID: 6048 [9/18/2020, 11:10:32] Loaded config.json with 13 accessories and 4 platforms. [9/18/2020, 11:10:32] ---

[9/18/2020, 11:10:35] Loaded plugin: homebridge-blueair@0.5.1 [9/18/2020, 11:10:38] Registering accessory 'homebridge-blueair.BlueAir'

[9/18/2020, 11:10:46] Loading 13 accessories...

[9/18/2020, 11:10:46] [WIC purifier] Initializing BlueAir accessory... [9/18/2020, 11:10:46] [Entrance purifier] Initializing BlueAir accessory... [9/18/2020, 11:10:46] [Entrance purifier] Fakegato-storage AddWriter : Entrance purifier [9/18/2020, 11:10:46] [Entrance purifier] Loading... [9/18/2020, 11:10:46] [Entrance purifier] Fakegato-storage read FS file: /var/lib/homebridge/hassio_Entrance purifier_persist.json [9/18/2020, 11:10:46] [Entrance purifier] Fakegato-timer Subscription : Entrance purifier [9/18/2020, 11:10:46] [Entrance purifier] Registring Events Entrance purifier [9/18/2020, 11:10:46] [Entrance purifier] Accessory Entrance purifier [9/18/2020, 11:10:46] [Entrance purifier] Fakegato-timer Subscription : undefined

[9/18/2020, 11:10:47] [WIC purifier] Polled API: https://api.foobot.io/v2/user/my@email.address/homehost/ undefined [9/18/2020, 11:10:47] [WIC purifier] Got home region: "api-nc.foobot.io" [9/18/2020, 11:10:47] [WIC purifier] Polled API: https://api.foobot.io/v2/user/my@email.address/homehost/ undefined [9/18/2020, 11:10:47] [WIC purifier] Got home region: "api-nc.foobot.io" [9/18/2020, 11:10:47] [WIC purifier] Polled API: https://api.foobot.io/v2/user/my@email.address/homehost/ undefined [9/18/2020, 11:10:47] [WIC purifier] Got home region: "api-nc.foobot.io" [9/18/2020, 11:10:47] [Entrance purifier] Polled API: https://api.foobot.io/v2/user/my@email.address/homehost/ undefined [9/18/2020, 11:10:47] [Entrance purifier] Got home region: "api-nc.foobot.io" [9/18/2020, 11:10:47] [Entrance purifier] Polled API: https://api.foobot.io/v2/user/my@email.address/homehost/ undefined [9/18/2020, 11:10:47] [Entrance purifier] Got home region: "api-nc.foobot.io" [9/18/2020, 11:10:47] [Entrance purifier] Polled API: https://api.foobot.io/v2/user/my@email.address/homehost/ undefined [9/18/2020, 11:10:47] [Entrance purifier] Got home region: "api-nc.foobot.io"

after homebridge is runing,

[9/18/2020, 11:10:47] Homebridge is running on port 51600. [9/18/2020, 11:10:48] [WIC purifier] Polled API: https://api-nc.foobot.io/v2/user/my@email.address/login/ undefined [9/18/2020, 11:10:48] [WIC purifier] Logged in to API [9/18/2020, 11:10:48] [Entrance purifier] Polled API: https://api-nc.foobot.io/v2/user/my@email.address/login/ undefined [9/18/2020, 11:10:48] [Entrance purifier] Logged in to API [9/18/2020, 11:10:48] [Entrance purifier] Polled API: https://api-nc.foobot.io/v2/user/my@email.address/login/ undefined [9/18/2020, 11:10:48] [Entrance purifier] Logged in to API [9/18/2020, 11:10:48] [WIC purifier] Polled API: https://api-nc.foobot.io/v2/user/my@email.address/login/ undefined [9/18/2020, 11:10:48] [WIC purifier] Logged in to API [9/18/2020, 11:10:48] [Entrance purifier] Polled API: https://api-nc.foobot.io/v2/user/my@email.address/login/ undefined [9/18/2020, 11:10:48] [Entrance purifier] Logged in to API [9/18/2020, 11:10:48] [WIC purifier] Polled API: https://api-nc.foobot.io/v2/user/my@email.address/login/ undefined [9/18/2020, 11:10:48] [WIC purifier] Logged in to API [9/18/2020, 11:10:48] [WIC purifier] Polled API: https://api-nc.foobot.io/v2/owner/my@email.address/device/ undefined [9/18/2020, 11:10:48] [WIC purifier] airPurifierIndex specified is higher than number of air purifiers available [9/18/2020, 11:10:48] [Entrance purifier] Polled API: https://api-nc.foobot.io/v2/owner/my@email.address/device/ undefined [9/18/2020, 11:10:48] [Entrance purifier] airPurifierIndex specified is higher than number of air purifiers available [9/18/2020, 11:10:48] [Entrance purifier] Polled API: https://api-nc.foobot.io/v2/owner/my@email.address/device/ undefined [9/18/2020, 11:10:48] [Entrance purifier] airPurifierIndex specified is higher than number of air purifiers available [9/18/2020, 11:10:48] [Entrance purifier] Polled API: https://api-nc.foobot.io/v2/owner/my@email.address/device/ undefined [9/18/2020, 11:10:48] [Entrance purifier] airPurifierIndex specified is higher than number of air purifiers available [9/18/2020, 11:10:48] [WIC purifier] Polled API: https://api-nc.foobot.io/v2/owner/my@email.address/device/ undefined [9/18/2020, 11:10:48] [WIC purifier] airPurifierIndex specified is higher than number of air purifiers available [9/18/2020, 11:10:48] [WIC purifier] Polled API: https://api-nc.foobot.io/v2/owner/my@email.address/device/ undefined [9/18/2020, 11:10:48] [WIC purifier] airPurifierIndex specified is higher than number of air purifiers available

and this cycle of messages continues.

my config which was working before is shown below { "accessory": "BlueAir", "name": "WIC purifier", "airPurifierIndex": "0", "username": "", "password": "" }, { "accessory": "BlueAir", "name": "Entrance purifier", "airPurifierIndex": "1", "nameAirQuality": "Air Quality", "nameTemperature": "Temp.", "nameHumidity": "Hum.", "nameCO2": "CO2", "username": "", "password": "", "showTemperature": true, "showHumidity": true, "showAirQuality": true, "showCO2": true, "showLED": false, "getHistoricalStats": true },

mylesagray commented 4 years ago

Okay so it appears BlueAir have moved their API host from foobot to blueair.io - I'm profiling the API and making the necessary changes - They have changed the IDs for the purifiers from a sequential number system to actual GUIDs.

This issue is the same as #36.

mylesagray commented 4 years ago

@motaker @linkztream - Update to v0.5.5 and try again

linkztream commented 4 years ago

@mylesagray Working like a charm, thank you so much! 👍