Count up issue(?)

hi,

I am looking for a solution to achieve the following:
I have a switch.klima_hauptschalter and want to see on my dashboard the “on” time.

is there a simple way to have an entity / automation to see when the switch is turned on and will be 0 if off?

This could help:
History Stats - Home Assistant

1 Like