Counting the time between On and Off time

Hi there, i like to lock my oil heater with Grafana. I run it at win pc, influx, VB and Homeassistant. Before i am using the discrete plug but it is not there anymopre. i need it only to show and count the On an Off times of my heating burner to look around the oil consumption. How can i do it? Thanks from Germany :slight_smile:

@info7bef Can you please post the query you used to generate the graph using the (old) Discrete plugin? From your description, it sounds like the State Timeline visualization would be best.