Sonoff POW Power Usage Date using Espurna

Hello everyone

Iam using . Sonoff POW to control an Fridge using Alexa using (espurna) and it working great.
The only part i am struggling is to get the Power usage details to show up in HA.
This is how it is showing up in console of espurna

[360444] [MQTT] Sending Fridge/current => 0.000 (PID 1)
[360447] [MQTT] Sending Fridge/voltage => 243 (PID 1)
[360449] [MQTT] Sending Fridge/power => 0.000 (PID 1)
[360450] [MQTT] Sending Fridge/reactive => 0.000 (PID 1)
[360453] [MQTT] Sending Fridge/apparent => 0.000 (PID 1)
[360458] [MQTT] Sending Fridge/factor => 0 (PID 1)
[360463] [MQTT] Sending Fridge/energy => 0.000 (PID 1)

I do have an option to get a Json Paylod sent to MQTT as well which look like this

[840946] [MQTT] Sending Fridge/data => {“current”:“0.795”,“voltage”:“239”,“power”:“0.109”,“reactive”:“0.154”,“apparent”:“0.189”,“factor”:“58”,“energy”:“0.004”,“time”:“2018-05-16 10:27:27”,“mac”:“00:00:00:00:00:00”,“host”:“Fridge”,“ip”:“”,“id”:5008} (PID 1)

Found the answer
Just enter ha.config in the debug and you will see the configuration details

name: Fridge current
platform: mqtt
state_topic: Fridge/current
unit_of_measurement: “A”

  • name: Fridge energy
    platform: mqtt
    state_topic: Fridge/energy
    unit_of_measurement: “kWh”
  • name: Fridge factor
    platform: mqtt
    state_topic: Fridge/factor
    unit_of_measurement: “%”
  • name: Fridge apparent
    platform: mqtt
    state_topic: Fridge/apparent
    unit_of_measurement: “kW”
  • name: Fridge reactive
    platform: mqtt
    state_topic: Fridge/reactive
    unit_of_measurement: “kW”
  • name: Fridge power
    platform: mqtt
    state_topic: Fridge/power
    unit_of_measurement: “kW”
  • name: Fridge voltage
    platform: mqtt
    state_topic: Fridge/voltage
    unit_of_measurement: “V”