Deconz: Stuck with Aqara sensors and 2.5.0 snapshot

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.

Both sensors are working with the latest version. But I can’t get the batterylevel for the temperature sensors (REST is showing it).

I have batterylevel for my aqara temperature sensors. It did not show up immediately, but after waiting some hours/days(?).

Yes, its working stable since the next day!

@frest can you post the things and items file that worked for you? I am having some trouble with the motion sensor. It appears I get battery level and temp but I can’t seem to get the correct combination to retrieve the rest.
I am on 2.5m6.

Looks like I got it figured out. Seems to be working. For some reason I had to restart for the values to show.

presencesensor    LaundryPresence      "Laundry Room Presence"           [ id="9"]// motion sensor part
lightsensor    LaundryLux      "Laundry Room Presence"           [ id="10"]  
Number:Temperature Temp_Laundry "Laundry Sensor Temp [%.1f °C]" <temperature> (gSensors)  {channel="deconz:presencesensor:homeserver:LaundryPresence:temperature" }
Switch MotionLaundry "Laundry Motion Sensor" (gSensors) {channel="deconz:presencesensor:homeserver:LaundryPresence:presence"}
Number BatteryLevel_Laundry "Laundry Sensor Battery Level [%s %%]" <battery> (gSensors,gBattery)  {channel="deconz:presencesensor:homeserver:LaundryPresence:battery_level" }
Switch BatteryLow_Laundry "Laundry Sensor Battery" <selfbell> (gSensors,gWarning) {channel="deconz:lightsensor:homeserver:LaundryLux:battery_low" }

Number:Illuminance LuxLaundry "Light Level Laundry" <light> (gSensors) { channel="deconz:lightsensor:homeserver:LaundryLux:lightlux" }
Switch LaundryLightOff "Laundry Light Off" (gSensors) {channel="deconz:lightsensor:homeserver:LaundryLux:dark"}

Xiaomi smart plug (zigbee) doesn’t work with Conbee 2 in OH, no on/off (switch) channel in OH. Version 2.5 M4 and RBpi 3+. (It works well in Phoscon app).
It will work with M5 or M6? If not, please fix it.