Heatmap for string values

I have a series of data with timestamps where the value is a string. It represents when the camera is online/offline/in other states.
In Home assistant, I can use a history bar to display the state of the entity in the last x hours. I would like to do the same in grafana and I was thinking about a heatmap or something similar. Is there any way to achieve this?

Have you taken a look at a State Timeline visualization?