Comments (7)
Hi i gues you should use it like this:
msg.payload : Object { "fast": 80, "slow": 70 }
from bluelinky.
from bluelinky.
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.
.
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
- including "" is after receiving to Node-Red
- after json
- 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.
from bluelinky.
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.
from bluelinky.
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.
- you send out the values
- after a while you update the app and should see the changed values
- 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)
- Support setting additional climate options (steeringwheel warmer, sidemirrors/rearwindowheating) HOT 14
- Kona EV Remote Start Failing HOT 4
- No fetchting of the location HOT 2
- error code 4003 HOT 1
- [question]: is "cache" vs "refresh" device dependend? HOT 2
- Added new Features to the Plug-in HOT 2
- Login failing for Kia / EU HOT 17
- SSL Error for Kia Canada HOT 18
- cant start clima für kia ev6
- Client Error GotError HOT 4
- AppID's changed again? HOT 7
- Node red problem
- Info about battery charging status and amount of kwh charged in last session HOT 4
- Return status if on error HOT 5
- npm run debug fails with type script error HOT 4
- "Invalid request body - Invalid deviceId" after a write command HOT 2
- genesis implementation HOT 5
- Node Red shows ERROR HOT 2
- No EV-Information in Status HOT 6
- Vehicle not found HOT 1
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 bluelinky.