Measuring & calculation power consumption with a self created helper (Ampere x Volt x phases)

Hi

Does anybody have an idea how I cool measure the power from a device (car), when I have only the entity “Ampere” and an entity, which shows me if the car is charging or not. My idea is, that I create a helper to calculate the consumption in kWh with this calculation: 16A x 230V x 3 Phases = 11 kWh).

Does anyone have an idea how I can create such an helper or is there another option to do this?

Thanks & best Regards
Stefan

That gives you power (W or kW) not energy (Wh or kWh).

You can use a template sensor to calculate the power. Then use the integral integration to convert this to energy.

Right, this is the power calculation, not energy. But easy to convert with an integral sensor.

I found the way to create a Sensor-Template, but no idea how to calculate. There must be a calculation like: “name of the entity with Ampere” * 230 * 3

Best Regards,
Stefan

Also

https://jinja.palletsprojects.com/en/stable/

1 Like