Energy management device using MQTT (different payloads/information sent by the device on the same topic)

Hi! I don’t have dev knowledge and I’d like to add to the energy panel the information provided by a device in a MQTT topic. Someone here could you please give me a help how to configure it in configuration.yaml? (script to extract the values from different payloads/information sent by the device on the same topic)

#state_topic: “powermetering/device01”
#payload example 1 (phase, unit = V) → pha_a=127.8
#payload example 2 (phase, unit = V) → pha_b=126.9
#payload example 3 (phase, unit = V) → pha_c=129.1
#payload example 4 (consumption, unit = kWh) → con_a=0.01
#payload example 5 (consumption, unit = kWh) → con_b=0.56
#payload example 6 (consumption, unit = kWh) → con_c=4.87
#payload example 7 (current, unit = A) → cur_a=0.5
#payload example 8 (current, unit = A) → cur_b=0.4
#payload example 9 (current, unit = A) → cur_c=2.6
#payload example 10 (device temperature, unit = ‘°C’) → temp=43.7

For the consumption A, I tried the lines below in the configuration.yaml, but it did’nt work, probably because the payload has “=” e not “:”.

sensor:
  - platform: mqtt
    name: "Appliance consumption"
    unique_id: "appl-consumption-01"
    device_class: "energy"
    state_class: "measurement"
    unit_of_measurement: "kWh"
    state_topic: "powermetering/device01"
    value_template: "{{ value_json.con_a }}"