Skip to content
Merged
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,6 +1,6 @@
local cluster_base = require "st.matter.cluster_base"
local ElectricalEnergyMeasurementServerAttributes = require "ElectricalEnergyMeasurement.server.attributes"
local ElectricalEnergyMeasurementTypes = require "ElectricalEnergyMeasurement.types"
local ElectricalEnergyMeasurementServerAttributes = require "embedded_clusters.ElectricalEnergyMeasurement.server.attributes"
local ElectricalEnergyMeasurementTypes = require "embedded_clusters.ElectricalEnergyMeasurement.types"
local ElectricalEnergyMeasurement = {}

ElectricalEnergyMeasurement.ID = 0x0091
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ local TLVParser = require "st.matter.TLV.TLVParser"
local CumulativeEnergyImported = {
ID = 0x0001,
NAME = "CumulativeEnergyImported",
base_type = require "ElectricalEnergyMeasurement.types.EnergyMeasurementStruct",
base_type = require "embedded_clusters.ElectricalEnergyMeasurement.types.EnergyMeasurementStruct",
}

function CumulativeEnergyImported:new_value(...)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ local TLVParser = require "st.matter.TLV.TLVParser"
local PeriodicEnergyImported = {
ID = 0x0003,
NAME = "PeriodicEnergyImported",
base_type = require "ElectricalEnergyMeasurement.types.EnergyMeasurementStruct",
base_type = require "embedded_clusters.ElectricalEnergyMeasurement.types.EnergyMeasurementStruct",
}

function PeriodicEnergyImported:new_value(...)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local attr_mt = {}
attr_mt.__attr_cache = {}
attr_mt.__index = function(self, key)
if attr_mt.__attr_cache[key] == nil then
local req_loc = string.format("ElectricalEnergyMeasurement.server.attributes.%s", key)
local req_loc = string.format("embedded_clusters.ElectricalEnergyMeasurement.server.attributes.%s", key)
local raw_def = require(req_loc)
local cluster = rawget(self, "_cluster")
raw_def:set_parent_cluster(cluster)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local types_mt = {}
types_mt.__types_cache = {}
types_mt.__index = function(self, key)
if types_mt.__types_cache[key] == nil then
types_mt.__types_cache[key] = require("ElectricalEnergyMeasurement.types." .. key)
types_mt.__types_cache[key] = require("embedded_clusters.ElectricalEnergyMeasurement.types." .. key)
end
return types_mt.__types_cache[key]
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local cluster_base = require "st.matter.cluster_base"
local ElectricalPowerMeasurementServerAttributes = require "ElectricalPowerMeasurement.server.attributes"
local ElectricalPowerMeasurementTypes = require "ElectricalPowerMeasurement.types"
local ElectricalPowerMeasurementServerAttributes = require "embedded_clusters.ElectricalPowerMeasurement.server.attributes"
local ElectricalPowerMeasurementTypes = require "embedded_clusters.ElectricalPowerMeasurement.types"

local ElectricalPowerMeasurement = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local attr_mt = {}
attr_mt.__attr_cache = {}
attr_mt.__index = function(self, key)
if attr_mt.__attr_cache[key] == nil then
local req_loc = string.format("ElectricalPowerMeasurement.server.attributes.%s", key)
local req_loc = string.format("embedded_clusters.ElectricalPowerMeasurement.server.attributes.%s", key)
local raw_def = require(req_loc)
local cluster = rawget(self, "_cluster")
raw_def:set_parent_cluster(cluster)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local types_mt = {}
types_mt.__types_cache = {}
types_mt.__index = function(self, key)
if types_mt.__types_cache[key] == nil then
types_mt.__types_cache[key] = require("ElectricalPowerMeasurement.types." .. key)
types_mt.__types_cache[key] = require("embedded_clusters.ElectricalPowerMeasurement.types." .. key)
end
return types_mt.__types_cache[key]
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local cluster_base = require "st.matter.cluster_base"
local ValveConfigurationAndControlServerAttributes = require "ValveConfigurationAndControl.server.attributes"
local ValveConfigurationAndControlServerCommands = require "ValveConfigurationAndControl.server.commands"
local ValveConfigurationAndControlTypes = require "ValveConfigurationAndControl.types"
local ValveConfigurationAndControlServerAttributes = require "embedded_clusters.ValveConfigurationAndControl.server.attributes"
local ValveConfigurationAndControlServerCommands = require "embedded_clusters.ValveConfigurationAndControl.server.commands"
local ValveConfigurationAndControlTypes = require "embedded_clusters.ValveConfigurationAndControl.types"
local ValveConfigurationAndControl = {}

ValveConfigurationAndControl.ID = 0x0081
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ local TLVParser = require "st.matter.TLV.TLVParser"
local CurrentState = {
ID = 0x0004,
NAME = "CurrentState",
base_type = require "ValveConfigurationAndControl.types.ValveStateEnum",
base_type = require "embedded_clusters.ValveConfigurationAndControl.types.ValveStateEnum",
}

function CurrentState:new_value(...)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local attr_mt = {}
attr_mt.__attr_cache = {}
attr_mt.__index = function(self, key)
if attr_mt.__attr_cache[key] == nil then
local req_loc = string.format("ValveConfigurationAndControl.server.attributes.%s", key)
local req_loc = string.format("embedded_clusters.ValveConfigurationAndControl.server.attributes.%s", key)
local raw_def = require(req_loc)
local cluster = rawget(self, "_cluster")
raw_def:set_parent_cluster(cluster)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local command_mt = {}
command_mt.__command_cache = {}
command_mt.__index = function(self, key)
if command_mt.__command_cache[key] == nil then
local req_loc = string.format("ValveConfigurationAndControl.server.commands.%s", key)
local req_loc = string.format("embedded_clusters.ValveConfigurationAndControl.server.commands.%s", key)
local raw_def = require(req_loc)
local cluster = rawget(self, "_cluster")
command_mt.__command_cache[key] = raw_def:set_parent_cluster(cluster)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local types_mt = {}
types_mt.__types_cache = {}
types_mt.__index = function(self, key)
if types_mt.__types_cache[key] == nil then
types_mt.__types_cache[key] = require("ValveConfigurationAndControl.types." .. key)
types_mt.__types_cache[key] = require("embedded_clusters.ValveConfigurationAndControl.types." .. key)
end
return types_mt.__types_cache[key]
end
Expand Down
Loading
Loading