hacf-fr / renault-api

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

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

Open remo-tech opened 1 month ago

remo-tech commented 1 month 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 month ago

Are you able to provide a PR?

remo-tech commented 1 month 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 ...

jumpjack commented 2 weeks ago

it has always been there, but there is a news: since a couple of week the iOS app offers the capability of turning on lights and horn! But I can't provide any detail, I have an android phone.