WTH is 255 the max length for states?

There are so many times where I run into problems trying to create a sensor because the state object is limited to 255 characters. There are plenty of instances where this is far too few. Especially with string and rest sensors.

This is where we generally have a relatively short state, and make use of that you can basically store whatever length you want in the attributes.

1 Like

Agree text input restricted to 256 chars even twitter is 280 chars

but this cant handle long urls

Currently there is a workaround: keep long values inside an attribute (which seems to be not limited to 255 chars). This is what I do when keeping long json data.

2 Likes

I’m relatively new to Home Assistant, would you mind giving me pointers or direction as to how to do this? I’ve tried searching on my own and cant really figure this out …

2 Likes