audi_connect_ha icon indicating copy to clipboard operation
audi_connect_ha copied to clipboard

Status of audiconnect.execute_vehicle_action and audiconnect.refresh_vehicle_data services

Open DutchKillerbee opened this issue 1 year ago • 9 comments

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

DutchKillerbee avatar Mar 07 '24 19:03 DutchKillerbee

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

Ingrimmsch93 avatar Mar 07 '24 20:03 Ingrimmsch93

same like #262

t0bias-r avatar Mar 07 '24 20:03 t0bias-r

@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.

guidokieboom avatar Mar 08 '24 06:03 guidokieboom

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 :)

Kolbi avatar Mar 11 '24 08:03 Kolbi

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

DutchKillerbee avatar Mar 12 '24 17:03 DutchKillerbee

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.

guidokieboom avatar Mar 12 '24 18:03 guidokieboom

@guidokieboom Are you using start_climatisation or start-climatisation

DutchKillerbee avatar Mar 12 '24 22:03 DutchKillerbee

@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

guidokieboom avatar Mar 13 '24 06:03 guidokieboom

@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)

DutchKillerbee avatar Mar 13 '24 20:03 DutchKillerbee

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

coreywillwhat avatar Apr 04 '24 16:04 coreywillwhat

#227 for tracking the charger actions not working. Climate control actions should be working, but please report if you run into any other issues.

coreywillwhat avatar Apr 17 '24 13:04 coreywillwhat