# Aqara Door Window Sensor P1 Zigbee 3.0

**URL:** <https://forum.phoscon.de/t/aqara-door-window-sensor-p1-zigbee-3-0/6399>\
**Category:** Device Requests\
**Created:** [July 17, 2025, 1:55pm UTC](https://forum.phoscon.de/t/aqara-door-window-sensor-p1-zigbee-3-0/6399 "2025-07-17T13:55:10Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![cactus-online](https://forum.phoscon.de/user_avatar/forum.phoscon.de/cactus-online/32/4305_2.png) [@cactus-online](https://forum.phoscon.de/u/cactus-online)\
**Post date:** [July 17, 2025, 1:55pm UTC](https://forum.phoscon.de/t/aqara-door-window-sensor-p1-zigbee-3-0/6399/1 "2025-07-17T13:55:10Z")

</div>

I bought a “Aqara Door Window Sensor P1 Zigbee 3.0” and it is shown in the deCONZ graphical view, but not shown as sensor in the Phoscon app. It looks like the device described in this thread “[Paring Aqara P1](https://forum.phoscon.de/t/paring-aqara-p1/4514)” but seems not being the same.

According to [Aqara P1 Door & Window Sensor MCCGQ13LM Zigbee compatibility](https://zigbee.blakadder.com/Aqara_MCCGQ13LM.html) it should work … .

I’m thankful for any hint to activate this.

---

<div class="post-metadata">

**Author:** ![Smanar](https://forum.phoscon.de/user_avatar/forum.phoscon.de/smanar/32/60_2.png) [@Smanar](https://forum.phoscon.de/u/Smanar)\
**Post date:** [July 17, 2025, 3:34pm UTC](https://forum.phoscon.de/t/aqara-door-window-sensor-p1-zigbee-3-0/6399/2 "2025-07-17T15:34:26Z")

</div>

Hello, what is the Manufacture name and the device model ID ?

---

<div class="post-metadata">

**Author:** ![cactus-online](https://forum.phoscon.de/user_avatar/forum.phoscon.de/cactus-online/32/4305_2.png) [@cactus-online](https://forum.phoscon.de/u/cactus-online)\
**Post date:** [July 18, 2025, 7:34am UTC](https://forum.phoscon.de/t/aqara-door-window-sensor-p1-zigbee-3-0/6399/3 "2025-07-18T07:34:12Z")

</div>

Hallo,

ich kenne mich nicht so gut aus, daher habe ich mal alle Infos reingepackt:

 ![grafik](https://forum.phoscon.de/uploads/default/original/2X/a/a818a8a5fafde09609278a27fd380a1ac3e6e399.png)

Danke für Deine Unterstützung.

VG.

---

<div class="post-metadata">

**Author:** ![Smanar](https://forum.phoscon.de/user_avatar/forum.phoscon.de/smanar/32/60_2.png) [@Smanar](https://forum.phoscon.de/u/Smanar)\
**Post date:** [July 18, 2025, 1:48pm UTC](https://forum.phoscon.de/t/aqara-door-window-sensor-p1-zigbee-3-0/6399/4 "2025-07-18T13:48:28Z")

</div>

Hello, same problem than here [Light sensor ZSS-QY-LS-C / TS0222\_TZ3000\_8uxxzz4b unknown - #6 by Smanar](https://forum.phoscon.de/t/light-sensor-zss-qy-ls-c-ts0222-tz3000-8uxxzz4b-unknown/6397/6)  
Value are “Unknow”

---

<div class="post-metadata">

**Author:** ![cactus-online](https://forum.phoscon.de/user_avatar/forum.phoscon.de/cactus-online/32/4305_2.png) [@cactus-online](https://forum.phoscon.de/u/cactus-online)\
**Post date:** [July 23, 2025, 10:34am UTC](https://forum.phoscon.de/t/aqara-door-window-sensor-p1-zigbee-3-0/6399/5 "2025-07-23T10:34:22Z")

</div>

It seems quite similiar to MCCGQ14LM. Who can guide me to adapt this ddf ?

---

<div class="post-metadata">

**Author:** ![Smanar](https://forum.phoscon.de/user_avatar/forum.phoscon.de/smanar/32/60_2.png) [@Smanar](https://forum.phoscon.de/u/Smanar)\
**Post date:** [July 23, 2025, 4:34pm UTC](https://forum.phoscon.de/t/aqara-door-window-sensor-p1-zigbee-3-0/6399/6 "2025-07-23T16:34:45Z")

</div>

Take a look here [Light sensor ZSS-QY-LS-C / TS0222\_TZ3000\_8uxxzz4b unknown - #6 by Smanar](https://forum.phoscon.de/t/light-sensor-zss-qy-ls-c-ts0222-tz3000-8uxxzz4b-unknown/6397/6)  
And do same, I need the modelID+Manufacture Name.

---

<div class="post-metadata">

**Author:** ![cactus-online](https://forum.phoscon.de/user_avatar/forum.phoscon.de/cactus-online/32/4305_2.png) [@cactus-online](https://forum.phoscon.de/u/cactus-online)\
**Post date:** [July 23, 2025, 5:30pm UTC](https://forum.phoscon.de/t/aqara-door-window-sensor-p1-zigbee-3-0/6399/7 "2025-07-23T17:30:58Z")

</div>

Model Identifier: lumi.magnet.ac01  
Manufacturer Name: LUMI

 ![image](https://forum.phoscon.de/uploads/default/original/2X/5/55dbdfe184b1a6ac48e1d6aec19923ee2f0caab1.jpeg)

---

<div class="post-metadata">

**Author:** ![Smanar](https://forum.phoscon.de/user_avatar/forum.phoscon.de/smanar/32/60_2.png) [@Smanar](https://forum.phoscon.de/u/Smanar)\
**Post date:** [July 24, 2025, 2:54pm UTC](https://forum.phoscon.de/t/aqara-door-window-sensor-p1-zigbee-3-0/6399/8 "2025-07-24T14:54:46Z")

</div>

There is no DDF for this device.  
There is one for the “lumi.magnet.agl02” but this device don’t use IAS cluster

Can try to add your device to the DDF “devices\xiaomi\xiaomi\_mccgq14lm\_e1\_openclose\_sensor.json”

```auto
  "manufacturername": ["$MF_LUMI", "$MF_LUMI"],
  "modelid": ["lumi.magnet.acn001", "lumi.magnet.ac01"],

```

This one almost have the same working mode (perhaps not the battery)

Edit, forget what I have say, this device have more feature, better to start on a new DDF

```auto

{
  "schema": "devcap1.schema.json",
  "manufacturername": "$MF_LUMI",
  "modelid": "lumi.magnet.ac01",
  "vendor": "Xiaomi Aqara",
  "product": "Aqara Door Window Sensor P1 Zigbee 3.0",
  "sleeper": true,
  "status": "Gold",
  "subdevices": [
    {
      "type": "$TYPE_OPEN_CLOSE_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0x0500"
      ],
      "fingerprint": {
        "profile": "0x0104",
        "device": "0x0402",
        "endpoint": "0x01",
        "in": [
          "0x0000",
          "0x0001",
          "0x0500",
          "0xFCC0"
        ]
      },
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername",
          "awake": true
        },
        {
          "name": "attr/modelid",
          "awake": true
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion",
          "awake": true,
          "parse": {
            "at": "0x00f7",
            "ep": 1,
            "eval": "Item.val = '0.0.0_' + ('0000' + (Attr.val & 0xFF).toString()).slice(-4)",
            "fn": "xiaomi:special",
            "idx": "0x08",
            "mf": "0x115f"
          },
          "read": {
            "fn": "none"
          }
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/battery",
          "awake": true,
          "parse": {
            "at": "0x00f7",
            "ep": 1,
            "fn": "xiaomi:special",
            "idx": "0x01",
            "mf": "0x115f",
            "script": "xiaomi_battery.js"
          }
        },
        {
          "name": "config/enrolled",
          "default": 1
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/pending"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/lastupdated"
        },
        {
          "name": "state/open"
        }
      ]
    }
  ]
}

```

---

<div class="post-metadata">

**Author:** ![Smanar](https://forum.phoscon.de/user_avatar/forum.phoscon.de/smanar/32/60_2.png) [@Smanar](https://forum.phoscon.de/u/Smanar)\
**Post date:** [July 24, 2025, 3:03pm UTC](https://forum.phoscon.de/t/aqara-door-window-sensor-p1-zigbee-3-0/6399/9 "2025-07-24T15:03:17Z")

</div>

And as new feature

```auto

        {
          "name": "config/targetdistance",
          "parse": {
            "fn": "zcl:attr",
            "ep": 1,
            "cl": "0xFCC0",
            "mf": "0x115F",
            "at": "0x010C",
            "eval": "Item.val = ['10', '20', '30'][Attr.val]"
          },
          "read": {
            "fn": "none"
          },
          "write": {
            "fn": "zcl:attr",
            "ep": 1,
            "cl": "0xFCC0",
            "mf": "0x115F",
            "at": "0x010C",
            "dt": "0x20",
            "eval": "['10', '20', '30'].indexOf(Item.val)"
          },
          "default": "10"
        },

```

---

<div class="post-metadata">

**Author:** ![cactus-online](https://forum.phoscon.de/user_avatar/forum.phoscon.de/cactus-online/32/4305_2.png) [@cactus-online](https://forum.phoscon.de/u/cactus-online)\
**Post date:** [July 25, 2025, 9:39am UTC](https://forum.phoscon.de/t/aqara-door-window-sensor-p1-zigbee-3-0/6399/10 "2025-07-25T09:39:44Z")

</div>

Thank you very much!! Now it is reconized as sensor an the state changes:

 ![grafik](https://forum.phoscon.de/uploads/default/original/2X/6/6fa846087e87894d909696ae0d9d2a32361b64a1.png)

One small issue:

 ![grafik](https://forum.phoscon.de/uploads/default/original/2X/7/705783f9c969552207d7eacec5b237745846f33f.png)  
No state change here.

---

<div class="post-metadata">

**Author:** ![Smanar](https://forum.phoscon.de/user_avatar/forum.phoscon.de/smanar/32/60_2.png) [@Smanar](https://forum.phoscon.de/u/Smanar)\
**Post date:** [July 25, 2025, 1:47pm UTC](https://forum.phoscon.de/t/aqara-door-window-sensor-p1-zigbee-3-0/6399/11 "2025-07-25T13:47:10Z")

</div>

lol, not realy a “small issue” ^^.

Perhaps I m wrong and this device use the cluster 0x0006.  
If it use the cluster 0x0006 can try to replace

```auto
        {
          "name": "state/open"
        }

```

by

```auto
        {
          "name": "state/open",
          "parse": {
            "at": "0x0000",
            "cl": "0x0006",
            "ep": 1,
            "eval": "Item.val = Attr.val",
            "fn": "zcl:attr"
          }
        }

```

But it mean all the IAS stuff can be removed

---

<div class="post-metadata">

**Author:** ![cactus-online](https://forum.phoscon.de/user_avatar/forum.phoscon.de/cactus-online/32/4305_2.png) [@cactus-online](https://forum.phoscon.de/u/cactus-online)\
**Post date:** [July 28, 2025, 6:59am UTC](https://forum.phoscon.de/t/aqara-door-window-sensor-p1-zigbee-3-0/6399/12 "2025-07-28T06:59:05Z")

</div>

Tried this and added the lines. But now, it is not recognized as sensor anymore and the On/Off cluster no longer available.

---

<div class="post-metadata">

**Author:** ![Smanar](https://forum.phoscon.de/user_avatar/forum.phoscon.de/smanar/32/60_2.png) [@Smanar](https://forum.phoscon.de/u/Smanar)\
**Post date:** [July 28, 2025, 2:05pm UTC](https://forum.phoscon.de/t/aqara-door-window-sensor-p1-zigbee-3-0/6399/13 "2025-07-28T14:05:36Z")

</div>

> Tried this and added the lines. But now, it is not recognized as sensor anymore

A typo in the DDF ? try

```auto
{
  "schema": "devcap1.schema.json",
  "manufacturername": "$MF_LUMI",
  "modelid": "lumi.magnet.ac01",
  "vendor": "Xiaomi Aqara",
  "product": "Aqara Door Window Sensor P1 Zigbee 3.0",
  "sleeper": true,
  "status": "Gold",
  "subdevices": [
    {
      "type": "$TYPE_OPEN_CLOSE_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0x0500"
      ],
      "fingerprint": {
        "profile": "0x0104",
        "device": "0x0402",
        "endpoint": "0x01",
        "in": [
          "0x0000",
          "0x0001",
          "0x0500",
          "0xFCC0"
        ]
      },
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername",
          "awake": true
        },
        {
          "name": "attr/modelid",
          "awake": true
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion",
          "awake": true,
          "parse": {
            "at": "0x00f7",
            "ep": 1,
            "eval": "Item.val = '0.0.0_' + ('0000' + (Attr.val & 0xFF).toString()).slice(-4)",
            "fn": "xiaomi:special",
            "idx": "0x08",
            "mf": "0x115f"
          },
          "read": {
            "fn": "none"
          }
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/battery",
          "awake": true,
          "parse": {
            "at": "0x00f7",
            "ep": 1,
            "fn": "xiaomi:special",
            "idx": "0x01",
            "mf": "0x115f",
            "script": "xiaomi_battery.js"
          }
        },
        {
          "name": "config/enrolled",
          "default": 1
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/pending"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/lastupdated"
        },
        {
          "name": "state/open",
          "parse": {
            "at": "0x0000",
            "cl": "0x0006",
            "ep": 1,
            "eval": "Item.val = Attr.val",
            "fn": "zcl:attr"
          }
        }
      ]
    }
  ]
}

```

---

<div class="post-metadata">

**Author:** ![cactus-online](https://forum.phoscon.de/user_avatar/forum.phoscon.de/cactus-online/32/4305_2.png) [@cactus-online](https://forum.phoscon.de/u/cactus-online)\
**Post date:** [July 28, 2025, 4:25pm UTC](https://forum.phoscon.de/t/aqara-door-window-sensor-p1-zigbee-3-0/6399/14 "2025-07-28T16:25:28Z")

</div>

Yes Sir. There was a mistake in the ddf. Now sensor state is shown in WebUI. Thank you very much for your support !

---

<div class="post-metadata">

**Author:** ![Smanar](https://forum.phoscon.de/user_avatar/forum.phoscon.de/smanar/32/60_2.png) [@Smanar](https://forum.phoscon.de/u/Smanar)\
**Post date:** [July 29, 2025, 5:26pm UTC](https://forum.phoscon.de/t/aqara-door-window-sensor-p1-zigbee-3-0/6399/15 "2025-07-29T17:26:03Z")

</div>

So all is working ?  
Do you want to make a Pr to submit the device ? or want I make it ?

---

<div class="post-metadata">

**Author:** ![cactus-online](https://forum.phoscon.de/user_avatar/forum.phoscon.de/cactus-online/32/4305_2.png) [@cactus-online](https://forum.phoscon.de/u/cactus-online)\
**Post date:** [July 29, 2025, 7:59pm UTC](https://forum.phoscon.de/t/aqara-door-window-sensor-p1-zigbee-3-0/6399/16 "2025-07-29T19:59:13Z")

</div>

If it’s no trouble, then you’re welcome to do the PR. After all, it was your achievement, I was just the tester and beneficiary.

---

<div class="post-metadata">

**Author:** ![Smanar](https://forum.phoscon.de/user_avatar/forum.phoscon.de/smanar/32/60_2.png) [@Smanar](https://forum.phoscon.de/u/Smanar)\
**Post date:** [July 29, 2025, 8:25pm UTC](https://forum.phoscon.de/t/aqara-door-window-sensor-p1-zigbee-3-0/6399/17 "2025-07-29T20:25:05Z")

</div>

Done \> [DDF add primary support for the Aqara Door Window Sensor P1 by Smanar · Pull Request #8284 · dresden-elektronik/deconz-rest-plugin · GitHub](https://github.com/dresden-elektronik/deconz-rest-plugin/pull/8284)

Just for information, as the deive use the cluster on/off I have removed all the IAS stuff.  
Can you test if the official DDF in the PR is still working pls ?

---

<div class="post-metadata">

**Author:** ![cactus-online](https://forum.phoscon.de/user_avatar/forum.phoscon.de/cactus-online/32/4305_2.png) [@cactus-online](https://forum.phoscon.de/u/cactus-online)\
**Post date:** [July 30, 2025, 3:22pm UTC](https://forum.phoscon.de/t/aqara-door-window-sensor-p1-zigbee-3-0/6399/18 "2025-07-30T15:22:36Z")

</div>

Tested. Works. Thank you very much for all !

---

<div class="post-metadata">

**Author:** ![Smanar](https://forum.phoscon.de/user_avatar/forum.phoscon.de/smanar/32/60_2.png) [@Smanar](https://forum.phoscon.de/u/Smanar)\
**Post date:** [July 31, 2025, 2:02pm UTC](https://forum.phoscon.de/t/aqara-door-window-sensor-p1-zigbee-3-0/6399/19 "2025-07-31T14:02:31Z")

</div>

Thx, have removed the draft status for the PR
