# Aqara High precision motion sensor

**URL:** <https://forum.phoscon.de/t/aqara-high-precision-motion-sensor/3434>\
**Category:** Bug reports\
**Created:** [March 24, 2023, 3:21pm UTC](https://forum.phoscon.de/t/aqara-high-precision-motion-sensor/3434 "2023-03-24T15:21:40Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![andys73](https://forum.phoscon.de/user_avatar/forum.phoscon.de/andys73/32/1155_2.png) [@andys73](https://forum.phoscon.de/u/andys73)\
**Post date:** [March 24, 2023, 3:21pm UTC](https://forum.phoscon.de/t/aqara-high-precision-motion-sensor/3434/1 "2023-03-24T15:21:40Z")

</div>

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:

> <https://github.com/dresden-elektronik/deconz-rest-plugin/pull/5141>
>
> See #5141.
> 
> The PR now explicitly handles indications from cluster 0xFCC0, but… currently only for the Xiaomi special reporting and the sensitivity attribute for this device. It should also allow to configure the motion sensitivity with the same mechanism as the Hue motion sensors.

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!

 ![image](https://forum.phoscon.de/uploads/default/original/2X/9/93cb4cc57e1ebad8c7aadc640aa9316b2150abed.png)

---

<div class="post-metadata">

**Author:** ![Swoop](https://forum.phoscon.de/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@Swoop](https://forum.phoscon.de/u/Swoop)\
**Post date:** [March 25, 2023, 8:07pm UTC](https://forum.phoscon.de/t/aqara-high-precision-motion-sensor/3434/2 "2023-03-25T20:07:08Z")

</div>

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.

````auto
  "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"
          }
        }
      ]
    }
  ]
}```
````

---

<div class="post-metadata">

**Author:** ![andys73](https://forum.phoscon.de/user_avatar/forum.phoscon.de/andys73/32/1155_2.png) [@andys73](https://forum.phoscon.de/u/andys73)\
**Post date:** [March 26, 2023, 4:02am UTC](https://forum.phoscon.de/t/aqara-high-precision-motion-sensor/3434/3 "2023-03-26T04:02:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![andys73](https://forum.phoscon.de/user_avatar/forum.phoscon.de/andys73/32/1155_2.png) [@andys73](https://forum.phoscon.de/u/andys73)\
**Post date:** [March 26, 2023, 6:01am UTC](https://forum.phoscon.de/t/aqara-high-precision-motion-sensor/3434/4 "2023-03-26T06:01:05Z")

</div>

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 🙂

Many thanks!

---

<div class="post-metadata">

**Author:** ![andys73](https://forum.phoscon.de/user_avatar/forum.phoscon.de/andys73/32/1155_2.png) [@andys73](https://forum.phoscon.de/u/andys73)\
**Post date:** [March 31, 2023, 12:09pm UTC](https://forum.phoscon.de/t/aqara-high-precision-motion-sensor/3434/5 "2023-03-31T12:09:29Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![andys73](https://forum.phoscon.de/user_avatar/forum.phoscon.de/andys73/32/1155_2.png) [@andys73](https://forum.phoscon.de/u/andys73)\
**Post date:** [April 2, 2023, 8:01pm UTC](https://forum.phoscon.de/t/aqara-high-precision-motion-sensor/3434/6 "2023-04-02T20:01:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Gautama](https://forum.phoscon.de/user_avatar/forum.phoscon.de/gautama/32/20_2.png) [@Gautama](https://forum.phoscon.de/u/Gautama)\
**Post date:** [April 3, 2023, 6:59am UTC](https://forum.phoscon.de/t/aqara-high-precision-motion-sensor/3434/7 "2023-04-03T06:59:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Mimiix](https://forum.phoscon.de/user_avatar/forum.phoscon.de/mimiix/32/10_2.png) [@Mimiix](https://forum.phoscon.de/u/Mimiix)\
**Post date:** [April 3, 2023, 7:08am UTC](https://forum.phoscon.de/t/aqara-high-precision-motion-sensor/3434/8 "2023-04-03T07:08:44Z")

</div>

We can’t release if not tested…

---

<div class="post-metadata">

**Author:** ![Gautama](https://forum.phoscon.de/user_avatar/forum.phoscon.de/gautama/32/20_2.png) [@Gautama](https://forum.phoscon.de/u/Gautama)\
**Post date:** [April 3, 2023, 7:29am UTC](https://forum.phoscon.de/t/aqara-high-precision-motion-sensor/3434/9 "2023-04-03T07:29:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![andys73](https://forum.phoscon.de/user_avatar/forum.phoscon.de/andys73/32/1155_2.png) [@andys73](https://forum.phoscon.de/u/andys73)\
**Post date:** [April 3, 2023, 11:23am UTC](https://forum.phoscon.de/t/aqara-high-precision-motion-sensor/3434/10 "2023-04-03T11:23:35Z")

</div>

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](https://github.com/dresden-elektronik/deconz-rest-plugin/issues/6855)  
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…

---

<div class="post-metadata">

**Author:** ![andys73](https://forum.phoscon.de/user_avatar/forum.phoscon.de/andys73/32/1155_2.png) [@andys73](https://forum.phoscon.de/u/andys73)\
**Post date:** [April 3, 2023, 1:04pm UTC](https://forum.phoscon.de/t/aqara-high-precision-motion-sensor/3434/11 "2023-04-03T13:04:01Z")

</div>

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?](https://forum.phoscon.de/t/how-to-add-edit-a-ddf-on-home-assistant-using-text-editor/1839).  
Thank you for your support!

---

<div class="post-metadata">

**Author:** ![Mimiix](https://forum.phoscon.de/user_avatar/forum.phoscon.de/mimiix/32/10_2.png) [@Mimiix](https://forum.phoscon.de/u/Mimiix)\
**Post date:** [April 3, 2023, 1:09pm UTC](https://forum.phoscon.de/t/aqara-high-precision-motion-sensor/3434/12 "2023-04-03T13:09:52Z")

</div>

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