Hi. I have a current sensitive relay that (via and ESP32 / ESPHome) tells HA if a heater is on or off.
I know the power of the heater in kW. I would like to add the heater as a “Monitored individual device” in the Energy Dashboard.
How do I create a new sensor that will use the heater state (on / off) + known power and calculate kWh as a ‘fake’ sensor the Energy Dashboard can use?
One issue you may have is that the Riemann sum integral is only calculated when the power sensor updates. Not sure if there is a way to force regular updates in powercalc.
Powercalc will force regular updates (every 10 minutes) even if the value doesn’t change. You can even change that with force_update_frequency option.
No need to create a riemann integral sensor manually. Powercalc will do so automatically for each virtual power sensor by default.