I’ve multiple errors trying to use tesla_custom.api
to change CHARGING_AMPS
It seems to be related to json. Does anyone have the same problem?
And I’ve also an error in decoding the response from the device:
Error fetching tesla-wallconnector data: Could not fetch data from Tesla WallConnector at 192.168.2.2: Error decoding response from wall connector after adding closing object character
Logger: homeassistant.components.automation.tesla_change_amps
Source: custom_components/tesla_custom/services.py:112
Integration: Automation (documentation, issues)
First occurred: 1:03:15 PM (1025 occurrences)
Last logged: 8:39:15 PM
Tesla Change Amps: Error executing script. Unexpected error for call_service at pos 1:
While executing automation automation.tesla_change_amps
Tesla Change Amps: If at step 1: Error executing script. Unexpected error for call_service at pos 1:
Tesla Change Amps: Error executing script. Unexpected error for if at pos 1:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 447, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 680, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1713, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/config/custom_components/tesla_custom/services.py", line 56, in async_call_tesla_service
await api(service_call)
File "/config/custom_components/tesla_custom/services.py", line 112, in api
return await controller.api(name=command, path_vars=path_vars, **parameters)
File "/usr/local/lib/python3.10/site-packages/teslajsonpy/controller.py", line 183, in wake_up
result = await wrapped(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/teslajsonpy/controller.py", line 1803, in api
return await self.__connection.post(
File "/usr/local/lib/python3.10/site-packages/teslajsonpy/connection.py", line 164, in post
return await self.__open(url, method=method, headers=self.head, data=data)
File "/usr/local/lib/python3.10/site-packages/teslajsonpy/connection.py", line 213, in __open
raise TeslaException(resp.status_code)
teslajsonpy.exceptions.TeslaException