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

Please post your model & capabilities #6

Closed fjs21 closed 1 year ago

fjs21 commented 2 years ago

Hi,

I have enabled the use of the BlueAir model defined from info.compatibility to determine the capabilities and initialize the correct accessory type.

e.g. 'classic_280i' has temperature/humidity/air quality sensors while 'classic_605' has no sensors

Currently the following three models are recognized:

'classic_280i' = temp/hum/air quality sensors 'classic_680i' = temp/hum/air quality sensors

'classic_605' = no sensors

When you use v0.8.0 or higher, the model will be reported in the Homebridge log - something like

[@fjs21/homebridge-blueair] Kitchen BlueAir 680i of type "classic_680i" initialized.

If you see the following error:

'%s: device type not recognized, contact developer via GitHub.'

Then please post in this issue, your model and it's capabilities. I will then patch the plugin to add support as appropriate.

blaqkatom commented 1 year ago

Have on-hand the new Blue Pure 211i Max & 311i+ Max

Ran your Postman collection and am seeing type "NB" for both when running GET Registered Devices.

Both devices have auto mode, dynamic fan speed, child lock, LED, and PM 2.5 sensors. The 211i Max has PM 1 and PM 10 as well.

Let me know what other data you need to support.

jonato1 commented 1 year ago

@blaqkatom Sweet! I may need a little bit of help getting the P1 and P10 sensors set up, but let's get the bulk of everything else first. To start, on the Postman collection for the "Get State" call, where the API endpoint ends in "...r/initial", can you provide me the "hw" version for each? The JSON path is deviceInfo.configuration.di.hw. Once I have that, I can push out a new release to have the bulk of this working.

jonato1 commented 1 year ago

@blaqkatom Also, can you confirm that they do not have night mode?

blaqkatom commented 1 year ago

211i hw version: nb_h_1.0 311i+ hw version: nb_m_1.0

Both DO have night mode.

blaqkatom commented 1 year ago

Thx for being so quick to respond. Looking forward to testing this once a version is spun up. Went from using dumb Blue 121s to now being connected like the rest of the household.

jonato1 commented 1 year ago

@blaqkatom Of course! I was definitely working through some overall stability updates this weekend, but v1.2.1 is officially released and includes support for the Blue Pure 211i and 311i+ Max. Can you please test it out and let me know how it's looking?

blaqkatom commented 1 year ago

I’ve got it worked, but it’s very temperamental. Depending on steps after install, I’d end up with devices that would never respond. I’ve been constantly removing cached devices and reinstalling. Attempting to hide night mode or the led would break it. Using child bridge would break it.

All 4 controls work on each purifier: on/off, night mode, led, fan speed.

Let’s see whether things stay working. My goal is to merely toggle them on or off depending on contact sensors for windows, doors.

jonato1 commented 1 year ago

@blaqkatom Thanks for testing it out. It sounds like you're still seeing quite a bit of instability. Can you create a new issue with the following details (if you still have them in the Homebridge log):

If you continue to have issues, can you try turning off all other plugins or child bridges, enable Homebridge Debug logging, and include more detailed logs?

ChristopherUC commented 1 year ago

I’m seeing some odd behaviors after upgrading to 1.2.1. I have 2 Protect 7710i devices.

OS: Ubuntu Focal Fossa (20.04.5 LTS) [docker container] Node.js version: 18.30.0 mDNS Advertiser: Bonjour HAP

Settings are: { "username": “is-set-correctly”, "password": “is-set-correctly”, "enableAWS": true, "hideLED": false, "hideAirQualitySensor": false, "hideCO2Sensor": true, "hideTemperatureSensor": false, "hideHumiditySensor": false, "hideGermShield": true, "hideNightMode": true, "region": "us", "_bridge": { "username": "is-set-correctly-so-is-port", "port": 11111 }, "platform": "BlueAir" },

I’m showing Temp sensor readings that are always : 32 degrees. And Humidity sensor readings that are always: 0% humidity.

I removed one of my cached devices and after restart I get the following errors:

[4/18/2023, 10:56:42 AM] [@js21/homebridge-blueair] This plugin slows down Homebridge. The read handler for the charact eristic 'Active' was slow to respond! See https: //homebridge .io/w/JtMGR for more info. [4/18/2023, 10:56:44 AM] [@fjs21/homebridge-blueair] BlueAir AWS API: error - Time out on BlueAir Aws connection. [4/18/2023, 10:56:44 AM] [@fjs21/homebridge-blueair] Upstair s: getDeviceInfo failed. [4/18/2023, 10:56:44 AM] [@fjs21/homebridge-blueair] Upstair s: getDeviceInfo error. TypeError: Cannot read properties of undefined (reading 'configuration') at BlueAirDustProtectAccessory.updateDevice (/homebridge /node modules/@fjs21/homebridge-blueair/src/platformAccessor y_DustProtect.ts:223:54) at BlueAirDustProtectAccessory.updateAccessoryCharacteri stics/homebridge/node_modules/@fjs21/homebridge-blueair/sr c/platformAccessory DustProtect.ts:352:29) at BlueAirDustProtectAccessory.handleAirPurifierActiveGe t/homebridge/nodemodules/@fjs21/homebridge-blueair/src/pl atformAccessory DustProtect.ts:270:5) [4/18/2023, , 10:56:44 AM] [@fjs21/homebridge-blueair] update ccessoryCharacteristic failed (14e9a02c-adbd-417d-8678-0fcd4 8d0ebe5) [4/18/2023, 10:56:44 AM] [@js21/homebridge-blueair] BlueAir AWS API: error - Time out on BlueAir AwS connection. [4/18/2023, 10:56:44 AM] [@fjs21/homebridge-blueair] Downsta irs Purifier: getDeviceInfo failed. [4/18/2023, 10:56:44 AM] (@fjs21/homebridge-blueair] Downsta irs Purifier: getDeviceInfo error. TypeError: Cannot read pr operties of undefined (reading 'configuration') at BlueAirDustProtectAccessory.updateDevice ( / homebridge /node modules/@fjs21/homebridge-blueair/src/platformAccessor y_DustProtect.ts:223:54) at runNextTicks (node:internal/process/task_queues:60:5) at listOnTimeout (node:internal/timers: 533:9) at processTimers (node:internal/timers: 507:7) at BlueAirDustProtectAccessory.updateAccessoryCharacteri stics /homebridge/node modules/@fjs21/homebridge-blueair/sr c/platformAccessory_DustProtect.ts:352:29) at BlueAirDustProtectAccessory.handleAirPurifierActiveGe tI/homebridge/node_modules/@fjs21/homebridge-blueair/src/pl atformAccessory DustProtect.ts:270:5) [4/18/2023, 10:56:44 AM] [@fjs21/homebridge-blueair] update ccessoryCharacteristic failed (1d6d8418-e548-4ba0-99b1-cf9d0

Forgive the odd added spaces from my copy paste the errors don’t have them in the log.

Thanks!

Christopher

kjohn commented 1 year ago

@jonato1 I see you have added compatibility for the Classic 680i / Classic 690i. Could you please add compatibility for the Classic 480i / Classic 490i? Thank you.

[08/06/2023, 23:01:24] [@fjs21/homebridge-blueair] Restoring existing accessory from cache: Office [08/06/2023, 23:01:25] [@fjs21/homebridge-blueair] Office of type "classic_490i" initialized. [08/06/2023, 23:01:25] [@fjs21/homebridge-blueair] Restoring existing accessory from cache: Guest Bedroom [08/06/2023, 23:01:25] [@fjs21/homebridge-blueair] Office: device type not recognized, contact developer via GitHub. [08/06/2023, 23:01:25] [@fjs21/homebridge-blueair] classic_490i: compatibility type not recognized.

matt-timmons commented 1 year ago

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!

mzruya commented 1 year ago

Hey, I have two 411i Max devices which appear to not be supported yet. They only showed up after I chose "AWS login" option, this was my log output:

[16/06/2023, 23:27:51] [BlueAir] Got homehost: api-us-east-1.blueair.io
[16/06/2023, 23:27:52] [BlueAir] x-auth-token: [redacted]
[16/06/2023, 23:27:52] [BlueAir] Found 0 devices.
[16/06/2023, 23:27:53] [BlueAir] ** AWS login complete **
[16/06/2023, 23:27:53] [BlueAir] Found 2 Blueair AWS-compatible devices.
[16/06/2023, 23:27:54] [BlueAir] Adding new accessory: 52ea1726-c7c1-44db-8973-a6e9bc37680d
[16/06/2023, 23:27:55] [BlueAir] 52ea1726-c7c1-44db-8973-a6e9bc37680d: device type not recognized, contact developer via GitHub.
[16/06/2023, 23:27:55] [BlueAir] This device is not yet supported. Device Type:  nb_l_1.0
[16/06/2023, 23:27:56] [BlueAir] Adding new accessory: 52ea1726-c7c1-44db-8973-a6e9bc37680d
[16/06/2023, 23:27:57] [BlueAir] 52ea1726-c7c1-44db-8973-a6e9bc37680d: device type not recognized, contact developer via GitHub.
[16/06/2023, 23:27:57] [BlueAir] This device is not yet supported. Device Type:  nb_l_1.0
huangzdev commented 1 year ago

Hi there,

I am using Protect 7410i, it seems there is a bug when reading the temperature and also the humidity.

Here is the log:

[6/28/2023, 2:48:53 AM] [BlueAir] Master Bedroom Purifier: getDeviceInfo error. TypeError: Cannot read properties of undefined (reading '0') at BlueAirAwsApi.getAwsDeviceInfo (/volume1/homebridge/node_modules/@fjs21/homebridge-blueair/src/blueair-aws-api.ts:362:92) at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:96:5) at BlueAirDustProtectAccessory.updateDevice (/volume1/homebridge/node_modules/@fjs21/homebridge-blueair/src/platformAccessory_DustProtect.ts:218:20) at BlueAirDustProtectAccessory.updateAccessoryCharacteristics (/volume1/homebridge/node_modules/@fjs21/homebridge-blueair/src/platformAccessory_DustProtect.ts:352:29) at BlueAirDustProtectAccessory.handleTemperatureGet (/volume1/homebridge/node_modules/@fjs21/homebridge-blueair/src/platformAccessory_DustProtect.ts:300:5) [6/28/2023, 2:48:53 AM] [BlueAir] updateAccessoryCharacteristic failed (156abb63-2593-4d25-acfd-78e1d913a0cf)

bdroths commented 1 year ago

Hi, thanks for keeping this alive would you be able to add support for the 411i MAX.

auto mode, dynamic fan speed, child lock, LED, and PM 2.5 sensors, temp, humidity.

jdsebo15 commented 1 year ago

Also have a 411i Max and would love support. Let me know if there is any Information that needs to be provided.

jonato1 commented 1 year ago

Hi there,

I am using Protect 7410i, it seems there is a bug when reading the temperature and also the humidity.

Here is the log:

[6/28/2023, 2:48:53 AM] [BlueAir] Master Bedroom Purifier: getDeviceInfo error. TypeError: Cannot read properties of undefined (reading '0') at BlueAirAwsApi.getAwsDeviceInfo (/volume1/homebridge/node_modules/@fjs21/homebridge-blueair/src/blueair-aws-api.ts:362:92) at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:96:5) at BlueAirDustProtectAccessory.updateDevice (/volume1/homebridge/node_modules/@fjs21/homebridge-blueair/src/platformAccessory_DustProtect.ts:218:20) at BlueAirDustProtectAccessory.updateAccessoryCharacteristics (/volume1/homebridge/node_modules/@fjs21/homebridge-blueair/src/platformAccessory_DustProtect.ts:352:29) at BlueAirDustProtectAccessory.handleTemperatureGet (/volume1/homebridge/node_modules/@fjs21/homebridge-blueair/src/platformAccessory_DustProtect.ts:300:5) [6/28/2023, 2:48:53 AM] [BlueAir] updateAccessoryCharacteristic failed (156abb63-2593-4d25-acfd-78e1d913a0cf)

@huangzdev Can you please open a new issue for this?

jonato1 commented 1 year ago

Hello all - This issue has become quite large and difficult to track. For anyone that identifies bugs, unexpected behavior, or questions, please open a new issue. Additionally, if you need support added for a new model, please open a new issue and include the name of the Bluer Model, the following line(s) with the device type that you see in your logs, along with the capabilities of your model. For example:

Model Name: 411i Max Capabilities: auto mode, dynamic fan speed, child lock, LED, and PM 2.5 sensors, temp, humidity. Log(s): classic_490i: compatibility type not recognized. [BlueAir] This device is not yet supported. Device Type: nb_l_1.0

Thank you to all that have contributed so far! We look forward to seeing new issues flow in, and providing better tracking and support.