matterbridge-eve-motion 3.0.3-dev-20260815-e7147b7 → 3.0.3
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 +15 -1
- package/dist/module.js +8 -4
- package/npm-shrinkwrap.json +10 -10
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -29,7 +29,21 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
29
29
|
|
|
30
30
|
<a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="120"></a>
|
|
31
31
|
|
|
32
|
-
## [3.0.3] -
|
|
32
|
+
## [3.0.3] - 2026-08-30
|
|
33
|
+
|
|
34
|
+
### Added
|
|
35
|
+
|
|
36
|
+
- [devcontainer]: Add `Dev Container` v.2.0.0 with dual Node and Bun runtime support.
|
|
37
|
+
|
|
38
|
+
### Changed
|
|
39
|
+
|
|
40
|
+
- [package]: Upgrade package.
|
|
41
|
+
- [package]: Bump `oxfmt` to v.0.65.0.
|
|
42
|
+
- [package]: Bump `oxlint` to v.1.80.0.
|
|
43
|
+
- [package]: Bump `vitest` to v.4.1.11.
|
|
44
|
+
- [package]: Bump `@types/node` to v.26.4.0.
|
|
45
|
+
- [package]: Bump `node-ansi-logger` to v.3.3.1.
|
|
46
|
+
- [package]: Bump `node-persist-manager` to v.2.1.1.
|
|
33
47
|
|
|
34
48
|
<a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
|
|
35
49
|
|
package/dist/module.js
CHANGED
|
@@ -15,10 +15,11 @@ export class EveMotionPlatform extends MatterbridgeAccessoryPlatform {
|
|
|
15
15
|
if (typeof this.verifyMatterbridgeVersion !== 'function' || !this.verifyMatterbridgeVersion('3.10.0')) {
|
|
16
16
|
throw new Error(`This plugin requires Matterbridge version >= "3.10.0". Please update Matterbridge from ${this.matterbridge.matterbridgeVersion} to the latest version in the frontend.`);
|
|
17
17
|
}
|
|
18
|
-
this.log.info(
|
|
18
|
+
this.log.info(`Initializing platform ${this.config.name}...`);
|
|
19
|
+
this.log.info(`Platform ${this.config.name} initialized successfully`);
|
|
19
20
|
}
|
|
20
21
|
async onStart(reason) {
|
|
21
|
-
this.log.info(
|
|
22
|
+
this.log.info(`Starting platform ${this.config.name} with reason: ${reason ?? 'no reason provided'}...`);
|
|
22
23
|
this.history = new MatterHistory(this.log, 'Eve motion', { filePath: this.matterbridge.matterbridgeDirectory, enableDebug: this.config.debug });
|
|
23
24
|
this.motion = new MatterbridgeEndpoint([occupancySensor, lightSensor, powerSource], { id: 'Eve motion', mode: this.matterbridge.bridgeMode === 'bridge' ? 'server' : undefined }, this.config.debug);
|
|
24
25
|
this.motion.createDefaultIdentifyClusterServer();
|
|
@@ -38,10 +39,11 @@ export class EveMotionPlatform extends MatterbridgeAccessoryPlatform {
|
|
|
38
39
|
this.log.info(`Command triggerEffect called effect ${effectIdentifier} variant ${effectVariant}`);
|
|
39
40
|
this.history?.logHistory(false);
|
|
40
41
|
});
|
|
42
|
+
this.log.info(`Platform ${this.config.name} started successfully`);
|
|
41
43
|
}
|
|
42
44
|
async onConfigure() {
|
|
43
45
|
await super.onConfigure();
|
|
44
|
-
this.log.info(
|
|
46
|
+
this.log.info(`Configuring platform ${this.config.name}...`);
|
|
45
47
|
await this.motion?.setAttribute(OccupancySensing, 'occupancy', { occupied: false }, this.log);
|
|
46
48
|
await this.motion?.setAttribute(IlluminanceMeasurement, 'measuredValue', Math.round(Math.max(Math.min(10000 * Math.log10(500) + 1, 0xfffe), 0)), this.log);
|
|
47
49
|
this.interval = setInterval(() => {
|
|
@@ -57,13 +59,15 @@ export class EveMotionPlatform extends MatterbridgeAccessoryPlatform {
|
|
|
57
59
|
this.log.info(`Set motion to ${this.occupied} and lux to ${lux}`);
|
|
58
60
|
})(), this.log, 'setInterval');
|
|
59
61
|
}, 60 * 1000 + 200);
|
|
62
|
+
this.log.info(`Platform ${this.config.name} configured successfully`);
|
|
60
63
|
}
|
|
61
64
|
async onShutdown(reason) {
|
|
62
65
|
await super.onShutdown(reason);
|
|
63
|
-
this.log.info(
|
|
66
|
+
this.log.info(`Shutting down platform ${this.config.name} with reason: ${reason ?? 'no reason provided'}...`);
|
|
64
67
|
await this.history?.close();
|
|
65
68
|
clearInterval(this.interval);
|
|
66
69
|
if (this.config.unregisterOnShutdown)
|
|
67
70
|
await this.unregisterAllDevices();
|
|
71
|
+
this.log.info(`Platform ${this.config.name} shut down successfully`);
|
|
68
72
|
}
|
|
69
73
|
}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge-eve-motion",
|
|
3
|
-
"version": "3.0.3
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "matterbridge-eve-motion",
|
|
9
|
-
"version": "3.0.3
|
|
9
|
+
"version": "3.0.3",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"matter-history": "1.2.2",
|
|
13
|
-
"node-ansi-logger": "3.3.
|
|
14
|
-
"node-persist-manager": "2.1.
|
|
13
|
+
"node-ansi-logger": "3.3.1",
|
|
14
|
+
"node-persist-manager": "2.1.1"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
17
17
|
"node": ">=20.19.0 <21.0.0 || >=22.13.0 <23.0.0 || >=24.0.0 <25.0.0 || >=26.0.0 <27.0.0"
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
"node_modules/node-ansi-logger": {
|
|
66
|
-
"version": "3.3.
|
|
67
|
-
"resolved": "https://registry.npmjs.org/node-ansi-logger/-/node-ansi-logger-3.3.
|
|
68
|
-
"integrity": "sha512-
|
|
66
|
+
"version": "3.3.1",
|
|
67
|
+
"resolved": "https://registry.npmjs.org/node-ansi-logger/-/node-ansi-logger-3.3.1.tgz",
|
|
68
|
+
"integrity": "sha512-JjkQHtVKgyd5Ua4AkYCFsZZiUYMrPsj/S9k2VY8/FjYuFJFRjDawsuxMwaThhWu4oU7zwuqvDG2uoDnjUyApVw==",
|
|
69
69
|
"hasShrinkwrap": true,
|
|
70
70
|
"license": "Apache-2.0",
|
|
71
71
|
"engines": {
|
|
@@ -77,9 +77,9 @@
|
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
79
|
"node_modules/node-persist-manager": {
|
|
80
|
-
"version": "2.1.
|
|
81
|
-
"resolved": "https://registry.npmjs.org/node-persist-manager/-/node-persist-manager-2.1.
|
|
82
|
-
"integrity": "sha512-
|
|
80
|
+
"version": "2.1.1",
|
|
81
|
+
"resolved": "https://registry.npmjs.org/node-persist-manager/-/node-persist-manager-2.1.1.tgz",
|
|
82
|
+
"integrity": "sha512-cAqF2spTnzDSAQeORHy/OYdD1VROGZ6UiLjmq/gVxQ4EglB0Ro0QX83U+xHEh2G6b7HTvGFqjS/R9LTOGkcayw==",
|
|
83
83
|
"hasShrinkwrap": true,
|
|
84
84
|
"license": "Apache-2.0",
|
|
85
85
|
"dependencies": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge-eve-motion",
|
|
3
|
-
"version": "3.0.3
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"description": "Matterbridge eve motion with history",
|
|
5
5
|
"author": "https://github.com/Luligu",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
],
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"matter-history": "1.2.2",
|
|
67
|
-
"node-ansi-logger": "3.3.
|
|
68
|
-
"node-persist-manager": "2.1.
|
|
67
|
+
"node-ansi-logger": "3.3.1",
|
|
68
|
+
"node-persist-manager": "2.1.1"
|
|
69
69
|
}
|
|
70
70
|
}
|