fjs21 / homebridge-blueair

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

Add Support for 311i Max #332

Open jonato1 opened 1 year ago

jonato1 commented 1 year ago

Originally requested by @matt-timmons here:

Hi there, I just picked up a 311i Max (different from 311i+ Max) over the weekend, and it's not showing up in homebridge / "Found 0 devices" in homebridge log.

All features appear to be the same as the 311i+, including auto mode, dynamic fan speed, child lock, LED, and PM 2.5 sensors. No other PM sizes. I think the only difference is that the 311i+ has a more powerful fan.

I'm not an expert at homebridge but happy to provide any other info I can.

Thanks!

jonato1 commented 1 year ago

@matt-timmons - There should be a line in the logs that looks something like this:

[BlueAir] This device is not yet supported. Device Type: nb_l_1.0

Can you investigate and share? That Device type is what I'll need to add support on my end.

kylemcdaniel1010 commented 1 year ago

@jonato1 - I'm having the same issue with a 311i Max.

Looked in my logs after restarting the bridge and below is all I got -- nothing stating a device type. Are there other logs elsewhere I can/should be checking?

(I added Xs to obscure my email address in the API URL....)

7/14/2023, 1:30:48 PMBlueair Bridge starting
7/14/2023, 1:31:14 PMBlueair BridgeLoaded plugin '@fjs21/homebridge-blueair'
7/14/2023, 1:31:14 PMBlueair BridgeLoading 1 platforms...
7/14/2023, 1:31:14 PMBlueair BridgeBlueAirbase_API_url: https://api.blueair.io/v2/user/xxxxxxxxxxxxx/homehost/
7/14/2023, 1:31:14 PMBlueair BridgeBridge is running on port 51856.
7/14/2023, 1:31:15 PMBlueair BridgeBlueAirGot homehost: api-us-east-1.blueair.io
7/14/2023, 1:31:15 PMBlueair BridgeBlueAirx-auth-token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Imt5bGVyb2JlcnRtY2RhbmllbEBnbWFpbC5jb20iLCJqdGkiOiJlMDhiN2Y0MS01OWY3LTQzOGYtYmJiMy1iZDBjMTg4Yjg0ZmQiLCJleHAiOjE3MjA5MDI2NzU4ODEsImV4cGlyYXRpb25EYXRlIjoxNzIwOTAyNjc1ODgxfQ.E0P5TGSIpFkWKEaUcVnqQbhHVumFPDbNZ0RhUdJtG8k
7/14/2023, 1:31:16 PMBlueair BridgeBlueAirFound 0 devices.
uberfunk commented 1 year ago

I have the exact same issue with my Blueair 211i Max :(

denleschae commented 1 year ago

I picked up a 311i Max yesterday and installed this plugin today. I'm happy to say all is working well for me.

jonescamilla commented 12 months ago

My logs. If there is any additional information needed, I'd be happy to provide it

[10/10/2023, 2:58:04 PM] [@fjs21/homebridge-blueair] Launched child bridge with PID <removed>
[10/10/2023, 2:58:09 PM] [@fjs21/homebridge-blueair] Loaded @fjs21/homebridge-blueair v1.3.1 child bridge successfully
[10/10/2023, 2:58:09 PM] [@fjs21/homebridge-blueair] base_API_url: <removed>
[10/10/2023, 2:58:10 PM] [@fjs21/homebridge-blueair] Got homehost: api-us-east-1.blueair.io
[10/10/2023, 2:58:11 PM] [@fjs21/homebridge-blueair] x-auth-token: <removed>
[10/10/2023, 2:58:11 PM] [@fjs21/homebridge-blueair] Found 0 devices.
jonescamilla commented 12 months ago

I picked up a 311i Max yesterday and installed this plugin today. I'm happy to say all is working well for me.

Would you mind pasting your logs on here? Maybe we can see any differences between all of ours?

denleschae commented 10 months ago

It's been a while since I restarted my homebridge, but here is what I am seeing when the plugin starts up:

[16/11/2023, 16:32:45] [Bedroom Air Purifier] x-auth-token: <removed>
[16/11/2023, 16:32:46] [Bedroom Air Purifier] Found 0 devices.
[16/11/2023, 16:32:46] [Bedroom Air Purifier] ** AWS login complete **
[16/11/2023, 16:32:47] [Bedroom Air Purifier] Found 3 Blueair AWS-compatible devices.
[16/11/2023, 16:32:47] [Bedroom Air Purifier] Restoring existing accessory from cache: Bedroom Purifier
[16/11/2023, 16:32:48] [Bedroom Air Purifier] Creating new object: BlueAirDustProtectAccessory
[16/11/2023, 16:32:48] [Bedroom Air Purifier] Restoring existing accessory from cache: Studio Purifier
[16/11/2023, 16:32:49] [Bedroom Air Purifier] Creating new object: BlueAirDustProtectAccessory
[16/11/2023, 16:32:49] [Bedroom Air Purifier] Restoring existing accessory from cache: Living Room Purifier
[16/11/2023, 16:32:49] [Bedroom Air Purifier] Removing stale Service: uuid:[<removed>]
[16/11/2023, 16:32:49] [Bedroom Air Purifier] Removing stale Service: uuid:[<removed>]
[16/11/2023, 16:32:50] [Bedroom Air Purifier] Removing stale Service: uuid:[<removed>]
[16/11/2023, 16:32:50] [Bedroom Air Purifier] Removing stale Service: uuid:[<removed>]
[16/11/2023, 16:32:50] [Bedroom Air Purifier] Creating new object: BlueAirDustProtectAccessory
[16/11/2023, 16:32:51] [Bedroom Air Purifier] Removing stale Service: uuid:[<removed>]
[16/11/2023, 16:32:51] [Bedroom Air Purifier] Removing stale Service: uuid:[<removed>]

edit: The devices I have are a 311i Max and 2 211i Max's.