Home Assistant, Grafana/influxDB, and graphing binary switches

I use Grafana to look monitor long term the temps on Home Assistant. I know I’m probably being thick, but how do you graph an on/off - home/away switch in Grafana like Home Assistant does? Here’s an example of Home Assistant doing it:

I have multiple device trackers and I’m trying to tune my bayesian sensor I use for presence/location detection in Home Assistant. I’d like to actually graph each device tracker. I figure it’s obvious and I’m just blind to seeing it. Help?


I think the Discrete panel plugin solves what you want to do.