Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force refresh for HVAC, Battery and location #605

Open
jumpjack opened this issue Apr 28, 2022 · 4 comments
Open

Force refresh for HVAC, Battery and location #605

jumpjack opened this issue Apr 28, 2022 · 4 comments

Comments

@jumpjack
Copy link

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

  • actions/refresh-battery-status
  • actions/refresh-hvac-status
  • actions/refresh-location
@epenet
Copy link
Collaborator

epenet commented Apr 28, 2022

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

@jumpjack
Copy link
Author

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

@jumpjack jumpjack changed the title Force refrsh for HVAC, Battery and location Force refresh for HVAC, Battery and location Apr 28, 2022
@epenet
Copy link
Collaborator

epenet commented Apr 28, 2022

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

@lnussbaum
Copy link

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"}}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants