@matter/model 0.15.2-alpha.0-20250719-e4aeb457c → 0.15.2-alpha.0-20250726-93c65d182
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/standard/elements/mode-select-cluster.element.js +1 -1
- package/dist/cjs/standard/elements/mode-select-cluster.element.js.map +1 -1
- package/dist/cjs/standard/elements/namespace.element.d.ts.map +1 -1
- package/dist/cjs/standard/elements/namespace.element.js +20 -1
- package/dist/cjs/standard/elements/namespace.element.js.map +2 -2
- package/dist/cjs/standard/resources/namespace.resource.js +88 -1
- package/dist/cjs/standard/resources/namespace.resource.js.map +1 -1
- package/dist/esm/standard/elements/mode-select-cluster.element.js +1 -1
- package/dist/esm/standard/elements/mode-select-cluster.element.js.map +1 -1
- package/dist/esm/standard/elements/namespace.element.d.ts.map +1 -1
- package/dist/esm/standard/elements/namespace.element.js +21 -2
- package/dist/esm/standard/elements/namespace.element.js.map +1 -1
- package/dist/esm/standard/resources/namespace.resource.js +88 -1
- package/dist/esm/standard/resources/namespace.resource.js.map +1 -1
- package/package.json +4 -4
- package/src/standard/elements/mode-select-cluster.element.ts +1 -1
- package/src/standard/elements/namespace.element.ts +22 -2
- package/src/standard/resources/namespace.resource.ts +127 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/standard/elements/mode-select-cluster.element.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,8BAAiC;AACjC,sBAMO;AAfP;AAAA;AAAA;AAAA;AAAA;AAiBO,MAAM,iBAAa,gBAAAA;AAAA,EACtB,EAAE,MAAM,cAAc,IAAI,GAAK;AAAA,MAC/B,gBAAAC,kBAAU,EAAE,MAAM,mBAAmB,IAAI,OAAQ,MAAM,mBAAmB,SAAS,EAAE,CAAC;AAAA,MACtF,gBAAAA;AAAA,IACI,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,MAEA,gBAAAE;AAAA,IACI,EAAE,MAAM,oBAAoB,MAAM,SAAS;AAAA,QAC3C,gBAAAF,cAAM,EAAE,MAAM,SAAS,IAAI,GAAK,MAAM,UAAU,aAAa,KAAK,YAAY,UAAU,SAAS,IAAI,CAAC;AAAA,QACtG,gBAAAA,cAAM,EAAE,MAAM,QAAQ,IAAI,GAAK,MAAM,SAAS,aAAa,KAAK,SAAS,IAAI,CAAC;AAAA,QAC9E,gBAAAA;AAAA,MACI,EAAE,MAAM,gBAAgB,IAAI,GAAK,MAAM,QAAQ,aAAa,KAAK,YAAY,UAAU,SAAS,IAAI;AAAA,UACpG,gBAAAA,cAAM,EAAE,MAAM,SAAS,MAAM,oBAAoB,CAAC;AAAA,IACtD;AAAA,EACJ;AACJ;AAEA,yCAAiB,SAAS,KAAK,UAAU;",
|
|
5
5
|
"names": ["Cluster", "Attribute", "Field", "Command", "Datatype"]
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"namespace.element.d.ts","sourceRoot":"","sources":["../../../../src/standard/elements/namespace.element.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAE,eAAe,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"namespace.element.d.ts","sourceRoot":"","sources":["../../../../src/standard/elements/namespace.element.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAE,eAAe,IAAI,QAAQ,EAAyB,MAAM,yBAAyB,CAAC;AAE7F,eAAO,MAAM,SAAS,UAmBrB,CAAC"}
|
|
@@ -28,6 +28,25 @@ var import_elements = require("../../elements/index.js");
|
|
|
28
28
|
* Copyright 2022-2025 Matter.js Authors
|
|
29
29
|
* SPDX-License-Identifier: Apache-2.0
|
|
30
30
|
*/
|
|
31
|
-
const namespace = (0, import_elements.DatatypeElement)(
|
|
31
|
+
const namespace = (0, import_elements.DatatypeElement)(
|
|
32
|
+
{ name: "namespace", type: "enum8", isSeed: true },
|
|
33
|
+
(0, import_elements.FieldElement)({ name: "Closure", id: 1 }),
|
|
34
|
+
(0, import_elements.FieldElement)({ name: "CompassDirection", id: 2 }),
|
|
35
|
+
(0, import_elements.FieldElement)({ name: "CompassLocation", id: 3 }),
|
|
36
|
+
(0, import_elements.FieldElement)({ name: "Direction", id: 4 }),
|
|
37
|
+
(0, import_elements.FieldElement)({ name: "Level", id: 5 }),
|
|
38
|
+
(0, import_elements.FieldElement)({ name: "Location", id: 6 }),
|
|
39
|
+
(0, import_elements.FieldElement)({ name: "Number", id: 7 }),
|
|
40
|
+
(0, import_elements.FieldElement)({ name: "Position", id: 8 }),
|
|
41
|
+
(0, import_elements.FieldElement)({ name: "ElectricalMeasurement", id: 10 }),
|
|
42
|
+
(0, import_elements.FieldElement)({ name: "Laundry", id: 14 }),
|
|
43
|
+
(0, import_elements.FieldElement)({ name: "PowerSource", id: 15 }),
|
|
44
|
+
(0, import_elements.FieldElement)({ name: "AreaNamespace", id: 16 }),
|
|
45
|
+
(0, import_elements.FieldElement)({ name: "LandmarkNamespace", id: 17 }),
|
|
46
|
+
(0, import_elements.FieldElement)({ name: "RelativePosition", id: 18 }),
|
|
47
|
+
(0, import_elements.FieldElement)({ name: "Refrigerator", id: 65 }),
|
|
48
|
+
(0, import_elements.FieldElement)({ name: "RoomAirConditioner", id: 66 }),
|
|
49
|
+
(0, import_elements.FieldElement)({ name: "Switches", id: 67 })
|
|
50
|
+
);
|
|
32
51
|
import_MatterDefinition.MatterDefinition.children.push(namespace);
|
|
33
52
|
//# sourceMappingURL=namespace.element.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/standard/elements/namespace.element.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,8BAAiC;AACjC,
|
|
5
|
-
"names": ["Datatype"]
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;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MAAM,YAAY,IAAI,GAAK,CAAC;AACxC;AAEA,yCAAiB,SAAS,KAAK,SAAS;",
|
|
5
|
+
"names": ["Datatype", "Field"]
|
|
6
6
|
}
|
|
@@ -10,6 +10,93 @@ import_Resource.Resource.add({
|
|
|
10
10
|
name: "namespace",
|
|
11
11
|
description: "Namespace",
|
|
12
12
|
xref: "core\xA77.19.2.43",
|
|
13
|
-
details: "The Namespace type identifies the namespace used for a semantic tag."
|
|
13
|
+
details: "The Namespace type identifies the namespace used for a semantic tag.",
|
|
14
|
+
children: [
|
|
15
|
+
{
|
|
16
|
+
tag: "field",
|
|
17
|
+
name: "Closure",
|
|
18
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an association with a feature of a Closure, e.g. the button to activate opening a garage door."
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
tag: "field",
|
|
22
|
+
name: "CompassDirection",
|
|
23
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an association with a movement into a certain compass direction. Note the difference with Chapter 4, Common Compass Location Semantic Tag Namespace."
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
tag: "field",
|
|
27
|
+
name: "CompassLocation",
|
|
28
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an association with a position in a certain compass direction (e.g. an outdoor sensor in the North garden). Note the difference with Chapter 3, Common Compass Direction Semantic Tag Namespace."
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
tag: "field",
|
|
32
|
+
name: "Direction",
|
|
33
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an association with a movement in a certain direction relative to the device. Note the difference with Chapter 9, Common Position Semantic Tag Namespace."
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
tag: "field",
|
|
37
|
+
name: "Level",
|
|
38
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an association with a certain level for a feature of a device (e.g. a button to set the speed of a fan)."
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
tag: "field",
|
|
42
|
+
name: "Location",
|
|
43
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an association with a location of a device (e.g. an outdoor temperature sensor)."
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
tag: "field",
|
|
47
|
+
name: "Number",
|
|
48
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an association with a certain numeric feature of a device (e.g. a numeric input button)."
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
tag: "field",
|
|
52
|
+
name: "Position",
|
|
53
|
+
details: 'The tags contained in this namespace may be used in any domain or context, to indicate an association with a position relative to the device (e.g. the temperature sensor in the top drawer of a refrigerator, or location of the buttons on a multi-button switch device). Note the difference with Chapter 5, Common Direction Semantic Tag Namespace.\nWhen multiple endpoints are used for device types, and the associated consumer-facing locations of those endpoints are organized in a straight line, grid or matrix, these endpoints SHOULD be allocated in top-to-bottom, left-to-right order.\nFor grids or arrays larger than 3 elements in any direction, the Row and Column tags SHOULD be used.\nIf the Row or Column tags are used, the Label field in the same Semantic Tag structure shall be filled with a number comprised of Arabic numerals encoded as a string to indicate the row/column of the item. Number words (e.g. "one", "two", etc.) shall NOT be used to describe the position of the item. The first row/column shall use Label "1".'
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
tag: "field",
|
|
57
|
+
name: "ElectricalMeasurement",
|
|
58
|
+
details: "The tags contained in this namespace are restricted for use in the electrical measurement domain and shall NOT be used in any other domain or context."
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
tag: "field",
|
|
62
|
+
name: "Laundry",
|
|
63
|
+
details: "The tags contained in this namespace are restricted for use in the laundry domain and shall NOT be used in any other domain or context."
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
tag: "field",
|
|
67
|
+
name: "PowerSource",
|
|
68
|
+
details: "The tags contained in this namespace are restricted for use in the power source domain and shall NOT be used in any other domain or context."
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
tag: "field",
|
|
72
|
+
name: "AreaNamespace",
|
|
73
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an association with an indoor or outdoor area of a home."
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
tag: "field",
|
|
77
|
+
name: "LandmarkNamespace",
|
|
78
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an association with a home landmark."
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
tag: "field",
|
|
82
|
+
name: "RelativePosition",
|
|
83
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an association with a position relative to some reference, which must be specified by the user of these tags. For example, the position may be relative to a household item, such as a dining table, and the user of these tags must indicate that. Note the difference with Chapter 9, Common Position Semantic Tag Namespace, which contains tags indicating the position relative to the device."
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
tag: "field",
|
|
87
|
+
name: "Refrigerator",
|
|
88
|
+
details: "The tags contained in this namespace are restricted for use in the refrigerator domain and shall NOT be used in any other domain or context."
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
tag: "field",
|
|
92
|
+
name: "RoomAirConditioner",
|
|
93
|
+
details: "The tags contained in this namespace are restricted for use in the room air conditioner domain and shall NOT be used in any other domain or context."
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
tag: "field",
|
|
97
|
+
name: "Switches",
|
|
98
|
+
details: "The tags contained in this namespace are restricted for use in the switches domain and shall NOT be used in any other domain or context. They are intended to indicate the function of a button on a switch device to allow a client to make an optimized user interface which matches the actual device without requiring a-priori knowledge of the layout of each specific switch device.\nPlease see the rules for applying these and other tags for switch devices, e.g. from the Common Position Namespace and the Common Number Namespace in the Generic Switch device type section in the Device Library."
|
|
99
|
+
}
|
|
100
|
+
]
|
|
14
101
|
});
|
|
15
102
|
//# sourceMappingURL=namespace.resource.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/standard/resources/namespace.resource.ts"],
|
|
4
|
-
"m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,oBAAoB,CAAC;AAAA,IACtD;AAAA,EACJ;AACJ;AAEA,iBAAiB,SAAS,KAAK,UAAU;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"namespace.element.d.ts","sourceRoot":"","sources":["../../../../src/standard/elements/namespace.element.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAE,eAAe,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"namespace.element.d.ts","sourceRoot":"","sources":["../../../../src/standard/elements/namespace.element.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAE,eAAe,IAAI,QAAQ,EAAyB,MAAM,yBAAyB,CAAC;AAE7F,eAAO,MAAM,SAAS,UAmBrB,CAAC"}
|
|
@@ -4,8 +4,27 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { MatterDefinition } from "../MatterDefinition.js";
|
|
7
|
-
import { DatatypeElement as Datatype } from "../../elements/index.js";
|
|
8
|
-
const namespace = Datatype(
|
|
7
|
+
import { DatatypeElement as Datatype, FieldElement as Field } from "../../elements/index.js";
|
|
8
|
+
const namespace = Datatype(
|
|
9
|
+
{ name: "namespace", type: "enum8", isSeed: true },
|
|
10
|
+
Field({ name: "Closure", id: 1 }),
|
|
11
|
+
Field({ name: "CompassDirection", id: 2 }),
|
|
12
|
+
Field({ name: "CompassLocation", id: 3 }),
|
|
13
|
+
Field({ name: "Direction", id: 4 }),
|
|
14
|
+
Field({ name: "Level", id: 5 }),
|
|
15
|
+
Field({ name: "Location", id: 6 }),
|
|
16
|
+
Field({ name: "Number", id: 7 }),
|
|
17
|
+
Field({ name: "Position", id: 8 }),
|
|
18
|
+
Field({ name: "ElectricalMeasurement", id: 10 }),
|
|
19
|
+
Field({ name: "Laundry", id: 14 }),
|
|
20
|
+
Field({ name: "PowerSource", id: 15 }),
|
|
21
|
+
Field({ name: "AreaNamespace", id: 16 }),
|
|
22
|
+
Field({ name: "LandmarkNamespace", id: 17 }),
|
|
23
|
+
Field({ name: "RelativePosition", id: 18 }),
|
|
24
|
+
Field({ name: "Refrigerator", id: 65 }),
|
|
25
|
+
Field({ name: "RoomAirConditioner", id: 66 }),
|
|
26
|
+
Field({ name: "Switches", id: 67 })
|
|
27
|
+
);
|
|
9
28
|
MatterDefinition.children.push(namespace);
|
|
10
29
|
export {
|
|
11
30
|
namespace
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/standard/elements/namespace.element.ts"],
|
|
4
|
-
"mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,SAAS,wBAAwB;AACjC,SAAS,mBAAmB,gBAAgB;
|
|
4
|
+
"mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,SAAS,wBAAwB;AACjC,SAAS,mBAAmB,UAAU,gBAAgB,aAAa;AAE5D,MAAM,YAAY;AAAA,EACrB,EAAE,MAAM,aAAa,MAAM,SAAS,QAAQ,KAAK;AAAA,EACjD,MAAM,EAAE,MAAM,WAAW,IAAI,EAAI,CAAC;AAAA,EAClC,MAAM,EAAE,MAAM,oBAAoB,IAAI,EAAI,CAAC;AAAA,EAC3C,MAAM,EAAE,MAAM,mBAAmB,IAAI,EAAI,CAAC;AAAA,EAC1C,MAAM,EAAE,MAAM,aAAa,IAAI,EAAI,CAAC;AAAA,EACpC,MAAM,EAAE,MAAM,SAAS,IAAI,EAAI,CAAC;AAAA,EAChC,MAAM,EAAE,MAAM,YAAY,IAAI,EAAI,CAAC;AAAA,EACnC,MAAM,EAAE,MAAM,UAAU,IAAI,EAAI,CAAC;AAAA,EACjC,MAAM,EAAE,MAAM,YAAY,IAAI,EAAI,CAAC;AAAA,EACnC,MAAM,EAAE,MAAM,yBAAyB,IAAI,GAAI,CAAC;AAAA,EAChD,MAAM,EAAE,MAAM,WAAW,IAAI,GAAI,CAAC;AAAA,EAClC,MAAM,EAAE,MAAM,eAAe,IAAI,GAAI,CAAC;AAAA,EACtC,MAAM,EAAE,MAAM,iBAAiB,IAAI,GAAK,CAAC;AAAA,EACzC,MAAM,EAAE,MAAM,qBAAqB,IAAI,GAAK,CAAC;AAAA,EAC7C,MAAM,EAAE,MAAM,oBAAoB,IAAI,GAAK,CAAC;AAAA,EAC5C,MAAM,EAAE,MAAM,gBAAgB,IAAI,GAAK,CAAC;AAAA,EACxC,MAAM,EAAE,MAAM,sBAAsB,IAAI,GAAK,CAAC;AAAA,EAC9C,MAAM,EAAE,MAAM,YAAY,IAAI,GAAK,CAAC;AACxC;AAEA,iBAAiB,SAAS,KAAK,SAAS;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -9,6 +9,93 @@ Resource.add({
|
|
|
9
9
|
name: "namespace",
|
|
10
10
|
description: "Namespace",
|
|
11
11
|
xref: "core\xA77.19.2.43",
|
|
12
|
-
details: "The Namespace type identifies the namespace used for a semantic tag."
|
|
12
|
+
details: "The Namespace type identifies the namespace used for a semantic tag.",
|
|
13
|
+
children: [
|
|
14
|
+
{
|
|
15
|
+
tag: "field",
|
|
16
|
+
name: "Closure",
|
|
17
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an association with a feature of a Closure, e.g. the button to activate opening a garage door."
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
tag: "field",
|
|
21
|
+
name: "CompassDirection",
|
|
22
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an association with a movement into a certain compass direction. Note the difference with Chapter 4, Common Compass Location Semantic Tag Namespace."
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
tag: "field",
|
|
26
|
+
name: "CompassLocation",
|
|
27
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an association with a position in a certain compass direction (e.g. an outdoor sensor in the North garden). Note the difference with Chapter 3, Common Compass Direction Semantic Tag Namespace."
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
tag: "field",
|
|
31
|
+
name: "Direction",
|
|
32
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an association with a movement in a certain direction relative to the device. Note the difference with Chapter 9, Common Position Semantic Tag Namespace."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
tag: "field",
|
|
36
|
+
name: "Level",
|
|
37
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an association with a certain level for a feature of a device (e.g. a button to set the speed of a fan)."
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
tag: "field",
|
|
41
|
+
name: "Location",
|
|
42
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an association with a location of a device (e.g. an outdoor temperature sensor)."
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
tag: "field",
|
|
46
|
+
name: "Number",
|
|
47
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an association with a certain numeric feature of a device (e.g. a numeric input button)."
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
tag: "field",
|
|
51
|
+
name: "Position",
|
|
52
|
+
details: 'The tags contained in this namespace may be used in any domain or context, to indicate an association with a position relative to the device (e.g. the temperature sensor in the top drawer of a refrigerator, or location of the buttons on a multi-button switch device). Note the difference with Chapter 5, Common Direction Semantic Tag Namespace.\nWhen multiple endpoints are used for device types, and the associated consumer-facing locations of those endpoints are organized in a straight line, grid or matrix, these endpoints SHOULD be allocated in top-to-bottom, left-to-right order.\nFor grids or arrays larger than 3 elements in any direction, the Row and Column tags SHOULD be used.\nIf the Row or Column tags are used, the Label field in the same Semantic Tag structure shall be filled with a number comprised of Arabic numerals encoded as a string to indicate the row/column of the item. Number words (e.g. "one", "two", etc.) shall NOT be used to describe the position of the item. The first row/column shall use Label "1".'
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
tag: "field",
|
|
56
|
+
name: "ElectricalMeasurement",
|
|
57
|
+
details: "The tags contained in this namespace are restricted for use in the electrical measurement domain and shall NOT be used in any other domain or context."
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
tag: "field",
|
|
61
|
+
name: "Laundry",
|
|
62
|
+
details: "The tags contained in this namespace are restricted for use in the laundry domain and shall NOT be used in any other domain or context."
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
tag: "field",
|
|
66
|
+
name: "PowerSource",
|
|
67
|
+
details: "The tags contained in this namespace are restricted for use in the power source domain and shall NOT be used in any other domain or context."
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
tag: "field",
|
|
71
|
+
name: "AreaNamespace",
|
|
72
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an association with an indoor or outdoor area of a home."
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
tag: "field",
|
|
76
|
+
name: "LandmarkNamespace",
|
|
77
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an association with a home landmark."
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
tag: "field",
|
|
81
|
+
name: "RelativePosition",
|
|
82
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an association with a position relative to some reference, which must be specified by the user of these tags. For example, the position may be relative to a household item, such as a dining table, and the user of these tags must indicate that. Note the difference with Chapter 9, Common Position Semantic Tag Namespace, which contains tags indicating the position relative to the device."
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
tag: "field",
|
|
86
|
+
name: "Refrigerator",
|
|
87
|
+
details: "The tags contained in this namespace are restricted for use in the refrigerator domain and shall NOT be used in any other domain or context."
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
tag: "field",
|
|
91
|
+
name: "RoomAirConditioner",
|
|
92
|
+
details: "The tags contained in this namespace are restricted for use in the room air conditioner domain and shall NOT be used in any other domain or context."
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
tag: "field",
|
|
96
|
+
name: "Switches",
|
|
97
|
+
details: "The tags contained in this namespace are restricted for use in the switches domain and shall NOT be used in any other domain or context. They are intended to indicate the function of a button on a switch device to allow a client to make an optimized user interface which matches the actual device without requiring a-priori knowledge of the layout of each specific switch device.\nPlease see the rules for applying these and other tags for switch devices, e.g. from the Common Position Namespace and the Common Number Namespace in the Generic Switch device type section in the Device Library."
|
|
98
|
+
}
|
|
99
|
+
]
|
|
13
100
|
});
|
|
14
101
|
//# sourceMappingURL=namespace.resource.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/standard/resources/namespace.resource.ts"],
|
|
4
|
-
"mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,SAAS,gBAAgB;AAEzB,SAAS,IAAI;AAAA,EACT,KAAK;AAAA,EAAY,MAAM;AAAA,EAAa,aAAa;AAAA,EAAa,MAAM;AAAA,EACpE,SAAS;
|
|
4
|
+
"mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,SAAS,gBAAgB;AAEzB,SAAS,IAAI;AAAA,EACT,KAAK;AAAA,EAAY,MAAM;AAAA,EAAa,aAAa;AAAA,EAAa,MAAM;AAAA,EACpE,SAAS;AAAA,EAET,UAAU;AAAA,IACN;AAAA,MACI,KAAK;AAAA,MAAS,MAAM;AAAA,MACpB,SAAS;AAAA,IAEb;AAAA,IAEA;AAAA,MACI,KAAK;AAAA,MAAS,MAAM;AAAA,MACpB,SAAS;AAAA,IAGb;AAAA,IAEA;AAAA,MACI,KAAK;AAAA,MAAS,MAAM;AAAA,MACpB,SAAS;AAAA,IAGb;AAAA,IAEA;AAAA,MACI,KAAK;AAAA,MAAS,MAAM;AAAA,MACpB,SAAS;AAAA,IAGb;AAAA,IAEA;AAAA,MACI,KAAK;AAAA,MAAS,MAAM;AAAA,MACpB,SAAS;AAAA,IAGb;AAAA,IAEA;AAAA,MACI,KAAK;AAAA,MAAS,MAAM;AAAA,MACpB,SAAS;AAAA,IAEb;AAAA,IACA;AAAA,MACI,KAAK;AAAA,MAAS,MAAM;AAAA,MACpB,SAAS;AAAA,IAEb;AAAA,IAEA;AAAA,MACI,KAAK;AAAA,MAAS,MAAM;AAAA,MAEpB,SAAS;AAAA,IAeb;AAAA,IAEA;AAAA,MACI,KAAK;AAAA,MAAS,MAAM;AAAA,MACpB,SAAS;AAAA,IAEb;AAAA,IACA;AAAA,MACI,KAAK;AAAA,MAAS,MAAM;AAAA,MACpB,SAAS;AAAA,IAEb;AAAA,IACA;AAAA,MACI,KAAK;AAAA,MAAS,MAAM;AAAA,MACpB,SAAS;AAAA,IAEb;AAAA,IACA;AAAA,MACI,KAAK;AAAA,MAAS,MAAM;AAAA,MACpB,SAAS;AAAA,IAEb;AAAA,IACA;AAAA,MACI,KAAK;AAAA,MAAS,MAAM;AAAA,MACpB,SAAS;AAAA,IAEb;AAAA,IAEA;AAAA,MACI,KAAK;AAAA,MAAS,MAAM;AAAA,MACpB,SAAS;AAAA,IAKb;AAAA,IAEA;AAAA,MACI,KAAK;AAAA,MAAS,MAAM;AAAA,MACpB,SAAS;AAAA,IAEb;AAAA,IACA;AAAA,MACI,KAAK;AAAA,MAAS,MAAM;AAAA,MACpB,SAAS;AAAA,IAEb;AAAA,IAEA;AAAA,MACI,KAAK;AAAA,MAAS,MAAM;AAAA,MAEpB,SAAS;AAAA,IAQb;AAAA,EACJ;AACJ,CAAC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@matter/model",
|
|
3
|
-
"version": "0.15.2-alpha.0-
|
|
3
|
+
"version": "0.15.2-alpha.0-20250726-93c65d182",
|
|
4
4
|
"description": "Matter data model",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"iot",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"embed-examples": "embedme **/README.md"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@matter/general": "0.15.2-alpha.0-
|
|
34
|
+
"@matter/general": "0.15.2-alpha.0-20250726-93c65d182"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@matter/testing": "0.15.2-alpha.0-
|
|
38
|
-
"@matter/tools": "0.15.2-alpha.0-
|
|
37
|
+
"@matter/testing": "0.15.2-alpha.0-20250726-93c65d182",
|
|
38
|
+
"@matter/tools": "0.15.2-alpha.0-20250726-93c65d182"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"dist/**/*",
|
|
@@ -27,7 +27,7 @@ export const ModeSelect = Cluster(
|
|
|
27
27
|
quality: "F"
|
|
28
28
|
}),
|
|
29
29
|
Attribute({
|
|
30
|
-
name: "StandardNamespace", id: 0x1, type: "
|
|
30
|
+
name: "StandardNamespace", id: 0x1, type: "namespace", access: "R V", conformance: "M",
|
|
31
31
|
constraint: "desc", default: null, quality: "X F"
|
|
32
32
|
}),
|
|
33
33
|
|
|
@@ -7,7 +7,27 @@
|
|
|
7
7
|
/*** THIS FILE IS GENERATED, DO NOT EDIT ***/
|
|
8
8
|
|
|
9
9
|
import { MatterDefinition } from "../MatterDefinition.js";
|
|
10
|
-
import { DatatypeElement as Datatype } from "../../elements/index.js";
|
|
10
|
+
import { DatatypeElement as Datatype, FieldElement as Field } from "../../elements/index.js";
|
|
11
|
+
|
|
12
|
+
export const namespace = Datatype(
|
|
13
|
+
{ name: "namespace", type: "enum8", isSeed: true },
|
|
14
|
+
Field({ name: "Closure", id: 0x1 }),
|
|
15
|
+
Field({ name: "CompassDirection", id: 0x2 }),
|
|
16
|
+
Field({ name: "CompassLocation", id: 0x3 }),
|
|
17
|
+
Field({ name: "Direction", id: 0x4 }),
|
|
18
|
+
Field({ name: "Level", id: 0x5 }),
|
|
19
|
+
Field({ name: "Location", id: 0x6 }),
|
|
20
|
+
Field({ name: "Number", id: 0x7 }),
|
|
21
|
+
Field({ name: "Position", id: 0x8 }),
|
|
22
|
+
Field({ name: "ElectricalMeasurement", id: 0xa }),
|
|
23
|
+
Field({ name: "Laundry", id: 0xe }),
|
|
24
|
+
Field({ name: "PowerSource", id: 0xf }),
|
|
25
|
+
Field({ name: "AreaNamespace", id: 0x10 }),
|
|
26
|
+
Field({ name: "LandmarkNamespace", id: 0x11 }),
|
|
27
|
+
Field({ name: "RelativePosition", id: 0x12 }),
|
|
28
|
+
Field({ name: "Refrigerator", id: 0x41 }),
|
|
29
|
+
Field({ name: "RoomAirConditioner", id: 0x42 }),
|
|
30
|
+
Field({ name: "Switches", id: 0x43 })
|
|
31
|
+
);
|
|
11
32
|
|
|
12
|
-
export const namespace = Datatype({ name: "namespace", type: "uint8", isSeed: true });
|
|
13
33
|
MatterDefinition.children.push(namespace);
|
|
@@ -10,5 +10,131 @@ import { Resource } from "#models/Resource.js";
|
|
|
10
10
|
|
|
11
11
|
Resource.add({
|
|
12
12
|
tag: "datatype", name: "namespace", description: "Namespace", xref: "core§7.19.2.43",
|
|
13
|
-
details: "The Namespace type identifies the namespace used for a semantic tag."
|
|
13
|
+
details: "The Namespace type identifies the namespace used for a semantic tag.",
|
|
14
|
+
|
|
15
|
+
children: [
|
|
16
|
+
{
|
|
17
|
+
tag: "field", name: "Closure",
|
|
18
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an " +
|
|
19
|
+
"association with a feature of a Closure, e.g. the button to activate opening a garage door."
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
{
|
|
23
|
+
tag: "field", name: "CompassDirection",
|
|
24
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an " +
|
|
25
|
+
"association with a movement into a certain compass direction. Note the difference with Chapter 4, " +
|
|
26
|
+
"Common Compass Location Semantic Tag Namespace."
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
{
|
|
30
|
+
tag: "field", name: "CompassLocation",
|
|
31
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an " +
|
|
32
|
+
"association with a position in a certain compass direction (e.g. an outdoor sensor in the North " +
|
|
33
|
+
"garden). Note the difference with Chapter 3, Common Compass Direction Semantic Tag Namespace."
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
{
|
|
37
|
+
tag: "field", name: "Direction",
|
|
38
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an " +
|
|
39
|
+
"association with a movement in a certain direction relative to the device. Note the difference with " +
|
|
40
|
+
"Chapter 9, Common Position Semantic Tag Namespace."
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
{
|
|
44
|
+
tag: "field", name: "Level",
|
|
45
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an " +
|
|
46
|
+
"association with a certain level for a feature of a device (e.g. a button to set the speed of a " +
|
|
47
|
+
"fan)."
|
|
48
|
+
},
|
|
49
|
+
|
|
50
|
+
{
|
|
51
|
+
tag: "field", name: "Location",
|
|
52
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an " +
|
|
53
|
+
"association with a location of a device (e.g. an outdoor temperature sensor)."
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
tag: "field", name: "Number",
|
|
57
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an " +
|
|
58
|
+
"association with a certain numeric feature of a device (e.g. a numeric input button)."
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
{
|
|
62
|
+
tag: "field", name: "Position",
|
|
63
|
+
|
|
64
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an " +
|
|
65
|
+
"association with a position relative to the device (e.g. the temperature sensor in the top drawer of " +
|
|
66
|
+
"a refrigerator, or location of the buttons on a multi-button switch device). Note the difference " +
|
|
67
|
+
"with Chapter 5, Common Direction Semantic Tag Namespace." +
|
|
68
|
+
"\n" +
|
|
69
|
+
"When multiple endpoints are used for device types, and the associated consumer-facing locations of " +
|
|
70
|
+
"those endpoints are organized in a straight line, grid or matrix, these endpoints SHOULD be " +
|
|
71
|
+
"allocated in top-to-bottom, left-to-right order." +
|
|
72
|
+
"\n" +
|
|
73
|
+
"For grids or arrays larger than 3 elements in any direction, the Row and Column tags SHOULD be used." +
|
|
74
|
+
"\n" +
|
|
75
|
+
"If the Row or Column tags are used, the Label field in the same Semantic Tag structure shall be " +
|
|
76
|
+
"filled with a number comprised of Arabic numerals encoded as a string to indicate the row/column of " +
|
|
77
|
+
"the item. Number words (e.g. \"one\", \"two\", etc.) shall NOT be used to describe the position of the " +
|
|
78
|
+
"item. The first row/column shall use Label \"1\"."
|
|
79
|
+
},
|
|
80
|
+
|
|
81
|
+
{
|
|
82
|
+
tag: "field", name: "ElectricalMeasurement",
|
|
83
|
+
details: "The tags contained in this namespace are restricted for use in the electrical measurement domain and " +
|
|
84
|
+
"shall NOT be used in any other domain or context."
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
tag: "field", name: "Laundry",
|
|
88
|
+
details: "The tags contained in this namespace are restricted for use in the laundry domain and shall NOT be " +
|
|
89
|
+
"used in any other domain or context."
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
tag: "field", name: "PowerSource",
|
|
93
|
+
details: "The tags contained in this namespace are restricted for use in the power source domain and shall NOT " +
|
|
94
|
+
"be used in any other domain or context."
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
tag: "field", name: "AreaNamespace",
|
|
98
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an " +
|
|
99
|
+
"association with an indoor or outdoor area of a home."
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
tag: "field", name: "LandmarkNamespace",
|
|
103
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an " +
|
|
104
|
+
"association with a home landmark."
|
|
105
|
+
},
|
|
106
|
+
|
|
107
|
+
{
|
|
108
|
+
tag: "field", name: "RelativePosition",
|
|
109
|
+
details: "The tags contained in this namespace may be used in any domain or context, to indicate an " +
|
|
110
|
+
"association with a position relative to some reference, which must be specified by the user of these " +
|
|
111
|
+
"tags. For example, the position may be relative to a household item, such as a dining table, and the " +
|
|
112
|
+
"user of these tags must indicate that. Note the difference with Chapter 9, Common Position Semantic " +
|
|
113
|
+
"Tag Namespace, which contains tags indicating the position relative to the device."
|
|
114
|
+
},
|
|
115
|
+
|
|
116
|
+
{
|
|
117
|
+
tag: "field", name: "Refrigerator",
|
|
118
|
+
details: "The tags contained in this namespace are restricted for use in the refrigerator domain and shall NOT " +
|
|
119
|
+
"be used in any other domain or context."
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
tag: "field", name: "RoomAirConditioner",
|
|
123
|
+
details: "The tags contained in this namespace are restricted for use in the room air conditioner domain and " +
|
|
124
|
+
"shall NOT be used in any other domain or context."
|
|
125
|
+
},
|
|
126
|
+
|
|
127
|
+
{
|
|
128
|
+
tag: "field", name: "Switches",
|
|
129
|
+
|
|
130
|
+
details: "The tags contained in this namespace are restricted for use in the switches domain and shall NOT be " +
|
|
131
|
+
"used in any other domain or context. They are intended to indicate the function of a button on a " +
|
|
132
|
+
"switch device to allow a client to make an optimized user interface which matches the actual device " +
|
|
133
|
+
"without requiring a-priori knowledge of the layout of each specific switch device." +
|
|
134
|
+
"\n" +
|
|
135
|
+
"Please see the rules for applying these and other tags for switch devices, e.g. from the Common " +
|
|
136
|
+
"Position Namespace and the Common Number Namespace in the Generic Switch device type section in the " +
|
|
137
|
+
"Device Library."
|
|
138
|
+
}
|
|
139
|
+
]
|
|
14
140
|
});
|