Getting ZOE battery status into Node-RED
For those of you deep into home automation, using documentation compiled by Terrence Eden, me and Harm Otten wrote some Node-RED code to retrieve battery status from the same API that the the Renault Z.E. app uses. I’ve posted it on gitlab.
It outputs an MQTT message every 15 minutes. If there is more than one car associated with the login, more than one message is sent. A message looks like this
{“charging”:false,”plugged”:true,”charge_level”:100,”remaining_range”:132,”last_update”:1514654435000,”charging_point”:”INVALID”,”age”:”6:45″,”VIN”:”VF1AGVYA…..”}
In my setup the message finds it’s way to a dashboard on my Android phone using MQTT dash, a Node-RED dashboard and like all other MQTT messages a MariaDb database on my Synology NAS for logging.
Hello,
where can I find the mentioned github code?
I’m very interested about this functionality.
Thanks
MN
https://github.com/fesch/CanZE
Class called “Fields”
Hello Bob,
Thank you for the reply.
But I’m looking for the “Node-RED” code, which is behind the screenshot above.
Can you tell me, where can I find it?
Thanks,
Norbert
Ups … I didn’t catch you request in the right way. I don’t have that code myself. I’ll see if I can get someone else to answer π
π
thank you very much in advance
https://gitlab.com/snippets/1719630
There you go!
Hello Jeroen,
Thank you very much.
I tried it, modified to my ZE and mqtt credetials, but at the deployment I get this message:
“SyntaxError: Unexpected identifier”
And the “ZE services – battery” item is highlighted.
I’m new to Node-RED and Node.js, and at the first sight I could not find the error in the code…
Can you please check it?
Thanks,
Norbert
Meanwhile I managed to make it work.
Thank you very much for sharing!
π
Unfortunately, Renault has rolled out a new API. It uses certificate pinning so for the moment, there is nobody who has pried it open yet.
With the help of SpeakEV user jamesremuscat who did all the hard reverse engineering, I have a new Node-RED flow now, working as a charm. Thank you James!
https://muscatoxblog.blogspot.com/2019/07/delving-into-renaults-new-api.html
Hi this is not working any more. But I have fixe the node-red-contrib (https://github.com/node-red-contrib/node-red-contrib-renault-ze)
This is perfect working.