Skip to content
Open
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
20 changes: 20 additions & 0 deletions drivers/SmartThings/matter-switch/fingerprints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,26 @@ matterManufacturer:
vendorId: 0x1285
productId: 0x0009
deviceProfileName: 4-button-batteryLevel
- id: "4741/5"
deviceLabel: Hager Switch 1G
vendorId: 0x1285
productId: 0x0005
deviceProfileName: matter-bridge
- id: "4741/6"
deviceLabel: Hager Switch 2G
vendorId: 0x1285
productId: 0x0006
deviceProfileName: matter-bridge
- id: "4741/7"
deviceLabel: Hager PIR 1.1M
vendorId: 0x1285
productId: 0x0007
deviceProfileName: matter-bridge
- id: "4741/10"
deviceLabel: Hager PIR 2.2M
vendorId: 0x1285
productId: 0x000A
deviceProfileName: matter-bridge
# HAOJAI
- id: "5530/4113"
deviceLabel: HAOJAI Smart Switch 3-key
Expand Down
14 changes: 14 additions & 0 deletions drivers/SmartThings/matter-switch/profiles/motion-illuminance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: motion-illuminance
components:
- id: main
capabilities:
- id: motionSensor
version: 1
- id: illuminanceMeasurement
version: 1
- id: firmwareUpdate
version: 1
- id: refresh
version: 1
categories:
- name: MotionSensor
21 changes: 21 additions & 0 deletions drivers/SmartThings/matter-switch/profiles/window-covering.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: window-covering
components:
- id: main
capabilities:
- id: windowShade
version: 1
- id: windowShadePreset
version: 1
- id: windowShadeLevel
version: 1
- id: firmwareUpdate
version: 1
- id: refresh
version: 1
categories:
- name: Blind
preferences:
- preferenceId: presetPosition
explicit: true
- preferenceId: reverse
explicit: true
3 changes: 2 additions & 1 deletion drivers/SmartThings/matter-switch/src/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- Copyright © 2025 SmartThings, Inc.
-- Copyright © 2026 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0

local MatterDriver = require "st.matter.driver"
Expand Down Expand Up @@ -374,6 +374,7 @@ local matter_driver_template = {
switch_utils.lazy_load_if_possible("sub_drivers.aqara_cube"),
switch_utils.lazy_load("sub_drivers.camera"),
switch_utils.lazy_load_if_possible("sub_drivers.eve_energy"),
switch_utils.lazy_load_if_possible("sub_drivers.hager"),
switch_utils.lazy_load_if_possible("sub_drivers.ikea_scroll"),
switch_utils.lazy_load_if_possible("sub_drivers.third_reality_mk1")
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
-- Copyright © 2026 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0

return function(opts, driver, device, ...)
Comment thread
hcarter-775 marked this conversation as resolved.
local device_lib = require "st.device"
local get_product_override_field = require "switch_utils.utils".get_product_override_field

local checked_device = device.network_type == device_lib.NETWORK_TYPE_MATTER and device or device:get_parent_device()
if get_product_override_field(checked_device, "needs_hager_subdriver") then
return true, require("sub_drivers.hager")
end
return false
end
Loading
Loading