How to convert mA to Watt

My sensor
switching actuator gives me a mA output DTP 9.021,
How can I convert this to Watts. I tried this code but it is an attempt without knowing how it works

  sensor:
    - name: "forno"
      state_address: "4/5/22"
      type: curr
      sync_state: init
      
    - platform: template
      sensors:
      dsmr_in_watts:
        friendly_name: "Forno W"
        unit_of_measurement: "W"
        value_template: "{{ states('sensor.forno_2')|float * 1000 }}"
      

Immagine 2023-01-08 134519

That would depend on the voltage supplied…

Voltage is energy per unit charge. Current is the rate of electric charges moving through a conductor. Electrical power is the product of voltage and current.

Calculate Power from Voltage & Current (P = V * I)

my problem is not the formula, but how to set in home assistant.
voltage is 220v

This is the ‘old’ way of using templates, and although you can get it to work, still would suggest to take the new way.
and then you are already on the right path, type this into Developer Tools > Templates and see if it works

{{ states('sensor.forno_2')|float(0) *  220000 }}

Template - Home Assistant (home-assistant.io)

You can not define a template sensor in a knx: sensor: branch of your config. Move it out of knx:.

Yes work in Developer Tools > Templates
but I don’t understand what is missing.

sorry but i don’t understand what i should do

You have a knx: key in your config.
Don’t put template sensor yaml under that.