I have one WLED device that is giving me all kinds of trouble. It likes to crash when I attempt to use the light.turn_off/light.turn_on service, and it perpetually becomes unavailable as a result. It also prevents certain automations from completing when trying to use these services in an automation. Here are my error logs:
Error executing service: <ServiceCall light.turn_off (c:01GK8SS8ZGR9R47P8HA695NX5K): entity_id=['light.front_house_led_master'], params=>
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/wled/wled.py", line 178, in request
response = await self.session.request(
File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 559, in _request
await resp.start(conn)
File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 898, in start
message, payload = await protocol.read() # type: ignore[union-attr]
File "/usr/local/lib/python3.10/site-packages/aiohttp/streams.py", line 616, in read
await self._waiter
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/wled/wled.py", line 177, in request
async with async_timeout.timeout(self.request_timeout):
File "/usr/local/lib/python3.10/site-packages/async_timeout/__init__.py", line 129, in __aexit__
self._do_exit(exc_type)
File "/usr/local/lib/python3.10/site-packages/async_timeout/__init__.py", line 212, in _do_exit
raise asyncio.TimeoutError
asyncio.exceptions.TimeoutError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/wled/helpers.py", line 29, in handler
await func(self, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/wled/light.py", line 87, in async_turn_off
await self.coordinator.wled.master(on=False, transition=transition)
File "/usr/local/lib/python3.10/site-packages/wled/wled.py", line 344, in master
await self.request("/json/state", method="POST", data=state)
File "/usr/local/lib/python3.10/site-packages/backoff/_async.py", line 151, in retry
ret = await target(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/wled/wled.py", line 209, in request
raise WLEDConnectionTimeoutError(
wled.exceptions.WLEDConnectionTimeoutError: Timeout occurred while connecting to WLED device at 192.168.7.100
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1762, in catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1781, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 208, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 678, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 943, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 715, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 581, in async_handle_light_off_service
await light.async_turn_off(**filter_turn_off_params(light, params))
File "/usr/src/homeassistant/homeassistant/components/wled/helpers.py", line 35, in handler
raise HomeAssistantError("Error communicating with WLED API") from error
homeassistant.exceptions.HomeAssistantError: Error communicating with WLED API
Error fetching wled data: Invalid response from API: Timeout occurred while connecting to WLED device at 192.168.7.100
[139633338513056] unexpected end of data: line 1 column 2931 (char 2930)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 200, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1744, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1781, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 208, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 678, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 943, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 715, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 570, in async_handle_light_on_service
await light.async_turn_on(**filter_turn_on_params(light, params))
File "/usr/src/homeassistant/homeassistant/components/wled/helpers.py", line 29, in handler
await func(self, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/wled/light.py", line 97, in async_turn_on
await self.coordinator.wled.master(
File "/usr/local/lib/python3.10/site-packages/wled/wled.py", line 344, in master
await self.request("/json/state", method="POST", data=state)
File "/usr/local/lib/python3.10/site-packages/backoff/_async.py", line 151, in retry
ret = await target(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/wled/wled.py", line 197, in request
response_data = await response.json()
File "/usr/src/homeassistant/homeassistant/helpers/aiohttp_client.py", line 52, in json
return await super().json(*args, loads=loads, **kwargs)
File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 1119, in json
return loads(stripped.decode(encoding))
orjson.JSONDecodeError: unexpected end of data: line 1 column 2931 (char 2930)
:0:0 ResizeObserver loop completed with undelivered notifications.
What gives? Could I have a bad ESP866 board? My WiFi signal to the device is strong, -61dbm.