Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ deviceConfig:
"value": "lock.value",
"operator": "DOES_NOT_EQUAL",
"operand": "unlatched"
}
}
detailView:
- component: main
capability: lock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ deviceConfig:
"value": "lock.value",
"operator": "DOES_NOT_EQUAL",
"operand": "unlatched"
}
}
detailView:
- component: main
capability: lock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ deviceConfig:
"value": "lock.value",
"operator": "DOES_NOT_EQUAL",
"operand": "unlatched"
}
}
detailView:
- component: main
capability: lock
Expand Down
2 changes: 1 addition & 1 deletion drivers/SmartThings/matter-lock/profiles/lock-unlatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ deviceConfig:
"value": "lock.value",
"operator": "DOES_NOT_EQUAL",
"operand": "unlatched"
}
}
detailView:
- component: main
capability: lock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ deviceConfig:
"value": "lock.value",
"operator": "DOES_NOT_EQUAL",
"operand": "unlatched"
}
}
detailView:
- component: main
capability: lock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ deviceConfig:
"value": "lock.value",
"operator": "DOES_NOT_EQUAL",
"operand": "unlatched"
}
}
detailView:
- component: main
capability: lock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ deviceConfig:
"value": "lock.value",
"operator": "DOES_NOT_EQUAL",
"operand": "unlatched"
}
}
detailView:
- component: main
capability: lock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ deviceConfig:
"value": "lock.value",
"operator": "DOES_NOT_EQUAL",
"operand": "unlatched"
}
}
detailView:
- component: main
capability: lock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ deviceConfig:
"value": "lock.value",
"operator": "DOES_NOT_EQUAL",
"operand": "unlatched"
}
}
detailView:
- component: main
capability: lock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ deviceConfig:
"value": "lock.value",
"operator": "DOES_NOT_EQUAL",
"operand": "unlatched"
}
}
detailView:
- component: main
capability: lock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
local lazy_load_if_possible = require "lazy_load_subdriver"
local sub_drivers = {
lazy_load_if_possible("legacy-handlers.yale"),
lazy_load_if_possible("legacy-handlers.yale-fingerprint-lock"),
lazy_load_if_possible("legacy-handlers.lock-without-codes")
lazy_load_if_possible("legacy-handlers.yale-fingerprint-lock")
}
return sub_drivers
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
-- Licensed under the Apache License, Version 2.0

return function(opts, driver, device, cmd)
local fingerprints = require("legacy-handlers.lock-without-codes.fingerprints")
local fingerprints = require("lock-without-codes.fingerprints")
for _, fingerprint in ipairs(fingerprints) do
if device:get_manufacturer() == fingerprint.mfr and device:get_model() == fingerprint.model then
local subdriver = require("legacy-handlers.lock-without-codes")
local subdriver = require("lock-without-codes")
return true, subdriver
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@
-- Licensed under the Apache License, Version 2.0


local configurationMap = require "configurations"
local configurationMap = require "lock-without-codes.configurations"
local clusters = require "st.zigbee.zcl.clusters"
local capabilities = require "st.capabilities"
local consts = require "lock_utils.constants"

local DoorLock = clusters.DoorLock
local PowerConfiguration = clusters.PowerConfiguration



local function device_init(driver, device)
device:set_field(consts.DRIVER_STATE.SLGA_MIGRATED, true, { persist = true }) -- these locks have no codes, so they do not require any legacy functionality.
local configuration = configurationMap.get_device_configuration(device)
if configuration ~= nil then
for _, attribute in ipairs(configuration) do
Expand Down Expand Up @@ -73,7 +75,7 @@ local lock_without_codes = {
}
}
},
can_handle = require("legacy-handlers.lock-without-codes.can_handle")
can_handle = require("lock-without-codes.can_handle")
}

return lock_without_codes
1 change: 1 addition & 0 deletions drivers/SmartThings/zigbee-lock/src/sub_drivers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

local lazy_load_if_possible = require "lazy_load_subdriver"
local sub_drivers = {
lazy_load_if_possible("lock-without-codes"),
lazy_load_if_possible("legacy-handlers"),
lazy_load_if_possible("samsungsds"),
lazy_load_if_possible("bad-battery-reporter"),
Expand Down
5 changes: 5 additions & 0 deletions drivers/SmartThings/zigbee-switch/fingerprints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ zigbeeManufacturer:
manufacturer: LUMI
model: lumi.light.cwacn1
deviceProfileName: aqara-light
- id: "LUMI/lumi.dimmer.rcbac1"
deviceLabel: Aqara Smart LED Strip Driver
manufacturer: LUMI
model: lumi.dimmer.rcbac1
deviceProfileName: aqara-lightstrip-rgbw
- id: "Aqara/lumi.light.acn014"
deviceLabel: Aqara LED Light Bulb T1 (Tunable White)
manufacturer: Aqara
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: aqara-lightstrip-cct
components:
- id: main
capabilities:
- id: switch
version: 1
- id: switchLevel
version: 1
config:
values:
- key: "level.value"
range: [1, 100]
- id: colorTemperature
version: 1
config:
values:
- key: "colorTemperature.value"
range: [2700, 6500]
- id: refresh
version: 1
categories:
- name: Light
- id: lamp1
capabilities:
- id: switch
version: 1
- id: switchLevel
version: 1
config:
values:
- key: "level.value"
range: [1, 100]
- id: colorTemperature
version: 1
config:
values:
- key: "colorTemperature.value"
range: [2700, 6500]
categories:
- name: Light
- id: lamp2
capabilities:
- id: switch
version: 1
- id: switchLevel
version: 1
config:
values:
- key: "level.value"
range: [1, 100]
- id: colorTemperature
version: 1
config:
values:
- key: "colorTemperature.value"
range: [2700, 6500]
categories:
- name: Light
- id: mode
capabilities:
- id: mode
version: 1
categories:
- name: Light
preferences:
- preferenceId: stse.restorePowerState
explicit: true
- preferenceId: stse.lightFadeInTimeInSec
explicit: true
- preferenceId: stse.lightFadeOutTimeInSec
explicit: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: aqara-lightstrip-rgbw
components:
- id: main
capabilities:
- id: switch
version: 1
- id: switchLevel
version: 1
config:
values:
- key: "level.value"
range: [1, 100]
- id: colorTemperature
version: 1
config:
values:
- key: "colorTemperature.value"
range: [2700, 6500]
- id: colorControl
version: 1
- id: refresh
version: 1
categories:
- name: Light
- id: mode
capabilities:
- id: mode
version: 1
categories:
- name: Light
preferences:
- preferenceId: stse.restorePowerState
explicit: true
- preferenceId: stse.lightFadeInTimeInSec
explicit: true
- preferenceId: stse.lightFadeOutTimeInSec
explicit: true
14 changes: 14 additions & 0 deletions drivers/SmartThings/zigbee-switch/src/aqara-strip/can_handle.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-- Copyright 2026 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0

local FINGERPRINTS = require("aqara-strip.fingerprints")

return function(opts, driver, device)
for _, fingerprint in ipairs(FINGERPRINTS) do
if device:get_manufacturer() == fingerprint.mfr and device:get_model() == fingerprint.model then
local subdriver = require("aqara-strip")
return true, subdriver
end
end
return false
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-- Copyright 2026 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0

return {
{ mfr = "LUMI", model = "lumi.dimmer.rcbac1" }
}
Loading
Loading