audi_connect_ha icon indicating copy to clipboard operation
audi_connect_ha copied to clipboard

Set climate not working

Open rklueber opened this issue 4 years ago • 9 comments

Hello,

none of the below works to turn on the climate in my A7 via HA. When I turn it on in the Audi app the status of sensor.xxx_climatisation_state changes. But setting it from HA is not working?

Any idea how I can debug this?

Locking/Unlocking the doors works.

  audi_service_climatisation:
    sequence:
      - service: audiconnect.execute_vehicle_action
        data:
          vin: !secret vin
          action: 'start_climatisation'

  audi_service_preheater:
    sequence:
      - service: audiconnect.execute_vehicle_action
        data:
          vin: !secret vin
          action: 'start_preheater'

  audi_service_window_heating:
    sequence:
      - service: audiconnect.execute_vehicle_action
        data:
          vin: !secret vin
          action: 'start_window_heating'

rklueber avatar Apr 17 '21 18:04 rklueber

I just updated the integration as most actions were not working, can you install the update and try if it works now?

arjenvrh avatar Jun 15 '21 12:06 arjenvrh

Same here, even after last update.

Jul 09 16:13:06 diva hass/b60b35f1121f[1137]: 2021-07-09 16:13:06 ERROR (MainThread) [custom_components.audiconnect.util] Unable to start climatisation of vehicle wauzzzXXX: Cannot start climatisation, return code 'failed'

lock/unlock works since last update.

the myaudi app offers to set the temp for the AC - maybe parameters missing?

fhloston avatar Jul 09 '21 14:07 fhloston

I now also get the same error. Both on a new A6 TFSIe and a Q3 TFSIe. It works from the Audi app, and "stop climatisation" does work. So it would seem that the "start" function is indeed missing some parameters.

EDIT: typo

tnagels avatar Oct 19 '21 08:10 tnagels

I have a 2019 e-tron. I noticed that only stop_climatisation worked while start—climatisation did not. The action was queued by the API but rejected by the car? I added more settings to the payload and then it started working:

async def set_climatisation(self, vin: str, start: bool):
        if start:
            data = '{"action": { "type": "startClimatisation", "settings": { "targetTemperature": 2940,            "climatisationWithoutHVpower": true,            "heaterSource": "electric", "climaterElementSettings": {"isClimatisationAtUnlock": false, "isMirrorHeatingEnabled": true, } }  }}'
        else:
            data = '{"action": { "type": "stopClimatisation" } }'

        headers = self._get_vehicle_action_header(
            'application/json', None
        )

arnerek avatar Feb 09 '22 17:02 arnerek

@arnerek This seems logical. In earlier tests @arjenvrh did on my eTron, we had the exact same issue: API works but car rejected the request. Also, I see in the app that you can set the temperature, and that was not implemented.

Could you maybe make a pull request to get this merged in the code?

tnagels avatar Feb 10 '22 10:02 tnagels

I made a pull request here: https://github.com/arjenvrh/audi_connect_ha/pull/119

arnerek avatar Feb 10 '22 18:02 arnerek

Before I open a new thread, I thought I'd ask this group... I finally found my S-Pin (2021 A6) and got the integration installed in HA, but I am not clear on where/how to put the code like the sequences above into Home Assistant. The FIRST thing I want to be able to do is lock/unlock the car from HA. Can this be done from a button with a call service tap action? Do I need to define a sequence in configuration.yaml first?

Thank you!

LCMilstein avatar Feb 22 '22 16:02 LCMilstein

Before I open a new thread, I thought I'd ask this group... I finally found my S-Pin (2021 A6) and got the integration installed in HA, but I am not clear on where/how to put the code like the sequences above into Home Assistant. The FIRST thing I want to be able to do is lock/unlock the car from HA. Can this be done from a button with a call service tap action? Do I need to define a sequence in configuration.yaml first?

Thank you!

Where did you find the s-pin?

woopstar avatar Oct 05 '22 13:10 woopstar

Where did you find the s-pin?

For me it was the 4-digit pin i set up in the myAudi app.

oleg-d avatar Nov 12 '23 08:11 oleg-d

This issue appears resolved 2 years ago. If an issue persists with start_climate_control or set_climatisation please open a new issue.

coreywillwhat avatar Apr 08 '24 22:04 coreywillwhat