Skip to content
Closed
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
2 changes: 1 addition & 1 deletion .github/workflows/jenkins-driver-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
version:
[ 59, 60, dev]
[ 59, 60, 61, dev]

runs-on: ubuntu-latest
steps:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ function AttributeHandlers.soil_moisture_measurement_limits_handler(driver, devi
local min_val = ib.data.elements and ib.data.elements.min_measured_value and ib.data.elements.min_measured_value.value
local max_val = ib.data.elements and ib.data.elements.max_measured_value and ib.data.elements.max_measured_value.value
if not (min_val and max_val) or (min_val >= max_val) or (min_val < sensor_utils.SOIL_MOISTURE_MIN) or (max_val > sensor_utils.SOIL_MOISTURE_MAX) then
device.log.warn_with({hub_logs = true}, string.format("Device reported invalid soil moisture limits: min=%d, max=%d", min_val, max_val))
device.log.warn_with({hub_logs = true}, string.format("Device reported invalid soil moisture limits: min=%s, max=%s", min_val, max_val))
return
end
sensor_utils.set_field_for_endpoint(device, fields.SOIL_LIMIT_MIN, ib.endpoint_id, min_val)
sensor_utils.set_field_for_endpoint(device, fields.SOIL_LIMIT_MAX, ib.endpoint_id, max_val)
Expand Down
31 changes: 31 additions & 0 deletions drivers/SmartThings/matter-switch/fingerprints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,11 @@ matterManufacturer:
vendorId: 0x1339
productId: 0x0056
deviceProfileName: light-color-level
- id: "4921/85"
deviceLabel: Dual Socket Smart Plug
vendorId: 0x1339
productId: 0x0055
deviceProfileName: plug-binary
#Govee
- id: "4999/24740"
deviceLabel: Govee Square Ceiling Light (12 inch)
Expand Down Expand Up @@ -899,6 +904,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 Expand Up @@ -4169,6 +4194,12 @@ matterManufacturer:
vendorId: 0x1392
productId: 0x0106
deviceProfileName: plug-power-energy-powerConsumption
#GIANT LIGHTING
- id: "5707/1"
deviceLabel: Floor Lamp
vendorId: 0x164B
productId: 0x0001
deviceProfileName: light-color-level


matterGeneric:
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, ...)
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