Command line CURL JSON to sensor: RESOL VBUS

Hi guys,
I’m a newbie trying to setup my first system, and I’ve hit a roadblock, which I feel it might be quite simple to solve, but for me it’s being quite hard.

I have this JSON which comes from my RESOL VBUS/TCP adapter (solar panel for water heating system). My question is: how can I create a sensor with the variables in “name” and values in “rawValue”?

Thanks a lot!!!

[
    {
        "id": "00_0010_4278_10_0100_000_2_0",
        "name": "Temperature sensor 1",
        "rawValue": 22.3
    },
    {
        "id": "00_0010_4278_10_0100_002_2_0",
        "name": "Temperature sensor 2",
        "rawValue": 45.2
    },
    {
        "id": "00_0010_4278_10_0100_004_2_0",
        "name": "Temperature sensor 3",
        "rawValue": 64.10000000000001
    },
    {
        "id": "00_0010_4278_10_0100_006_2_0",
        "name": "Temperature sensor 4",
        "rawValue": 888.8000000000001
    },
    {
        "id": "00_0010_4278_10_0100_008_1_0",
        "name": "Pump speed relay 1",
        "rawValue": 0
    },
    {
        "id": "00_0010_4278_10_0100_009_1_0",
        "name": "Pump speed relay 2",
        "rawValue": 0
    },
    {
        "id": "00_0010_4278_10_0100_010_1_1",
        "name": "Sensor 1 defective",
        "rawValue": 0
    },
    {
        "id": "00_0010_4278_10_0100_010_1_2",
        "name": "Sensor 2 defective",
        "rawValue": 0
    },
    {
        "id": "00_0010_4278_10_0100_010_1_4",
        "name": "Sensor 3 defective",
        "rawValue": 0
    },
    {
        "id": "00_0010_4278_10_0100_010_1_8",
        "name": "Sensor 4 defective",
        "rawValue": 0
    },
    {
        "id": "00_0010_4278_10_0100_010_1_16",
        "name": "Emergency store temperature",
        "rawValue": 0
    },
    {
        "id": "00_0010_4278_10_0100_010_1_32",
        "name": "Collector emergency temperature",
        "rawValue": 0
    },
    {
        "id": "00_0010_4278_10_0100_011_1_1",
        "name": "R1 manual mode",
        "rawValue": 0
    },
    {
        "id": "00_0010_4278_10_0100_011_1_2",
        "name": "R2 manual mode",
        "rawValue": 0
    },
    {
        "id": "00_0010_4278_10_0100_012_2_0",
        "name": "Operating hours relay 1",
        "rawValue": 6900
    },
    {
        "id": "00_0010_4278_10_0100_014_2_0",
        "name": "Operating hours relay 2",
        "rawValue": 0
    },
    {
        "id": "00_0010_4278_10_0100_016_2_0",
        "name": "Heat quantity",
        "rawValue": 0
    },
    {
        "id": "00_0010_4278_10_0100_022_1_0",
        "name": "Status",
        "rawValue": 0
    },
    {
        "id": "00_0010_4278_10_0100_023_1_0",
        "name": "Programme",
        "rawValue": 3
    },
    {
        "id": "00_0010_4278_10_0100_024_2_0",
        "name": "Version",
        "rawValue": 2.0300000000000002
    }
]
1 Like