Skip to content

Errors in Home assistant integration on ESP8266 (possibly caused by /json response buffer overflow) #5674

@mikje

Description

@mikje

What happened?

In the home assistant logboek there are lots of errors

To Reproduce Bug

integrate in home assistant

Expected Behavior

no errors in the logbook

Install Method

Binary from WLED.me

What version of WLED?

0.16

Which microcontroller/board are you seeing the problem on?

ESP8266

Relevant log/trace output

Logger: homeassistant.components.wled
Bron: helpers/update_coordinator.py:201
Integratie: WLED (documentatie, problemen)
Eerst voorgekomen: 19:10:17 (3060 gebeurtenissen)
Laatst gelogd: 20:05:38

Unexpected error updating listener 140054452849152 for wled
Unexpected error updating listener 140054452848576 for wled
Unexpected error updating listener 140054452854848 for wled
Unexpected error updating listener 140054452856640 for wled
Unexpected error updating listener 140054452858432 for wled
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 201, in async_update_listeners
    update_callback()
    ~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 663, in _handle_coordinator_update
    self.async_write_ha_state()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1058, in async_write_ha_state
    self._async_write_ha_state()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1208, in _async_write_ha_state
    ) = self.__async_calculate_state()
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1116, in __async_calculate_state
    if state_attributes := self.state_attributes:
                           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 1000, in state_attributes
    effect = self.effect
             ^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/wled/light.py", line 197, in effect
    return self.coordinator.data.effects[
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        int(self.coordinator.data.state.segments[self._segment].effect_id)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ].name
    ^
KeyError: 88

Anything else?

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    HomeAssistantbugneeds investigationThe bug has not yet been reproduced by me. Analysis or more details are needed.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions