I have 11 Zigbee thermostats installed which are added via Zigbee2MQTT.
For one of them I get an error every 80 milliseconds in the log:
2023-02-06 21:41:32.000 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback MQTT._mqtt_handle_message(<paho.mqtt.cl...xffff800673e0>) Traceback (most recent call last): File "/usr/local/lib/python3.10/asyncio/events.py", line 80, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/components/mqtt/client.py", line 693, in _mqtt_handle_message self._mqtt_data.state_write_requests.process_write_state_requests() File "/usr/src/homeassistant/homeassistant/components/mqtt/models.py", line 267, in process_write_state_requests entity.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 566, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 683, in _async_write_ha_state self.hass.states.async_set( File "/usr/src/homeassistant/homeassistant/core.py", line 1512, in async_set state = State( File "/usr/src/homeassistant/homeassistant/core.py", line 1144, in __init__ raise InvalidStateError( homeassistant.exceptions.InvalidStateError: Invalid state encountered for entity ID: sensor.thermostat_kinderzimmer_jan_program. State max length is 255 characters.
I compared the MQTT message for this thermostat with another one, and except for the temperature value they are identical, specifically the length is the same.
So I’m not sure why it is complaining about this one.
It also seems to work just fine.
I’m not sure how long I have this error now.
I was only looking at the logs because since the 2023.2.2 update the system runs only for a couple of hours until Home Assitant gets unresponsive and I have to unplug the hardware.