Can confirm that this is something that has to do with changes to the API (more specific with timestamps used during the login procedure). More can be found here https://github.com/Hacksore/bluelinky/issues/101
As far as I can see the developers have a fix (version 6.0.1) on the way which should probably solve this problem.
I have just started to play withe blueliky in node red. The basics work but I have a couple of questions:
Doing a call for the odometer reading gets me a message of âError: method not implementedâ. Is this caused by the changes in the API or am I maybe not doing something correctly.
Doing other calls, I get either correct data or âundefinedâ. If I do one or more retries, I eventually get the correct data. What could be causing this error? Is it just a communication error to the car ?
I have not figured out how to place the car location on the Lovelace map - I can manually enter the coordinates and call device_tracker.see but I have not yet figured out how to insert the coordinates from node red into the device_tracker.see code.
I sometimes donât get the data and get a 400 error. Looking at the response, it says rate limit so I guess thereâs a limit to number or requests in a certain amount of time. This only happens with the location for me, odometer seems to be the one that works the quickest.
I use mqtt to send the data to ha, and send the lat and long to generate the device tracker
I also write msg.payload.coord.lat and msg.payload.coord.lon to the debug panel. Both of those come from âget car locationâ and are correct.
Unfortunately, the svc.device_tracker.see gives this error message:
âCall-service API error. Error Message: invalid latitude for dictionary value @ data[âgpsâ]â
My node red flows that were working fine the other day are no longer working. Everything comes back with âundefinedâ
I did upgrade to the latest 2021.3.2 version but I canât recall if things went south after the upgrade or if they were still working.
When things were working, there was a distinct delay between asking for a status update and getting the result. Now the âundefinedâ shows up immediately.
Even just a plain call to âget statusâ results in an âundefinedâ error message ⌠sort of as if the API is broken
I really like your idea of directly updating the device tracker with a Service Call. Unfortunately I do have the same problem like @jens55
I always get the same error message:
Call-service API error. Error Message: invalid latitude for dictionary value @ data[âgpsâ]
The data I receive from âGet car locationâ node looks fine.
I was running the âget car locationâ followed by a svc:device_tracker.see node. What caused all my grief was that in the device_tracker node, in the âdataâ field, I had the right information but I did not realize that this field worked in both json and j:expression modes. You HAVE to select JSON for the examples given here. J:expression caused the error.
I did not find this myself - a VERY helpful fellow on the bluelinky discord server ( Optimaxion) helped me find that.
Thanks for sharing this - its been so so useful for me! Quick question - what does your Call_service events item watch out for and also what is in your Find Load Car Data Script?
To not exhaust the small battery I only update the car info twice a day through the âinjectâ node. However, I also wanted to update the car data manually. Somebody helpful suggested as follows.
Create an empty script called âGet car dataâ in HA doing exactly nothing like so:
Then create a button in Lovelace that calls the script with âtap actionâ, like so:
In Node Red one of the entry points in getting data is when the button is pressed in HA. To achieve this you monitor the service events by adding the Service node as follows:
If the script is called by the press of the button, car data gets called after collecting a time stamp and a delay for 2 seconds (probably unnecessary). If the empty script is not called (the button is not pressed) nothing happens: there is no node connected to the second switch output.
Hi all, as you might be aware, Hyundai Bluelink and Kia Uvo is using almost identical commands. So i have an active Kia Uvo integration and i would like to include Hyundai Bluelink there if you can commit on sparing time for testing.
Actually I do have a question. I have the following in my sensor.yaml. With only one sensor, it works, with multiple sensors, it does not? What is wrong here?
You can insert a âSwitchâ node, in which you can check the output for True or False. For True you follow with a âChangeâ node to insert âOnâ and for False you insert a âChangeâ node inserting âOffâ. Connect both these nodes to the mqtt out node.
Hard to say from these data. The formatting looks correct, so the error is likely in the NodeRed part. Perhaps check whether your mqtt out nodes have the correct topics in the right format.
Something else you can try is to use Home Assistant âEntityâ nodes rather than mqtt sensor, which create Home Assistant (binary) sensors directly, which instantly update when they change. I have recently learned how to do this and it is now my preferred way to get sensor data to the front end.
For this to work you may need to install (in HACS) the NodeRed Companion for Home Assistant: