Shelly EM mA to A

I installed Shelly EM and use MQTT. Everything is working fine but I get the value for the energy in mA but I would like to get it in A. Do you know how to convert mA to A

I’ve configured a sensor in HA like this:

- platform: mqtt
  name: Home total amp
  state_topic: "shellies/shellyem-B9E274/emeter/0/energy"
  unit_of_measurement: mA
  qos: 1

The energy is in Watt minutes (Wm) not miliAmps (mA).

https://shelly-api-docs.shelly.cloud/#em-

If you want the current (in Amps) you will have to divide the power reading by the voltage reading.

Thank you for the information :slight_smile: