Conbee Binding does not read config-values

I integrated mostly successful an Aqara motion sensor. I can receice the presence and Illuminance channels. However I cannot read the battery leval and temperate value from config. Those values are always NULL (and I waited several hours until the sensor temperature changed in the Phoscon app.

Here is a manual API from /api/$key/sensors except for the sensor:
grafik

As already described the temperature isn’t read.

The log showed nothing helpful.

How can I investigate any further?

First please share your thing definition, as otherwise it’s hard to guess.

Second I know from the aqara sensors that they do not always send a full message, but sometimes don’t are attributes are missing and therefore not updating correctly. However this would generate a log message

About the possibilty of the missing attributes: Those attributes are available in the phoscon app and also shown within the Rest API.

This is the definition from the json-db (i replaced the IDs). I used the Web-Frontend to add those Zigbee things

 "deconz:lightsensor:$$$DECONZ$$$$:$$$SENSOR$$$$": {
    "class": "org.openhab.core.thing.internal.ThingImpl",
    "value": {
      "label": "Presence (Helligkeit)",
      "bridgeUID": {
        "segments": [
          "deconz",
          "deconz",
          "$$$DECONZ$$$$"
        ],
        "uid": "deconz:deconz:$$$DECONZ$$$$"
      },
      "channels": [
        {
          "acceptedItemType": "Number:Illuminance",
          "kind": "STATE",
          "uid": {
            "segments": [
              "deconz",
              "lightsensor",
              "$$$DECONZ$$$$",
              "$$$SENSOR$$$$",
              "lightlux"
            ],
            "uid": "deconz:lightsensor:$$$DECONZ$$$$:$$$SENSOR$$$$:lightlux"
          },
          "channelTypeUID": {
            "segments": [
              "deconz",
              "lightlux"
            ],
            "uid": "deconz:lightlux"
          },
          "label": "Beleuchtungsstärke",
          "description": "Zeigt die aktuelle Beleuchtungsstärke an.",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": [],
          "autoUpdatePolicy": "DEFAULT"
        },
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "deconz",
              "lightsensor",
              "$$$DECONZ$$$$",
              "$$$SENSOR$$$$",
              "light_level"
            ],
            "uid": "deconz:lightsensor:$$$DECONZ$$$$:$$$SENSOR$$$$:light_level"
          },
          "channelTypeUID": {
            "segments": [
              "deconz",
              "light_level"
            ],
            "uid": "deconz:light_level"
          },
          "label": "Licht Level",
          "description": "Zeigt das aktuelle Licht Level an.",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": [],
          "autoUpdatePolicy": "DEFAULT"
        },
        {
          "acceptedItemType": "Switch",
          "kind": "STATE",
          "uid": {
            "segments": [
              "deconz",
              "lightsensor",
              "$$$DECONZ$$$$",
              "$$$SENSOR$$$$",
              "dark"
            ],
            "uid": "deconz:lightsensor:$$$DECONZ$$$$:$$$SENSOR$$$$:dark"
          },
          "channelTypeUID": {
            "segments": [
              "deconz",
              "dark"
            ],
            "uid": "deconz:dark"
          },
          "label": "Dunkel",
          "description": "Das Licht Level ist unter dem Dunkel-Schwellwert.",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": [],
          "autoUpdatePolicy": "DEFAULT"
        },
        {
          "acceptedItemType": "Switch",
          "kind": "STATE",
          "uid": {
            "segments": [
              "deconz",
              "lightsensor",
              "$$$DECONZ$$$$",
              "$$$SENSOR$$$$",
              "daylight"
            ],
            "uid": "deconz:lightsensor:$$$DECONZ$$$$:$$$SENSOR$$$$:daylight"
          },
          "channelTypeUID": {
            "segments": [
              "deconz",
              "daylight"
            ],
            "uid": "deconz:daylight"
          },
          "label": "Hell",
          "description": "Das Licht Level ist über dem Hell-Schwellwert.",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": [],
          "autoUpdatePolicy": "DEFAULT"
        },
        {
          "acceptedItemType": "DateTime",
          "kind": "STATE",
          "uid": {
            "segments": [
              "deconz",
              "lightsensor",
              "$$$DECONZ$$$$",
              "$$$SENSOR$$$$",
              "last_updated"
            ],
            "uid": "deconz:lightsensor:$$$DECONZ$$$$:$$$SENSOR$$$$:last_updated"
          },
          "channelTypeUID": {
            "segments": [
              "deconz",
              "last_updated"
            ],
            "uid": "deconz:last_updated"
          },
          "label": "Letzte Aktualisierung",
          "description": "Zeigt die Zeit, zu der sich dieser Wert zuletzt geändert hat.",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": [],
          "autoUpdatePolicy": "DEFAULT"
        },
        {
          "acceptedItemType": "DateTime",
          "kind": "STATE",
          "uid": {
            "segments": [
              "deconz",
              "lightsensor",
              "$$$DECONZ$$$$",
              "$$$SENSOR$$$$",
              "last_seen"
            ],
            "uid": "deconz:lightsensor:$$$DECONZ$$$$:$$$SENSOR$$$$:last_seen"
          },
          "channelTypeUID": {
            "segments": [
              "deconz",
              "last_seen"
            ],
            "uid": "deconz:last_seen"
          },
          "label": "Zuletzt Gesehen",
          "description": "Zeigt die Zeit an, zu der dieser Sensor zuletzt gesehen wurde.",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": [],
          "autoUpdatePolicy": "DEFAULT"
        },
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "deconz",
              "lightsensor",
              "$$$DECONZ$$$$",
              "$$$SENSOR$$$$",
              "battery_level"
            ],
            "uid": "deconz:lightsensor:$$$DECONZ$$$$:$$$SENSOR$$$$:battery_level"
          },
          "channelTypeUID": {
            "segments": [
              "system",
              "battery-level"
            ],
            "uid": "system:battery-level"
          },
          "label": "Batterieladung",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": [
            "Energy",
            "Measurement"
          ]
        },
        {
          "acceptedItemType": "Switch",
          "kind": "STATE",
          "uid": {
            "segments": [
              "deconz",
              "lightsensor",
              "$$$DECONZ$$$$",
              "$$$SENSOR$$$$",
              "battery_low"
            ],
            "uid": "deconz:lightsensor:$$$DECONZ$$$$:$$$SENSOR$$$$:battery_low"
          },
          "channelTypeUID": {
            "segments": [
              "system",
              "low-battery"
            ],
            "uid": "system:low-battery"
          },
          "label": "Niedriger Batteriestatus",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": [
            "Energy",
            "LowBattery"
          ]
        },
        {
          "acceptedItemType": "Number:Temperature",
          "kind": "STATE",
          "uid": {
            "segments": [
              "deconz",
              "lightsensor",
              "$$$DECONZ$$$$",
              "$$$SENSOR$$$$",
              "temperature"
            ],
            "uid": ""
          },
          "channelTypeUID": {
            "segments": [
              "deconz",
              "temperature"
            ],
            "uid": "deconz:temperature"
          },
          "label": "Temperatur",
          "description": "Zeigt die aktuelle Temperatur an.",
          "configuration": {
            "properties": {}
          },
          "properties": {},
          "defaultTags": []
        }
      ],
      "configuration": {
        "properties": {
          "id": "9",
          "lastSeenPolling": 1440
        }
      },
      "properties": {
        "firmwareVersion": "20170627",
        "modelId": "lumi.sensor_motion.aq2",
        "uid": "$$$LUMI_UID$$$-0400",
        "vendor": "LUMI"
      },
      "uid": {
        "segments": [
          "deconz",
          "lightsensor",
          "$$$DECONZ$$$$",
          "$$$SENSOR$$$$"
        ],
        "uid": "deconz:lightsensor:$$$DECONZ$$$$:$$$SENSOR$$$$"
      },
      "thingTypeUID": {
        "segments": [
          "deconz",
          "lightsensor"
        ],
        "uid": "deconz:lightsensor"
      }
    }
  },

The binding only reads values actively on startup and then relies on the websocket connection. Please set org.openhab.binding.deconz to trace logging and check if you see a message like {} received {} in the log where the first placeholder is the thing UID and the second a message. Disable/Enable the thing in UI and check again.

I have a similar issue (OH3.2 stable) where the deconz binding reads sensor values on startup or re-start (disable / enable) only. I was following the advise to trace the binding, after disable / enable I can see a sensor message with values in the log once, but no further polling (should be every one minute)

What type of values? The binding has no polling for values (except last seen).

temperature / humidity for example, I was expecting that the OH item is updated every minute if “Abfrageintervall” of the corresponding thing is set to “1”

No. Deconz relies on the websocket connection, everytime a new Value is available deconz creates an event and openHAB picks it up. The interval deconz checks depends on the sensor and the settings, some can be changed with the deconz software.

The interval in openHAB is only needed for the last_seen channel.

So to keep an OH item up-to-date (for dashboard use e.g.) I need to create a routine that gets triggered by the event provided by deconz ? Thank you for your patience with me .

No, just link the item to the channel. It‘ll get updated everytime the deconz system reports a change.

The binding does the work for you.

it is working now :slight_smile: Let me share my findings:
the logfile did not show any websocket activities because the deconz-gateway thing configuration was incorrect: only the http-port was set but websocket-port was empty.