niceboygithub / AqaraGateway

Aqara Gateway/Hub integration for Home Assistant
491 stars 64 forks source link

Aqara U100 - aqara.lock.acn10 - add support #185

Open FastFreddi opened 1 year ago

FastFreddi commented 1 year ago

Hello, I am wondering if it would be possible to add support to the Aqara U100 lock. I've added aqara.lock.acn10 in place of the N100 lock in the utils.py and also in the lock_data.py on my install. This allows the lock to be detected and provides lock status. I don't know if I should also be able to control the lock from the integration? Here is the debug log.

Aqara Gateway Debug.txt

niceboygithub commented 1 year ago

Can you share your settings of U100?

About control, in Lumi's design, the zigbee of locks including U100 are used to communicating information to gateway. If you want to control lock, you need to use HomeKit via HomePod mini or Apple TV.

If you want to remote lock/unlock by HA, you can create a virtual entity in HA, and export to HomeKit. Then create a automation in HomeKit and use the status of virtual entity to lock/unlock U100 in the new automation.

FastFreddi commented 1 year ago

Here are my settings for the U100, I'm not sure what you need. Let me know if you need any other info.

Settings on U100 (aqara.lock.acn10) Accessory ID: 54EF4410008C4331 SN: A00380/LS1CMMN00278 Hardware Version: 3.0.0_0022 Remote Unlocking: Enabled Unlock via Automations: Enabled Swipe to Lock: Enabled HomeKit: Bound Bound to M2 Hub Firmware: 3.0.0_0022 Plug-In Version Number 0.2.69

M2 Hub Settings (lumi.gateway.agl001): Zigbee Channel 25 Zigbee PAN ID 0x4BC Bind to Matter (Beta): Bound

The lock is bound to the M2 Hub and HomeKit. The M2 Hub is bound to Matter and so is Home Assistant so I can control the lock function via Home Assistant via Matter. My understanding is the Matter utilizes Zigbee to issue its commands to the lock. Perhaps there is a way to control the lock via your integration with Zigbee. Here is a MQTT log of a lock and unlock command sent via Matter.

Matter MQTT Log.txt IMG_8428 IMG_8429

AQ-Official commented 1 month ago

Also need it! My door lock (D200) can be unlocked remotely through the Aqara app. According to the official instructions, this is done via the Zigbee gateway, not HomeKit. Could you please add the feature to control the unlocking of the door lock?