Closed ellucianBret closed 1 year ago
I put in a pull request for the typo. That was probably my mistake. ;) Interesting that your token is expiring every 2 weeks. I wonder if it is something Vivint is pushing out? I haven't come across this issue myself. I haven't had to update my refresh token since setting it 6 months ago. Every time the plugin access the Vivint API, it extends the existing token expiration out a month. At least that is what is supposed to happen.
Something to check:
https://vivintsky.com/api/systems
in a web browser like chrome. It should return "{"code": 401, "msg": "Your session has no user information. Please login", "msg_id": null}"
That is the 401 error message your error refers to.s
and set the Value to your latest working Vivint plugin cookie. (without the s= part)s
cookie. It should be 1 month from today. If not maybe they changed something? Mine currently shows 1 month from today. 2022-12-27T17:26Optional: If you want to see more information about your Vivint system from the Vivint API, you can copy and paste the id from the data returned to the URL. The new URL would look something like this: https://vivintsky.com/api/systems/1434020211493317
and navigate to it. This will return all of the information for your alarm panel including your address and GPS coordinates along with all your sensors and things. The data is JSON formatted, so to make it easier to read you could copy and paste it into a site like jsonformatter.io to view.
I finally did this and the cookie is good for 1 month (30 days). I don't think my issue is with the plugin anymore. I am having to re-login to Vivint on my mobile devices too! My first indication is that notifications are delivered via SMS rather than push.
I'll bug Vivint support.
Thanks!
Every few weeks I see this in the logs:
[Vivint] Error occured during login, retrying in 60 seconds... StatusCodeError: 401
BTW occurred is misspelled :) I only noticed because I use Grammarly - lol
The only resolution is to refresh the token. This is a new behavior. I don't remember having to refresh the token until a few months ago. The first time I had to reacquaint myself with this plugin. Which by the way means this is a well-done plugin :)
Did Vivint change their token expirations? Is there something I can do? Other than when this fails, go and manually refresh the token.
Thanks for a great plugin!
My config looks like this: