I use a Fibare Wall Plug that my TV is connected to that I use to see if the TV is on (and active). There is a power consumption threshold that decides if the TV is active or in standby mode.
I want to create a template sensor that accumulates the time this plug is over a certain power consumption to calculate weekly TV time. Any ideas?