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
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
-- Copyright 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0


local cluster_base = require "st.matter.cluster_base"
local ActivatedCarbonFilterMonitoringServerAttributes = require "ActivatedCarbonFilterMonitoring.server.attributes"
local ActivatedCarbonFilterMonitoringTypes = require "ActivatedCarbonFilterMonitoring.types"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
-- Copyright 2024 SmartThings
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-- Copyright 2024 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0


-- DO NOT EDIT: this code is automatically generated by ZCL Advanced Platform generator.

Expand Down Expand Up @@ -123,4 +113,3 @@ end

setmetatable(AttributeList, {__call = AttributeList.new_value, __index = AttributeList.base_type})
return AttributeList

Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
-- Copyright 2024 SmartThings
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-- Copyright 2024 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0


-- DO NOT EDIT: this code is automatically generated by ZCL Advanced Platform generator.

Expand Down Expand Up @@ -113,4 +103,3 @@ end

setmetatable(ChangeIndication, {__call = ChangeIndication.new_value, __index = ChangeIndication.base_type})
return ChangeIndication

Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
-- Copyright 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0

local types_mt = {}
types_mt.__types_cache = {}
types_mt.__index = function(self, key)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
-- Copyright 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0


local cluster_base = require "st.matter.cluster_base"
local DishwasherAlarmServerAttributes = require "DishwasherAlarm.server.attributes"
local DishwasherAlarmTypes = require "DishwasherAlarm.types"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
-- Copyright 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0

local types_mt = {}
types_mt.__types_cache = {}
types_mt.__index = function(self, key)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
-- Copyright 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0


local cluster_base = require "st.matter.cluster_base"
local DishwasherModeServerAttributes = require "DishwasherMode.server.attributes"
local DishwasherModeServerCommands = require "DishwasherMode.server.commands"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
-- Copyright 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0

local types_mt = {}
types_mt.__types_cache = {}
types_mt.__index = function(self, key)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
-- Copyright 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0


local cluster_base = require "st.matter.cluster_base"
local HepaFilterMonitoringServerAttributes = require "HepaFilterMonitoring.server.attributes"
local HepaFilterMonitoringTypes = require "HepaFilterMonitoring.types"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
-- Copyright 2024 SmartThings
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-- Copyright 2024 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0


-- DO NOT EDIT: this code is automatically generated by ZCL Advanced Platform generator.

Expand Down Expand Up @@ -123,4 +113,3 @@ end

setmetatable(AttributeList, {__call = AttributeList.new_value, __index = AttributeList.base_type})
return AttributeList

Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
-- Copyright 2024 SmartThings
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-- Copyright 2024 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0


-- DO NOT EDIT: this code is automatically generated by ZCL Advanced Platform generator.

Expand Down Expand Up @@ -113,4 +103,3 @@ end

setmetatable(ChangeIndication, {__call = ChangeIndication.new_value, __index = ChangeIndication.base_type})
return ChangeIndication

Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
-- Copyright 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0

local types_mt = {}
types_mt.__types_cache = {}
types_mt.__index = function(self, key)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
-- Copyright 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0


local LaundryWasherControlsServerAttributes = require "LaundryWasherControls.server.attributes"
local LaundryWasherControlsTypes = require "LaundryWasherControls.types"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
-- Copyright 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0

local types_mt = {}
types_mt.__types_cache = {}
types_mt.__index = function(self, key)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
-- Copyright 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0


local cluster_base = require "st.matter.cluster_base"
local LaundryWasherModeServerAttributes = require "LaundryWasherMode.server.attributes"
local LaundryWasherModeServerCommands = require "LaundryWasherMode.server.commands"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
-- Copyright 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0

local types_mt = {}
types_mt.__types_cache = {}
types_mt.__index = function(self, key)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
-- Copyright 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0


local cluster_base = require "st.matter.cluster_base"
local MicrowaveOvenControlServerAttributes = require "MicrowaveOvenControl.server.attributes"
local MicrowaveOvenControlServerCommands = require "MicrowaveOvenControl.server.commands"
Expand Down Expand Up @@ -81,4 +85,4 @@ setmetatable(MicrowaveOvenControl.commands, command_helper_mt)

setmetatable(MicrowaveOvenControl, {__index = cluster_base})

return MicrowaveOvenControl
return MicrowaveOvenControl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
-- Copyright 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0

local types_mt = {}
types_mt.__types_cache = {}
types_mt.__index = function(self, key)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
-- Copyright 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0


local cluster_base = require "st.matter.cluster_base"
local MicrowaveOvenModeServerAttributes = require "MicrowaveOvenMode.server.attributes"
local MicrowaveOvenModeTypes = require "MicrowaveOvenMode.types"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
-- Copyright 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0

local types_mt = {}
types_mt.__types_cache = {}
types_mt.__index = function(self, key)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
-- Copyright 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0


local cluster_base = require "st.matter.cluster_base"
local OperationalStateServerAttributes = require "OperationalState.server.attributes"
local OperationalStateServerCommands = require "OperationalState.server.commands"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
-- Copyright 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0

local types_mt = {}
types_mt.__types_cache = {}
types_mt.__index = function(self, key)
Expand Down
4 changes: 4 additions & 0 deletions drivers/SmartThings/matter-appliance/src/OvenMode/init.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
-- Copyright 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0


local cluster_base = require "st.matter.cluster_base"
local OvenModeServerAttributes = require "OvenMode.server.attributes"
local OvenModeServerCommands = require "OvenMode.server.commands"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
-- Copyright 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0

local types_mt = {}
types_mt.__types_cache = {}
types_mt.__index = function(self, key)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
-- Copyright 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0


local RefrigeratorAlarmServerAttributes = require "RefrigeratorAlarm.server.attributes"
local RefrigeratorAlarmTypes = require "RefrigeratorAlarm.types"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
-- Copyright 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0

local types_mt = {}
types_mt.__types_cache = {}
types_mt.__index = function(self, key)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
-- Copyright 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0


local cluster_base = require "st.matter.cluster_base"
local RefrigeratorAndTemperatureControlledCabinetModeServerAttributes = require "RefrigeratorAndTemperatureControlledCabinetMode.server.attributes"
local RefrigeratorAndTemperatureControlledCabinetModeServerCommands = require "RefrigeratorAndTemperatureControlledCabinetMode.server.commands"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
-- Copyright 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0

local types_mt = {}
types_mt.__types_cache = {}
types_mt.__index = function(self, key)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
-- Copyright 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0


local cluster_base = require "st.matter.cluster_base"
local TemperatureControlServerAttributes = require "TemperatureControl.server.attributes"
local TemperatureControlServerCommands = require "TemperatureControl.server.commands"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
-- Copyright 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0

local types_mt = {}
types_mt.__types_cache = {}
types_mt.__index = function(self, key)
Expand Down
16 changes: 3 additions & 13 deletions drivers/SmartThings/matter-appliance/src/common-utils.lua
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
-- Copyright 2025 SmartThings
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-- Copyright 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0


local capabilities = require "st.capabilities"
local clusters = require "st.matter.clusters"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
-- Copyright 2025 SmartThings
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-- Copyright 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0


local clusters = require "st.matter.clusters"
local utils = require "st.utils"
Expand Down
25 changes: 3 additions & 22 deletions drivers/SmartThings/matter-appliance/src/init.lua
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
-- Copyright 2025 SmartThings
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-- Copyright 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0

local MatterDriver = require "st.matter.driver"
local capabilities = require "st.capabilities"
Expand Down Expand Up @@ -307,15 +296,7 @@ local matter_driver_template = {
capabilities.fanSpeedPercent,
capabilities.windMode
},
sub_drivers = {
require("matter-cook-top"),
require("matter-dishwasher"),
require("matter-extractor-hood"),
require("matter-laundry"),
require("matter-microwave-oven"),
require("matter-oven"),
require("matter-refrigerator")
}
sub_drivers = require("sub_drivers"),
}

local matter_driver = MatterDriver("matter-appliance", matter_driver_template)
Expand Down
14 changes: 14 additions & 0 deletions drivers/SmartThings/matter-appliance/src/lazy_load_subdriver.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-- Copyright 2025 SmartThings, Inc.
-- Licensed under the Apache License, Version 2.0

return function(sub_driver_name)
local MatterDriver = require "st.matter.driver"
local version = require "version"
if version.api >= 16 then
return MatterDriver.lazy_load_sub_driver_v2(sub_driver_name)
elseif version.api >= 9 then
return MatterDriver.lazy_load_sub_driver(require(sub_driver_name))
else
return require(sub_driver_name)
end
end
Loading
Loading