Which input_* can you use to store more than 255 characters and the value survives a restart?
I agree that input_* can substitute for global variables but a true global variable:
- Can have a type other than a string.
- Isn’t constrained to 255 characters.
- Survives a restart.
- Its value can be easily assigned and retrieved (without resorting to the use of python_script).
- Preferably has no associated Lovelace UI card (i.e. cannot be manually tweaked by a user, only via services).
Nothing I can think of satisfies all these requirements. Either something ought to be invented or an existing input_* enhanced to satisfy most of the requirements. Personally, an input_text supporting custom attributes (and services to set them) would go a long way to meeting all requirements.
As for an example, I mentioned one earlier: to store a list of all active timers. The list is needed on startup to restore all active timers. Currently, I’m using an input_text but 255 characters is a bit too small to handle many timers.