Error with no entity

hi. anyone can tell me how to fix it? there is no entity to look for.

Logger: homeassistant.helpers.entity
Source: core.py:180
First occurred: 08:16:09 (90 occurrences)
Last logged: 08:30:39

Failed to set state, fall back to unknown
Traceback (most recent call last):
  File "/lsiopy/lib/python3.11/site-packages/homeassistant/helpers/entity.py", line 856, in _async_write_ha_state
    hass.states.async_set(
  File "/lsiopy/lib/python3.11/site-packages/homeassistant/core.py", line 1645, in async_set
    state = State(
            ^^^^^^
  File "/lsiopy/lib/python3.11/site-packages/homeassistant/core.py", line 1264, in __init__
    validate_state(state)
  File "/lsiopy/lib/python3.11/site-packages/homeassistant/core.py", line 180, in validate_state
    raise InvalidStateError(
homeassistant.exceptions.InvalidStateError: Invalid state with length 280. State max length is 255 characters.

its flood my logbook.
Ha in docker container.

You have a helper that is trying to set a state longer than 255 characters. Have a look under Developer / States: the troublesome entity will have a state of unknown.

At a guess, it’ll be something like an input_text helper that you’re populating by pulling data from somewhere.

but i have no any helpers.

Look under Devices and Services / Helpers — is that an empty list?

I’ve seen this error in another thread lately. Not sure if a solution was found. At least you know you’re not the only one though

It could be a sensor.

I’m pretty sure this:

Refers to a backend method rather than a HA helper entity. There’s a list of them here: Home Assistant Developer Docs | Home Assistant Developer Docs

It is confusing that helpers are named very similarly to helper entities.

1 Like

Yes:

Ah, I may have been misled by homeassistant/helpers/entity.py — that doesn’t refer to an HA helper, does it?

Nope.

Check your logfiles , to see whether there is more “info” to go on, dont just look in the logbook

PS: also try to “think back” whether when it first occurred etc. I.E did you remove an integration(but not it’s entities , etc )

#FIXED

TY all for help.
It was problem with rest to glueteun api settings.:

“* HTTP GET to /v1/openvpn/settings to obtain the settings used by Openvpn in a JSON format”.

Deleted it.