Giter Club home page Giter Club logo

homebridge-blueair's People

Contributors

dependabot[bot] avatar dsully avatar fjs21 avatar jonato1 avatar mlkh0225 avatar mylesagray avatar rmcardle avatar yuao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

homebridge-blueair's Issues

Crash while using 480i

Hi, I got this crash log after 480i initialized. But when I downgrade till 1.1.2 it works fine.
Device: BlueAir Classic 480i
Plugin Version: 1.3.1

[20/07/2023, 17:08:42] [@fjs21/homebridge-blueair] Found 1 devices.
[20/07/2023, 17:08:42] [@fjs21/homebridge-blueair] Restoring existing accessory from cache: Blueair 480i
[20/07/2023, 17:08:43] [@fjs21/homebridge-blueair] Blueair 480i of type "classic_480i" initialized.
[20/07/2023, 17:08:43] [@fjs21/homebridge-blueair] Removing stale Service: uuid:[00000043-0000-1000-8000-0026BB765291]
TypeError: Cannot read properties of undefined (reading 'updateCharacteristic')
    at BlueAirPlatformAccessory.updateLED (/var/lib/homebridge/node_modules/@fjs21/homebridge-blueair/src/platformAccessory.ts:542:24)
    at BlueAirPlatformAccessory.updateAccessoryCharacteristics (/var/lib/homebridge/node_modules/@fjs21/homebridge-blueair/src/platformAccessory.ts:360:10)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
[20/07/2023, 17:08:51] [@fjs21/homebridge-blueair] Child bridge process ended
[20/07/2023, 17:08:51] [@fjs21/homebridge-blueair] Process Ended. Code: 1, Signal: null

Asking Siri to turn on all lights in a room sets BlueAir LED brightness to zero

I'm not sure what's up with this, but it shows up consistently in our logs. I can turn the LED on our Blue Pure 211i Max on and off directly with the home app. That works fine most of the time, and the logs show brightness being set appropriately 100 and 0 when I do so (though sometimes that's followed by a spurious "set brightness to 0" in a pattern I have yet to discern.)

Requests to Siri, on the other hand, as when I ask "turn on bedroom lights" and Siri tries to turn on all the lights including the LED, always seem to set the BlueAir brightness to zero.

This plugin generated a warning from the characteristic 'PM10 Density'

Hi @fjs21,

Thank you so much for updating this plugin and fixing some of the issues.

I just installed it yesterday, and the logs keep reporting the following warning (every 5 seconds):

This plugin generated a warning from the characteristic 'PM10 Density': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info.

I was unable to find a way to disable that characteristic in the plugin's settings, so I am reaching out to let you know about this. I hope it's something you might be able to look into.

Thanks!

Automate API Region Selection

Hi,
Great work on this plugin! Just wanted to flag the following (resolved) issue for anyone else having trouble...

Device: Protect 7470i (requires AWS API) located in Quebec, Canada

After enabling the AWS API, I'd get this error (similar to this issue: #24)

TypeError: Cannot read properties of undefined (reading 'sessionToken')
    at BlueAirAwsApi.awsLogin (/var/lib/homebridge/node_modules/@fjs21/homebridge-blueair/src/blueair-aws-api.ts:150:42)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at BlueAirHomebridgePlatform.discoverAwsDevices (/var/lib/homebridge/node_modules/@fjs21/homebridge-blueair/src/platform.ts:165:33)

Issue was resolved by changing region from US to EU.

It's not clear what it is about my account which requires me to use the EU region. I don't have my address/country set in my profile. I do have my temperature set to Celsius, so maybe it assumes EU based on that? Account was created recently from within Quebec.

Anyway, got it working. I also hit this UUID issue: #291, but it worked after I hid Germ Shield in the plugin settings (it wasn't clear what "disable.UUID" does, so I didn't want to add that.

Feel free to close this issue if there's nothing to be done with it, just wanted to document the solution for others.

Homebridge keeps restarting with duplicate UUID issue

My Homebridge keeps restarting with the error below.

[5/10/2023, 2:30:43 AM] [BlueAir] Found 2 Blueair AWS-compatible devices.
[5/10/2023, 2:30:43 AM] [BlueAir] Restoring existing accessory from cache: Office Purifier
[5/10/2023, 2:30:44 AM] [BlueAir] Creating new object: BlueAirDustProtectAccessory
[5/10/2023, 2:30:44 AM] Error: Cannot add a Service with the same UUID 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' as another Service in this Accessory without also defining a unique 'subtype' property.
    at Accessory.addService (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:552:17)
    at PlatformAccessory.addService (/homebridge/node_modules/homebridge/src/platformAccessory.ts:98:41)
    at new BlueAirDustProtectAccessory (/homebridge/node_modules/@fjs21/homebridge-blueair/src/platformAccessory_DustProtect.ts:63:24)
    at BlueAirHomebridgePlatform.findAwsModelAndInitialize (/homebridge/node_modules/@fjs21/homebridge-blueair/src/platform.ts:340:9)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at BlueAirHomebridgePlatform.discoverAwsDevices (/homebridge/node_modules/@fjs21/homebridge-blueair/src/platform.ts:203:9)
[5/10/2023, 2:30:44 AM] Got SIGTERM, shutting down Homebridge...
[5/10/2023, 2:30:49 AM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[5/10/2023, 2:30:54 AM] [HB Supervisor] Restarting Homebridge...
[5/10/2023, 2:30:54 AM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules --strict-plugin-resolution
[5/10/2023, 2:30:54 AM] [HB Supervisor] Started Homebridge v1.6.1 with PID: xxxx

Who has any idea what is going on?

Hide CO2 Sensor Crashes on 680i

My 680i appears to throw a lot of CO2 sensor alarms, and I hoped to disable.
I tried using both the Homebridge UX, as well as setting the property manually in the config.json. However, in both cases, it crashes.
Log capture:
[2/12/2024, 12:33:31 PM] [@fjs21/homebridge-blueair] Living Room of type "classic_680i" initialized. [2/12/2024, 12:33:31 PM] [@fjs21/homebridge-blueair] Removing stale Service: uuid:[00000097-0000-1000-8000-0026BB765291] TypeError: Cannot read properties of undefined (reading 'updateCharacteristic') at BlueAirPlatformAccessory.updateCarbonDioxideSensor (/usr/local/lib/node_modules/@fjs21/homebridge-blueair/src/platformAccessory.ts:589:32) at BlueAirPlatformAccessory.updateAccessoryCharacteristics (/usr/local/lib/node_modules/@fjs21/homebridge-blueair/src/platformAccessory.ts:363:10) at processTicksAndRejections (node:internal/process/task_queues:95:5) at BlueAirPlatformAccessory.handleAirPurifierActiveGet (/usr/local/lib/node_modules/@fjs21/homebridge-blueair/src/platformAccessory.ts:252:5) [2/12/2024, 12:33:31 PM] [@fjs21/homebridge-blueair] Child bridge process ended [2/12/2024, 12:33:31 PM] [@fjs21/homebridge-blueair] Process Ended. Code: 1, Signal: null

Can't publish 1.1.0

Hi @jonato1,

I'm getting the following error on publish. Looks like the object type is not allowed.

Please could you generate a PR into the master branch to fix this?

Cheers

/home/pi/dev/homebridge-blueair/src/blueair-aws-api.ts
   29:20  error    Don't use `object` as a type. The `object` type is currently hard to use ([see this issue](https://github.com/microsoft/TypeScript/issues/21732)).
Consider using `Record<string, unknown>` instead, as it allows you to more easily inspect and use the keys  @typescript-eslint/ban-types

Add switch for 'auto' mode

Unless I'm missing something, I haven't found a way to turn on 'auto' mode (on purifiers such as 311i Max, 311i+ Max, 411i Max)

It would be great if another switch could be added similar to the 'night mode' switch, then we'd be able to turn on or off auto mode just as easily.

Thanks for all the work on this plug-in - works great!

More Frequent Token Refreshes

It seems that the fetched token expires a bit before the plugin expects it to leading to API errors and fetching a new token. Can we add an option to shorten the token refresh time or set an interval to refresh?

Add Support for 311i Max

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!

[Feature Request] Memorizing the fan speed

Hi! Here with a feature request - what if we memorize the fan speed before turning the air purifier off and instead of turning it into auto when turning on, we set auto to off and set to the previous fan speed

Can homebridge/homekit get instant feedback when operating unit physically?

Nitpicking here, but I noticed if you turn it on or off, or change the speed of the purifier on the unit itself, the Homekit app will not update the state of the machine unless you force close the Home app and then reopen it, forcing a state refresh from the app I presume. It's usually not a big deal for me because if I'm walking up and physically pressing the Blueair switch on the unit, then I would not actively be using the app at that time.

But's just something I noticed and maybe there is a concern it might get hung up in the wrong state if the Home app was already running and active on your iOS device. I suppose this could be more of a nuisance for users that might use an iPad for a always-awake control panel or something.

Thanks for the work on this!
Nick

Warnings generated in logs

[@fjs21/homebridge-blueair] This plugin generated a warning from the characteristic 'Air Quality': Characteristic not in required or optional characteristic section for service AirPurifier. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.

Fix auto behavior

For the 311i+ MAX (and presumably other models with auto fan) the auto fan setting works counterintuitively. Auto is treated as a toggle that overrides fan speed. Therefore one can set the fan speed using Siri for example via apple home, but it is ignored until auto is explicitly disabled. Then the device immediately jumps to the desired fan speed.

I think that setting the fan speed should disable auto.

Missing/wrong readings?

Hi there, as per subject:
This plugin generated a warning from the characteristic 'PM2.5 Density': characteristic was supplied illegal value: number 1509.086 exceeded maximum of 1000. See https://git.io/JtMGR for more info.

My Blueair model is Classic 280i, how I can help in solving this issue? :)

Connecting to EU endpoint but no devices found.

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.

please support Blueair model 380i

[2/11/2022, 1:55:29 AM] Homebridge v1.4.0 (HAP v0.10.0) (Homebridge 7B2E) is running on port 51742.
[2/11/2022, 1:55:32 AM] [BlueAir] Got homehost: api-cn-north-1.blueair.io
[2/11/2022, 1:55:36 AM] [BlueAir] x-auth-token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6ImxvbGlwb3AuYm95QG91dGxvb2suY29tIiwianRpIjoiNGRhZDI4NDEtMzk0OS00MjhmLWIzMzctYTY4MTFiZDZhZTIwIiwiZXhwIjoxNjc2MDQwOTM2MDMxLCJleHBpcmF0aW9uRGF0ZSI6MTY3NjA0MDkzNjAzMX0.VlaVX6tn7mZlUwjypdhpsPo9OQrL4CGQ22raSxRiezs
[2/11/2022, 1:55:37 AM] [BlueAir] Found 1 devices.
[2/11/2022, 1:55:37 AM] [BlueAir] Restoring existing accessory from cache: myhome
[2/11/2022, 1:55:39 AM] [BlueAir] myhome of type "classic_380i" initialized.
[2/11/2022, 1:55:39 AM] [BlueAir] myhome: device type not recognized, contact developer via GitHub.

Postman I use occasionally and I can work with the test API。

BlueAir 7440i - Found 0 Devices

Hi there,

I can't seem to get my two 7440i devices showing up using the latest version of the plugin. Am I meant to enable the "Enable AWS Connection" option for this?

When doing so, I am getting this error followed by the child bridge restarting

[03/05/2022, 08:57:31] [@fjs21/homebridge-blueair] Got homehost: api-eu-west-1.blueair.io TypeError: Cannot read property 'sessionToken' of undefined at BlueAirApi.awsLogin (/usr/local/lib/node_modules/@fjs21/homebridge-blueair/src/blueair-api.ts:494:44) at processTicksAndRejections (node:internal/process/task_queues:94:5) at BlueAirHomebridgePlatform.discoverAwsDevices (/usr/local/lib/node_modules/@fjs21/homebridge-blueair/src/platform.ts:160:33)

Let me know if any further information is needed, I have Charles Proxy for this.

Option to remove the CO2 sensor

Hello there,
could you please add an option to disable the CO2 sensor? It seems to be pretty unreliable because the CO2 is only calculated (not measured) and seems to rely on the VOC for calculating the CO2. I find the red warnings in Home App and notifications not very useful. Too many false alarms because it's not a real CO2 sensor, at least in the 680i.

AWS TW region support

Hi I'm very appropriate your work.
Could you also add TW region for the newer models?

Thanks!

Instability with 211/311+

Awoke this morning to find both purifiers unresponsive with "Updating..." after previous night succesful setup on 1.2.1.

Living Room Purifier (211)
Office Purifier (311+)

Raspberry Pi OS 10
Node.js v18.16.0
mDNS Advertiser: Ciao

Attached debug logs from a fresh restart. Removed all other plugins from logging. Replaced Device ID and UUIDs with placeholders as I was unsure whether somebody else could authenticate with the service and control these devices.

homebridge.log.txt

Error message: device type not recognized for BlueAir 505 Classic

This is what I see after the user authorization logs (tokens obscured):

[1/21/2022, 11:13:02 AM] [BlueAir] AWS idtoken: xxxxxxxxxxxx
[1/21/2022, 11:13:02 AM] [BlueAir] AWS authorization: xxxxxxxxxxxx
[1/21/2022, 11:13:03 AM] [BlueAir] { message: 'Unauthorized' }
[1/21/2022, 11:13:03 AM] [BlueAir] Restoring existing accessory from cache: BlueAir 505 Classic
[1/21/2022, 11:13:03 AM] [BlueAir] BlueAir 505 Classic of type "classic_505" initialized.
[1/21/2022, 11:13:03 AM] [BlueAir] BlueAir 505 Classic: device type not recognized, contact developer via GitHub.

Lint issue again

/home/pi/dev/homebridge-blueair/src/blueair-aws-api.ts
   26:29  error    Don't use `object` as a type. The `object` type is currently hard to use ([see this issue](https://github.com/microsoft/TypeScript/issues/21732)).
Consider using `Record<string, unknown>` instead, as it allows you to more easily inspect and use the keys  @typescript-eslint/ban-types

Hi @jonato1, I tried to publish v1.1.1 with some minor fixes but ran into this issue again. I did some googling and it appears the use of object as a type is frowned upon.

Would this work?

private readonly awsKeys: Record<string, unknown>;

Out of Compliance

Hello - just got a new 311i + Max and have an existing instance of homebridge running. Added the plugin and my credentials and the device showed up in the homebridge UI but not in the home app on my iPhone. Deleted homebridge from my HomeKit configuration, reset it, cleared all accessories from cache, and re-added the homebridge to apple. Got an error when trying to add the bridge saying "Unable to add accessory. Accessory is out of compliance." I disabled this plug in and was able to add my homebridge back and get my other accessories working again.

Not sure why others have had success with this or if I'm doing something wrong but I think there is something preventing this from showing up in the HomeKit app on the iPhone, even though it appears in the homebridge UI.

Thanks.

time outs

Anyone else getting timeouts?
Wonder if i'm getting rate limited given there seems to be a few queries inside of 5 seconds. Where would I modify the 5 second timer?

[5/27/2022, 2:29:07 PM] [BlueAir] BlueAir API: error - Time out on BlueAir connection.
[5/27/2022, 2:29:07 PM] [BlueAir] air: getDeviceAttributes failed.
[5/27/2022, 2:29:07 PM] [BlueAir] updateAccessoryCharacteristic failed (redacted)
[5/27/2022, 2:29:12 PM] [BlueAir] BlueAir API: error - Time out on BlueAir connection.
[5/27/2022, 2:29:12 PM] [BlueAir] air: getDeviceDatapoint failed.
[5/27/2022, 2:29:12 PM] [BlueAir] updateAccessoryCharacteristic failed (redacted)
[5/27/2022, 2:30:12 PM] [BlueAir] BlueAir API: error - Time out on BlueAir connection.
[5/27/2022, 2:30:12 PM] [BlueAir] air: getDeviceInfo failed.

PM2.5 reading is constantly 1000?

Just got a Classic 280i and installed this plugin.

Not sure if its related to issue #7 but my PM2.5 reading is constantly 1000... Not sure if that is accurate or not but the app has it as 0 and is excellent AQ (blue)... as far as I know 1000 ug/m2 is crazy high for PM2.5. On the other hand PM10 density matches the app at 0.

Excessive Type Errors in logs after v1.2.0 Release

Example of error:
[4/13/2023, 7:35:46 PM] [@fjs21/homebridge-blueair] TypeError: Cannot read properties of undefined (reading 'updateCharacteristic') at BlueAirDustProtectAccessory.updateLED (/homebridge/node_modules/@fjs21/homebridge-blueair/src/platformAccessory_DustProtect.ts:553:22) at BlueAirDustProtectAccessory.updateAccessoryCharacteristics (/homebridge/node_modules/@fjs21/homebridge-blueair/src/platformAccessory_DustProtect.ts:354:16) at processTicksAndRejections (node:internal/process/task_queues:96:5) at BlueAirDustProtectAccessory.handleAirPurifierActiveGet (/homebridge/node_modules/@fjs21/homebridge-blueair/src/platformAccessory_DustProtect.ts:258:5) [4/13/2023, 7:35:46 PM] [@fjs21/homebridge-blueair] This plugin threw an error from the characteristic 'Active': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'updateCharacteristic'). See https://homebridge.io/w/JtMGR for more info.

rejection: TypeError: Cannot read property '1' of undefined

Hi,

Plugin keeps crashing and restarting, please see following output in the log:

16/11/2021, 14:37:25Blueair Bridge starting
16/11/2021, 14:37:27Blueair BridgeLoaded plugin '@fjs21/homebridge-blueair'
16/11/2021, 14:37:27Blueair BridgeLoading 1 platforms...
16/11/2021, 14:37:27Blueair BridgeBlueAirbase_API_url: https://api.blueair.io/v2/user/***************/homehost/
16/11/2021, 14:37:27Blueair BridgeBlueAirLoading accessory from cache: Luft
16/11/2021, 14:37:27Blueair BridgeBridge is running on port 51826.
16/11/2021, 14:37:27Blueair BridgeBlueAirGot homehost: api-eu-west-1.blueair.io
16/11/2021, 14:37:28Blueair BridgeBlueAirx-auth-token: ***************
16/11/2021, 14:37:28Blueair BridgeBlueAirFound 1 devices.
16/11/2021, 14:37:28Blueair BridgeBlueAirRestoring existing accessory from cache: Luft
16/11/2021, 14:37:28Blueair BridgeWARNINGunhandled rejection: TypeError: Cannot read property '1' of undefined
16/11/2021, 14:37:33Blueair BridgeWARNINGunhandled rejection: TypeError: Cannot read property '1' of undefined
16/11/2021, 14:37:42Blueair Bridge starting

this.blueair.devices is not iterable (API issue)

I have an error with continuous reboot:

TypeError: this.blueair.devices is not iterable
at BlueAirHomebridgePlatform.discoverDevices (/usr/local/lib/node_modules/@fjs21/homebridge-blueair/dist/platform.js:73:43)
at processTicksAndRejections (node:internal/process/task_queues:96:5)

Health Protect AWS login seemed to have stopped working?

Hi there,
I seem to now be getting this error when using the plugin which worked fine in the past using the same login details which also still works fine on the blueair app.

[5/13/2023, 12:18:57 AM] [@fjs21/homebridge-blueair] BlueAir API: error - Time out on BlueAir connection.
[5/13/2023, 12:18:57 AM] [@fjs21/homebridge-blueair] Failed to retrieve homehost. Be sure username is set.
[5/13/2023, 12:18:57 AM] [@fjs21/homebridge-blueair] BlueAir AWS API: error - Time out on BlueAir AWS connection.
[5/13/2023, 12:18:57 AM] [@fjs21/homebridge-blueair] Failed to login to AWS. Check password and restart Homebridge to try again.

Any ideas?

Remove brightness control?

Hi there
Many thanks for having developed this plugin.

Hoping you can clarify where the Feature Options (as shown on WebUI) are defined? It refers to Projects page but I can’t see anything there.

Also, is possible to disable brightness control? It’s of minor importance and the brightness read-out clutters up the Home interface. In fact, it would be nicer if single-tap switched the unit on/off and tap&hold brought up fanspeed slider. Right now every action requires min. 3 taps.

Also would obviously be nice if the fanspeed control could be a 3 step slider rather than one with granular control…but I presume Home doesn’t support that…?

Thanks again - great plug-in!

robin

'Brightness': characteristic was supplied illegal value

Hi, Thanks for the awesome plugin!
I'm getting a warning every 4-5 seconds from the plugin saying:

This plugin generated a warning from the characteristic 'Brightness': characteristic was supplied illegal value: number 2500 exceeded maximum of 100. See https://homebridge.io/w/JtMGR for more info.

I have 2 480i units and 1 280i configured.

The LED setting in the blueair app seems to influence this warning, if I turn off the LEDs completely it stops posting. If I set them to 25% brightness it shows 625 in the warning instead of 2500.
I'm guessing its a scaling issue of 2500/100?
Is there any known fix for this?
Thanks

Please add support for 211i Max

9/21/2023, 8:41:55 PMZhb Blueair BridgeBlueAirFound 0 devices.
9/21/2023, 8:41:55 PMZhb Blueair BridgeBlueAir** AWS login complete **
9/21/2023, 8:41:55 PMZhb Blueair BridgeBlueAirChecking token expiration date/time. Current token(s) expire at: Sat Sep 23 2023 00:41:54 GMT+0000 (Coordinated Universal Time)
9/21/2023, 8:41:56 PMZhb Blueair BridgeBlueAirFound 1 Blueair AWS-compatible devices.
9/21/2023, 8:41:56 PMZhb Blueair BridgeBlueAirRestoring existing accessory from cache: Living Room Purifier
9/21/2023, 8:41:56 PMZhb Blueair BridgeBlueAirChecking token expiration date/time. Current token(s) expire at: Sat Sep 23 2023 00:41:54 GMT+0000 (Coordinated Universal Time)
9/21/2023, 8:41:57 PMZhb Blueair BridgeBlueAirERROR52be3340-e6aa-401a-8222-37a2f6d53cfc: device type not recognized, contact developer via GitHub.
9/21/2023, 8:41:57 PMZhb Blueair BridgeBlueAirERRORThis device is not yet supported. Device Type: nb_h_1.0

Please post your model & capabilities

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.

TypeError: Cannot read properties of undefined (reading 'co2')

Using v1.1.0
Correctly identifies type "classic_280i" initialized but keeps showing the error at bottom a number of times before HB shuts itself down with

Got SIGTERM, shutting down Homebridge...
[5/11/2022, 5:02:54 PM] [@fjs21/homebridge-blueair] This plugin generated a warning from the characteristic 'Carbon Dioxide Detected': Characteristic not in required or optional characteristic section for service AirPurifier. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
TypeError: Cannot read properties of undefined (reading 'co2')
    at BlueAirPlatformAccessory.updateCarbonDioxideSensor (/usr/lib/node_modules/@fjs21/homebridge-blueair/src/platformAccessory.ts:562:79)
    at BlueAirPlatformAccessory.updateAccessoryCharacteristics (/usr/lib/node_modules/@fjs21/homebridge-blueair/src/platformAccessory.ts:332:10)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at BlueAirPlatformAccessory.handleVOCDensityGet (/usr/lib/node_modules/@fjs21/homebridge-blueair/src/platformAccessory.ts:281:5)

AWS Access Token Expires, causing 403 Forbidden responses

First reported here by @PeytonRG: #1 (comment)

What We Know

  • During the login process, the JWT is used to fetch an Access Token and Refresh Token.
  • The Access Token expires after 24 hours

What We Don't Know

  • How long it takes for the Refresh Token to expire
  • The AWS endpoint used to validate and/or rotate Access and Refresh Tokens

Next Steps:

  • Identify how the refresh token is used to obtain a new Access Token

1.3.1 crashes when multiple air purifiers are found on AWS

[9/11/2023, 3:09:46 PM] [BlueAir] Found 0 devices.
[9/11/2023, 3:09:47 PM] [BlueAir] ** AWS login complete **
[9/11/2023, 3:09:48 PM] [BlueAir] Found 2 Blueair AWS-compatible devices.
[9/11/2023, 3:09:49 PM] [BlueAir] Adding new accessory: 5288f453-6e1a-412b-ac08-a10b97f327d5
[9/11/2023, 3:09:50 PM] [BlueAir] Creating new object: BlueAirDustProtectAccessory
[9/11/2023, 3:09:51 PM] [BlueAir] Adding new accessory: 5288f453-6e1a-412b-ac08-a10b97f327d5
[9/11/2023, 3:09:51 PM] Error: Cannot add a Service with the same UUID '00000049-0000-1000-8000-0026BB765291' as another Service in this Accessory without also defining a unique 'subtype' property.
    at Accessory.addService (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:552:17)
    at PlatformAccessory.addService (/homebridge/node_modules/homebridge/src/platformAccessory.ts:98:41)
    at BlueAirDustProtectAccessory.setAccessoryInformation (/homebridge/node_modules/@fjs21/homebridge-blueair/src/platformAccessory_DustProtect.ts:188:24)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
[9/11/2023, 3:09:51 PM] Got SIGTERM, shutting down Homebridge...
[9/11/2023, 3:09:52 PM] [BlueAir] Creating new object: BlueAirDustProtectAccessory
[9/11/2023, 3:09:54 PM] Error: Cannot add a Service with the same UUID '00000049-0000-1000-8000-0026BB765291' as another Service in this Accessory without also defining a unique 'subtype' property.
    at Accessory.addService (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:552:17)
    at PlatformAccessory.addService (/homebridge/node_modules/homebridge/src/platformAccessory.ts:98:41)
    at BlueAirDustProtectAccessory.setAccessoryInformation (/homebridge/node_modules/@fjs21/homebridge-blueair/src/platformAccessory_DustProtect.ts:188:24)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
[9/11/2023, 3:09:56 PM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null

It appears the plugin is reusing a UUID for multiple devices?

How to hide LED / use Feature Options?

I see in the config there's an option to adjust features. I can't find anywhere in this repo or the original exactly what should go there.

I'd like to hide the LED lightbulb accessory from HomeKit. I see in the original repo there's an option mentioned "showLED": false but I'm not sure how to put it into the config since it says the format is e.g. Disable.uuid.

Add Support for Classic 480i / Classic 490i

Originally requested by @kjohn here:

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.