hacf-fr / renault-api

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

Add a way to Start Horn and/or Lights #1354

Open remo-tech opened 1 week ago

remo-tech commented 1 week ago

While trying to find a way to start a charge, I have found a new endpoint which allows to start horn and/or lights :

renault-api --log http  post-file "/commerce/v1/accounts/{account_id}/kamereon/kca/car-adapter/v1/cars/{vin}/actions/horn-lights?country=FR" .\horn_request.json

And the request :

For Horn :

{"data":{"type":"HornLights","attributes":{"action":"start","target":"horn"}}}

For Light :

{"data":{"type":"HornLights","attributes":{"action":"start","target":"lights"}}}

It works well on my Scenic E-TECH.

Would be gratefull if this could be added into HA

epenet commented 1 week ago

Are you able to provide a PR?

remo-tech commented 1 week ago

Not in short term sorry. I am not enough confident in the project yet to be able to add a new feature in the correct way. But maybe in a distant future if nobody can do it quicker ...