Template kWh energy sensor from on/off switch and known wattage

I want to add my heater to the Energy dashboard, but as the plug it’s using doesn’t have energy measuring I thought maybe I could jerryrig something based on knowing if the smart switch is on (easy enough), and the wattage of the heater (2kW). I had a look at how other energy entites worked, but got a bit confused, so searched these here forums, but didn’t find anything (which I found surprising), maybe I’m using the wrong words?

Have a look at the Powecalc custom integration (available in HACS), it does just what you want


Oh that worked perfectly! Thank-you so much!

1 Like

You can go directly to the “Simple case” settings: