@homebridge-plugins/homebridge-matter 0.1.3 → 0.1.4
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/CHANGELOG.md +7 -0
- package/MATTER_API.md +1189 -182
- package/README.md +1 -1
- package/dist/devices/section-12-robotic/robotic-vacuum-cleaner.d.ts +9 -53
- package/dist/devices/section-12-robotic/robotic-vacuum-cleaner.js +12 -62
- package/dist/devices/section-12-robotic/robotic-vacuum-cleaner.js.map +1 -1
- package/dist/devices/section-4-lighting/color-temperature-light.d.ts +8 -1
- package/dist/devices/section-4-lighting/color-temperature-light.js +27 -23
- package/dist/devices/section-4-lighting/color-temperature-light.js.map +1 -1
- package/dist/devices/section-4-lighting/dimmable-light.d.ts +5 -22
- package/dist/devices/section-4-lighting/dimmable-light.js +40 -319
- package/dist/devices/section-4-lighting/dimmable-light.js.map +1 -1
- package/dist/devices/section-4-lighting/extended-color-light.d.ts +6 -25
- package/dist/devices/section-4-lighting/extended-color-light.js +33 -399
- package/dist/devices/section-4-lighting/extended-color-light.js.map +1 -1
- package/dist/devices/section-4-lighting/on-off-light.d.ts +8 -28
- package/dist/devices/section-4-lighting/on-off-light.js +64 -434
- package/dist/devices/section-4-lighting/on-off-light.js.map +1 -1
- package/dist/devices/section-5-smart-plugs/dimmable-plug-in-unit.d.ts +6 -0
- package/dist/devices/section-5-smart-plugs/dimmable-plug-in-unit.js +13 -3
- package/dist/devices/section-5-smart-plugs/dimmable-plug-in-unit.js.map +1 -1
- package/dist/devices/section-5-smart-plugs/on-off-plug-in-unit.d.ts +5 -0
- package/dist/devices/section-5-smart-plugs/on-off-plug-in-unit.js +9 -2
- package/dist/devices/section-5-smart-plugs/on-off-plug-in-unit.js.map +1 -1
- package/dist/devices/section-6-switches/on-off-light-switch.d.ts +5 -0
- package/dist/devices/section-6-switches/on-off-light-switch.js +19 -5
- package/dist/devices/section-6-switches/on-off-light-switch.js.map +1 -1
- package/dist/devices/section-7-sensors/contact-sensor.d.ts +5 -0
- package/dist/devices/section-7-sensors/contact-sensor.js +5 -0
- package/dist/devices/section-7-sensors/contact-sensor.js.map +1 -1
- package/dist/devices/section-7-sensors/humidity-sensor.d.ts +5 -0
- package/dist/devices/section-7-sensors/humidity-sensor.js +5 -0
- package/dist/devices/section-7-sensors/humidity-sensor.js.map +1 -1
- package/dist/devices/section-7-sensors/light-sensor.d.ts +5 -0
- package/dist/devices/section-7-sensors/light-sensor.js +5 -0
- package/dist/devices/section-7-sensors/light-sensor.js.map +1 -1
- package/dist/devices/section-7-sensors/occupancy-sensor.d.ts +6 -0
- package/dist/devices/section-7-sensors/occupancy-sensor.js +6 -0
- package/dist/devices/section-7-sensors/occupancy-sensor.js.map +1 -1
- package/dist/devices/section-7-sensors/smoke-co-alarm.d.ts +6 -0
- package/dist/devices/section-7-sensors/smoke-co-alarm.js +6 -0
- package/dist/devices/section-7-sensors/smoke-co-alarm.js.map +1 -1
- package/dist/devices/section-7-sensors/temperature-sensor.d.ts +5 -0
- package/dist/devices/section-7-sensors/temperature-sensor.js +5 -0
- package/dist/devices/section-7-sensors/temperature-sensor.js.map +1 -1
- package/dist/devices/section-7-sensors/water-leak-detector.d.ts +5 -0
- package/dist/devices/section-7-sensors/water-leak-detector.js +5 -0
- package/dist/devices/section-7-sensors/water-leak-detector.js.map +1 -1
- package/dist/devices/section-8-closure/door-lock.d.ts +6 -0
- package/dist/devices/section-8-closure/door-lock.js +12 -27
- package/dist/devices/section-8-closure/door-lock.js.map +1 -1
- package/dist/devices/section-8-closure/window-covering.d.ts +7 -0
- package/dist/devices/section-8-closure/window-covering.js +27 -43
- package/dist/devices/section-8-closure/window-covering.js.map +1 -1
- package/dist/devices/section-9-hvac/fan.d.ts +7 -0
- package/dist/devices/section-9-hvac/fan.js +17 -23
- package/dist/devices/section-9-hvac/fan.js.map +1 -1
- package/dist/devices/section-9-hvac/thermostat.d.ts +7 -0
- package/dist/devices/section-9-hvac/thermostat.js +21 -25
- package/dist/devices/section-9-hvac/thermostat.js.map +1 -1
- package/package.json +3 -3
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
* Dimmable Plug-in Unit Device (Matter Spec § 5.2)
|
|
3
3
|
*
|
|
4
4
|
* A plug-in unit with on/off and level control.
|
|
5
|
+
*
|
|
6
|
+
* For comprehensive documentation, see: ../../../MATTER_API.md
|
|
7
|
+
*
|
|
8
|
+
* This example demonstrates:
|
|
9
|
+
* - Multiple clusters (OnOff + LevelControl) for outlets
|
|
10
|
+
* - Type-safe handlers with MatterRequests
|
|
5
11
|
*/
|
|
6
12
|
export function registerDimmablePlugInUnit(context) {
|
|
7
13
|
const { api, log, config } = context;
|
|
@@ -29,16 +35,20 @@ export function registerDimmablePlugInUnit(context) {
|
|
|
29
35
|
handlers: {
|
|
30
36
|
onOff: {
|
|
31
37
|
on: async () => {
|
|
32
|
-
log.info('[Dimmable Outlet]
|
|
38
|
+
log.info('[Dimmable Outlet] Turning ON');
|
|
39
|
+
// TODO: await myOutletAPI.turnOn()
|
|
33
40
|
},
|
|
34
41
|
off: async () => {
|
|
35
|
-
log.info('[Dimmable Outlet]
|
|
42
|
+
log.info('[Dimmable Outlet] Turning OFF');
|
|
43
|
+
// TODO: await myOutletAPI.turnOff()
|
|
36
44
|
},
|
|
37
45
|
},
|
|
38
46
|
levelControl: {
|
|
39
47
|
moveToLevelWithOnOff: async (request) => {
|
|
40
48
|
const { level } = request;
|
|
41
|
-
|
|
49
|
+
const brightnessPercent = Math.round((level / 254) * 100);
|
|
50
|
+
log.info(`[Dimmable Outlet] Setting level to ${brightnessPercent}%`);
|
|
51
|
+
// TODO: await myOutletAPI.setLevel(brightnessPercent)
|
|
42
52
|
},
|
|
43
53
|
},
|
|
44
54
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dimmable-plug-in-unit.js","sourceRoot":"","sources":["../../../src/devices/section-5-smart-plugs/dimmable-plug-in-unit.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"dimmable-plug-in-unit.js","sourceRoot":"","sources":["../../../src/devices/section-5-smart-plugs/dimmable-plug-in-unit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAMH,MAAM,UAAU,0BAA0B,CAAC,OAAsB;IAC/D,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,OAAO,CAAA;IACpC,MAAM,WAAW,GAAU,EAAE,CAAA;IAE7B,IAAI,CAAC,MAAM,CAAC,oBAAoB,EAAE,CAAC;QACjC,OAAO,WAAW,CAAA;IACpB,CAAC;IAED,WAAW,CAAC,IAAI,CAAC;QACf,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC;QACxD,WAAW,EAAE,iBAAiB;QAC9B,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,cAAc;QACjD,YAAY,EAAE,YAAY;QAC1B,YAAY,EAAE,iBAAiB;QAC/B,KAAK,EAAE,mBAAmB;QAE1B,QAAQ,EAAE;YACR,KAAK,EAAE;gBACL,KAAK,EAAE,KAAK;aACb;YACD,YAAY,EAAE;gBACZ,YAAY,EAAE,GAAG;gBACjB,QAAQ,EAAE,CAAC;gBACX,QAAQ,EAAE,GAAG;aACd;SACF;QAED,QAAQ,EAAE;YACR,KAAK,EAAE;gBACL,EAAE,EAAE,KAAK,IAAI,EAAE;oBACb,GAAG,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAA;oBACxC,mCAAmC;gBACrC,CAAC;gBAED,GAAG,EAAE,KAAK,IAAI,EAAE;oBACd,GAAG,CAAC,IAAI,CAAC,+BAA+B,CAAC,CAAA;oBACzC,oCAAoC;gBACtC,CAAC;aACF;YAED,YAAY,EAAE;gBACZ,oBAAoB,EAAE,KAAK,EAAE,OAAmC,EAAE,EAAE;oBAClE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAA;oBACzB,MAAM,iBAAiB,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC,CAAA;oBACzD,GAAG,CAAC,IAAI,CAAC,sCAAsC,iBAAiB,GAAG,CAAC,CAAA;oBAEpE,sDAAsD;gBACxD,CAAC;aACF;SACF;KACF,CAAC,CAAA;IAEF,OAAO,WAAW,CAAA;AACpB,CAAC"}
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
* On/Off Plug-in Unit Device (Matter Spec § 5.1)
|
|
3
3
|
*
|
|
4
4
|
* A plug-in unit with on/off control (smart plug).
|
|
5
|
+
*
|
|
6
|
+
* For comprehensive documentation, see: ../../../MATTER_API.md
|
|
7
|
+
*
|
|
8
|
+
* This example demonstrates:
|
|
9
|
+
* - Basic OnOff cluster implementation for outlets
|
|
5
10
|
*/
|
|
6
11
|
import type { DeviceContext } from '../types.js';
|
|
7
12
|
export declare function registerOnOffPlugInUnit(context: DeviceContext): any[];
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
* On/Off Plug-in Unit Device (Matter Spec § 5.1)
|
|
3
3
|
*
|
|
4
4
|
* A plug-in unit with on/off control (smart plug).
|
|
5
|
+
*
|
|
6
|
+
* For comprehensive documentation, see: ../../../MATTER_API.md
|
|
7
|
+
*
|
|
8
|
+
* This example demonstrates:
|
|
9
|
+
* - Basic OnOff cluster implementation for outlets
|
|
5
10
|
*/
|
|
6
11
|
export function registerOnOffPlugInUnit(context) {
|
|
7
12
|
const { api, log, config } = context;
|
|
@@ -24,10 +29,12 @@ export function registerOnOffPlugInUnit(context) {
|
|
|
24
29
|
handlers: {
|
|
25
30
|
onOff: {
|
|
26
31
|
on: async () => {
|
|
27
|
-
log.info('[On/Off Outlet]
|
|
32
|
+
log.info('[On/Off Outlet] Turning ON');
|
|
33
|
+
// TODO: await myOutletAPI.turnOn()
|
|
28
34
|
},
|
|
29
35
|
off: async () => {
|
|
30
|
-
log.info('[On/Off Outlet]
|
|
36
|
+
log.info('[On/Off Outlet] Turning OFF');
|
|
37
|
+
// TODO: await myOutletAPI.turnOff()
|
|
31
38
|
},
|
|
32
39
|
},
|
|
33
40
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"on-off-plug-in-unit.js","sourceRoot":"","sources":["../../../src/devices/section-5-smart-plugs/on-off-plug-in-unit.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"on-off-plug-in-unit.js","sourceRoot":"","sources":["../../../src/devices/section-5-smart-plugs/on-off-plug-in-unit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,MAAM,UAAU,uBAAuB,CAAC,OAAsB;IAC5D,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,OAAO,CAAA;IACpC,MAAM,WAAW,GAAU,EAAE,CAAA;IAE7B,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE,CAAC;QAC9B,OAAO,WAAW,CAAA;IACpB,CAAC;IAED,WAAW,CAAC,IAAI,CAAC;QACf,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,qBAAqB,CAAC;QACrD,WAAW,EAAE,eAAe;QAC5B,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,WAAW;QAC9C,YAAY,EAAE,YAAY;QAC1B,YAAY,EAAE,iBAAiB;QAC/B,KAAK,EAAE,gBAAgB;QAEvB,QAAQ,EAAE;YACR,KAAK,EAAE;gBACL,KAAK,EAAE,KAAK;aACb;SACF;QAED,QAAQ,EAAE;YACR,KAAK,EAAE;gBACL,EAAE,EAAE,KAAK,IAAI,EAAE;oBACb,GAAG,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAA;oBACtC,mCAAmC;gBACrC,CAAC;gBAED,GAAG,EAAE,KAAK,IAAI,EAAE;oBACd,GAAG,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAA;oBACvC,oCAAoC;gBACtC,CAAC;aACF;SACF;KACF,CAAC,CAAA;IAEF,OAAO,WAAW,CAAA;AACpB,CAAC"}
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
* On/Off Light Switch Device (Matter Spec § 6.1)
|
|
3
3
|
*
|
|
4
4
|
* A switch for controlling on/off lights.
|
|
5
|
+
*
|
|
6
|
+
* For comprehensive documentation, see: ../../../MATTER_API.md
|
|
7
|
+
*
|
|
8
|
+
* This example demonstrates:
|
|
9
|
+
* - Switch device implementation (input device, sends commands)
|
|
5
10
|
*/
|
|
6
11
|
import type { DeviceContext } from '../types.js';
|
|
7
12
|
export declare function registerOnOffLightSwitch(context: DeviceContext): any[];
|
|
@@ -2,9 +2,14 @@
|
|
|
2
2
|
* On/Off Light Switch Device (Matter Spec § 6.1)
|
|
3
3
|
*
|
|
4
4
|
* A switch for controlling on/off lights.
|
|
5
|
+
*
|
|
6
|
+
* For comprehensive documentation, see: ../../../MATTER_API.md
|
|
7
|
+
*
|
|
8
|
+
* This example demonstrates:
|
|
9
|
+
* - Switch device implementation (input device, sends commands)
|
|
5
10
|
*/
|
|
6
11
|
export function registerOnOffLightSwitch(context) {
|
|
7
|
-
const { api, config } = context;
|
|
12
|
+
const { api, log, config } = context;
|
|
8
13
|
const accessories = [];
|
|
9
14
|
if (!config.enableOnOffSwitch) {
|
|
10
15
|
return accessories;
|
|
@@ -17,12 +22,21 @@ export function registerOnOffLightSwitch(context) {
|
|
|
17
22
|
manufacturer: 'Matter Examples',
|
|
18
23
|
model: 'OnOffSwitch v1',
|
|
19
24
|
clusters: {
|
|
20
|
-
|
|
21
|
-
|
|
25
|
+
onOff: {
|
|
26
|
+
onOff: false,
|
|
27
|
+
},
|
|
22
28
|
},
|
|
23
29
|
handlers: {
|
|
24
|
-
|
|
25
|
-
|
|
30
|
+
onOff: {
|
|
31
|
+
on: async () => {
|
|
32
|
+
log.info('[On/Off Switch] Turning ON');
|
|
33
|
+
// TODO: await mySwitchAPI.turnOn()
|
|
34
|
+
},
|
|
35
|
+
off: async () => {
|
|
36
|
+
log.info('[On/Off Switch] Turning OFF');
|
|
37
|
+
// TODO: await mySwitchAPI.turnOff()
|
|
38
|
+
},
|
|
39
|
+
},
|
|
26
40
|
},
|
|
27
41
|
});
|
|
28
42
|
return accessories;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"on-off-light-switch.js","sourceRoot":"","sources":["../../../src/devices/section-6-switches/on-off-light-switch.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"on-off-light-switch.js","sourceRoot":"","sources":["../../../src/devices/section-6-switches/on-off-light-switch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,MAAM,UAAU,wBAAwB,CAAC,OAAsB;IAC7D,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,OAAO,CAAA;IACpC,MAAM,WAAW,GAAU,EAAE,CAAA;IAE7B,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE,CAAC;QAC9B,OAAO,WAAW,CAAA;IACpB,CAAC;IAED,WAAW,CAAC,IAAI,CAAC;QACf,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,qBAAqB,CAAC;QACrD,WAAW,EAAE,eAAe;QAC5B,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,WAAW;QAC9C,YAAY,EAAE,YAAY;QAC1B,YAAY,EAAE,iBAAiB;QAC/B,KAAK,EAAE,gBAAgB;QAEvB,QAAQ,EAAE;YACR,KAAK,EAAE;gBACL,KAAK,EAAE,KAAK;aACb;SACF;QAED,QAAQ,EAAE;YACR,KAAK,EAAE;gBACL,EAAE,EAAE,KAAK,IAAI,EAAE;oBACb,GAAG,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAA;oBACtC,mCAAmC;gBACrC,CAAC;gBAED,GAAG,EAAE,KAAK,IAAI,EAAE;oBACd,GAAG,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAA;oBACvC,oCAAoC;gBACtC,CAAC;aACF;SACF;KACF,CAAC,CAAA;IAEF,OAAO,WAAW,CAAA;AACpB,CAAC"}
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
* Contact Sensor Device (Matter Spec § 7.1)
|
|
3
3
|
*
|
|
4
4
|
* A sensor that detects open/close state (e.g., door, window).
|
|
5
|
+
*
|
|
6
|
+
* For comprehensive documentation, see: ../../../MATTER_API.md
|
|
7
|
+
*
|
|
8
|
+
* This example demonstrates:
|
|
9
|
+
* - BooleanState cluster for binary sensors
|
|
5
10
|
*/
|
|
6
11
|
import type { DeviceContext } from '../types.js';
|
|
7
12
|
export declare function registerContactSensor(context: DeviceContext): any[];
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
* Contact Sensor Device (Matter Spec § 7.1)
|
|
3
3
|
*
|
|
4
4
|
* A sensor that detects open/close state (e.g., door, window).
|
|
5
|
+
*
|
|
6
|
+
* For comprehensive documentation, see: ../../../MATTER_API.md
|
|
7
|
+
*
|
|
8
|
+
* This example demonstrates:
|
|
9
|
+
* - BooleanState cluster for binary sensors
|
|
5
10
|
*/
|
|
6
11
|
export function registerContactSensor(context) {
|
|
7
12
|
const { api, config } = context;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact-sensor.js","sourceRoot":"","sources":["../../../src/devices/section-7-sensors/contact-sensor.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"contact-sensor.js","sourceRoot":"","sources":["../../../src/devices/section-7-sensors/contact-sensor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,MAAM,UAAU,qBAAqB,CAAC,OAAsB;IAC1D,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,OAAO,CAAA;IAC/B,MAAM,WAAW,GAAU,EAAE,CAAA;IAE7B,IAAI,CAAC,MAAM,CAAC,mBAAmB,EAAE,CAAC;QAChC,OAAO,WAAW,CAAA;IACpB,CAAC;IAED,WAAW,CAAC,IAAI,CAAC;QACf,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,uBAAuB,CAAC;QACvD,WAAW,EAAE,gBAAgB;QAC7B,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,aAAa;QAChD,YAAY,EAAE,aAAa;QAC3B,YAAY,EAAE,YAAY;QAC1B,KAAK,EAAE,wBAAwB;QAC/B,QAAQ,EAAE;YACR,YAAY,EAAE;gBACZ,UAAU,EAAE,KAAK,EAAE,+CAA+C;aACnE;SACF;KACF,CAAC,CAAA;IAEF,OAAO,WAAW,CAAA;AACpB,CAAC"}
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
* Humidity Sensor Device (Matter Spec § 7.7)
|
|
3
3
|
*
|
|
4
4
|
* A sensor that measures relative humidity.
|
|
5
|
+
*
|
|
6
|
+
* For comprehensive documentation, see: ../../../MATTER_API.md
|
|
7
|
+
*
|
|
8
|
+
* This example demonstrates:
|
|
9
|
+
* - RelativeHumidityMeasurement cluster for humidity sensors
|
|
5
10
|
*/
|
|
6
11
|
import type { DeviceContext } from '../types.js';
|
|
7
12
|
export declare function registerHumiditySensor(context: DeviceContext): any[];
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
* Humidity Sensor Device (Matter Spec § 7.7)
|
|
3
3
|
*
|
|
4
4
|
* A sensor that measures relative humidity.
|
|
5
|
+
*
|
|
6
|
+
* For comprehensive documentation, see: ../../../MATTER_API.md
|
|
7
|
+
*
|
|
8
|
+
* This example demonstrates:
|
|
9
|
+
* - RelativeHumidityMeasurement cluster for humidity sensors
|
|
5
10
|
*/
|
|
6
11
|
export function registerHumiditySensor(context) {
|
|
7
12
|
const { api, config } = context;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"humidity-sensor.js","sourceRoot":"","sources":["../../../src/devices/section-7-sensors/humidity-sensor.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"humidity-sensor.js","sourceRoot":"","sources":["../../../src/devices/section-7-sensors/humidity-sensor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,MAAM,UAAU,sBAAsB,CAAC,OAAsB;IAC3D,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,OAAO,CAAA;IAC/B,MAAM,WAAW,GAAU,EAAE,CAAA;IAE7B,IAAI,CAAC,MAAM,CAAC,oBAAoB,EAAE,CAAC;QACjC,OAAO,WAAW,CAAA;IACpB,CAAC;IAED,WAAW,CAAC,IAAI,CAAC;QACf,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC;QACxD,WAAW,EAAE,iBAAiB;QAC9B,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,cAAc;QACjD,YAAY,EAAE,SAAS;QACvB,YAAY,EAAE,YAAY;QAC1B,KAAK,EAAE,yBAAyB;QAChC,QAAQ,EAAE;YACR,2BAA2B,EAAE;gBAC3B,aAAa,EAAE,IAAI,EAAE,mCAAmC;gBACxD,gBAAgB,EAAE,CAAC;gBACnB,gBAAgB,EAAE,KAAK,EAAE,OAAO;aACjC;SACF;KACF,CAAC,CAAA;IAEF,OAAO,WAAW,CAAA;AACpB,CAAC"}
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
* Light Sensor Device (Matter Spec § 7.2)
|
|
3
3
|
*
|
|
4
4
|
* A sensor that measures illuminance (light level).
|
|
5
|
+
*
|
|
6
|
+
* For comprehensive documentation, see: ../../../MATTER_API.md
|
|
7
|
+
*
|
|
8
|
+
* This example demonstrates:
|
|
9
|
+
* - IlluminanceMeasurement cluster for light sensors
|
|
5
10
|
*/
|
|
6
11
|
import type { DeviceContext } from '../types.js';
|
|
7
12
|
export declare function registerLightSensor(context: DeviceContext): any[];
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
* Light Sensor Device (Matter Spec § 7.2)
|
|
3
3
|
*
|
|
4
4
|
* A sensor that measures illuminance (light level).
|
|
5
|
+
*
|
|
6
|
+
* For comprehensive documentation, see: ../../../MATTER_API.md
|
|
7
|
+
*
|
|
8
|
+
* This example demonstrates:
|
|
9
|
+
* - IlluminanceMeasurement cluster for light sensors
|
|
5
10
|
*/
|
|
6
11
|
export function registerLightSensor(context) {
|
|
7
12
|
const { api, config } = context;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"light-sensor.js","sourceRoot":"","sources":["../../../src/devices/section-7-sensors/light-sensor.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"light-sensor.js","sourceRoot":"","sources":["../../../src/devices/section-7-sensors/light-sensor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,MAAM,UAAU,mBAAmB,CAAC,OAAsB;IACxD,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,OAAO,CAAA;IAC/B,MAAM,WAAW,GAAU,EAAE,CAAA;IAE7B,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE,CAAC;QAC9B,OAAO,WAAW,CAAA;IACpB,CAAC;IAED,WAAW,CAAC,IAAI,CAAC;QACf,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,qBAAqB,CAAC;QACrD,WAAW,EAAE,cAAc;QAC3B,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,WAAW;QAC9C,YAAY,EAAE,WAAW;QACzB,YAAY,EAAE,YAAY;QAC1B,KAAK,EAAE,sBAAsB;QAC7B,QAAQ,EAAE;YACR,sBAAsB,EAAE;gBACtB,aAAa,EAAE,IAAI,EAAE,0CAA0C;gBAC/D,gBAAgB,EAAE,CAAC;gBACnB,gBAAgB,EAAE,KAAK;aACxB;SACF;KACF,CAAC,CAAA;IAEF,OAAO,WAAW,CAAA;AACpB,CAAC"}
|
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
*
|
|
4
4
|
* A sensor that detects occupancy/motion using various sensing methods.
|
|
5
5
|
* This implementation uses Passive Infrared (PIR) detection.
|
|
6
|
+
*
|
|
7
|
+
* For comprehensive documentation, see: ../../../MATTER_API.md
|
|
8
|
+
*
|
|
9
|
+
* This example demonstrates:
|
|
10
|
+
* - OccupancySensing cluster for motion/occupancy detection
|
|
11
|
+
* - Device feature configuration (PIR sensing method)
|
|
6
12
|
*/
|
|
7
13
|
import type { DeviceContext } from '../types.js';
|
|
8
14
|
export declare function registerOccupancySensor(context: DeviceContext): any[];
|
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
*
|
|
4
4
|
* A sensor that detects occupancy/motion using various sensing methods.
|
|
5
5
|
* This implementation uses Passive Infrared (PIR) detection.
|
|
6
|
+
*
|
|
7
|
+
* For comprehensive documentation, see: ../../../MATTER_API.md
|
|
8
|
+
*
|
|
9
|
+
* This example demonstrates:
|
|
10
|
+
* - OccupancySensing cluster for motion/occupancy detection
|
|
11
|
+
* - Device feature configuration (PIR sensing method)
|
|
6
12
|
*/
|
|
7
13
|
export function registerOccupancySensor(context) {
|
|
8
14
|
const { api, config } = context;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"occupancy-sensor.js","sourceRoot":"","sources":["../../../src/devices/section-7-sensors/occupancy-sensor.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"occupancy-sensor.js","sourceRoot":"","sources":["../../../src/devices/section-7-sensors/occupancy-sensor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,MAAM,UAAU,uBAAuB,CAAC,OAAsB;IAC5D,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,OAAO,CAAA;IAC/B,MAAM,WAAW,GAAU,EAAE,CAAA;IAE7B,IAAI,CAAC,MAAM,CAAC,kBAAkB,EAAE,CAAC;QAC/B,OAAO,WAAW,CAAA;IACpB,CAAC;IAED,2FAA2F;IAC3F,MAAM,sBAAsB,GAAG,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,YAAY,CAAC,YAAY,CAAC,sBAAsB,CAAA;IACtG,MAAM,mBAAmB,GAAG,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,YAAY,CAAC,IAAI,CAClE,sBAAsB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAC/C,CAAA;IAED,WAAW,CAAC,IAAI,CAAC;QACf,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,sBAAsB,CAAC;QACtD,WAAW,EAAE,eAAe;QAC5B,UAAU,EAAE,mBAAmB;QAC/B,YAAY,EAAE,YAAY;QAC1B,YAAY,EAAE,YAAY;QAC1B,KAAK,EAAE,uBAAuB;QAC9B,QAAQ,EAAE;YACR,gBAAgB,EAAE;gBAChB,SAAS,EAAE;oBACT,QAAQ,EAAE,KAAK,EAAE,qBAAqB;iBACvC;aACF;SACF;KACF,CAAC,CAAA;IAEF,OAAO,WAAW,CAAA;AACpB,CAAC"}
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
* Smoke/CO Alarm Device (Matter Spec § 7.9)
|
|
3
3
|
*
|
|
4
4
|
* A combined smoke and carbon monoxide alarm sensor.
|
|
5
|
+
*
|
|
6
|
+
* For comprehensive documentation, see: ../../../MATTER_API.md
|
|
7
|
+
*
|
|
8
|
+
* This example demonstrates:
|
|
9
|
+
* - SmokeCoAlarm cluster for smoke/CO detection
|
|
10
|
+
* - Device feature configuration (SmokeAlarm and CoAlarm features)
|
|
5
11
|
*/
|
|
6
12
|
import type { DeviceContext } from '../types.js';
|
|
7
13
|
export declare function registerSmokeCoAlarm(context: DeviceContext): any[];
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
* Smoke/CO Alarm Device (Matter Spec § 7.9)
|
|
3
3
|
*
|
|
4
4
|
* A combined smoke and carbon monoxide alarm sensor.
|
|
5
|
+
*
|
|
6
|
+
* For comprehensive documentation, see: ../../../MATTER_API.md
|
|
7
|
+
*
|
|
8
|
+
* This example demonstrates:
|
|
9
|
+
* - SmokeCoAlarm cluster for smoke/CO detection
|
|
10
|
+
* - Device feature configuration (SmokeAlarm and CoAlarm features)
|
|
5
11
|
*/
|
|
6
12
|
export function registerSmokeCoAlarm(context) {
|
|
7
13
|
const { api, config } = context;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smoke-co-alarm.js","sourceRoot":"","sources":["../../../src/devices/section-7-sensors/smoke-co-alarm.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"smoke-co-alarm.js","sourceRoot":"","sources":["../../../src/devices/section-7-sensors/smoke-co-alarm.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,MAAM,UAAU,oBAAoB,CAAC,OAAsB;IACzD,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,OAAO,CAAA;IAC/B,MAAM,WAAW,GAAU,EAAE,CAAA;IAE7B,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE,CAAC;QAC9B,OAAO,WAAW,CAAA;IACpB,CAAC;IAED,8EAA8E;IAC9E,MAAM,kBAAkB,GAAG,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,WAAW,CAAC,YAAY,CAAC,kBAAkB,CAAA;IAC7F,MAAM,mBAAmB,GAAG,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,WAAW,CAAC,IAAI,CACjE,kBAAkB,CAAC,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,CACjD,CAAA;IAED,WAAW,CAAC,IAAI,CAAC;QACf,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,qBAAqB,CAAC;QACrD,WAAW,EAAE,cAAc;QAC3B,UAAU,EAAE,mBAAmB;QAC/B,YAAY,EAAE,WAAW;QACzB,YAAY,EAAE,YAAY;QAC1B,KAAK,EAAE,sBAAsB;QAC7B,QAAQ,EAAE;YACR,YAAY,EAAE;gBACZ,UAAU,EAAE,CAAC,EAAE,wCAAwC;gBACvD,OAAO,EAAE,CAAC,EAAE,wCAAwC;gBACpD,YAAY,EAAE,CAAC,EAAE,aAAa;gBAC9B,cAAc,EAAE,KAAK;gBACrB,kBAAkB,EAAE,KAAK;gBACzB,iBAAiB,EAAE,CAAC,EAAE,aAAa;gBACnC,sBAAsB,EAAE,CAAC,EAAE,aAAa;gBACxC,mBAAmB,EAAE,CAAC,EAAE,aAAa;aACtC;SACF;KACF,CAAC,CAAA;IAEF,OAAO,WAAW,CAAA;AACpB,CAAC"}
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
* Temperature Sensor Device (Matter Spec § 7.4)
|
|
3
3
|
*
|
|
4
4
|
* A sensor that measures ambient temperature.
|
|
5
|
+
*
|
|
6
|
+
* For comprehensive documentation, see: ../../../MATTER_API.md
|
|
7
|
+
*
|
|
8
|
+
* This example demonstrates:
|
|
9
|
+
* - TemperatureMeasurement cluster for temperature sensors
|
|
5
10
|
*/
|
|
6
11
|
import type { DeviceContext } from '../types.js';
|
|
7
12
|
export declare function registerTemperatureSensor(context: DeviceContext): any[];
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
* Temperature Sensor Device (Matter Spec § 7.4)
|
|
3
3
|
*
|
|
4
4
|
* A sensor that measures ambient temperature.
|
|
5
|
+
*
|
|
6
|
+
* For comprehensive documentation, see: ../../../MATTER_API.md
|
|
7
|
+
*
|
|
8
|
+
* This example demonstrates:
|
|
9
|
+
* - TemperatureMeasurement cluster for temperature sensors
|
|
5
10
|
*/
|
|
6
11
|
export function registerTemperatureSensor(context) {
|
|
7
12
|
const { api, config } = context;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"temperature-sensor.js","sourceRoot":"","sources":["../../../src/devices/section-7-sensors/temperature-sensor.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"temperature-sensor.js","sourceRoot":"","sources":["../../../src/devices/section-7-sensors/temperature-sensor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,MAAM,UAAU,yBAAyB,CAAC,OAAsB;IAC9D,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,OAAO,CAAA;IAC/B,MAAM,WAAW,GAAU,EAAE,CAAA;IAE7B,IAAI,CAAC,MAAM,CAAC,uBAAuB,EAAE,CAAC;QACpC,OAAO,WAAW,CAAA;IACpB,CAAC;IAED,WAAW,CAAC,IAAI,CAAC;QACf,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,2BAA2B,CAAC;QAC3D,WAAW,EAAE,oBAAoB;QACjC,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,iBAAiB;QACpD,YAAY,EAAE,UAAU;QACxB,YAAY,EAAE,YAAY;QAC1B,KAAK,EAAE,4BAA4B;QACnC,QAAQ,EAAE;YACR,sBAAsB,EAAE;gBACtB,aAAa,EAAE,IAAI,EAAE,8CAA8C;gBACnE,gBAAgB,EAAE,CAAC,IAAI,EAAE,QAAQ;gBACjC,gBAAgB,EAAE,KAAK,EAAE,QAAQ;aAClC;SACF;KACF,CAAC,CAAA;IAEF,OAAO,WAAW,CAAA;AACpB,CAAC"}
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
* Water Leak Detector Device (Matter Spec § 7.12)
|
|
3
3
|
*
|
|
4
4
|
* A sensor that detects the presence of water/leaks.
|
|
5
|
+
*
|
|
6
|
+
* For comprehensive documentation, see: ../../../MATTER_API.md
|
|
7
|
+
*
|
|
8
|
+
* This example demonstrates:
|
|
9
|
+
* - BooleanState cluster for leak detection
|
|
5
10
|
*/
|
|
6
11
|
import type { DeviceContext } from '../types.js';
|
|
7
12
|
export declare function registerWaterLeakDetector(context: DeviceContext): any[];
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
* Water Leak Detector Device (Matter Spec § 7.12)
|
|
3
3
|
*
|
|
4
4
|
* A sensor that detects the presence of water/leaks.
|
|
5
|
+
*
|
|
6
|
+
* For comprehensive documentation, see: ../../../MATTER_API.md
|
|
7
|
+
*
|
|
8
|
+
* This example demonstrates:
|
|
9
|
+
* - BooleanState cluster for leak detection
|
|
5
10
|
*/
|
|
6
11
|
export function registerWaterLeakDetector(context) {
|
|
7
12
|
const { api, config } = context;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"water-leak-detector.js","sourceRoot":"","sources":["../../../src/devices/section-7-sensors/water-leak-detector.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"water-leak-detector.js","sourceRoot":"","sources":["../../../src/devices/section-7-sensors/water-leak-detector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,MAAM,UAAU,yBAAyB,CAAC,OAAsB;IAC9D,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,OAAO,CAAA;IAC/B,MAAM,WAAW,GAAU,EAAE,CAAA;IAE7B,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,CAAC;QAC7B,OAAO,WAAW,CAAA;IACpB,CAAC;IAED,WAAW,CAAC,IAAI,CAAC;QACf,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,oBAAoB,CAAC;QACpD,WAAW,EAAE,aAAa;QAC1B,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,UAAU;QAC7C,YAAY,EAAE,UAAU;QACxB,YAAY,EAAE,YAAY;QAC1B,KAAK,EAAE,qBAAqB;QAC5B,QAAQ,EAAE;YACR,YAAY,EAAE;gBACZ,UAAU,EAAE,KAAK,EAAE,8CAA8C;aAClE;SACF;KACF,CAAC,CAAA;IAEF,OAAO,WAAW,CAAA;AACpB,CAAC"}
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
* Door Lock Device (Matter Spec § 8.1)
|
|
3
3
|
*
|
|
4
4
|
* A lock that can be locked and unlocked remotely.
|
|
5
|
+
*
|
|
6
|
+
* For comprehensive documentation, see: ../../../MATTER_API.md
|
|
7
|
+
*
|
|
8
|
+
* This example demonstrates:
|
|
9
|
+
* - DoorLock cluster with lock/unlock commands
|
|
10
|
+
* - Using api.matter.types for type-safe enum values
|
|
5
11
|
*/
|
|
6
12
|
import type { DeviceContext } from '../types.js';
|
|
7
13
|
export declare function registerDoorLock(context: DeviceContext): any[];
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
* Door Lock Device (Matter Spec § 8.1)
|
|
3
3
|
*
|
|
4
4
|
* A lock that can be locked and unlocked remotely.
|
|
5
|
+
*
|
|
6
|
+
* For comprehensive documentation, see: ../../../MATTER_API.md
|
|
7
|
+
*
|
|
8
|
+
* This example demonstrates:
|
|
9
|
+
* - DoorLock cluster with lock/unlock commands
|
|
10
|
+
* - Using api.matter.types for type-safe enum values
|
|
5
11
|
*/
|
|
6
12
|
export function registerDoorLock(context) {
|
|
7
13
|
const { api, log, config } = context;
|
|
@@ -9,50 +15,29 @@ export function registerDoorLock(context) {
|
|
|
9
15
|
if (!config.enableDoorLock) {
|
|
10
16
|
return accessories;
|
|
11
17
|
}
|
|
12
|
-
// Generate UUID once and reuse in handlers
|
|
13
|
-
const doorLockUuid = api.matter.uuid.generate('matter-door-lock');
|
|
14
18
|
accessories.push({
|
|
15
|
-
uuid:
|
|
19
|
+
uuid: api.matter.uuid.generate('matter-door-lock'),
|
|
16
20
|
displayName: 'Door Lock',
|
|
17
21
|
deviceType: api.matter.deviceTypes.DoorLock,
|
|
18
22
|
serialNumber: 'LOCK-001',
|
|
19
23
|
manufacturer: 'Matter Examples',
|
|
20
24
|
model: 'DoorLock v1',
|
|
21
|
-
// Optional: Persistent storage for custom data (survives Homebridge restarts)
|
|
22
|
-
// Useful for storing device IDs, API credentials, cached state, etc.
|
|
23
|
-
// Access later via configureMatterAccessory() when Homebridge restarts
|
|
24
|
-
// context: {
|
|
25
|
-
// lockDeviceId: 'abc123',
|
|
26
|
-
// apiEndpoint: 'https://api.mylock.com',
|
|
27
|
-
// lastKnownState: 2, // 2 = Unlocked
|
|
28
|
-
// },
|
|
29
25
|
clusters: {
|
|
30
26
|
doorLock: {
|
|
31
|
-
|
|
32
|
-
lockState: api.matter.types.DoorLock.LockState.Unlocked, // Unlocked (initial state)
|
|
33
|
-
// Lock type using MatterTypes enum
|
|
27
|
+
lockState: api.matter.types.DoorLock.LockState.Unlocked,
|
|
34
28
|
lockType: api.matter.types.DoorLock.LockType.DeadBolt,
|
|
35
|
-
// Actuator enabled (can be locked/unlocked remotely)
|
|
36
29
|
actuatorEnabled: true,
|
|
37
30
|
},
|
|
38
31
|
},
|
|
39
32
|
handlers: {
|
|
40
33
|
doorLock: {
|
|
41
|
-
// Called when user locks the door via Home app
|
|
42
34
|
lockDoor: async () => {
|
|
43
|
-
log.info('[Door Lock]
|
|
44
|
-
// TODO:
|
|
45
|
-
// Example: await myLockAPI.lock()
|
|
46
|
-
// Update the Matter state to reflect the lock is now locked
|
|
47
|
-
return api.matter.updateAccessoryState(doorLockUuid, api.matter.clusterNames.DoorLock, { lockState: api.matter.types.DoorLock.LockState.Locked });
|
|
35
|
+
log.info('[Door Lock] Locking door');
|
|
36
|
+
// TODO: await myLockAPI.lock()
|
|
48
37
|
},
|
|
49
|
-
// Called when user unlocks the door via Home app
|
|
50
38
|
unlockDoor: async () => {
|
|
51
|
-
log.info('[Door Lock]
|
|
52
|
-
// TODO:
|
|
53
|
-
// Example: await myLockAPI.unlock()
|
|
54
|
-
// Update the Matter state to reflect the lock is now unlocked
|
|
55
|
-
return api.matter.updateAccessoryState(doorLockUuid, api.matter.clusterNames.DoorLock, { lockState: api.matter.types.DoorLock.LockState.Unlocked });
|
|
39
|
+
log.info('[Door Lock] Unlocking door');
|
|
40
|
+
// TODO: await myLockAPI.unlock()
|
|
56
41
|
},
|
|
57
42
|
},
|
|
58
43
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"door-lock.js","sourceRoot":"","sources":["../../../src/devices/section-8-closure/door-lock.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"door-lock.js","sourceRoot":"","sources":["../../../src/devices/section-8-closure/door-lock.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,MAAM,UAAU,gBAAgB,CAAC,OAAsB;IACrD,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,OAAO,CAAA;IACpC,MAAM,WAAW,GAAU,EAAE,CAAA;IAE7B,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC;QAC3B,OAAO,WAAW,CAAA;IACpB,CAAC;IAED,WAAW,CAAC,IAAI,CAAC;QACf,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,kBAAkB,CAAC;QAClD,WAAW,EAAE,WAAW;QACxB,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,QAAQ;QAC3C,YAAY,EAAE,UAAU;QACxB,YAAY,EAAE,iBAAiB;QAC/B,KAAK,EAAE,aAAa;QAEpB,QAAQ,EAAE;YACR,QAAQ,EAAE;gBACR,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,QAAQ;gBACvD,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ;gBACrD,eAAe,EAAE,IAAI;aACtB;SACF;QAED,QAAQ,EAAE;YACR,QAAQ,EAAE;gBACR,QAAQ,EAAE,KAAK,IAAI,EAAE;oBACnB,GAAG,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAA;oBACpC,+BAA+B;gBACjC,CAAC;gBAED,UAAU,EAAE,KAAK,IAAI,EAAE;oBACrB,GAAG,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAA;oBACtC,iCAAiC;gBACnC,CAAC;aACF;SACF;KACF,CAAC,CAAA;IAEF,OAAO,WAAW,CAAA;AACpB,CAAC"}
|
|
@@ -4,6 +4,13 @@
|
|
|
4
4
|
* Handles multiple variants:
|
|
5
5
|
* - Window Blind: Standard lift-only window covering
|
|
6
6
|
* - Venetian Blind: Window covering with both lift and tilt control
|
|
7
|
+
*
|
|
8
|
+
* For comprehensive documentation, see: ../../../MATTER_API.md
|
|
9
|
+
*
|
|
10
|
+
* This example demonstrates:
|
|
11
|
+
* - WindowCovering cluster for motorized blinds/shades
|
|
12
|
+
* - Multiple control commands (lift, tilt, stop)
|
|
13
|
+
* - Position tracking in hundredths of percent
|
|
7
14
|
*/
|
|
8
15
|
import type { DeviceContext } from '../types.js';
|
|
9
16
|
export declare function registerWindowCovering(context: DeviceContext): any[];
|