Visualisation of Switch Items

Dear people,

I would like to plot a graph for Items which represent a Switch. I would like to achieve something like “Heating” in the following screenshot (right side “Operation mode” or “Indoor Operation”).

If this is too complicated I just want do analyze via widget. Is this possible? I tried the standard actions in widgets, but the values for ON/OFF are ignored. Thanks in advance.

Best regards,