Giter Site home page Giter Site logo

Comments (7)

xerion3800 avatar xerion3800 commented on June 11, 2024

Hi i gues you should use it like this:
msg.payload : Object { "fast": 80, "slow": 70 }

from bluelinky.

PierreLevres avatar PierreLevres commented on June 11, 2024

from bluelinky.

cheick66 avatar cheick66 commented on June 11, 2024

I've sent it in that style { "fast": 80, "slow": 70 } by MQTT to the Node-Red workflow.
Copy and past from my first post is direktly out of Node-Red and there are my "" are cleared.

That is working for other payloads too:
{"defrost": true, "windscreenHeating": true, "temperature": 18, "unit": "C"}
This example will start the air conditioning.

As you can see a start_climate and set_chargetargets are both going a simular way through JSON to the Bluelinky function.
1
.
2
This is out of my logfile, to show, that it looks like same format

2022.07.11 11:00:03.167 3: MQTT2_DEVICE set Kia_connect setChargeTargetSoc {"fast": 100, "slow": 80}
2022.07.11 11:00:08.178 3: MQTT2_DEVICE set Kia_connect getAll
2022.07.11 11:01:37.652 3: MQTT2_DEVICE set Kia_connect startClimate {"defrost": false, "windscreenHeating": false, "temperature": 18 , "unit": "C"}

I'm not a programmer ;-)

EDIT: I did some more msg.payload
3

  1. including "" is after receiving to Node-Red
  2. after json
  3. message from Bluelinky

If I sent a wrong json payload I receive a message from bluelinky
"ManagedBluelinkyError: Charge target values are limited to 50, 60, 70, 80, 90, 100"
So my resume is, that the blulinky request with {"fast": 100, "slow": 80} is maybe not the compleat right format, which results in an "undefined" on kia's server.

from bluelinky.

PierreLevres avatar PierreLevres commented on June 11, 2024

from bluelinky.

cheick66 avatar cheick66 commented on June 11, 2024

Hi all,
thanks for your support.
I can confirm, that it is working, as you accepted. It's maybe my fault, because I was to fast on checking the result :-)
If I give that process more time, I can see the result inside of the mobile App.

I will also try to add the "small test", to learn more about node-Red.
@PierreLevres could you send me the funktions, whiche you created to do the test? I already created the flow as a copy of yout picture. But I never did programming to node-Red :-(

Best regards
Christian

from bluelinky.

PierreLevres avatar PierreLevres commented on June 11, 2024

from bluelinky.

cheick66 avatar cheick66 commented on June 11, 2024

Does it work, setting the targets? You can verify in your app. I have the same result (uunudefined) becouse the bluelinky function (public async setChargeTargets) does not return a value. That was adressed as something to be fixed but it got lost somewhere.

On 11 Jul 2022, at 10:39, cheick66 @.***> wrote: I've sent it in that style { "fast": 80, "slow": 70 } by MQTT to the Node-Red workflow. That is working for other payloads too: {"defrost": true, "windscreenHeating": true, "temperature": 18, "unit": "C"} This example will start the air conditioning. — Reply to this email directly, view it on GitHub <#219 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO7MCG6TENNXCW56YTZ6A6DVTPMUPANCNFSM53EPYBBA. You are receiving this because you commented.

Hi Pierre,
for me it's working, I can see the changes in my Handy App and I can get a status by bluelinky with the changes values.

  1. you send out the values
  2. after a while you update the app and should see the changed values
  3. also after short time you start a getall status inside your Node-Red workflow and it should also show the changes

Best regards
Christian

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