How to display the historic state of a string item?

Hello, I’m using openHAB 4.1.2 and have a thing that represents my utility meter
That thing provides me with various channels, one of which is the time period I’m currently billed for.
This is a string value which can take multiple values and while I can see the current value just fine on the linked item page, there is no “Analyze” button for it like there is for numerical values.

Would there be a way to do such a display anyway?
I would imagine it could be rectangular areas of colors that all have the same “height” but a different color depending on the name of the period.
Something like this for instance:

Is this already possible?

As far as I know you cannot chart Strings.

To achieve something like that the best approach I can think of is to use a switch Item. You can toggle the Switch when the time period changes. Then you can get a color shaded area when the Switch is ON and the lack of the shaded area when it’s OFF.

Yes, but that’ll only cover two possible values where I have at least three values here.

I’ll try to figure something out.

Convert them to numerical values 0

1 Like