Deconz: Stuck with Aqara sensors and 2.5.0 snapshot

I am using YARC. It helped me to determine my IDs. It reads all sensors and lights well and I get all values.

However, I can’t transfer them to openHAB. Do you have an idea what I am doing wrong?

So, your problem now on M1, is that you cannot activate the binding?

openhab> list | grep -i deconz
225 │ Active   │  80 │ 2.5.0.M1               │ Dresden Elektronik Deconz Binding

Just realized our addons are not on the same version!


sudo apt-get install openhab2-addons=2.5.0~M1-1

I am running the right version now:

225 │ Installed │ 80 │ 2.5.0.M1 │ Dresden Elektronik Deconz Bin

When I bundle:start 225 I do now receive

Error executing command: **Error executing command on bundles:** Error starting bundle 225: Could not resolve module: org.openhab.binding.deconz [225] Another singleton bundle selected: osgi.identity; osgi.identity="org.openhab.binding.deconz"; type="osgi.bundle"; version:Version=""; singleton:="true"

Any idea?

The only thing I can think of is trying to flush the cache:

sudo openhab-cli clean-cache

And do a reboot/OH2 restart

Good idea. I cleared the cache and reinstalled the deconz binding.

Result in bundle:list:
191 │ Active │ 80 │ │ Dresden Elektronik Deconz Bin

Thank you very much, @OMR.

However, I am still not getting the additional sensor values and the one temperature is still misinterpreted. Two sensors have the right decimals, one doesn’t.
I read that humidity should work, right? And presence and vibration, too. I wonder what I am still doing wrong …

Each sensor value (the “temperature”, “battery”, “on” values you can see in the deconz returned json response) must be implemented in the deconz binding. It might be that your vibration sensor reports a not yet recognized value type.

The “” version should be recent enough for presence and humidity sensors though.

Could you please open a bug report (and mention the binding authors, you get those via the CODEOWNERS file in the openhab2-addons repository)?

Hi @David_Graeff, you might be right. I have never opened a bug report. Can you please tell me how and where I can do this? And what do I have to do to reveal the codeowners? (sorry, here’s the newbie)

I saw that my sensors are listed among the Deconz supported devices:

Xiaomi Aqara motion sensor Mbt, Lbt
Xiaomi Aqara weather sensor Tb, Hb, Pb
Xiaomi Aqara door/window sensor Obt
Xiaomi Aqara vibration sensor Vbt 748
Xiaomi Mi motion sensor Mbt
Xiaomi Mi door/window sensor Obt
Xiaomi Mi temperature/humidity sensor Tb, Hb
Xiaomi Mi water leakage sensor Wbt

However, they might not have been implemented in the deconz binding.

I only have a presence sensor on my deconz network and the REST json looks like this:

  "15": {
    "config": {
      "alert": "none",
      "battery": 100,
      "delay": 0,
      "ledindication": false,
      "on": true,
      "pending": [],
      "reachable": true,
      "sensitivity": 2,
      "sensitivitymax": 2,
      "usertest": false
    "ep": 2,
    "etag": "d1bd564757369b0e5a4d81f7a110eb85",
    "manufacturername": "Philips",
    "modelid": "SML001",
    "name": "Motion Sensor Bad",
    "state": {
      "lastupdated": "2019-05-22T19:47:40",
      "presence": false
    "swversion": "",
    "type": "ZHAPresence",
    "uniqueid": "00:17:88:01:04:b5:29:aa-02-0406"

My REST json looks similar to yours:

“config”: {
“battery”: 100,
“duration”: 62,
“on”: true,
“reachable”: true,
“temperature”: 2900
“ep”: 1,
“etag”: “058347022753c05c7a44e20b76f5ffca”,
“manufacturername”: “LUMI”,
“modelid”: “lumi.sensor_motion.aq2”,
“name”: “Aqara BWM Keller”,
“state”: {
“lastupdated”: “2019-05-22T20:50:35”,
“presence”: true
“swversion”: “20170627”,
“type”: “ZHAPresence”,
“uniqueid”: “00:15:8d:00:03:13:cd:f9-01-0406”

Can you please post your thing and item for your presence sensor?

Not exactly.
Maybe the parsing gets confused because there is a temperature entry in “config”?
My sensor has a dedicated id for temperature:

  "16": {
    "config": {
      "alert": "none",
      "battery": 100,
      "ledindication": false,
      "offset": 0,
      "on": true,
      "pending": [],
      "reachable": true,
      "usertest": false
    "ep": 2,
    "etag": "ad30d04f140eb4e6e39dc38dcd224349",
    "manufacturername": "Philips",
    "modelid": "SML001",
    "name": "Motion Sensor Bad",
    "state": {
      "lastupdated": "2019-05-22T19:51:15",
      "temperature": 2474
    "swversion": "",
    "type": "ZHATemperature",
    "uniqueid": "00:17:88:01:04:b5:29:aa-02-0402"

A bug report is to be created here:

If you navigate the files of this repository you will find the CODEOWNERS file right in the root directory. Look for a “bundles/…deconz…” entry and just copy the @authors into your report. This makes sure that they get a mail.

I just realised that my Aqara cubes reports temperature in the “config” section just as yours and it works fine:

My things was auto-discovered in paperUI when I was on a quite recent snapshot, before it was broken. On older snapshots and M1, auto-discover do not work. Related?

My sensors are not auto discovered in Paper UI. I tried a manual search and selected the Deconz binding. Nothing gets discovered.

Just a side note for anyone who might read this thread later:
things show deconz:deconz:homeserver is working now.

I know, neither manual or auto works just config file apparently.
Mine survived from the snapshot I was on when it worked. All came online again after the Bridge came online.

Edit: when the snapshots are working again (my system constantly hogged 100% CPU), much is probably fixed.

@maxheartrate I saw your issue on GitHub and was just wondering if your are still facing the same problems. Or did you install a new snapshot version in the meantime?

I think I am using nearly the same sensors like you and they working fine for me. Even the discovery is working with the latest version.

Hi Christoph,

thank you for asking. Most of it works now when I disable and reenable the Deconz thing in Paper UI. Since I use text configuration files I did not look into the Paper UI.

The remaining problems are:

  • I cannot get the Aqara Vibration sensor to work in OpenHAB.
  • The motion sensor often doesn‘t work (light is not switched on via OpenHAB).

Do you have vibration sensors in your setup?

Regards, Max

Unfortunately I neither use Aqara vibration sensors nor Aqara motion sensors. IIRC one of my colleagues uses them. I will ask him for help. My Hue and TRÅDFRI motion sensor work like a charm.

May I ask you again to tell me your current binding version? Thanks.

Hi, my software version for the Deconz binding is 2.5.64.

@maxheartrate Sry for my late response. Is this still an issue for you? Did you update deCONZ or / and openHAB in the meantime?

Hi, no problem. I am still on the same version.