hacf-fr / renault-api

https://readthedocs.org/projects/renault-api/
MIT License
107 stars 39 forks source link

Force refresh for HVAC, Battery and location #605

Open jumpjack opened 2 years ago

jumpjack commented 2 years ago

There are some endpoints available to force refresh of data (no payload needed):

epenet commented 2 years ago

These will be nice to have as buttons in Home Assistant. Can you provide corresponding PRs?

jumpjack commented 2 years ago

Sorry I don't know python, I am a javascript programmer.

epenet commented 2 years ago

Python is really easy to learn - I wasn't a python developer either, until I started using Home Assistant.

lnussbaum commented 1 year ago

There are more commands listed in https://github.com/mitchellrj/kamereon-python/blob/master/kamereon/kamereon.py (even if some of them might apply only to Nissan, not Renault). That file also provides the parameters to use.

For battery-status, here is a request that works: renault-api --debug http post /....VIN/actions/refresh-battery-status '{"data": {"type": "RefreshBatteryStatus"}}' For Hvac: renault-api --debug http post /....VIN/actions/refresh-hvac-status '{"data": {"type": "RefreshHvacStatus"}}' For location: renault-api --debug http post /....VIN/actions/refresh-location '{"data": {"type": "RefreshLocation"}}'