GithubHelp home page GithubHelp logo

Comments (9)

Hacksore avatar Hacksore commented on August 18, 2024 1

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.

Hacksore avatar Hacksore commented on August 18, 2024 1

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.

image

from node-red-contrib-bluelinky.

Hacksore avatar Hacksore commented on August 18, 2024 1

@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.

Hacksore avatar Hacksore commented on August 18, 2024 1

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.

guyaumetremblay avatar guyaumetremblay commented on August 18, 2024 1

@Hacksore Ok I opened #23

from node-red-contrib-bluelinky.

Hacksore avatar Hacksore commented on August 18, 2024

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.

Hacksore/bluelinky@8ca38af

from node-red-contrib-bluelinky.

guyaumetremblay avatar guyaumetremblay commented on August 18, 2024

@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.

guyaumetremblay avatar guyaumetremblay commented on August 18, 2024

@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)

Screenshot_20210124-145027_Home Assistant
Screenshot_20210124-145421_Home Assistant

from node-red-contrib-bluelinky.

Hacksore avatar Hacksore commented on August 18, 2024

@guyaumetremblay ok let me test again and see what I find :)

from node-red-contrib-bluelinky.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.