Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Authentication #192

Closed
arcticgenes opened this issue Jan 19, 2023 · 94 comments
Closed

New Authentication #192

arcticgenes opened this issue Jan 19, 2023 · 94 comments

Comments

@arcticgenes
Copy link

plugin stopped worked so I restarted homekit and now this pops up everytime

Unhandled rejection StatusCodeError: 500 - {"message":null}
at new StatusCodeError (/usr/local/lib/node_modules/homebridge-mysmartblinds-bridge/node_modules/request-promise-core/lib/errors.js:32:15)
at Request.plumbing.callback (/usr/local/lib/node_modules/homebridge-mysmartblinds-bridge/node_modules/request-promise-core/lib/plumbing.js:104:33)
at Request.RP$callback [as _callback] (/usr/local/lib/node_modules/homebridge-mysmartblinds-bridge/node_modules/request-promise-core/lib/plumbing.js:46:31)
at Request.self.callback (/usr/local/lib/node_modules/homebridge-mysmartblinds-bridge/node_modules/request/request.js:185:22)
at Request.emit (node:events:513:28)
at Request. (/usr/local/lib/node_modules/homebridge-mysmartblinds-bridge/node_modules/request/request.js:1154:10)
at Request.emit (node:events:513:28)
at IncomingMessage. (/usr/local/lib/node_modules/homebridge-mysmartblinds-bridge/node_modules/request/request.js:1076:12)
at Object.onceWrapper (node:events:627:28)
at IncomingMessage.emit (node:events:525:35)
at endReadableNT (node:internal/streams/readable:1359:12)
at processTicksAndRejections (node:internal/process/task_queues:82:21)

@matt-from-uk
Copy link

Plugin also not working here. Plus a bridge I have removed from the app and try to add again can get through the set up process and is stuck checking firmware.

Wonder if the mysmarterhome/tilt/MySmartBlinds server is down or if the service has been abandoned.

@baggedlunch12
Copy link

Receiving the same error code. I went into the native app and my bridge was no longer listed on the app. I held down the center button until it started flashing purple to re-add to the app; it was stuck on Searching for bridge... Checking bridge firmware... for almost :10 before it finally did anything. Then it went back to the bridge screen with no bridge shown... :) Wondering if it is indeed on the smarter home/tilt side of the house with the issue.

@Swop1925
Copy link

Swop1925 commented Jan 20, 2023

Same issue. Plugin dead. Native app is buggy AF also. It crashed constantly on my phone and I have to re-login every time after crash. Between the app crapping out and a variety of HomeKit changes ("new architecture"), it's hard to pinpoint what's going on.

EDIT: Finally got app to work long enough to check hub and it's disappeared. Wack.

@arcticgenes
Copy link
Author

arcticgenes commented Jan 20, 2023 via email

@baggedlunch12
Copy link

Same issue. Plugin dead. Native app is buggy AF also. It crashed constantly on my phone and I have to re-login every time after crash. Between the app crapping out and a variety of HomeKit changes ("new architecture"), it's hard to pinpoint what's going on.

EDIT: Finally got app to work long enough to check hub and it's disappeared. Wack.

Same thing here. I keep having to login. Just long enough to close my blinds and then it crashes.

@randymassey
Copy link

randymassey commented Jan 20, 2023 via email

@Swop1925
Copy link

interesting. I got a different excuse from Smarter Home:

Our app team is currently performing some work on our servers which may cause interruptions in the MySmartBlinds app. I'm very sorry for the inconvenience and I will keep you informed of their progress.
Matt Larsen
Customer Support

@randymassey
Copy link

randymassey commented Jan 21, 2023 via email

@Swop1925
Copy link

Swop1925 commented Jan 23, 2023 via email

@matt-from-uk
Copy link

matt-from-uk commented Jan 23, 2023 via email

@matt-from-uk
Copy link

matt-from-uk commented Jan 24, 2023 via email

@randymassey
Copy link

randymassey commented Jan 24, 2023 via email

@baggedlunch12
Copy link

Seems the response I received from support is a combination of what two others mentioned. Here was their response to me:

Hi,

Our developers are finishing up with some updates and maintenance on our servers which has caused some interruptions with using the MySmartBlinds app. They are currently working on getting a new version of the app pushed to the app store to account for these changes. We apologize for the inconvenience.
Matt Larsen
Customer Support

@randymassey
Copy link

randymassey commented Jan 24, 2023 via email

@baggedlunch12
Copy link

Their response to timeline to be fixed:

Hi Forrest,

Our developers are expecting to have an update pushed to the app store within the next 24 hours.
Matt Larsen
Customer Support

@Swop1925
Copy link

Swop1925 commented Jan 25, 2023 via email

@nigetech
Copy link

nigetech commented Jan 26, 2023

It wouldn’t surprise me if this company was dead or failing, the software has been terrible since the original kickstarter, they don’t care about hardware issues either. Was told server issues last week, now it’s a case of a new app coming. Can’t even login to add schedules as these were all done through the automation. Blinds effectively dead. Planning on moving to Switchbot.

@baggedlunch12
Copy link

It wouldn’t surprise me if this company was dead or failing, the software has been terrible since the original kickstarter, they don’t care about hardware issues either. Was told server issues last week, now it’s a case of a new app coming. Can’t even login to add schedules as these were all done through the automation. Blinds effectively dead. Planning on moving to Switchbot.

I wouldn't say that. They recently merged the two of their companies together. I have a Pro account with them and based on their recent earnings sheet it doesn't seem they are close to going under. I just wish they wouldn't give everyone the run around. If you don't know when then just tell us that. Frustrating.

@randymassey
Copy link

randymassey commented Jan 26, 2023 via email

@randymassey
Copy link

randymassey commented Jan 27, 2023 via email

@TerryLeeWhite
Copy link

I just got the latest app. It's out now on the App Store and working. Can the plugin be updated now?

@nigetech
Copy link

Not sure it will be updated anytime soon! The original developer of the plug-in hasn’t been active on here for a while. As mentioned above poor of the company to not announce there was issues, random stories about new apps and then just an update to existing. Plus they don’t care about any integrations they’ve now broken.

@matt-from-uk
Copy link

matt-from-uk commented Jan 27, 2023 via email

@arcticgenes
Copy link
Author

arcticgenes commented Jan 27, 2023 via email

@randymassey
Copy link

randymassey commented Jan 27, 2023 via email

@name99-org
Copy link

The set of claims here makes no sense to me. What does the iOS app (whether delayed or not) have to do with Homebridge not working?

The underlying issue seems to be something broken with MySmartBlinds/Tilt/SmarterHome (whatever their name is this week)'s user authentication.

  • I can authenticate in the app. This worked last week (old app) and today (new app). In both cases the app works.
  • I could NOT authenticate on the web site, last week or this week.
  • The Homebridge failure to me looks like authentication not working.

As far as I can tell parent company has fscked up some (but not all) aspects of authentication and has not had the decency to explain to users what is supposed to be happening ("move your accountably doing xyzzy" or whatever).
Possibly the plugin also needs to be changed, but as long as we have this broken authentication (where the app works, but web login does not) I suspect there's something so screwed up on the server that nothing can happen till that is fixed.

What experience have other people been having trying to log in to the web site?

@arcticgenes
Copy link
Author

arcticgenes commented Jan 27, 2023 via email

@name99-org
Copy link

The problem now is the bridges aren’t connecting to the server. Without this hub, there is no connection between the internet and the blinds which renders homekit useless as it needs wifi to reach the blinds. So we need a working app, then we need to be able to add a bridge, then we need the bridge to actually work, then we can figure out if any changes are needed for the homekit plugin.
-- Aaron Lewis

Fair enough. But it seems like there are at least two distinct problems.
(a) Bridges have to work. (Seems to have server side component.)
(b) Server login has to work. (Seems to be broken for at least some people, like myself, according to what Tilt said.)

So I guess, whether by my route or your route, we land up at the same place – nothing can happen until MySmartBlind's side is fixed :-)

@arcticgenes
Copy link
Author

arcticgenes commented Jan 27, 2023 via email

@randymassey
Copy link

randymassey commented Jan 27, 2023 via email

@aaron-lewis-insight
Copy link

Can you do a release as a beta version so we can easily install it through the homebridge interface?

@randymassey
Copy link

randymassey commented Jun 19, 2023 via email

@name99-org
Copy link

name99-org commented Jun 19, 2023 via email

@apexad
Copy link
Owner

apexad commented Jun 19, 2023

I make a beta release that you can install in homebridge-ui later today

@randymassey
Copy link

randymassey commented Jun 19, 2023 via email

@aaron-lewis-insight
Copy link

attempted a manual update of the .js files in the node module folder. It got past the initial failure point and now gives me the following:

Unhandled rejection StatusCodeError: 401 - {"message":"Unauthorized"}
at new StatusCodeError (/usr/local/lib/node_modules/homebridge-mysmartblinds-bridge/node_modules/request-promise-core/lib/errors.js:32:15)
at Request.plumbing.callback (/usr/local/lib/node_modules/homebridge-mysmartblinds-bridge/node_modules/request-promise-core/lib/plumbing.js:104:33)
at Request.RP$callback [as _callback] (/usr/local/lib/node_modules/homebridge-mysmartblinds-bridge/node_modules/request-promise-core/lib/plumbing.js:46:31)
at Request.self.callback (/usr/local/lib/node_modules/homebridge-mysmartblinds-bridge/node_modules/request/request.js:185:22)
at Request.emit (node:events:513:28)
at Request. (/usr/local/lib/node_modules/homebridge-mysmartblinds-bridge/node_modules/request/request.js:1154:10)
at Request.emit (node:events:513:28)
at IncomingMessage. (/usr/local/lib/node_modules/homebridge-mysmartblinds-bridge/node_modules/request/request.js:1076:12)
at Object.onceWrapper (node:events:627:28)
at IncomingMessage.emit (node:events:525:35)
at endReadableNT (node:internal/streams/readable:1359:12)
at processTicksAndRejections (node:internal/process/task_queues:82:21)

@apexad
Copy link
Owner

apexad commented Jun 20, 2023

attempted a manual update of the .js files in the node module folder. It got past the initial failure point and now gives me the following:

Unhandled rejection StatusCodeError: 401 - {"message":"Unauthorized"} at new StatusCodeError (/usr/local/lib/node_modules/homebridge-mysmartblinds-bridge/node_modules/request-promise-core/lib/errors.js:32:15) at Request.plumbing.callback (/usr/local/lib/node_modules/homebridge-mysmartblinds-bridge/node_modules/request-promise-core/lib/plumbing.js:104:33) at Request.RP$callback [as _callback] (/usr/local/lib/node_modules/homebridge-mysmartblinds-bridge/node_modules/request-promise-core/lib/plumbing.js:46:31) at Request.self.callback (/usr/local/lib/node_modules/homebridge-mysmartblinds-bridge/node_modules/request/request.js:185:22) at Request.emit (node:events:513:28) at Request. (/usr/local/lib/node_modules/homebridge-mysmartblinds-bridge/node_modules/request/request.js:1154:10) at Request.emit (node:events:513:28) at IncomingMessage. (/usr/local/lib/node_modules/homebridge-mysmartblinds-bridge/node_modules/request/request.js:1076:12) at Object.onceWrapper (node:events:627:28) at IncomingMessage.emit (node:events:525:35) at endReadableNT (node:internal/streams/readable:1359:12) at processTicksAndRejections (node:internal/process/task_queues:82:21)

Thanks for this! I’ll have to look at the changes to the calls after we have the token.

@aaron-lewis-insight
Copy link

aaron-lewis-insight commented Jun 20, 2023

it does seem like token is working. This is the line that pops up just before the 401.

[MySmartBlindsBridge] authToken refresh, now expires 2023-06-20T11:21:29.000Z

@aaron-lewis-insight
Copy link

was able to get the plugin to be happy by changing IdToken to access_token which aligns with the property used in the python client

@aaron-lewis-insight
Copy link

after making the changes, opening and closing seem to work just fine, and minor percentages seem to work however while the output in homebridge and the blinds themselves seem to be happy, the home app displays "No Response" if too many changes are made in a short timespan.

@apexad
Copy link
Owner

apexad commented Jun 20, 2023

@aaron-lewis-insight access_token, like that? not accessToken?

@apexad
Copy link
Owner

apexad commented Jun 20, 2023

Can anyone try [email protected]?

@aaron-lewis-insight
Copy link

@aaron-lewis-insight access_token, like that? not accessToken?

correct, access_token

same thing is found here:

https://github.com/docBliny/smartblinds-client/blob/master/smartblinds_client/smartblinds.py#L349

@apexad
Copy link
Owner

apexad commented Jun 20, 2023

Should be able to click the wrench in homebridge ui and choose 'Install Alternate Versions' to see 3.0.0-beta.2 now.
from what @aaron-lewis-insight is saying I am pretty optimistic this should work, but want to get a few more to confirm

@aaron-lewis-insight
Copy link

aaron-lewis-insight commented Jun 20, 2023

installed 3.0.0-beta.2 and everything is still working

@apexad
Copy link
Owner

apexad commented Jun 20, 2023

Also @aaron-lewis-insight the 'No Response' is probably related to Issue #38 unfortunately.

@aaron-lewis-insight
Copy link

Also @aaron-lewis-insight the 'No Response' is probably related to Issue #38 unfortunately.

no worries, I usually just open / close fully a single blind at a time so this isn't a huge issue.

@randymassey
Copy link

randymassey commented Jun 20, 2023 via email

@apexad
Copy link
Owner

apexad commented Jun 20, 2023

I went ahead and released version 3.0.1 based on a second report from @randymassey that this is working.
Closing this issue now.

This was such a quick fix and I apologize to all for not getting to it sooner.

@apexad apexad closed this as completed Jun 20, 2023
@TerryLeeWhite
Copy link

I can't thank you enough for fixing this! However, while I can control my blinds again, no matter what they always immediately report as closed in the Home app. ie. I tap to open. They physically open. Home app immediately reports them as closed again even tough they're actually open. This makes it challenging then to close them. Is there something I should check on my end?

@apexad
Copy link
Owner

apexad commented Jun 20, 2023

I can't thank you enough for fixing this! However, while I can control my blinds again, no matter what they always immediately report as closed in the Home app. ie. I tap to open. They physically open. Home app immediately reports them as closed again even tough they're actually open. This makes it challenging then to close them. Is there something I should check on my end?

I’ll take a look at this later today. Might be something else changed in get request for the blinds. I noticed @docBliny may have made some changes there.

@apexad
Copy link
Owner

apexad commented Jun 20, 2023

@TerryLeeWhite Thanks for the donation as well. Unnecessary but very much appreciated!

@TerryLeeWhite
Copy link

I've been using it all day. It works well. I think that it just doesn't initiate a status check immediately after a open command. I set my polling to 5 minutes and when I go back later it seems to reflect the correct state.

@randymassey
Copy link

randymassey commented Jun 21, 2023 via email

@name99-org
Copy link

I can confirm that things now seem to be working for my three blinds. Thanks Alex!

I did have to force reboot my MySmartBlinds hub (unplug it for a few seconds then replug it in) before things fully worked; so if anyone else is having problems, you might want to start by doing that.

@randymassey
Copy link

randymassey commented Jun 21, 2023 via email

@apexad
Copy link
Owner

apexad commented Jun 21, 2023

Happy to hear so many reports this plugin is working again! Thanks everyone for your testing and reports.

@gregmichael
Copy link

@apexad Alex! I am so so happy you tackled this, much much appreciated! I just setup all of my blinds again and EVERYTHING is working perfectly. I am so happy to have this working again- Thanks again.

@TerryLeeWhite
Copy link

Happy to report everything is working great now! Thanks again for stepping back in and fixing the issue. Much much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests