Is it possible to generate a table that contains sessions of a device state?

In the discrete panel, I can plot the ON/OFF state of an outlet-switch. This outlet stores on/off state, along with current energy consumption. The discrete panel will show when this outlet is on, and if I click on the sections where it is ON, I can get a more detailed view of that timeframe.

My question is can Grafana generate a table (or something similar) that only displays the ON states (with start/stop times as text), and clicking on each session will open up details on power consumption/other metrics? I understand if it is not something typical for Grafana, since everything I have seen is plotting something against continuous time.

Thank you.