Converting Amps to Watt

Hi

I have a KNX actor which gets every 10 seconds the current in mA from the connected device. So far so good.
But how do I integrate the sensor now to the energy dashboard like other sensors which provide the counter of totals in kWh.

Thank you in advance.

Br
Martin

You need a template sensor to convert mA into W:

{{ states('sensor.knx_current')|float(0) * [voltage] * 1000 }}

where [voltage] is the supply voltage of the device; then a Riemann sum integration sensor to convert W into Wh / kWh: