Skip to content

Commit 7a6bee8

Browse files
committed
Adding support for Hager WAASYS devices
1 parent dd871ed commit 7a6bee8

9 files changed

Lines changed: 2431 additions & 4 deletions

File tree

drivers/SmartThings/matter-switch/fingerprints.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4093,7 +4093,27 @@ matterManufacturer:
40934093
vendorId: 0x141E
40944094
productId: 0x0001
40954095
deviceProfileName: "button-battery"
4096-
4096+
#HAGER
4097+
- id: "4741/5"
4098+
deviceLabel: "Hager Switch 1G"
4099+
vendorId: 0x1285
4100+
productId: 0x0005
4101+
deviceProfileName: "matter-bridge"
4102+
- id: "4741/6"
4103+
deviceLabel: "Hager Switch 2G"
4104+
vendorId: 0x1285
4105+
productId: 0x0006
4106+
deviceProfileName: "matter-bridge"
4107+
- id: "4741/7"
4108+
deviceLabel: "Hager PIR 1.1M"
4109+
vendorId: 0x1285
4110+
productId: 0x0007
4111+
deviceProfileName: "matter-bridge"
4112+
- id: "4741/10"
4113+
deviceLabel: "Hager PIR 2.2M"
4114+
vendorId: 0x1285
4115+
productId: 0x000A
4116+
deviceProfileName: "matter-bridge"
40974117

40984118
#Bridge devices need manufacturer specific fingerprints until
40994119
#bridge support is released to all hubs. This is because of the way generic
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: motion-illuminance
2+
components:
3+
- id: main
4+
capabilities:
5+
- id: motionSensor
6+
version: 1
7+
- id: illuminanceMeasurement
8+
version: 1
9+
- id: firmwareUpdate
10+
version: 1
11+
- id: refresh
12+
version: 1
13+
categories:
14+
- name: MotionSensor
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: window-covering
2+
components:
3+
- id: main
4+
capabilities:
5+
- id: windowShade
6+
version: 1
7+
- id: windowShadePreset
8+
version: 1
9+
- id: windowShadeLevel
10+
version: 1
11+
- id: firmwareUpdate
12+
version: 1
13+
- id: refresh
14+
version: 1
15+
categories:
16+
- name: Blind
17+
preferences:
18+
- preferenceId: presetPosition
19+
explicit: true
20+
- preferenceId: reverse
21+
explicit: true

drivers/SmartThings/matter-switch/src/init.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- Copyright © 2025 SmartThings, Inc.
1+
-- Copyright © 2026 SmartThings, Inc.
22
-- Licensed under the Apache License, Version 2.0
33

44
local MatterDriver = require "st.matter.driver"
@@ -374,6 +374,7 @@ local matter_driver_template = {
374374
switch_utils.lazy_load_if_possible("sub_drivers.aqara_cube"),
375375
switch_utils.lazy_load("sub_drivers.camera"),
376376
switch_utils.lazy_load_if_possible("sub_drivers.eve_energy"),
377+
switch_utils.lazy_load_if_possible("sub_drivers.hager"),
377378
switch_utils.lazy_load_if_possible("sub_drivers.ikea_scroll"),
378379
switch_utils.lazy_load_if_possible("sub_drivers.third_reality_mk1")
379380
},
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
-- Copyright © 2026 SmartThings, Inc.
2+
-- Licensed under the Apache License, Version 2.0
3+
4+
return function(opts, driver, device, ...)
5+
local device_lib = require "st.device"
6+
local get_product_override_field = require "switch_utils.utils".get_product_override_field
7+
8+
local checked_device = device.network_type == device_lib.NETWORK_TYPE_MATTER and device or device:get_parent_device()
9+
if get_product_override_field(checked_device, "needs_hager_subdriver") then
10+
return true, require("sub_drivers.hager")
11+
end
12+
return false
13+
end

0 commit comments

Comments
 (0)