matterbridge 3.2.5-dev-20250831-218c05f → 3.2.5-dev-20250831-732330c
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 +3 -1
- package/dist/devices/refrigerator.js +19 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -13,6 +13,8 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
13
13
|
### Added
|
|
14
14
|
|
|
15
15
|
- [refrigerator]: Added RefrigeratorAlarm cluster.
|
|
16
|
+
- [refrigerator]: Added setDoorOpenState method to set the doorOpen state of RefrigeratorAlarm cluster.
|
|
17
|
+
- [refrigerator]: Added triggerDoorOpenState method to trigger the alert for the doorOpen state of RefrigeratorAlarm cluster.
|
|
16
18
|
|
|
17
19
|
### Changed
|
|
18
20
|
|
|
@@ -21,7 +23,7 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
21
23
|
|
|
22
24
|
### Fixed
|
|
23
25
|
|
|
24
|
-
- [refrigerator]: Fix device type
|
|
26
|
+
- [refrigerator]: Fix device type.
|
|
25
27
|
|
|
26
28
|
<a href="https://www.buymeacoffee.com/luligugithub">
|
|
27
29
|
<img src="bmc-button.svg" alt="Buy me a coffee" width="80">
|
|
@@ -43,6 +43,25 @@ export class Refrigerator extends MatterbridgeEndpoint {
|
|
|
43
43
|
});
|
|
44
44
|
return endpoint;
|
|
45
45
|
}
|
|
46
|
+
async setDoorOpenState(cabinetName, doorOpen) {
|
|
47
|
+
const endpoint = this.getChildEndpointByName(cabinetName);
|
|
48
|
+
if (endpoint) {
|
|
49
|
+
await endpoint.setAttribute('RefrigeratorAlarm', 'state', { doorOpen }, endpoint.log);
|
|
50
|
+
return endpoint;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
async triggerDoorOpenState(cabinetName, doorOpen) {
|
|
54
|
+
const endpoint = this.getChildEndpointByName(cabinetName);
|
|
55
|
+
if (endpoint) {
|
|
56
|
+
if (doorOpen) {
|
|
57
|
+
await endpoint.triggerEvent('RefrigeratorAlarm', 'notify', { active: { doorOpen: true }, inactive: { doorOpen: false }, state: { doorOpen: true }, mask: { doorOpen: true } }, endpoint.log);
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
await endpoint.triggerEvent('RefrigeratorAlarm', 'notify', { active: { doorOpen: false }, inactive: { doorOpen: true }, state: { doorOpen: false }, mask: { doorOpen: true } }, endpoint.log);
|
|
61
|
+
}
|
|
62
|
+
return endpoint;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
46
65
|
}
|
|
47
66
|
export class MatterbridgeRefrigeratorAndTemperatureControlledCabinetModeServer extends RefrigeratorAndTemperatureControlledCabinetModeServer {
|
|
48
67
|
initialize() {
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge",
|
|
3
|
-
"version": "3.2.5-dev-20250831-
|
|
3
|
+
"version": "3.2.5-dev-20250831-732330c",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "matterbridge",
|
|
9
|
-
"version": "3.2.5-dev-20250831-
|
|
9
|
+
"version": "3.2.5-dev-20250831-732330c",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@matter/main": "0.15.3",
|
package/package.json
CHANGED