GoodWe USB Logger- use JSON data from the inverter

Hi there.

I’m stuck in the process to get data from my inverter an use it in HA. I need to understand this JSON data from the buttom.

From MQTT Explore I can read the data but I don’t now if is recieved correctly.

Screen Shot 2021-01-10 at 10.58.16

All explanations says that it should be in home/goodwe/xxxx but my tonic is just goodwe? Is this right?

The MQTT message from

goodwe/13000SSU12700528/data

looks like this.

{
    "address": 11,
    "addressConfirmed": true,
    "inverterType": 1,
    "isOnline": true,
    "lastSeen": 1610272800307,
    "runningInfo": {
        "eDay": 0.1,
        "eTotal": 25499.5,
        "errorMessage": [],
        "fac1": 49.99,
        "fac2": 0.0,
        "fac3": 0.0,
        "function": 129,
        "gcfiFault": 0,
        "hTotal": 33475,
        "iac1": 0.5,
        "iac2": 0.0,
        "iac3": 0.0,
        "ipv1": 0.4,
        "ipv2": 0.0,
        "line1FFault": 0.0,
        "line1VFault": 0.0,
        "line2FFault": 0.0,
        "line2VFault": 0.0,
        "line3FFault": 0.0,
        "line3VFault": 0.0,
        "pac": 82,
        "pv1Fault": 0.0,
        "pv2Fault": 0.0,
        "temp": 24.4,
        "tempFault": 0.0,
        "timestamp": "20210110110000",
        "vac1": 226.8,
        "vac2": 0.0,
        "vac3": 0.0,
        "vpv1": 174.6,
        "vpv2": 0.0,
        "workMode": 1
    },
    "serial": "13000SSU12700528",
    "serialNumber": [
        49,
        51,
        48,
        48,
        48,
        83,
        83,
        85,
        49,
        50,
        55,
        48,
        48,
        53,
        50,
        56
    ]
}

But how do I read this data in HA. I tried with node-red but that seems to me a little comple. I tried to read the info in Configuration.yaml but it dosen’t work at all. Therefore I just need a basic how to get moving on.

Cheers
Soren

You need to create MQTT sensors in config and use Json value template to get that you need.