Set climate not working
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'
I just updated the integration as most actions were not working, can you install the update and try if it works now?
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?
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
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 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?
I made a pull request here: https://github.com/arjenvrh/audi_connect_ha/pull/119
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!
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?
Where did you find the s-pin?
For me it was the 4-digit pin i set up in the myAudi app.
This issue appears resolved 2 years ago. If an issue persists with start_climate_control or set_climatisation please open a new issue.