Comments (9)
I feel like I've seen this before in the US
region and it might have to do with refreshing the token.
Will try to pull status again after 30 minutes to see if I get undefined
as well and provide an update here.
from node-red-contrib-bluelinky.
Was able to reproduce after waiting 30 minutes so something is up, will take a look and see if I can find the root cause.
from node-red-contrib-bluelinky.
@guyaumetremblay just committed the working of v6.0.0-alpha1
to the bluelinky repo and there is an open PR for it to be released.
Once that is merged/published I can try updating this node-red repo and see if that fixes this issue.
from node-red-contrib-bluelinky.
Ok so I don't quite think this is a token issue anymore as the tokens in CA last a whole day from what I found. @guyaumetremblay can we track this in a separate issue if you don't mind.
"expireIn": 86400
from node-red-contrib-bluelinky.
from node-red-contrib-bluelinky.
So I had a look and this seems to be the fix for US
vehicles, I'll look over the code for CA
and see if I can apply the same thing. In short, this is going to require a bluelinky update to fix the issue.
from node-red-contrib-bluelinky.
@Hacksore yep seems to me that there is the same error in the calculation of the variable "shouldRefreshToken" @ https://github.com/Hacksore/bluelinky/blob/558af06b0fbd364201202abbfc4f47066a0ca192/lib/controllers/canadian.controller.ts#L22
European controller has the same version than the american one.
Tell me if you need someone to test the fixed version.
from node-red-contrib-bluelinky.
@Hacksore Hi, I'm sorry but I still received undefined with the new version. Here is what I did in my flow:
- call Door unlock - > received "Unlock sucessful"
- wait 5sec
- call Get status - > received "status: undefined"
Calling "Get status" only, after or before, worked! (see the debug screenshot)
from node-red-contrib-bluelinky.
@guyaumetremblay ok let me test again and see what I find :)
from node-red-contrib-bluelinky.
Related Issues (20)
- HTTP Response object missing after GetStatus etc HOT 1
- "Start Car" only activates A/C, but no defrosting HOT 4
- Update nodered library to bluelinky repo HOT 3
- Support multiple vehicles
- Authorization error HOT 27
- Warnings while (re-) installing node-red-contrib-bluelinky HOT 2
- car death HOT 2
- Please upgrade to 7.6.6 HOT 1
- Location information stopped working about a week ago HOT 1
- Start Car works but cant set config HOT 1
- Help Request on Input/Format for node "set-navigation" HOT 2
- Worked once... HOT 5
- Can not log in Europe HOT 6
- "Invalid request body - Invalid deviceID" HOT 1
- "Invalid request body - Invalid deviceId" after "Lock car" - Workaround: re-login HOT 2
- Adjust "MaxListeners" to avoid WARNings and possible leaks HOT 2
- Two Kia EV6 cars, two flows - one fails HOT 1
- Bluelinky nodes seem to create new message objects, discarding metadata HOT 6
- "Error" on flow HOT 2
- Request for Genesis Support
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 node-red-contrib-bluelinky.