skodaconnect / homeassistant-skodaconnect

Skoda Connect - A home assistant plugin to add integration with your car
Apache License 2.0
222 stars 28 forks source link

Enyaq climatisation #79

Closed jmkraan74 closed 2 years ago

jmkraan74 commented 2 years ago

Having a bit of a struggle with switching the Enyaq's climitasation on (or off) it starts with a "bad requst" and then I get an error "invalid or no response" after that when I switch it off again HA says "air conditioning action is already in progress" and the Skoda app on my phone tells me "core_push_body_result_19" as a notification

Bad request: `Logger: skodaconnect.connection Source: /usr/local/lib/python3.9/site-packages/skodaconnect/connection.py:581 First occurred: 12:10:31 (1 occurrences) Last logged: 12:10:31

Bad request`

Invalid or no return:

`Logger: homeassistant.components.websocket_api.http.connection Source: custom_components/skodaconnect/switch.py:57 Integration: Home Assistant WebSocket API (documentation, issues) First occurred: 12:10:31 (1 occurrences) Last logged: 12:10:31

[547540829760] Invalid or no response Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 185, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1491, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1526, in _execute_service await handler.job.target(service_call) File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service await self.hass.helpers.service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 658, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 830, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 695, in _handle_entity_call await result File "/config/custom_components/skodaconnect/switch.py", line 57, in async_turn_on await self.instrument.turn_on() File "/usr/local/lib/python3.9/site-packages/skodaconnect/dashboard.py", line 480, in turn_on await self.vehicle.set_climatisation(mode = 'electric') File "/usr/local/lib/python3.9/site-packages/skodaconnect/vehicle.py", line 780, in set_climatisation return await self._set_aircon(data) File "/usr/local/lib/python3.9/site-packages/skodaconnect/vehicle.py", line 845, in _set_aircon response = await self._connection.setAirConditioning(self.vin, data) File "/usr/local/lib/python3.9/site-packages/skodaconnect/connection.py", line 1462, in setAirConditioning return await self._setSkodaAPI('air-conditioning', vin, json = data) File "/usr/local/lib/python3.9/site-packages/skodaconnect/connection.py", line 1450, in _setSkodaAPI raise SkodaException('Invalid or no response') skodaconnect.exceptions.SkodaException: Invalid or no response `

daranto commented 2 years ago

The new version is still not working. Here is the error message:

'airConditioningSettings' Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 185, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1491, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1526, in _execute_service await handler.job.target(service_call) File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service await self.hass.helpers.service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 658, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 830, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 695, in _handle_entity_call await result File "/config/custom_components/skodaconnect/switch.py", line 57, in async_turn_on await self.instrument.turn_on() File "/usr/local/lib/python3.9/site-packages/skodaconnect/dashboard.py", line 478, in turn_on await self.vehicle.set_climatisation(mode = 'electric') File "/usr/local/lib/python3.9/site-packages/skodaconnect/vehicle.py", line 798, in set_climatisation data['airConditioningSettings']['targetTemperatureInKelvin'] = temp + 273.15 KeyError: 'airConditioningSettings'

Farfar commented 2 years ago

The new version is still not working. Here is the error message:

'airConditioningSettings' Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 185, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1491, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1526, in _execute_service await handler.job.target(service_call) File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service await self.hass.helpers.service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 658, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 830, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 695, in _handle_entity_call await result File "/config/custom_components/skodaconnect/switch.py", line 57, in async_turn_on await self.instrument.turn_on() File "/usr/local/lib/python3.9/site-packages/skodaconnect/dashboard.py", line 478, in turn_on await self.vehicle.set_climatisation(mode = 'electric') File "/usr/local/lib/python3.9/site-packages/skodaconnect/vehicle.py", line 798, in set_climatisation data['airConditioningSettings']['targetTemperatureInKelvin'] = temp + 273.15 KeyError: 'airConditioningSettings'

Can you provide full debug logs? I would need the log entries leading up to this error. Looks like the data structure for the climatisation settings might have changed.

vBrolin commented 2 years ago

There was a new app version released 2 days ago, there are probably changes to the heating in that version. From what I've read, since this version users have been able to turn in seat heating (individual seats) and window heating, with some claiming that has worked before. Have also seen people reporting that the could reduce the charge speed from the app now.

hkraal commented 2 years ago

Have also seen people reporting that the could reduce the charge speed from the app now.

This was already possible in the app but hidden in a top right ... menu which was kind of hard to find

Farfar commented 2 years ago

There was a new app version released 2 days ago, there are probably changes to the heating in that version. From what I've read, since this version users have been able to turn in seat heating (individual seats) and window heating, with some claiming that has worked before. Have also seen people reporting that the could reduce the charge speed from the app now.

Set charge current should have been working in the integration for quite some time now, as well as window heating. The latest release should also have solved the issues with starting climatisation. I will look into enabling seat heating support.