Aqara High precision motion sensor

Hi there,

After a failed experiment with the Aqara FP1 (sensor locks up after functioning for one day) as the ali express seller did not wanted to send me a refund but to get another FP1 I ask them to send me the Aqara High Precision Motion sensor…

The support for this was added here:

Running Home Assistant OS and deconz addon I get the following behavior:

  • Regardless of the setting delay (and I press the button on the sensor to wake it up) it seems that the cool off period is 5 min which is way to big.
  • Every hour even if they are no movement it registers a detection and clears it up right away.

When I pair it in Aqara I can see two settings. Sensitivity and cool off period. With sensitivity medium and cool off period at 30 seconds the sensor reports all great…

see below the screenshot from HA…

Did anyone managed to actually use this sensor properly?

Thanks!

Hi,

for that sensor, there’s a DDF pull request out there already for a long time, which didn’t get merged. Regardless, it needs some amendments anyway, so here is an updated version which you could test.

  "schema": "devcap1.schema.json",
  "manufacturername": "$MF_LUMI",
  "modelid": "lumi.motion.agl04",
  "vendor": "Xiaomi",
  "product": "Aqara high precision motion sensor RTCGQ13LM",
  "sleeper": true,
  "status": "Gold",
  "subdevices": [
    {
      "type": "$TYPE_PRESENCE_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0x0406"
      ],
      "fingerprint": {
        "profile": "0x0104",
        "device": "0x0107",
        "endpoint": "0x01",
        "in": [
          "0x0000",
          "0x0001",
          "0xFCC0"
        ]
      },
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid",
          "awake": true
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion",
          "awake": true,
          "parse": {
            "at": "0x00f7",
            "ep": 1,
            "fn": "xiaomi:special",
            "idx": "0x08",
            "script": "xiaomi_swversion.js"
          },
          "read": {
            "fn": "none"
          }
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/battery",
          "awake": true,
          "parse": {
            "at": "0xff07",
            "ep": 1,
            "fn": "xiaomi:special",
            "idx": "0x01",
            "script": "xiaomi_battery.js"
          }
        },
        {
          "name": "config/duration",
          "refresh.interval": 3600,
          "awake": true,
          "parse": {
            "at": "0x0102",
            "cl": "0xFCC0",
            "ep": 1,
            "eval": "Item.val = Attr.val",
            "fn": "zcl",
            "mf": "0x115F"
          },
          "read": {
            "at": "0x0102",
            "cl": "0xFCC0",
            "ep": 1,
            "fn": "zcl",
            "mf": "0x115F"
          },
          "write": {
            "at": "0x0102",
            "change.timeout": 3600,
            "cl": "0xFCC0",
            "dt": "0x20",
            "ep": 1,
            "eval": "Item.val",
            "fn": "zcl",
            "mf": "0x115F",
            "state.timeout": 2
          },
          "range": [1, 200],
          "default": 30
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "config/sensitivity",
          "refresh.interval": 3600,
          "awake": true,
          "parse": {
            "at": "0x010C",
            "cl": "0xFCC0",
            "ep": 1,
            "eval": "Item.val = Attr.val",
            "fn": "zcl",
            "mf": "0x115F"
          },
          "read": {
            "at": "0x010C",
            "cl": "0xFCC0",
            "ep": 1,
            "fn": "zcl",
            "mf": "0x115F"
          },
          "write": {
            "at": "0x010C",
            "change.timeout": 3600,
            "cl": "0xFCC0",
            "dt": "0x20",
            "ep": 1,
            "eval": "Item.val",
            "fn": "zcl",
            "mf": "0x115F",
            "state.timeout": 2
          },
          "values": [
            [1, "Low"],
            [2, "Medium"],
            [3, "High"]
          ],
          "default": 3
        },
        {
          "name": "state/lastupdated"
        },
        {
          "name": "state/presence",
          "parse": {
            "at": "0x0000",
            "cl": "0x0406",
            "ep": 1,
            "eval": "Item.val = Attr.val"
          },
          "read": {
            "fn": "None"
          }
        }
      ]
    }
  ]
}```

Many thanks for that, I will try to test it with the ddf , using home assistant and deconz addon.

Hello,
Transferring files to deconz plug in looks like an impossible task and the editor is not able to maintain the values for example script in the xiaomi:special, script only available in zcl…
Would you be possible to push it to the next release it can’t be worse that what we have now which is more or less un-usable :slight_smile:

Many thanks!

Hi @Swoop so how can we proceed with this. Can you push it to the release?
Thank you.

I will log it as a bug / incomplete support on github.

What is not working at this point?
Unfortunately, it did not end up in the current release.

We can’t release if not tested…

1 Like

I don’t know the procedures here, thanks for the info.

I have specified in the description what is not working and I have also created a bug report Aqara High Precision Monitor sensor RTCGQ13LM functionality · Issue #6855 · dresden-elektronik/deconz-rest-plugin · GitHub
If the DDF Editor would have a text Editor guys like me with HA OS and Deconz addon we could test the ddf but otherwise is very difficult to create the file somewhere and pass it on the container.
I am guessing the ddf got tested by someone else , it just did not got promoted?
Particularly the bug with every hour reporting of motion it makes the current implementation impossible to use…

I got another link on how to test it with HA and Deconz Addon. Will try that. How to add/edit a DDF on Home assistant using text editor?.
Thank you for your support!

I am moving this topic to bug reports, otherwise we have 2 places to discuss this.
Please proceed in the github issue.