audiconnect / audi_connect_ha

Adds an audi connect integration to home assistant
MIT License
238 stars 97 forks source link

Status of audiconnect.execute_vehicle_action and audiconnect.refresh_vehicle_data services #267

Closed DutchKillerbee closed 6 months ago

DutchKillerbee commented 8 months ago

Am I right that the services audiconnect.execute_vehicle_action (start_charger stop_charger) and the audiconnect.refresh_vehicle_data services are not working (yet) after switching to the new API (march 2024)? Thanks

Ingrimmsch93 commented 8 months ago

i can not start and stop charging, but refresh is also not working for me. This is an open issue :)

t0bias-r commented 8 months ago

same like #262

guidokieboom commented 8 months ago

@t0bias-r maybe following helps to find solution. Two days ago audiconnect.execute_vehicle_action start-climatisation worked well for me. This was with the t0bias-r branch. Yesterday when I removed this from HACS, rebooted and installed the arjenvrh branch (f4bf375) it did not work anymore. I used a switch in my configuration.yaml

image
switch:
  - platform: template
    switches:
      audiclimatise:
        friendly_name: "Audi Climatisation"
        value_template: "{{ is_state('sensor.audipreheat', 'on') }}"
        turn_on:
          service: audiconnect.execute_vehicle_action
          data:
            vin: wauzzzxxxxxxxxxxx
            action: start_climatisation
        turn_off:
          service: audiconnect.execute_vehicle_action
          data:
            vin: wauzzzxxxxxxxxxxx
            action: start_climatisation

edit: it works again (couple of days later)... i.e. the service call... also the switch does work (starting climatisation)... what still does not work is the feedback (the state is not refreshed); this is an issue referenced in several other issues.

Kolbi commented 8 months ago

I created a fix for the Services in general: https://github.com/audiconnect/audi_connect_ha/pull/281

Now we need to figure out which services are still working :)

DutchKillerbee commented 8 months ago

For my understanding: The new Audi api doesn't have any service calls end points? Or we don't know them (yet).

guidokieboom commented 8 months ago

I'm not knowledgeable about the API use, but... Few days after my above post that audiconnect.execute_vehicle_action start_climatisation did not work, it started to work again (with the yaml config as I posted). I did not install any update of fix. The other one (refresh vehicle data) still does not work for me.

DutchKillerbee commented 8 months ago

@guidokieboom Are you using start_climatisation or start-climatisation

guidokieboom commented 8 months ago

@guidokieboom Are you using start_climatisation or start-climatisation

I'm using start_climatisation as the action (just checked my configuration : above copy of yaml is still working for me). I see that I made a type-o above (now edited/corrected). Apologies for confusion. Maybe following helps as well. From Developer Tools, Services you can find:

image
DutchKillerbee commented 8 months ago

@Kolbi @guidokieboom I can confirm that start_climatisation and stop_climatisation works (for my Q3 tfsi-e) Only the climatisation status is not updated after calling the service.. Probably this is due the fact that the audiconnect.refresh_vehicle_data service doesn't work (yet)

coreywillwhat commented 7 months ago

Tracking refresh_vehicle_data under #330 . HA entity updates post action should be resolved by #327 .

coreywillwhat commented 6 months ago

227 for tracking the charger actions not working.

Climate control actions should be working, but please report if you run into any other issues.