Xiaomi Zigbee (vibration, tilt, fall) sensor Model: DJT11LM
New Xiaomi Zigbee sensor just released (not yet supported), I've ordered a couple.
https://www.gearbest.com/robot-vacuum-accessories/pp_009899185513.html?wid=1433363
I should be able to include support, created ticket in-case anyone beats me to it. ;)
Very exciting and unique sensor with many applications.
Interesting....could use for the clothes dryer machine notification. The xiaomi plug cannot handle the amp load, and i am not keen in using a sonoff POW also.
I'm planning to attach one of mine to the cat's automatic kitty litter so I can track their kitty litter usage. ๐
So many possibilities!
i just got mine.
devices.js:
{
zigbeeModel: ['lumi.vibration.aq1'], // The model ID from: Device with modelID 'lumi.sens' is not supported.
model: 'DJT11LM',
vendor: 'Xiaomi',
description: 'Aqara Movement detection sticker',
supports: 'vibration, linkage, remote push. adjustable sensitivity',
fromZigbee: [fz.xiaomi_battery_3v,fz.xiaomi_djt11lm_dc_closuresDoorLock,fz.xiaomi_djt11lm_ar_closuresDoorLock,fz.xiaomi_djt11lm_dc_genBasic,fz.xiaomi_djt11lm_ar_genBasic],
toZigbee: [],
},
fromZigbee.js
xiaomi_djt11lm_ar_closuresDoorLock: {
cid: 'closuresDoorLock',
type: 'attReport',
convert: (model, msg, publish, options) => {
return msg.data;
}
},
xiaomi_djt11lm_dc_closuresDoorLock: {
cid: 'closuresDoorLock',
type: 'devChange',
convert: (model, msg, publish, options) => {
return msg.data;
}
},
xiaomi_djt11lm_ar_genBasic: {
cid: 'genBasic',
type: 'attReport',
convert: (model, msg, publish, options) => {
return msg.data;
}
},
xiaomi_djt11lm_dc_genBasic: {
cid: 'genBasic',
type: 'devChange',
convert: (model, msg, publish, options) => {
return msg.data;
}
},
Now the devices does not produce any messages anymore.
Nice, but should not there be any return in the converter?
This is just a start, these converter do nothing yet. I do not own a Xiaomi Hub to analyze the messages or the functions of this sensor.
I added the 3v battery as a start.
Now the data is also returned.
Thanks @SargonofAssyria ;-)
"1288" seems to define the tilt in 2 axis. Does anybody have some example readings from these devices on a Xiaomi Hub? Other keys are "85","1283" and "1285".
Please provide your database.db entry(s).
Please provide full log with DEBUG without your own defined fromZigbee converters.
These are the database entries and log part of the DJT11LM after shaking the device.
{"id":11,"type":"EndDevice","ieeeAddr":"0x00158d0002a4aaa9","nwkAddr":53676,"manufId":4151,"manufName":"LUMI","powerSource":"Battery","modelId":"lumi.vibration.aq1","epList":[1,2],"status":"offline","joinTime":null,"endpoints":{"1":{"profId":260,"epId":1,"devId":10,"inClusterList":[0,3,25,257],"outClusterList":[0,3,4,5,25,257],"clusters":{"genBasic":{"dir":{"value":3},"attrs":{}},"genIdentify":{"dir":{"value":3},"attrs":{}},"genGroups":{"dir":{"value":2},"attrs":{}},"genScenes":{"dir":{"value":2},"attrs":{}},"genOta":{"dir":{"value":3},"attrs":{}},"closuresDoorLock":{"dir":{"value":3},"attrs":{}}}},"2":{"profId":260,"epId":2,"devId":24322,"inClusterList":[3,18],"outClusterList":[3,4,5,18],"clusters":{"genIdentify":{"dir":{"value":3},"attrs":{}},"genGroups":{"dir":{"value":2},"attrs":{}},"genScenes":{"dir":{"value":2},"attrs":{}},"genMultistateInput":{"dir":{"value":3},"attrs":{}}}}},"_id":"SC0xs9B1s6OS9RAZ"}
{"id":11,"type":"EndDevice","ieeeAddr":"0x00158d0002a4aaa9","nwkAddr":53676,"manufId":4151,"manufName":"LUMI","powerSource":"Battery","modelId":"lumi.vibration.aq1","epList":[1,2],"status":"offline","joinTime":null,"endpoints":{"1":{"profId":260,"epId":1,"devId":10,"inClusterList":[0,3,25,257],"outClusterList":[0,3,4,5,25,257],"clusters":{"genBasic":{"dir":{"value":3},"attrs":{}},"genIdentify":{"dir":{"value":3},"attrs":{}},"genGroups":{"dir":{"value":2},"attrs":{}},"genScenes":{"dir":{"value":2},"attrs":{}},"genOta":{"dir":{"value":3},"attrs":{}},"closuresDoorLock":{"dir":{"value":3},"attrs":{}}}},"2":{"profId":260,"epId":2,"devId":24322,"inClusterList":[3,18],"outClusterList":[3,4,5,18],"clusters":{"genIdentify":{"dir":{"value":3},"attrs":{}},"genGroups":{"dir":{"value":2},"attrs":{}},"genScenes":{"dir":{"value":2},"attrs":{}},"genMultistateInput":{"dir":{"value":3},"attrs":{}}}}},"_id":"SC0xs9B1s6OS9RAZ"}
2018-9-1 10:06:06 - debug: Recieved zigbee message with data {"cid":"closuresDoorLock","data":{"85":1}}
2018-9-1 10:06:06 - warn: Device with modelID 'lumi.vibration.aq1' is not supported.
2018-9-1 10:06:06 - warn: Please see: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices
2018-9-1 10:06:06 - debug: Recieved zigbee message with data {"cid":"closuresDoorLock","data":{"85":1}}
2018-9-1 10:06:06 - warn: Device with modelID 'lumi.vibration.aq1' is not supported.
2018-9-1 10:06:06 - warn: Please see: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices
2018-9-1 10:06:06 - debug: Recieved zigbee message with data {"cid":"genAnalogInput","data":{"presentValue":0}}
2018-9-1 10:06:06 - info: MQTT publish, topic: 'zigbee2mqtt/UPS', payload: '{"state":"ON","power":0,"voltage":221,"consumption":25.86,"temperature":37,"linkquality":94}'
2018-9-1 10:06:12 - debug: Recieved zigbee message with data {"cid":"closuresDoorLock","data":{"85":3}}
2018-9-1 10:06:12 - warn: Device with modelID 'lumi.vibration.aq1' is not supported.
2018-9-1 10:06:12 - warn: Please see: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices
2018-9-1 10:06:12 - debug: Recieved zigbee message with data {"cid":"closuresDoorLock","data":{"85":3}}
2018-9-1 10:06:12 - warn: Device with modelID 'lumi.vibration.aq1' is not supported.
2018-9-1 10:06:12 - warn: Please see: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices
2018-9-1 10:06:22 - debug: Recieved zigbee message with data {"cid":"genAnalogInput","data":{"presentValue":0}}
2018-9-1 10:06:22 - info: MQTT publish, topic: 'zigbee2mqtt/UPS', payload: '{"state":"ON","power":0,"voltage":221,"consumption":25.86,"temperature":37,"linkquality":94}'
2018-9-1 10:06:23 - debug: Recieved zigbee message with data {"cid":"closuresDoorLock","data":{"1288":[1199,655390]}}
2018-9-1 10:06:23 - warn: Device with modelID 'lumi.vibration.aq1' is not supported.
2018-9-1 10:06:23 - warn: Please see: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices
2018-9-1 10:06:23 - debug: Recieved zigbee message with data {"cid":"closuresDoorLock","data":{"1288":[1199,655390]}}
2018-9-1 10:06:23 - warn: Device with modelID 'lumi.vibration.aq1' is not supported.
2018-9-1 10:06:23 - warn: Please see: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices
2018-9-1 10:06:24 - debug: Check online UPS 0x00158d0002161ef0
2018-9-1 10:06:24 - debug: Check online Router 0x00124b0014d9de22
2018-9-1 10:06:24 - debug: Check online Powerplug 0x84182600000f0057
2018-9-1 10:06:28 - debug: Recieved zigbee message with data {"cid":"closuresDoorLock","data":{"85":2,"1283":86}}
2018-9-1 10:06:28 - warn: Device with modelID 'lumi.vibration.aq1' is not supported.
2018-9-1 10:06:28 - warn: Please see: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices
2018-9-1 10:06:28 - debug: Recieved zigbee message with data {"cid":"closuresDoorLock","data":{"85":2,"1283":86}}
2018-9-1 10:06:28 - warn: Device with modelID 'lumi.vibration.aq1' is not supported.
2018-9-1 10:06:28 - warn: Please see: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices
2018-9-1 10:06:28 - debug: Recieved zigbee message with data {"cid":"closuresDoorLock","data":{"1288":[84,4227661913]}}
2018-9-1 10:06:28 - warn: Device with modelID 'lumi.vibration.aq1' is not supported.
2018-9-1 10:06:28 - warn: Please see: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices
2018-9-1 10:06:28 - debug: Recieved zigbee message with data {"cid":"closuresDoorLock","data":{"1288":[84,4227661913]}}
2018-9-1 10:06:28 - warn: Device with modelID 'lumi.vibration.aq1' is not supported.
2018-9-1 10:06:28 - warn: Please see: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices
2018-9-1 10:06:32 - debug: Recieved zigbee message with data {"cid":"closuresDoorLock","data":{"85":2,"1283":87}}
2018-9-1 10:06:32 - warn: Device with modelID 'lumi.vibration.aq1' is not supported.
2018-9-1 10:06:32 - warn: Please see: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices
2018-9-1 10:06:32 - debug: Recieved zigbee message with data {"cid":"closuresDoorLock","data":{"1283":87}}
2018-9-1 10:06:32 - warn: Device with modelID 'lumi.vibration.aq1' is not supported.
2018-9-1 10:06:32 - warn: Please see: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices
2018-9-1 10:06:32 - debug: Recieved zigbee message with data {"cid":"closuresDoorLock","data":{"1288":[87,2819034]}}
2018-9-1 10:06:32 - warn: Device with modelID 'lumi.vibration.aq1' is not supported.
2018-9-1 10:06:32 - warn: Please see: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices
2018-9-1 10:06:32 - debug: Recieved zigbee message with data {"cid":"closuresDoorLock","data":{"1288":[87,2819034]}}
2018-9-1 10:06:32 - warn: Device with modelID 'lumi.vibration.aq1' is not supported.
2018-9-1 10:06:32 - warn: Please see: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices
2018-9-1 10:06:33 - debug: Recieved zigbee message with data {"cid":"genOnOff","data":{"onOff":1}}
2018-9-1 10:06:33 - info: MQTT publish, topic: 'zigbee2mqtt/Router', payload: '{"state":true,"linkquality":68}'
2018-9-1 10:06:37 - debug: Recieved zigbee message with data {"cid":"closuresDoorLock","data":{"85":2,"1283":88}}
2018-9-1 10:06:37 - warn: Device with modelID 'lumi.vibration.aq1' is not supported.
2018-9-1 10:06:37 - warn: Please see: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices
2018-9-1 10:06:37 - debug: Recieved zigbee message with data {"cid":"closuresDoorLock","data":{"1283":88}}
2018-9-1 10:06:37 - warn: Device with modelID 'lumi.vibration.aq1' is not supported.
2018-9-1 10:06:37 - warn: Please see: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices
2018-9-1 10:06:38 - debug: Recieved zigbee message with data {"cid":"closuresDoorLock","data":{"1288":[76,70778872]}}
2018-9-1 10:06:38 - warn: Device with modelID 'lumi.vibration.aq1' is not supported.
2018-9-1 10:06:38 - warn: Please see: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices
2018-9-1 10:06:38 - debug: Recieved zigbee message with data {"cid":"closuresDoorLock","data":{"1288":[76,70778872]}}
2018-9-1 10:06:38 - warn: Device with modelID 'lumi.vibration.aq1' is not supported.
2018-9-1 10:06:38 - warn: Please see: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices
2018-9-1 10:06:38 - debug: Recieved zigbee message with data {"cid":"genAnalogInput","data":{"presentValue":0}}
2018-9-1 10:06:38 - info: MQTT publish, topic: 'zigbee2mqtt/UPS', payload: '{"state":"ON","power":0,"voltage":221,"consumption":25.86,"temperature":37,"linkquality":94}'
2018-9-1 10:06:42 - debug: Recieved zigbee message with data {"cid":"closuresDoorLock","data":{"85":2,"1283":88}}
2018-9-1 10:06:42 - warn: Device with modelID 'lumi.vibration.aq1' is not supported.
2018-9-1 10:06:42 - warn: Please see: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices
2018-9-1 10:06:42 - debug: Recieved zigbee message with data {"cid":"closuresDoorLock","data":{"1288":[75,1047671]}}
2018-9-1 10:06:42 - warn: Device with modelID 'lumi.vibration.aq1' is not supported.
2018-9-1 10:06:42 - warn: Please see: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices
2018-9-1 10:06:42 - debug: Recieved zigbee message with data {"cid":"closuresDoorLock","data":{"1288":[75,1047671]}}
2018-9-1 10:06:42 - warn: Device with modelID 'lumi.vibration.aq1' is not supported.
2018-9-1 10:06:42 - warn: Please see: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices
2018-9-1 10:06:46 - debug: Recieved zigbee message with data {"cid":"closuresDoorLock","data":{"85":3}}
2018-9-1 10:06:46 - warn: Device with modelID 'lumi.vibration.aq1' is not supported.
2018-9-1 10:06:46 - warn: Please see: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices
2018-9-1 10:06:46 - debug: Recieved zigbee message with data {"cid":"closuresDoorLock","data":{"85":3}}
2018-9-1 10:06:46 - warn: Device with modelID 'lumi.vibration.aq1' is not supported.
2018-9-1 10:06:46 - warn: Please see: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices
2018-9-1 10:06:47 - debug: Recieved zigbee message with data {"cid":"closuresDoorLock","data":{"1288":[1200,786462]}}
2018-9-1 10:06:47 - warn: Device with modelID 'lumi.vibration.aq1' is not supported.
2018-9-1 10:06:47 - warn: Please see: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices
2018-9-1 10:06:47 - debug: Recieved zigbee message with data {"cid":"closuresDoorLock","data":{"1288":[1200,786462]}}
2018-9-1 10:06:47 - warn: Device with modelID 'lumi.vibration.aq1' is not supported.
2018-9-1 10:06:47 - warn: Please see: https://github.com/Koenkk/zigbee2mqtt/wiki/How-to-support-new-devices
This sensor should also have an input (ability to set the sensitivity). Question is, is it set on the Sensor via Zigbee (most likely) or virtually on the Xiaomi hub.
Look at the description on Gearbest, it shows a picture of it being set.
https://www.gearbest.com/robot-vacuum-accessories/pp_009899185513.html
I got one too, but I cant pair ist with my zigbee stick. Anyone else here got a pairing?
This is the message I got out of the log: zigbee2mqtt:error 2018-9-1 16:30:43 Cannot get the Node Descriptor of the Device: 0x00158d0002abb211 (Error: Timed out after 10000 ms)
I managed to get it paired. (See log above) After the 5 sec push on the button and the flashing of the blue led. I had to repeatedly (10-20 times) push the button with 1-2 sec interval until it paired.
I was able to pair my sensor exactly the same way, I just had to go near the zigbee stick. Now we have to wait for a code update.
Has anyone paired the sensor with an Aqara hub? I'm working on this PR for deCONS but we can't figure out some fo the values... can someone attach some screenshots of the Aqara / Mi home app? I'm trying to understand if the app exposes any of the values somehow.
@ben423423n32j14e would you mind making a PR?
@Koenkk, sure but whats the purpose?
Btw check the wiki, I added a control panel for Node-Red. :)
@ben423423n32j14e as this device is not supported (DJT11LM), it would be nice if we could add support for it.
I saw your wiki update, great! :smile:
It will be Connected as :
lumi.vibration.aq1 00158d0002a91ead
Errors from .log file
zigbee.0 | 2018-09-07 11:59:14.971 | error | Cannot get the Node Descriptor of the Device: 0x00158d0002a91ead (Error: Timed out after 10000 ms)
zigbee.0 | 2018-09-07 12:01:50.504 | error | Unknown device model lumi.vibration.aq1 emit event attReport with data:{"cid":"closuresDoorLock","data":{"1288":[1201,12]}}
zigbee.0 | 2018-09-07 12:01:50.471 | error | Unknown device model lumi.vibration.aq1 emit event attReport with data:{"cid":"closuresDoorLock","data":{"85":2,"1283":26}}
can u add support for it ?
Ordered on the 20th of August from Gearbest, I'm still waiting for mine to be delivered. :(
Hello guys,
There is another thread where https://github.com/dresden-elektronik/deconz-rest-plugin/issues/748 @veeceeoh, @oltman, @TedTolboom, @paolotremadio and some others discussed the interpretation of the transmitted payload.
I used that input to create a (partly?) working converter for the specified messages, please find the changes below:
devices_changes.txt fromZigbee_changes.txt
It would be great if some of you might give feedback on it - we can then create a PR later on if it is confirmed to be working.
Interpretation:
- evt [0x55]: vibration, rotation, freefall (from @paolotremadio)
- rotationAngle [0x0503] : absolute angle from last position
- unknownParam [0x0505]: no idea what this does/indicates (maybe someone can help here, just passing it out for easier analysis)
- xAngle, yAngle and zAngle [0x0508]: "how far from horizontal are the X,Y,Z axis?" (from @oltman)
Offset from "reference" position [derived from 0x0505]: Base position to understand the described directions is: "button in front, battery on bottom."
- aX: offset on x-axis, 0 = right side, 90 = bottom side ("battery"), 180 = left side (from @TedTolboom)
- aX: offset on y-axis, 0 = front side, 90 = bottom side ("battery"), 180 = back side (from @TedTolboom)
Hope that helps.
Best,
Tim
Hi iยดm actually sitting in front of this type of device too and work on some rudimental implementation.
This is what i actually do:
devices.js
{
zigbeeModel: ['lumi.vibration.aq1'],
model: 'DJT11LM',
vendor: 'Xiaomi',
description: 'Aqara Movement detection sticker',
supports: 'vibration, linkage, remote push. adjustable sensitivity',
fromZigbee: [fz.xiaomi_battery_3v,fz.ignore_basic_change,fz.ignore_basic_report,fz.DJT11LM_closuresDoorLock_attReport,fz.ignore_closuresDoorLock_change],
toZigbee: [],
},
fromzigbee.js
ignore_closuresDoorLock_change: {
cid: 'closuresDoorLock',
type: 'devChange',
convert: (model, msg, publish, options) => null,
},
DJT11LM_closuresDoorLock_attReport
Code need to develop
From my understanding we need to implement timer for reset vibration return value ...
As i could read you changes .. look good .. will test later :)
Edit1: Your state return is valid .. i do some tests ๐
Edit2: Found this cool informations: http://faire-ca-soi-meme.fr/domotique/2018/09/03/test-xiaomi-aqara-vibration-sensor/
@tb-killa I purchased this sensor too and it is on the way. I do the same like the post above, sniff the packet from Device with Xiaomi gateway when control with app. But when get the data, it so hard to re-produce with Zigbee2mqtt (Zigate have tool to send raw data to test). You can see my relate problem here: https://github.com/Koenkk/zigbee2mqtt/issues/294#issuecomment-419636303