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.

8 comments on “Getting ZOE battery status into Node-RED
  1. MNMN says:

    Hello,
    where can I find the mentioned github code?
    I’m very interested about this functionality.
    Thanks
    MN

    • MNMN says:

      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

Leave a Reply