Rest sensor config

Hi, anyone could help me to make a config of rest for that output ?

{
    "url": "https://inext.compit.pl/public_api/v1/gates/F9C33ACD5739",
    "master": false,
    "last_connected_at": "2022-08-12T08:17:41.325295Z",
    "devices": [
        {
            "version": 5,
            "url": "https://inext.compit.pl/public_api/v1/gates/F9C33ACD5739/devices/8156",
            "type": 44,
            "minor_version": "0",
            "last_state": [
                {
                    "value": 4,
                    "param_type": "int",
                    "label": "Wybór schematu pracy regulatora",
                    "code": "__schematpracy"
                },
                {
                    "unit": " °C",
                    "value": 75,
                    "param_type": "temp",
                    "label": "Temp zadana zasobnika CWU",
                    "code": "__tempzadzassol"
                },
                {
                    "unit": " °C",
                    "value": 50,
                    "param_type": "temp",
                    "label": "Temp zadana zasobnika 2 CWU",
                    "code": "__tempzadzas2cwu"
                },
                {
                    "unit": " °C",
                    "value": 35,
                    "param_type": "temp",
                    "label": "Temp zadana podgrzewacza",
                    "code": "__tempzadpodgrzprzep"
                },
                {
                    "unit": " °C",
                    "value": 35,
                    "param_type": "temp",
                    "label": "Temp zadana grzałki",
                    "code": "__tempzadgrz"
                },
                {
                    "unit": " °C",
                    "value": 35,
                    "param_type": "temp",
                    "label": "Temp zadana ładowania CWU z kotła",
                    "code": "__tempzadladcwuzkotla"
                },
                {
                    "value_label": "Praca automatyczna",
                    "value_code": "__automat",
                    "value": 1,
                    "param_type": "enum",
                    "label": "Tryb pracy",
                    "code": "__trybpracy"
                },
                {
                    "unit": "°C",
                    "value": 53.7,
                    "param_type": "calc",
                    "label": "Temp kolektora",
                    "code": "__tkolektora"
                },
                {
                    "unit": "°C",
                    "value": 44,
                    "param_type": "calc",
                    "label": "Czujnik zasobnika dół T2",
                    "code": "__czujzasobt2"
                },
                {
                    "unit": "°C",
                    "value": 49,
                    "param_type": "calc",
                    "label": "Czujnik zasobnika góra T3",
                    "code": "__czujzasobt3"
                },
                {
                    "unit": "°C",
                    "value": 48,
                    "param_type": "calc",
                    "label": "Czujnik T4",
                    "code": "__czujnikt4"
                },
                {
                    "unit": "kW",
                    "value": 1,
                    "param_type": "int",
                    "label": "Moc kolektora",
                    "code": "__mockolektora"
                },
                {
                    "unit": "kWh",
                    "value": 2.6,
                    "param_type": "calc",
                    "label": "Energia dzisiaj",
                    "code": "__endzis"
                },
                {
                    "unit": "kWh",
                    "value": 2344,
                    "param_type": "calc",
                    "label": "Energia zebrana",
                    "code": "__enzebrana"
                }
            ],
            "last_connected_at": "2022-08-12T08:17:49.654821Z",
            "label": "Regulator solarny",
            "id": 8156,
            "errors": [],
            "class": 18,
            "address": 22,
            "active": true
        }
    ],
    "code": "F9C33ACD5739",
    "active": true

I want to make sensors to read a parameters like"Temp zadana zasobnika 2 CWU" and other, please give me some example.

How to check that config is working ?

- platform: rest
    scan_interval: 900 # Makes a request every 15min
    name: iNext
    resource: https://inext.compit.pl/public_api/v1/gates/F9C33ACD5739
    force_update: true
    headers:
        Authorization: ***************

As none of us can see the data, we cannot help.

What do you mean ? You mean API ? iNext API wersja 1.0

Something like that should work:

  - platform: rest
    scan_interval: 900 # Makes a request every 15min
    name: iNext
    resource: https://inext.compit.pl/public_api/v1/gates/F9C33ACD5739
    force_update: true
    headers:
      Authorization: ***************
    value_template: >-
      {% for x in range(value_json.devices[0].last_state | length) %}
        {% if value_json.devices[0].last_state[x].label == 'Temp zadana zasobnika 2 CWU' %}
          {{ x }}
        {% endif %}
      {% endfor %}
    json_attributes_path: "$.devices[0].last_state[?(@.label=='Temp zadana zasobnika 2 CWU')]"
    json_attributes:
      - unit
      - value
      - param_type
      - label
      - code

it will return as sensor.inext state index of searched parameter in json fine and details of this parameter as sensor attributes (assuming your authorisation works properly, cannot test this). For each parameter you want to retrieve you need to create another sensor using appropriate labels from json file. Couldn’t test, but looks very similar to sensors I created just few days ago for similar json output structure.

did you ever got it working with home assistant ? i presume you are trying to add recuperation appliance ?