-
Notifications
You must be signed in to change notification settings - Fork 18
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
WYZE Refresh Tokens #258
Comments
Message that will be displayed on users' first issue |
I spent the evening hack together a fix. First let me say I have never worked in this language before and I'm a network engineer that normally Purposely stays away from code but I want my freaking automations to work at home so I sucked it up lol. Here's what changes I made to index.js in /var/lib/homebridge/node_modules/homebridge-wyze-smart-home/node_modules/wyze-api/src
Changed refresh interval to 60 minutes because wyze is expiring them in 1.5 hours right now
Edited the 2001 test to add it setting that var
Added another if check below for the var then deleted the token file
|
@mikl730 Thanks for posting your hack. I am a software developer by trade but haven't done Javascript or Node.js in many years. I am seeing the same issue as you. If you can confirm your fix is continuing to work long term, I'm happy to figure out how to get a PR together that captures your fix to be merged into a release of this repo. I've been a long-time user and would like to give back, and I also really want to get my setup working. |
Yes it’s still working great
…On Sat, Jul 20, 2024 at 1:58 PM Dave Lewanda ***@***.***> wrote:
@mikl730 <https://github.com/mikl730> Thanks for posting your hack. I am
a software developer by trade but haven't done Javascript or Node.js in
many years. I am seeing the same issue as you. If you can confirm your fix
is continuing to work long term, I'm happy to figure out how to get a PR
together that captures your fix to be merged into a release of this repo.
I've been a long-time user and would like to give back, and I also really
want to get my setup working.
—
Reply to this email directly, view it on GitHub
<#258 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BJ3NKNFBJPNLPPUORYH4D6DZNKQMZAVCNFSM6AAAAABK3L7IROVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBRGI2DKMBTHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
can you attach a copy of the index.js? I tried to make these changes but get completely yelled at by HomeBridge about this plugin. |
Posting here hoping that a solution is available soon. |
i'm having the same issue here, have changed access token and key with same error persisting. homebridge v1.7.0 [Wyze] Wyze API Error (2001): 'access token is error' |
@hartyparty if you feel your fix will work for other, please feel free to create a pull request. |
If anyone is still experiencing this issue and you have HomeBridge installed on MacOS. The easiest way that worked for me are the steps below.
Editing the index file did not helped for me at all since OP did not provide where to place the code in, like what line #. Instructions were not clear and no fork was found. |
Thanks @moonnoonn . This worked for me. |
Refresh tokens fail to be accepted by wyze servers after about 1-hour and 45 minutes. See the discussion in attached projects/forum for more details.
SecKatie/ha-wyzeapi#612
https://forums.wyze.com/t/refresh-tokens-not-working/303714/2
Just posting to prevent anyone from wasting hours like I did trying to fix this issue.
The text was updated successfully, but these errors were encountered: