Open jumpjack opened 2 years ago
These will be nice to have as buttons in Home Assistant. Can you provide corresponding PRs?
Sorry I don't know python, I am a javascript programmer.
Python is really easy to learn - I wasn't a python developer either, until I started using Home Assistant.
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"}}'
There are some endpoints available to force refresh of data (no payload needed):