=================
Simple ioBroker-Adapter to get some basic values from Renault ZOE and use it in ioBroker.
IMPORTANT!!! IF YOU UPDATE FROM A VERSION BEFORE 0.2.2, YOU HAVE TO REENTER YOUR PASSWORD BECAUSE STARTING WITH 0.2.2 PASSWORD IS SAVED ENCRYPTED!!!
API KEY!!! IF ADAPTER STOPS WORKING PLEASE ALWAYS LOOK AT https://github.com/fungus75/ioBroker.zoe2/wiki BECAUSE RENAULT OFTEN CHANGES THEIR API KEY!!!
PLEASE NOTE: THIS ADAPTER USES THE SAME API AS THE MY RENAULT APP. BUT YOU MUST HAVE TO SET UP MY RENAULT APP TO WORK BEFORE USING THIS ADAPTER. i.e. on Android: https://play.google.com/store/apps/developer?id=RENAULT+SAS - if you want to use the old api, please use https://github.com/fungus75/ioBroker.zoe instead.
PLEASE NOTE: THIS IS A VERY EARLY STATE OF DEVELOPMENT, USE OF YOUR OWN RISK
PLEASE NOTE: AFTER ANY UPDATE OF THE ADAPTER GO TO SETUP-SCREEN, CHANGE SOMETHING SO THAT SAVE IS ENABLED, CHANGE IT BACK AND HIT SAVE!
If this adapter is not available on the ioBroker-Admin-View, please use the following command to install it (from command-line on your ioBroker-Server):
npm install https://github.com/fungus75/ioBroker.zoe2/tarball/master/
Or you can use the GitHub-Button (labeled: install from own URL) in the Adapter-View and enter this URL on the "other"-Tab. This can also be used to update to the current adapter-version:
https://github.com/fungus75/ioBroker.zoe2/tarball/master/
(if this url does not work, use https://github.com/fungus75/ioBroker.zoe2.git instead)
You can use the method to update the adapter to the most recent version.
After that the adapter should show up in the ioBroker-Admin-View.
- You have to set username, password and VIN as you have done in my renault app
- This locales ("Laenderversionen") currently do work: de_DE
- Maybe you need a My-Z.E.Connect or similar services from Renault to use this
- After saving it took around 15 minutes to create the objects (zoe.0 and so on)
- Read this parameters from Zoe:
- charge_level in percent
- charging as boolean
- plugged on as boolean
- remaining range in kilometer
- remaining time of charging
- calculated endPoint of charing (charging_finished_at)
- battery temperature
- external temperature (not that accurate)
- chargingPower
- batteryCapacity
- batteryAvailableEnergy
- gpsLatitude and gpsLongitude, works only on newer ZOEs
- Write this parameters:
- preconNow: starts precon/hvac (write true to that node, or press the button)
- chargeCancel: stops charging
- chargeEnable: enables charging
Control Charging:
With the two buttons chargeCancel and chargeEnable charging functionality can be controlled. If chargeCancel is pressed (or true is written to this parameter), the charging function is disabled. ZOE should not charge if the power cord is connected. On my 1st Gen ZOE this has no effect, so maybe it works on newer ZOEs?
As soon as chargeEnable is pressed (or true is written to this parameter), the charging function should work again.
How is this done: chargeEnable creates a charging-schedule that starts at the given hour you defined in the setup screen every day and lasts for 15 minutes. That looks as it is the shortest amount to be set. Turning charging off complete is not possible with the current API (or that parts of the current API that are known).
Some parameters only work on newer ZOEs.
- Zoe Phase 2 (Thanks Jack-RK-24)
- Zoe R210 (1st Generation, tested by fungus75)
- Zoe R90 (Thanks arturwolf)
Communication with ZOE or Renault-Services is done only during the interval-times with is 10 Minutes. So if you press preconNow or chargeNow, it will take up to the next interval to send it to ZOE and it will take up to the very next interval to get the status back.
The new ZOE API from Renault seems to be very lacy. That means that it only shows new values when there is something important. As far as I found out, the most important thing is battery-level. That means i.E. the external temperature is not updated, if the car stands at home. Only if i.E. the ZOE charges, the external temperature will be updated. If charging is finished, still no new update. When driving, the battery level gets lower and lower and therefore it should update very regulary.
https://michael-heck.net/index.php/elektromobilitaet/renault-zoe-ins-smarthome-integrieren, https://michael-heck.net/index.php/elektromobilitaet/renault-zoe-im-smarthome-neue-api-2020, https://muscatoxblog.blogspot.com/2019/07/delving-into-renaults-new-api.html, https://github.com/edent/Renault-Zoe-API, https://github.com/jamesremuscat/pyze and https://github.com/hacf-fr/renault-api for your great documentation and work.
- Fixes according to ioBroker-Bot notification
- BugFix Cockpit und Batterie json structure changed by Renault
- BugFix Cockpit und Batterie (thanks to @MCP-KC, @gik007)
- BugFix gps Location (thanks to @MCP-KC)
- API Timeout configurable via config-screen
- Improved stability
- Better error messages if kameronapikey changed
- Link to github-wiki added to admin-screen
- updated dependencies
- Replaced obsolete Request-Library by axios
- Code-Adjustments
- Code Adjustments, Error-Handling
- Store Password Encrypted (You have to reset it, if updating from older version)
- Code optimisation
- Adapter supports compact mode (required if adapter should be listed in official repo)
- bugfix gigya parameter changed #17
- added: kamereonapikey as setup parameter because it changed by Feb. 1st
- added: stopChargeWorkaroundHour: Because the API has no feature to stop charging, the stop-charging button starts scheduled charging to a very uncommon time. Configure the hour with that parameter
- bugfix #15
- bugfix #16
- bugfix #14
- added: setup-value useHVACApi, see #10
- changed: call charge-start API when "pressed" chargeEnable. Hopefully it helps on older ZOEs
- added chargeCancel and chargeEnable. See "controll charging"
- bugfix: #6, thanks to https://github.com/damack
- added: getLocation can be turned on/off in config (useful for older ZOEs which do not allow getLocation)
- bugfix: #2
- added: gpsLatitude
- added: gpsLongitude
- added: chargingPower
- added: batteryCapacity
- added: batteryAvailableEnergy
- changed: Using battery-status v2 API (supplies better values for newer ZOEs, thanks Jack-RK-24 for testing)
- added: config-paramter ignore API error (when set, the Adapter tries to ignore some API-Errors)
- added: preconNow => starts precon (hvac)
- added: totalMileage
- first working version for github
- reads out some values (as shown in the Features list)
- nonworking version, just to create initial repo on github
- code taken 1:1 from iobroker.zoe
- small adjustments, first access to the new renault api
The MIT License (MIT)
Copyright (c) 2024 RenePilz rene@pilz.cc
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.