Skip to content

Commit

Permalink
New Device (Matter Lock) Aqara U300 (#1557)
Browse files Browse the repository at this point in the history
* new-device-Matter-Lock-Aqara-U300

* Matter Lock: add Aqara U300 to Aqara Lock sub driver

* Remove product ID from aqara-lock sub driver, use vendor id only

---------

Co-authored-by: Cooper Towns <[email protected]>
  • Loading branch information
lelandblue and ctowns authored Aug 23, 2024
1 parent ec3c3ff commit cc00516
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions drivers/SmartThings/matter-lock/fingerprints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ matterManufacturer:
vendorId: 0x115F
productId: 0x2802
deviceProfileName: lock-lockalarm-nobattery
- id: "4447/10241"
deviceLabel: Aqara Smart Lock U300
vendorId: 0x115F
productId: 0x2801
deviceProfileName: lock-lockalarm-nobattery
matterGeneric:
- id: "matter/door-lock"
deviceLabel: Matter Door Lock
Expand Down
6 changes: 2 additions & 4 deletions drivers/SmartThings/matter-lock/src/aqara-lock/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,11 @@ local device_lib = require "st.device"

local DoorLock = clusters.DoorLock
local AQARA_MANUFACTURER_ID = 0x115f
local U200_PRODUCT_ID = 0x2802

local function is_aqara_products(opts, driver, device)
if device.network_type == device_lib.NETWORK_TYPE_MATTER and
device.manufacturer_info.vendor_id == AQARA_MANUFACTURER_ID and
device.manufacturer_info.product_id == U200_PRODUCT_ID then
return true
device.manufacturer_info.vendor_id == AQARA_MANUFACTURER_ID then
return true
end
return false
end
Expand Down

0 comments on commit cc00516

Please sign in to comment.