krauskopf / node-red-contrib-car-bmw Goto Github PK
View Code? Open in Web Editor NEWNode-RED nodes for BMW ConnectedDrive
License: Other
Node-RED nodes for BMW ConnectedDrive
License: Other
Hi ,
i don't get data after request from this Efficiency module. I get this in the debug
{"statusCode":404,"requestUrl":"https://ise-bev-prod-emea.bmwgroup.net/bev/vehicle/efficiency/v1/finfinfinfinfin","requestTimestamp":1616015515366,"logTransactionId":"c20ee54c-6a95-455e-a369-fededa96fab2"}
I think it is come today the first time.
Are they changing the output?
cu.
When trying to get data using BMW-List (V0.4.7 and 0.4.6) from the USA website I get the error
Error: Server send http statusCode 200 on stage 2
If I enter my incorrect logon details and test again then it will fail at stage 1, so I am confident logon details are correct.
I doubt this is related, but I also have a BMW in the UK, and using the "rest of the world" for region and BMW-List works fine for this account.
i have set up a server and try to use the list node.
there i get the following error:
"FetchError: request to https://customer.bmwgroup.com/gcdm/oauth/authenticate failed, reason: socket hang up"
do have any solution for me @krauskopf?
gerne auch deutsch
regards ingo
Hello,
not really an issue, but don't know where to post it otherwise.
the node-red nodes work perfectly. But I wonder: Would it be possible to set the max AC charging rate directly through node-red?
In the BMW App I can set the max charging rate (AMPS). This would make it very interesting because I could set the Max charging rate to be inline with the amount of Watts my solarpanels are currently producing. As such I would be able to charge the car without taking anything from the grid.
It should be possible, because you can manually set this in the myBMW app.
this would be an amazing feature.
I have this working for our Mini but cannot get it working for a BMW motorbike (BMW Motorrad Connected). It uses the same login portal so I'd hoped it would work but it just returns a "Error: Server http statusCode 404" for GET State. I'm not sure whether it would be possible to add support?
i've this error since yesterday :-(
i tried on different internet connections/locations... same error message
the app on my mobile phone was not updated and is still working
Since today I have been receiving statusCode 403 on the Get Node. Other nodes work fine.
To reproduce just drag a new get node into a flow - configure it correctly and trigger it over an inject node.
Error:
Error: Server http statusCode 403
The car installed an update today: 11/2023.73 on an i4 eDrive40
beim Starten stürzt node red mit folgendem Protokoll ab:
17 Jan 15:46:38 - [info] Flows gestartet
Token expired, requesting a new one
17 Jan 15:46:38 - [info] [car-bmw-list:BMW Fahrzeuge] Token init completed:
Token: Zo5U1Y5UbOepZPtqN00p4JE0c5texsFb
TokenType: Bearer
17 Jan 15:46:38 - [info] [car-bmw-get:i3 Service Partner] Token init completed:
Token: Zo5U1Y5UbOepZPtqN00p4JE0c5texsFb
TokenType: Bearer
17 Jan 15:46:38 - [info] [car-bmw-get:i3 Service Partner] Path: /api/vehicle/servicepartner/v1/WBY1Z41080VZ75329
17 Jan 15:46:38 - [red] Uncaught Exception:
17 Jan 15:46:38 - TypeError [ERR_UNESCAPED_CHARACTERS]: Request path contains unescaped characters
at new ClientRequest (_http_client.js:115:13)
at Object.request (https.js:289:10)
at Object.request (/usr/lib/node_modules/node-red/node_modules/agent-base/patch-core.js:25:22)
at Object.exports.call (/opt/fhem/.node-red/node_modules/node-red-contrib-car-bmw/lib/bmwrequest.js:26:20)
at onSuccess (/opt/fhem/.node-red/node_modules/node-red-contrib-car-bmw/car-bmw.js:180:24)
at readTokenData (/opt/fhem/.node-red/node_modules/node-red-contrib-car-bmw/lib/tokenmanager.js:97:5)
at /opt/fhem/.node-red/node_modules/node-red-contrib-car-bmw/lib/tokenmanager.js:111:7
at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3)
Nach Neustart:
Failed to use existing token from file, error SyntaxError: Unexpected end of JSON input, will request a new one
Failed to use existing token from file, error SyntaxError: Unexpected end of JSON input, will request a new one
Failed to use existing token from file, error SyntaxError: Unexpected end of JSON input, will request a new one
17 Jan 15:50:45 - [warn] [car-bmw-list:BMW Fahrzeuge] Failed to read token:Error: unable to get local issuer certificate
17 Jan 15:50:45 - [warn] [car-bmw-get:i3 Services] Failed to read token:Error: unable to get local issuer certificate
17 Jan 15:50:45 - [warn] [car-bmw-get:i3 Service Partner] Failed to read token:Error: unable to get local issuer certificate
Failed to read file: Error: ENOENT: no such file or directory, open 'currenttoken.json'
Failed to read file: Error: ENOENT: no such file or directory, open 'currenttoken.json'
Failed to read file: Error: ENOENT: no such file or directory, open 'currenttoken.json'
Failed to read file: Error: ENOENT: no such file or directory, open 'currenttoken.json'
in Endlosschleife
Danke für den Support!
I installed and configured first car. I entered my credentials and region (USA). Clicked update and then deploy. I inject a timestamp and get these errors.
Error: Couldn't find token in response
I then edit the BMW List Node and see that region is set to ROW and password has not been changed.
Its not really an Issues, but at least due to the fact, that there is no possiblity to open/close all windows by the BMW app I think, it could be a nice idea to do this by node red. Maybe its possible.
HI all,
Many thanks for this work, I've been using it since i got my G20 330e in February 2022 and it's been working great.
I started getting the 404 errors on 0.4.7, I've removed that and installed 0.5.0 and i now get "Error: connect ECONNREFUSED 160.46.245.252:443"
Matt.
With Version 0.6.0 I often see the following error:
26.4.2024, 17:34:31node: c28eb9af72a9904c
msg : error
"Error: Server http statusCode 403"
The error comes and goes, in between it works a few times. Always the same flow without changing anything.
Is there a API limit how often the status is allowed to pull in a specific time frame?
At the moment I check the status every 2 minutes.
Thanks for your support!
Stefan
I'm continuously getting "Error: Server http statusCode 400" as an answer in Node-RED when using the BMW Get node and selecting Services or Service Partner in the Data type. It's rare because I don't get any error when selecting Charging Statistics or Charging Sessions in the Data type and it works well, giving the expected answer.
¿Does anyone know what's going on? I'm using version 0.4.5 with a BMW i3.
Thank you!
Hi,
since yesterday I recive "Error: Server send http statusCode 401 on stage 1" in node red, when I send a request to my BMW....
Any idea what happens?
Thanks for your help.
Hi,
Thanks for the updated version.
For the node GET, there is only the data type STATE that is functionnal . For the others related to charging, I receive the Error: Server http statusCode 404
The node List is OK.
No test with the action Node.
Thanks for your help.
Would it be possible to add an action:
Initiate Charging
If the vehicle is plugged in, but not charging (due to an off peak setting?) it is possible to force the car to charge.
serviceType=CHARGE_NOW
With current focus on energy it would allow to trigger a charging session when there is an excess of solar energy or net capacity is available in these countries where you have capacity penalties.
Much appreciated
Are the charging profiles no longer available?
Had last used the weekly planner to determine the next planned departure time.
ps: thanks for sharing you work
Hi
i get may be last two days this error
Error: Server http statusCode 410
when i trigger "last trip" o "all trips"
any idea ?
if needful i can try to provide with al log file ...
byby, Michael
Hi,
I just realized that the "Climate Stop" action is not working (Version 0.4.6 with my 330e)
"Climate Start" seems to work fine, though.
cheers
Michael
I started receiving "Error: Server http statusCode 403" when i try to update node "BMW list" version 0.4.1.
I tried the latest version on our BMW iX3. Only some features work, most do not.
For 'Stop Charging' and 'Start Charging' I get "Error: Server http statusCode 500: Internal Server Error"
For 'Change Charging Settings' the command seems to be accepted, but nothing changes in the car. For example I request to change to 80% max charging level and 6 Amp charging, the response is: { eventId: "db203faf-28f5-42c0-927c-2b0e22…", creationTime: "2023-08-16T08:44:42.44409Z" }
If I request the 'Charging Profile' the response is "Error: Server http statusCode 500"
'State', 'Charging Statistics', 'Charging Sessions' all work as expected.
if someone is interested to determine from the payload/array
ready to use for InfluxDB
It seems that the BMW API changed its defaulting. In the Response from the "List" node I get units in imperial format ("mi" instead of "km" and "gal" instead of "l"). It seems that only the "Status" element with its sub elements is affected, the "properties" element is still metric.
Example from msg.payload.status:
{"lastUpdatedAt":"2022-06-14T06:14:51Z","currentMileage":{"mileage":4970,"units":"mi","formattedMileage":"4,970"}, ...}
Affected elements are:
I found a related issue and fix on bimmerconnected/bimmer_connected#449
Hello, thank you for your work on this code!
I was trying to implement but am getting the following error message:
Failed to parse data , error SyntaxError: Unexpected end of JSON input
the node red console output this:
24 Apr 15:32:09 - [info] [car-bmw-list:38ad96f9.6993fa] Token init completed:
Token: **REDACTED**
TokenType: Bearer
24 Apr 15:32:09 - [warn] [car-bmw-list:38ad96f9.6993fa] Failed to parse data , error SyntaxError: Unexpected end of JSON input
this is for a USA based BMW connected drive account. If there's any additional details that I can provide please let me know.
thank you.
Has anyone also this Problem?
Hi
Just tried to use this and when installing via Node-red pallette manager the install reports
SyntaxError: Unexpected token = (line:27)
Which if I then deploy a it stops all flows from working due to the error.
25 May 19:36:28 - [info] Starting flows
25 May 19:36:28 - [info] Started flows
25 May 19:36:29 - [info] Server now running at http://127.0.0.1:1880/
25 May 19:36:29 - [red] Uncaught Exception:
25 May 19:36:29 - TypeError [ERR_UNESCAPED_CHARACTERS]: Request path contains unescaped characters
at new ClientRequest (_http_client.js:115:13)
at Object.request (https.js:281:10)
at Object.request (/usr/lib/node_modules/node-red/node_modules/agent-base/patch-core.js:23:20)
at Object.exports.call (/home/pi/.node-red/node_modules/node-red-contrib-car-bmw/lib/bmwrequest.js:26:20)
at onSuccess (/home/pi/.node-red/node_modules/node-red-contrib-car-bmw/car-bmw.js:180:24)
at readTokenData (/home/pi/.node-red/node_modules/node-red-contrib-car-bmw/lib/tokenmanager.js:97:5)
at /home/pi/.node-red/node_modules/node-red-contrib-car-bmw/lib/tokenmanager.js:111:7
at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3)
nodered.service: main process exited, code=exited, status=1/FAILURE
Unit nodered.service entered failed state.
nodered.service holdoff time over, scheduling restart.
Stopping Node-RED graphical event wiring tool...
While studying the official https://bimmer-connected.readthedocs.io/_/downloads/en/latest/pdf/
documentation I wondered if the following ACTIONS could be added for EV drivers.
chargingsettings: (#28)
--target-soc
--ac-limit
Assumed fixed: Action: Charge Now ?, maybe update the node documentation as well with this command ;-)
charge: (#10)
With 0.4.6 the car-bmw-get node receives "Getting Error: connect ECONNREFUSED" for most data types. Only charging statistics and charging sessions works. Car is a 2017 i3
Getting an error 'ENOENT: no such file or directory, open 'currenttoken.json''
Failed to read token: Couldn't find token in response
I've tried the default URL as well as 'connecteddrive.bmwusa.com'
Since a couple of days I am receiving statusCode 503 with version 0.4.1. Has BMW again changed anything? Are others getting this error too?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.