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
17 changes: 16 additions & 1 deletion drivers/SmartThings/matter-switch/fingerprints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3928,7 +3928,22 @@ matterManufacturer:
vendorId: 0x141E
productId: 0x0001
deviceProfileName: "button-battery"

#HAGER
- id: "4741/6"
deviceLabel: "Hager Switch 2G"
vendorId: 0x1285
productId: 0x0006
deviceProfileName: "matter-bridge"
- id: "4741/5"
deviceLabel: "Hager Switch 1G"
vendorId: 0x1285
productId: 0x0005
deviceProfileName: "matter-bridge"
- id: "4741/7"
deviceLabel: "Hager PIR"
vendorId: 0x1285
productId: 0x0007
deviceProfileName: "matter-bridge"

#Bridge devices need manufacturer specific fingerprints until
#bridge support is released to all hubs. This is because of the way generic
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
1 change: 1 addition & 0 deletions drivers/SmartThings/matter-switch/src/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,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("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,27 @@
-- Copyright © 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0
return function(opts, driver, device, ...)
local device_lib = require "st.device"
local fields = require "switch_utils.fields"
local vendor_overrides = fields.vendor_overrides

if device.network_type == device_lib.NETWORK_TYPE_CHILD then
local parent = device:get_parent_device()
if parent
and parent.network_type == device_lib.NETWORK_TYPE_MATTER
and vendor_overrides[0x1285][parent.manufacturer_info.product_id]
then
return true, require("sub_drivers.Hager")
end
return false
end

if device.network_type == device_lib.NETWORK_TYPE_MATTER
and device.manufacturer_info.vendor_id == 0x1285
and vendor_overrides[0x1285][device.manufacturer_info.product_id]
then
return true, require("sub_drivers.Hager")
end

return false
end
Loading
Loading