matterbridge-eve-motion 1.3.1-dev-20250730-879c8ea → 2.0.0-dev-20251026-84c4c33
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 +22 -0
- package/dist/{platform.js → module.js} +7 -4
- package/npm-shrinkwrap.json +3 -3
- package/package.json +3 -3
- package/dist/index.js +0 -4
- package/yellow-button.png +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -17,6 +17,28 @@
|
|
|
17
17
|
|
|
18
18
|
All notable changes to this project will be documented in this file.
|
|
19
19
|
|
|
20
|
+
## [2.0.0] - 2025-10-24
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- [package]: Bumped platform to v. 2.0.0.
|
|
25
|
+
- [package]: Updated dependencies.
|
|
26
|
+
- [package]: Bumped package to automator v. 2.0.9
|
|
27
|
+
- [jest]: Updated jestHelpers to v. 1.0.9.
|
|
28
|
+
- [package]: Require matterbridge 3.3.0.
|
|
29
|
+
- [index]: Updated to new signature PlatformMatterbridge.
|
|
30
|
+
- [platform]: Updated to new signature PlatformMatterbridge.
|
|
31
|
+
- [workflows]: Ignore any .md in build.yaml.
|
|
32
|
+
- [workflows]: Ignore any .md in codeql.yaml.
|
|
33
|
+
- [workflows]: Ignore any .md in codecov.yaml.
|
|
34
|
+
- [workflows]: Improved speed on Node CI.
|
|
35
|
+
- [devcontainer]: Added the plugin name to the container.
|
|
36
|
+
- [devcontainer]: Improved performance of first build with shallow clone.
|
|
37
|
+
|
|
38
|
+
<a href="https://www.buymeacoffee.com/luligugithub">
|
|
39
|
+
<img src="bmc-button.svg" alt="Buy me a coffee" width="80">
|
|
40
|
+
</a>
|
|
41
|
+
|
|
20
42
|
## [1.3.1] - 2025-07-29
|
|
21
43
|
|
|
22
44
|
### Added
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { MatterHistory } from 'matter-history';
|
|
2
2
|
import { MatterbridgeAccessoryPlatform, powerSource, MatterbridgeEndpoint, occupancySensor, lightSensor } from 'matterbridge';
|
|
3
|
-
import { IlluminanceMeasurement, OccupancySensing } from 'matterbridge/matter/clusters';
|
|
3
|
+
import { IlluminanceMeasurement, OccupancySensing, PowerSource } from 'matterbridge/matter/clusters';
|
|
4
|
+
export default function initializePlugin(matterbridge, log, config) {
|
|
5
|
+
return new EveMotionPlatform(matterbridge, log, config);
|
|
6
|
+
}
|
|
4
7
|
export class EveMotionPlatform extends MatterbridgeAccessoryPlatform {
|
|
5
8
|
motion;
|
|
6
9
|
history;
|
|
@@ -8,8 +11,8 @@ export class EveMotionPlatform extends MatterbridgeAccessoryPlatform {
|
|
|
8
11
|
occupied = false;
|
|
9
12
|
constructor(matterbridge, log, config) {
|
|
10
13
|
super(matterbridge, log, config);
|
|
11
|
-
if (this.verifyMatterbridgeVersion === undefined || typeof this.verifyMatterbridgeVersion !== 'function' || !this.verifyMatterbridgeVersion('3.
|
|
12
|
-
throw new Error(`This plugin requires Matterbridge version >= "3.
|
|
14
|
+
if (this.verifyMatterbridgeVersion === undefined || typeof this.verifyMatterbridgeVersion !== 'function' || !this.verifyMatterbridgeVersion('3.3.0')) {
|
|
15
|
+
throw new Error(`This plugin requires Matterbridge version >= "3.3.0". Please update Matterbridge from ${this.matterbridge.matterbridgeVersion} to the latest version in the frontend."`);
|
|
13
16
|
}
|
|
14
17
|
this.log.info('Initializing platform:', this.config.name);
|
|
15
18
|
}
|
|
@@ -21,7 +24,7 @@ export class EveMotionPlatform extends MatterbridgeAccessoryPlatform {
|
|
|
21
24
|
this.motion.createDefaultBasicInformationClusterServer('Eve motion', '0x85483499', 4874, 'Eve Systems', 89, 'Eve Motion 20EBY9901', 6650, '3.2.1');
|
|
22
25
|
this.motion.createDefaultOccupancySensingClusterServer(false);
|
|
23
26
|
this.motion.createDefaultIlluminanceMeasurementClusterServer(250);
|
|
24
|
-
this.motion.createDefaultPowerSourceReplaceableBatteryClusterServer();
|
|
27
|
+
this.motion.createDefaultPowerSourceReplaceableBatteryClusterServer(65, PowerSource.BatChargeLevel.Ok, 3000, 'CR2450', 2);
|
|
25
28
|
this.history.createMotionEveHistoryClusterServer(this.motion, this.log);
|
|
26
29
|
this.history.autoPilot(this.motion);
|
|
27
30
|
await this.registerDevice(this.motion);
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge-eve-motion",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-dev-20251026-84c4c33",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "matterbridge-eve-motion",
|
|
9
|
-
"version": "
|
|
9
|
+
"version": "2.0.0-dev-20251026-84c4c33",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"matter-history": "1.1.19",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"node-persist-manager": "2.0.0"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
17
|
-
"node": ">=
|
|
17
|
+
"node": ">=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0"
|
|
18
18
|
},
|
|
19
19
|
"funding": {
|
|
20
20
|
"type": "buymeacoffee",
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge-eve-motion",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-dev-20251026-84c4c33",
|
|
4
4
|
"description": "Matterbridge eve motion with history",
|
|
5
5
|
"author": "https://github.com/Luligu",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"type": "module",
|
|
8
|
-
"main": "dist/
|
|
8
|
+
"main": "dist/module.js",
|
|
9
9
|
"homepage": "https://www.npmjs.com/package/matterbridge-eve-motion",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"history"
|
|
30
30
|
],
|
|
31
31
|
"engines": {
|
|
32
|
-
"node": ">=
|
|
32
|
+
"node": ">=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"matter-history": "1.1.19",
|
package/dist/index.js
DELETED
package/yellow-button.png
DELETED
|
Binary file
|