Papouch Papago Thermometers - MQTT Integration - Single/Multiple Sensors

Hi All,

I’m pretty new to home assistant and I would like to integrate my 4 papago Thermometers into my Home assistant installation.

I’ve 4 Papago2 Thermometers, three with a single TH3 and one with 2xTH3. All of these 5 sensors are measuring Temperature, Humidity and DEW point.

These thermomenters have a custom software with an embedded web-server showing the temperature.
However, I set up the MQTT protocol to send messages to a broker and set up the MQTT integration into my homeassistant installation, but I cannot integrate into configuration.yaml in the correct form to grab temperature, humidity and dew point.

The MQTT messages are as follows:

{"dev": "Papago 2TH ETH","mac": "0080A3F7AA11","loc": "geotemp1","description": "LOG","log_index": 1445,"time": "10/28/2023 21:47:00","vals": [{"t": "temp","v": 3.5,"u": 0,"io": 1,"e": 0},{"t": "hum","v": 96.4,"u": 0,"io": 1,"e": 0},{"t": "dew","v": 2.9,"u": 0,"io": 1,"e": 0}]}

The same output JSON formatted is:

{
    "dev": "Papago 2TH ETH",
    "mac": "0080A3F7AA11",
    "loc": "geotemp1",
    "description": "LOG",
    "log_index": 1446,
    "time": "10/28/2023 21:48:00",
    "vals": [
        {
            "t": "temp",
            "v": 3.6,
            "u": 0,
            "io": 1,
            "e": 0
        },
        {
            "t": "hum",
            "v": 96.8,
            "u": 0,
            "io": 1,
            "e": 0
        },
        {
            "t": "dew",
            "v": 3.1,
            "u": 0,
            "io": 1,
            "e": 0
        }
    ]
}

my question is: how is the right syntax to insert this sensor in configuration.yaml ?

In addition, one of these thermometers has 2 sensors connected and the MQTT message shows 6 outputs, instead of 3. Below is an example:

{
    "dev": "Papago 2TH ETH",
    "mac": "0080A3EAEAEA",
    "loc": "geotemp5",
    "description": "LOG",
    "log_index": 36636,
    "time": "10/28/2023 21:51:00",
    "vals": [
        {
            "t": "temp",
            "v": 27.7,
            "u": 0,
            "io": 1,
            "e": 0
        },
        {
            "t": "hum",
            "v": 33.6,
            "u": 0,
            "io": 1,
            "e": 0
        },
        {
            "t": "dew",
            "v": 10.2,
            "u": 0,
            "io": 1,
            "e": 0
        },
        {
            "t": "temp",
            "v": 17.5,
            "u": 0,
            "io": 2,
            "e": 0
        },
        {
            "t": "hum",
            "v": 64.1,
            "u": 0,
            "io": 2,
            "e": 0
        },
        {
            "t": "dew",
            "v": 10.6,
            "u": 0,
            "io": 2,
            "e": 0
        }
    ]
}

Thanks in advance and best regards.

Digitalchild