Farfar / homeassistant-seatconnect

Seat Connect - A home assistant plugin to add integration with your car
Apache License 2.0
61 stars 15 forks source link

Errors writing parameters to Seat vehicle #8

Closed tulkarxxx closed 2 years ago

tulkarxxx commented 2 years ago

Hi, app is reading perfectly all values, I have an electric car and I want to modify charging timers using some logic, but even manually when I try to change a parameter I get an error, picture attached.

error

tofferlicious commented 2 years ago

Hi, I get the same error. This is the error log if someone is interested:

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 1492, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1527, 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 843, 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/seatconnect/switch.py", line 57, in async_turn_on await self.instrument.turn_on() File "/usr/local/lib/python3.9/site-packages/seatconnect/dashboard.py", line 698, in turn_on await self.vehicle.set_timer_active(id=1, action="on") File "/usr/local/lib/python3.9/site-packages/seatconnect/vehicle.py", line 398, in set_timer_active return await self._set_timers(data) File "/usr/local/lib/python3.9/site-packages/seatconnect/vehicle.py", line 529, in _set_timers raise SeatException('Failed to set departure timer schedule') seatconnect.exceptions.SeatException: Failed to set departure timer schedule

Farfar commented 2 years ago

This is most probably due to invalid request format. Either way I won't be able to fix this since I don't have a Seat myself to test on.

Farfar commented 2 years ago

I need more complete log than this to troubleshoot. Please include a few rows prior as well. There should at least be one warning row before the traceback.

tofferlicious commented 2 years ago

I need more complete log than this to troubleshoot. Please include a few rows prior as well. There should at least be one warning row before the traceback.

Logger: seatconnect.vehicle Source: /usr/local/lib/python3.9/site-packages/seatconnect/vehicle.py:527 First occurred: 14:42:56 (1 occurrences) Last logged: 14:42:56

Failed to execute departure timer request - getDeparturetimer() missing 1 required positional argument: 'baseurl'

Farfar commented 2 years ago

Please test latest updated release and report back. I checked the code and this error should not appear, not in latest code at least.

tofferlicious commented 2 years ago

You are right, now it works! Thanks 👍

Farfar commented 2 years ago

Great! Closing issue.