Need help for configuration of P1 Smart meter from Domoticz MQTT

Currently i am busy to migrate from Domoticz to HA.

I have configured that my domoticz is using mqqt and i have the output of my p1 meter:

{
    "Battery": 255,
    "LastUpdate": "2022-10-15 12:48:27",
    "RSSI": 12,
    "description": "",
    "dtype": "P1 Smart Meter",
    "hwid": "13",
    "id": "0001",
    "idx": 222,
    "name": "Energy",
    "nvalue": 0,
    "stype": "Energy",
    "svalue1": "22367057",
    "svalue2": "16287623",
    "svalue3": "962379",
    "svalue4": "2047987",
    "svalue5": "350",
    "svalue6": "0",
    "unit": 1
}

I have found out that the svalues are the info needed:
svalue1: Low tariff usage
svalue2: High tariff usage
svalue3: Low Tariff return
svalue4: High Tariff return
svalue5: Actual consumption
svalue6: Actual Return

But now i am stuck. don’t know how to continue.

Assuming that your Home Assistant is connected to the mqtt server, you can create a mqtt sensor for each value you want to extract:

mqtt:
  sensor:
    - state_topic: "your_topic_in_mqtt"
      name: "Low Tariff Usage"
      value_template: "{{ value_json.svalue1 }}"
      unique_id: "low_tariff_usage"

Thanks i get the info in HA. now only need to check what is what. But the first start there is.