How to create a power sensor

How would I go about creating a sensor if I have a boolean toggle on to show a constant power consumption?
The example is, I have a vibration sensor on my outdoor pool heater that shows a boolean toggle ON after sensing vibration for a while and turns it off after a while of not sensing. I’d like to make a sensor that shows a constant 2000W (not Wh or kWh) IF the boolean toggle is on. I don’t really see an appropriate helper for that. I would do config.yaml if I have to, but I’d rather not. Is this a template helper? A utility sensor (this looked like kWh or Wh though).?

The PowerCalc custom component can do this (and a ton more):

If not going that route, then a template sensor would be your best bet.

This worked like a charm! I’ve been doing some of these things by hand in yaml and it’s a real pain. Thanks!