openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.86k stars 3.58k forks source link

[deconz] Add missing channels for "Smart Air Detector 6 in 1" #16484

Open vwegert opened 6 months ago

vwegert commented 6 months ago

Current Behavior

I’ve acquired an air quality sensor with a number of channels which is supported by deCONZ. Accessing the API directly, I am able to find the various values the sensor provides:

"25":
        {
            "config":
            {
                "offset": 0,
                "on": true,
                "reachable": true
            },
            "manufacturername": "_TZE200_dwcarsat",
            "modelid": "TS0601",
            "name": "Humidity 25",
            "state":
            {
                "humidity": 4850,
                "lastupdated": "2024-03-02T21:00:52.324"
            },
            "type": "ZHAHumidity",
            "uniqueid": "a4:c1:38:93:14:f1:6c:ca-01-0511"
        },
        "26":
        {
            "capabilities":
            {
                "measured_value":
                {
                    "max": 65535,
                    "min": 0,
                    "quantity": "level",
                    "substance": "tVOC",
                    "unit": "ppb"
                }
            },
            "config":
            {
                "on": true,
                "reachable": true
            },
            "manufacturername": "_TZE200_dwcarsat",
            "modelid": "TS0601",
            "name": "AirQuality 26",
            "state":
            {
                "lastupdated": "2024-03-02T21:00:52.641",
                "measured_value": 99
            },
            "type": "ZHAAirQuality",
            "uniqueid": "a4:c1:38:93:14:f1:6c:ca-01-0512"
        },
        "27":
        {
            "config":
            {
                "offset": 0,
                "on": true,
                "reachable": true
            },
            "manufacturername": "_TZE200_dwcarsat",
            "modelid": "TS0601",
            "name": "Temperature 27",
            "state":
            {
                "lastupdated": "2024-03-02T21:00:52.274",
                "temperature": 2270
            },
            "type": "ZHATemperature",
            "uniqueid": "a4:c1:38:93:14:f1:6c:ca-01-0514"
        },
        "28":
        {
            "capabilities":
            {
                "measured_value":
                {
                    "max": 65535,
                    "min": 0,
                    "quantity": "level",
                    "substance": "Formaldehyde",
                    "unit": "ppm"
                }
            },
            "config":
            {
                "on": true,
                "reachable": true
            },
            "manufacturername": "_TZE200_dwcarsat",
            "modelid": "TS0601",
            "name": "Formaldehyde 28",
            "state":
            {
                "lastupdated": "2024-03-02T21:00:52.600",
                "measured_value": 20
            },
            "type": "ZHAFormaldehyde",
            "uniqueid": "a4:c1:38:93:14:f1:6c:ca-01-042b"
        },
        "29":
        {
            "capabilities":
            {
                "measured_value":
                {
                    "max": 65535,
                    "min": 0,
                    "quantity": "level",
                    "substance": "CO",
                    "unit": "ppb"
                }
            },
            "config":
            {
                "on": true,
                "reachable": true
            },
            "manufacturername": "_TZE200_dwcarsat",
            "modelid": "TS0601",
            "name": "CarbonDioxide 29",
            "state":
            {
                "lastupdated": "2024-03-02T21:00:52.683",
                "measured_value": 445
            },
            "type": "ZHACarbonDioxide",
            "uniqueid": "a4:c1:38:93:14:f1:6c:ca-01-040d"
        },
        "30":
        {
            "capabilities":
            {
                "measured_value":
                {
                    "max": 65535,
                    "min": 0,
                    "quantity": "density",
                    "substance": "PM2.5",
                    "unit": "ug/m^3"
                }
            },
            "config":
            {
                "on": true,
                "reachable": true
            },
            "manufacturername": "_TZE200_dwcarsat",
            "modelid": "TS0601",
            "name": "ParticulateMatter 30",
            "state":
            {
                "lastupdated": "2024-03-02T21:00:52.724",
                "measured_value": 5
            },
            "type": "ZHAParticulateMatter",
            "uniqueid": "a4:c1:38:93:14:f1:6c:ca-01-042a"
        },

However, in OpenHAB I can only add three Things: a humidity sensor, a temperature sensor and the generic “air quality sensor” which appears to map to the tVOC value.

Expected Behavior

There should be Things for the sensors of type ZHAFormaldehyde, ZHACarbonDioxide or ZHAParticulateMatter in the inbox.

Your Environment

I’m using OpenHAB 4.1.1 on Linux to control and a ConBee II with deCONZ 2.26.0.

openhab-bot commented 6 months ago

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/air-quality-sensor-connected-via-deconz-only-partially-accessible/154293/5