Comments (12)
Haven't had any issues so far on 1.0.7 since updating a day or two ago!
from homebridge-blueair.
After updating a different plugin that I had disabled, then re-enabling it, I did see it throw up that error in the log but it looks like it was able to self-correct this time
from homebridge-blueair.
When this happens, would it be feasible to just login with the provided credentials again to get fresh tokens. I think that could at least be a mitigation until the "correct" way is figured out.
from homebridge-blueair.
@PeytonRG I'm testing this exactly locally on my NAS for the next 24 to 48 hours. If it looks like it's viable, I'll be submitting a PR shortly thereafter while we figure out how to properly rotate the tokens.
from homebridge-blueair.
I just got the new update and re-enabled the plugin so I'll let you know if I run into this again.
from homebridge-blueair.
@PeytonRG Sounds good - let me know know what you find, but I think it may still be an issue. If so, I think I've got a more robust fix in place that I'm hoping to try out here soon.
Thanks,
Jon
from homebridge-blueair.
@PeytonRG just wanted to check in, especially with 1.0.7 being released. How are things looking for you?
from homebridge-blueair.
After updating a different plugin that I had disabled, then re-enabling it, I did see it throw up that error in the log but it looks like it was able to self-correct this time
That's great to hear - definitely this is still a temp fix, but its good to see that it's healing it on it's own now. Thanks for the update!
from homebridge-blueair.
I've had this happen again once on 1.0.8 where I had to restart Homebridge to get anything working again.
from homebridge-blueair.
@PeytonRG thanks for the update. I'm definitely still having trouble identifying how the tokens are refreshed. What were you seeing in the logs when you would try to control the device, prior to having to restart Homebridge?
from homebridge-blueair.
It's been a while and I wasn't able to copy those logs, but I believe it was the type error '0' one we've seen before. Anyway, on the latest 1.1.0 version, I've had to disable the plugin because it breaks HomeBridge with these errors.
[13/05/2022, 12:36:20] [BlueAir] Initializing BlueAir platform...
[13/05/2022, 12:36:20] [BlueAir] base_API_url: https://api.blueair.io/v2/user/<my_email_address>/homehost/
[13/05/2022, 12:36:20] Error: No region specified for Gigya API.
at new BlueAirAwsApi (/usr/lib/node_modules/@fjs21/homebridge-blueair/src/blueair-aws-api.ts:67:13)
at new BlueAirHomebridgePlatform (/usr/lib/node_modules/@fjs21/homebridge-blueair/src/platform.ts:42:25)
at /usr/lib/node_modules/homebridge/src/server.ts:442:40
at Array.forEach (<anonymous>)
at Server.loadPlatforms (/usr/lib/node_modules/homebridge/src/server.ts:374:27)
at Server.start (/usr/lib/node_modules/homebridge/src/server.ts:161:29)
[13/05/2022, 12:36:20] TypeError: Cannot read properties of undefined (reading 'gigyaRegion')
at BlueAirAwsApi.setAwsRegions (/usr/lib/node_modules/@fjs21/homebridge-blueair/src/blueair-aws-api.ts:85:49)
at new BlueAirAwsApi (/usr/lib/node_modules/@fjs21/homebridge-blueair/src/blueair-aws-api.ts:65:10)
at new BlueAirHomebridgePlatform (/usr/lib/node_modules/@fjs21/homebridge-blueair/src/platform.ts:42:25)
at /usr/lib/node_modules/homebridge/src/server.ts:442:40
at Array.forEach (<anonymous>)
at Server.loadPlatforms (/usr/lib/node_modules/homebridge/src/server.ts:374:27)
at Server.start (/usr/lib/node_modules/homebridge/src/server.ts:161:29)
[13/05/2022, 12:36:20] Got SIGTERM, shutting down Homebridge...
from homebridge-blueair.
This looks like the gigyaRegion is not set. @jonato1 Take a look at the commit 'minor fixes' I think that should solve and will push out an update shortly.
from homebridge-blueair.
Related Issues (20)
- Add Support for Model: 411i MAX HOT 7
- Add Support for Classic 480i / Classic 490i HOT 3
- Add Support for 311i Max HOT 7
- Crash while using 480i
- Asking Siri to turn on all lights in a room sets BlueAir LED brightness to zero
- Warnings generated in logs
- Add switch for 'auto' mode HOT 2
- 1.3.1 crashes when multiple air purifiers are found on AWS HOT 3
- More Frequent Token Refreshes
- Please add support for 211i Max HOT 1
- Support for Blue Max 3250i
- AWS TW region support HOT 1
- Out of Compliance HOT 1
- AWS china/cn region support HOT 3
- Transfer to Homebridge Organization
- Fix auto behavior
- Add new region Malaysia
- Hide CO2 Sensor Crashes on 680i HOT 1
- Air purifier no response in homekit
- Error reading device since latest Homebridge update HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-blueair.