-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WLED 0.15.0-b4 on ESP02: Failed to perform the action light/turn_on. Invalid response from WLED API (however works OK) #124323
Comments
Hey there @frenck, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) wled documentation |
I checked and not a single one of the presets created on this device is using a custom palette, it's mostly Solid effect without a palette or default palette where one is used. |
Then there might be more than one reason for this error. But my logs are slightly different, and the occurrences counter increases every 10 seconds. Logger: homeassistant
Source: components/wled/select.py:180
First occurred: 22 августа 2024 г. в 23:09:36 (633 occurrences)
Last logged: 01:09:46
Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 258, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 453, in _async_refresh
self.async_update_listeners()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 168, in async_update_listeners
update_callback()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 533, in _handle_coordinator_update
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1005, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1130, in _async_write_ha_state
self.__async_calculate_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1067, in __async_calculate_state
state = self._stringify_state(available)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1011, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/select/__init__.py", line 145, in state
current_option = self.current_option
^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/wled/select.py", line 180, in current_option
return self.coordinator.data.palettes[
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 255 |
I looked at the api( core/homeassistant/components/wled/select.py Lines 178 to 182 in 4e94ce0
As I understand this property uses the palette id to find it in the palette list, but the WLED api doesn't have custom palettes in the palette list. |
Can confirm, disabling the palette entities (6 in my case since I have multiple segments) stops the error from occurring. |
I think it's also related to this issue wled/WLED#3841. |
I'm also hitting this issue. I don't have any custom pallets (I honestly have never created one since starting to use WLED). The work around of Disabling the pallet entity works for me too. |
Just updated WLED to 0.15.0-b5 which was released literally around the same time I made that last comment. I'm waiting for a few automations to run that wiggle around WLED and see if the issue comes back. |
Still the same issue for me on b5. |
Yup the issue has returned for me too. I'm not sure if it was from a restart of HA or something else. |
having the same problem with the b5 update and 0.14.4, the control works but the error appears, and my scripts can't finish because of the errors. edit: nothing to do with custom palettes.
I can't control anything in wled using scripts, but the direct control works fine. |
WLED 0.15.0-b7 I'm still seeing this issue crop up. It's intermittent. If I had to guess it's an issue with WLED dropping packets over wifi, and HA not handling that gracefully anymore. |
HA: 2024.11.0 confirm. upd: after reboot all palettes restored. automation broken now |
is there any hope for a fix? |
I'm not aware of a fix, but you can put |
Thank you. I'll try to do it. |
The problem
Not sure if this goes here or to WLED..
I'm running WLED 0.15.0-b4 on an ESP02 (Athom controller). The device works OK however generates errors on every action, both in the UI and in logs.
This is also my only device (rest are ESP32 based or run different WLED version) that was affected by #123506
A different instance of the same HW running WLED 0.14.4 is not affected by this issue, i.e. no errors, another device that runs the same WLED version but is ESP32 based is also OK.
What version of Home Assistant Core has the issue?
core-2024.8.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
wled
Link to integration documentation on our website
https://www.home-assistant.io/integrations/wled/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
Firmware: 0.15.0-b4
Hardware: esp02
The text was updated successfully, but these errors were encountered: