zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

[New device support]: Aqara Multi-State Sensor P100

Open GilDev opened this issue 8 months ago โ€ข 56 comments

Link

https://store-support.aqara.com/products/multi-state-sensor-p100

Database entry

{"id":31,"type":"EndDevice","ieeeAddr":"0x54ef4410015baa1f","nwkAddr":33924,"manufId":4447,"manufName":"Aqara","powerSource":"Battery","modelId":"lumi.vibration.agl002","epList":[1,2],"endpoints":{"1":{"profId":260,"epId":1,"devId":1026,"inClusterList":[257,12,6,3,0,64704],"outClusterList":[10,25],"clusters":{"manuSpecificLumi":{"attributes":{"22":"F07E78BF0FEB82FD9AAC7CD6B1825D49C40A6205102B8815F08C494612138909","223":{"type":"Buffer","data":[40,35,64,0,0,0,3,35,249,0,0,0,4,33,41,0,5,33,2,0,41,35,1,0,0,0,42,35,0,0,0,0,43,33,248,249,44,41,189,255,51,35,0,0,0,0,52,35,0,0,0,0,53,35,0,0,0,0,54,35,0,0,0,128]},"230":2,"247":{"type":"Buffer","data":[5,33,9,0,10,33,248,249,12,32,10,13,35,21,0,0,0,19,32,0,23,33,6,11,24,32,100,26,33,48,11,28,16,0,101,32,5]},"263":0,"268":5,"278":5,"472":0,"491":1,"492":60,"493":0,"494":1,"495":0,"496":1,"497":3,"499":1}},"closuresDoorLock":{"attributes":{"85":3}},"genBasic":{"attributes":{"61441":2,"modelId":"lumi.vibration.agl002","manufacturerName":"Aqara","powerSource":3,"zclVersion":3,"appVersion":21,"stackVersion":27,"hwVersion":1,"dateCode":"20260206"}},"genAnalogInput":{"attributes":{}},"genOnOff":{"attributes":{"onOff":0}}},"binds":[],"configuredReportings":[],"meta":{}},"2":{"profId":260,"epId":2,"devId":1026,"inClusterList":[12],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":21,"stackVersion":27,"hwVersion":1,"dateCode":"20260206","zclVersion":3,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta":{},"lastSeen":1774440480882}

Zigbee2MQTT version

2.9.1

External definition

{}

What does/doesn't work with the external definition?

Nothing works.

Notes

No response

GilDev avatar Mar 25 '26 12:03 GilDev

๐Ÿ™ Thank you for creating this issue and sharing your external converter!

In case all features work, please submit a pull request on this repository so the device can be supported out-of-the-box with the next release. For instructions on how to create a pull request see the docs.

If NOT all features work, please follow the How To Support new devices.

If you need help with the process, feel free to ask here and we'll be happy to assist.

github-actions[bot] avatar Mar 25 '26 12:03 github-actions[bot]

+1

shahen94 avatar Apr 09 '26 07:04 shahen94

Same issue here.

StefanDierkes avatar Apr 10 '26 14:04 StefanDierkes

Pairing of the device worked. But I did not find something like the code mentioned in the following description (1.) in the Z2M-logs: https://www.zigbee2mqtt.io/advanced/support-new-devices/01_support_new_devices.html

StefanDierkes avatar Apr 13 '26 09:04 StefanDierkes

I just got a P100 this afternoon, have a converter largely done, just a few more things to work out. I'll post it over the weekend.

absent42 avatar Apr 17 '26 15:04 absent42

Great! I am looking forward to test it.

StefanDierkes avatar Apr 17 '26 15:04 StefanDierkes

The converter is available for testing now:

https://github.com/absent42/Aqara-P100-Sensor

absent42 avatar Apr 17 '26 19:04 absent42

I could install the converter successfully:

Image

But MQTT does not show useful sensor data.

  • Device posture is "unknown"
  • Orientation does not react to changes an always show "vertical"
  • Vibration (which I want to use) is completely missing
Image

StefanDierkes avatar Apr 18 '26 15:04 StefanDierkes

Device posture will only report once it's relevant and in door/window mode. Try putting into door mode, then lying it flat horizontally, it should change to abnormal. If you have all types of detection enabled at once, they will rapid fire and you could miss vibration since a move movement will probably be reported straight afterwards. Try only enabling vibration then shaking it, you should see it then.

Also make sure calibrate the device as instructed in the user manual.

What do you mean by "full sensor" data? The device has 1 output attribute for actions when in object mode, that attribute changes according what type of action is detected e.g fall, movement etc. You seems to be missing events in HA, make sure you have enabled them in the Z2M HA integration settings.

absent42 avatar Apr 18 '26 16:04 absent42

@absent42 Tested object mode, works great, thanks!

GilDev avatar Apr 18 '26 17:04 GilDev

If you have all types of detection enabled at once, they will rapid fire and you could miss vibration since a move movement will probably be reported straight afterwards. Try only enabling vibration then shaking it, you should see it then.

I had enabled all types of detection to test, if it reacts to any of them. But it doesn't.

With only vibration enabled. I can shake izt hard, but there is no change in the three displayed sensors (Device posture, Orientation , Door. Which is the one for vibration?

Image

StefanDierkes avatar Apr 19 '26 14:04 StefanDierkes

You're missing events, enable events in the Z2M HA settings:

Image Image

And it looks like you're using an older version of the converter, update it to the lastest code. Folow the install instructions in the converter readme.

absent42 avatar Apr 19 '26 14:04 absent42

I have update it to the lastest code and enabled events in the Z2M HA settings.

After a reset of Z2M it works now.

Thank you!

StefanDierkes avatar Apr 19 '26 16:04 StefanDierkes

Thank you very much. With the first version, the p100 was recognized by z2mqtt and HA. I was able to calibrate it, and everything seemed to work except that the open/closed door/window entity in HA mqtt gave me the opposite value to what z2mqtt gave me (if z2mqtt showed open, HA mqtt showed closed). With the latest code update, that part worked correctly (I had to remove the p100 from z2mqtt, delete the first version of the code, restart z2mqtt, install the latest version of the code, restart z2mqtt, and re-pair the p100).

fdavidgespinosa avatar Apr 20 '26 04:04 fdavidgespinosa

All functions are available and working correctly once the P100 has been paired and calibrated. The only issue is that, after a few hours of inactivity, the P100 is still online but none of the sensors are sending status updates. The P100 seems to have frozen. I have to recalibrate it to get it working again. Any ideas?

masciotti avatar Apr 23 '26 21:04 masciotti

I have also experienced this issue.

GilDev avatar Apr 23 '26 23:04 GilDev

Same!

jeremiahpslewis avatar Apr 24 '26 06:04 jeremiahpslewis

I haven't had this happen. Could you provide some logs or something and how you have it configured. Are you using the version of the converter with the quirkCheckinInterval?

absent42 avatar Apr 24 '26 07:04 absent42

I have these lines in the converter extend: [ m.quirkCheckinInterval("1_HOUR"), lumiModernExtend.addManuSpecificLumiCluster(), lumiModernExtend.lumiPreventReset(), lumiModernExtend.lumiBattery({ voltageAttribute: 0x17, percentageAtrribute: 0x18, // typo intentional โ€” matches z-h-c lumiBattery() arg name }), lumiModernExtend.lumiZigbeeOTA(),

I donโ€™t have any logs; the sensor simply stops updating its status, including the settings. The setting change is recorded in MQTT but the status in the MQTT window doesnโ€™t update, as shown in the photo

Image Image

In this state, when I send a status request via MQTT, I only receive โ€˜ON LINEโ€™, but the sensor list with the modified action no longer appears. if i restart the pairing and the calibration the P100 works fine.

masciotti avatar Apr 24 '26 18:04 masciotti

I can't reproduce the sensor stopping reporting actions and events, I've left mine alone for 24 hours plus and it still reports actions when I move it.

In regard to changing the settings, you need to push the on-device button when changing settings, that's mentioned in the manual/Aqara app.

Image

absent42 avatar Apr 24 '26 18:04 absent42