Trouble setting sensitivity of Aqara vibration sensor

Tags: #<Tag:0x00007f73affeb7b0> #<Tag:0x00007f73affeb1c0>

I successfully paired an Xiaomi Aqara vibration sensor (DJT11LM) using zigbee2mqtt. I have it stuck on a magnet on the front of my washer and an automation that alerts me if a timer triggered by vibration detected by the sensor expires. Unfortunately the sensor barely triggers and I am trying to increase the sensitivity following this link. However when I send
zigbee2mqtt/0x00158d0003135593/set
with a payload of
{ "sensitivity": "high"}
I get the following error in the log:

zigbee2mqtt:info 10/16/2019, 11:06:18 AM MQTT publish: topic 'zigbee2mqtt/0x00158d0003135593', payload '{"angle":18,"linkquality":86,"angle_x":1,"angle_y":0,"angle_z":89,"angle_x_absolute":89,"angle_y_absolute":90,"battery":100,"voltage":3015}'
  zigbee2mqtt:info 10/16/2019, 11:06:22 AM Zigbee publish to device '0x00158d0003135593', genBasic - write - [{"attrId":65293,"dataType":32,"attrData":1}] - {"manufSpec":1,"disDefaultRsp":1,"manufCode":4447} - 1
  zigbee2mqtt:error 10/16/2019, 11:06:28 AM Zigbee publish to device '0x00158d0003135593', genBasic - write - [{"attrId":65293,"dataType":32,"attrData":1}] - {"manufSpec":1,"disDefaultRsp":1,"manufCode":4447} - null failed with error Error: AF data request fails, status code: 240. MAC transaction expired.
  zigbee2mqtt:info 10/16/2019, 11:06:28 AM MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"zigbee_publish_error","message":"Error: AF data request fails, status code: 240. MAC transaction expired.","meta":{"entity":{"ID":"0x00158d0003135593","type":"device","friendlyName":"0x00158d0003135593"},"message":"{ \"sensitivity\": \"high\"}"}}'

I do wake up the sensor by pressing the button before publishing.

Can anyone tell me what I am doing wrong?

Thanks

1 Like

Turns out I had to press the button on the sensor longer more often or longer. Either way it worked. Leaving this here for posterity

Did this change of sensitivity make it functional as a dryer/washer sensor?

It did, but made it too sensitive. So I am now detecting washer/dryer operation using a history_stats sensor:

  - platform: history_stats
    name: vibe_count
    entity_id: sensor.aqara_vib_action
    state: 'vibration'
    type: count
    end: '{{ now() }}'
    duration: 00:10:00

that activates my notification automation once vibe_count goes over 5. Once the value goes back below 2 I get notified.

Note that I have a stacked unit and I am used a disk magnet taped to the sensor stuck to the dryer door (which is on top).