matterbridge-eve-weather 1.3.1 → 2.0.0

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 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
- import { MatterbridgeAccessoryPlatform, powerSource, MatterbridgeEndpoint, temperatureSensor, humiditySensor, pressureSensor } from 'matterbridge';
1
+ import { MatterbridgeAccessoryPlatform, powerSource, MatterbridgeEndpoint, temperatureSensor, humiditySensor, pressureSensor, } from 'matterbridge';
2
2
  import { PowerSource, PressureMeasurement, RelativeHumidityMeasurement, TemperatureMeasurement } from 'matterbridge/matter/clusters';
3
3
  import { EveHistory, MatterHistory } from 'matter-history';
4
+ export default function initializePlugin(matterbridge, log, config) {
5
+ return new EveWeatherPlatform(matterbridge, log, config);
6
+ }
4
7
  export class EveWeatherPlatform extends MatterbridgeAccessoryPlatform {
5
8
  weather;
6
9
  history;
@@ -9,8 +12,8 @@ export class EveWeatherPlatform extends MatterbridgeAccessoryPlatform {
9
12
  maxTemperature = 0;
10
13
  constructor(matterbridge, log, config) {
11
14
  super(matterbridge, log, config);
12
- if (this.verifyMatterbridgeVersion === undefined || typeof this.verifyMatterbridgeVersion !== 'function' || !this.verifyMatterbridgeVersion('3.0.0')) {
13
- throw new Error(`This plugin requires Matterbridge version >= "3.0.0". Please update Matterbridge from ${this.matterbridge.matterbridgeVersion} to the latest version in the frontend."`);
15
+ if (this.verifyMatterbridgeVersion === undefined || typeof this.verifyMatterbridgeVersion !== 'function' || !this.verifyMatterbridgeVersion('3.3.0')) {
16
+ 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."`);
14
17
  }
15
18
  this.log.info('Initializing platform:', this.config.name);
16
19
  }
@@ -23,7 +26,7 @@ export class EveWeatherPlatform extends MatterbridgeAccessoryPlatform {
23
26
  this.weather.createDefaultTemperatureMeasurementClusterServer(20 * 100);
24
27
  this.weather.createDefaultRelativeHumidityMeasurementClusterServer(50 * 100);
25
28
  this.weather.createDefaultPressureMeasurementClusterServer(950);
26
- this.weather.createDefaultPowerSourceReplaceableBatteryClusterServer(87, PowerSource.BatChargeLevel.Ok, 1500, 'CR2450', 1);
29
+ this.weather.createDefaultPowerSourceReplaceableBatteryClusterServer(64, PowerSource.BatChargeLevel.Ok, 3000, 'CR2450', 1);
27
30
  this.history.createWeatherEveHistoryClusterServer(this.weather, this.log);
28
31
  this.history.autoPilot(this.weather);
29
32
  await this.registerDevice(this.weather);
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "matterbridge-eve-weather",
3
- "version": "1.3.1",
3
+ "version": "2.0.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "matterbridge-eve-weather",
9
- "version": "1.3.1",
9
+ "version": "2.0.0",
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": ">=18.0.0 <19.0.0 || >=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0"
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-weather",
3
- "version": "1.3.1",
3
+ "version": "2.0.0",
4
4
  "description": "Matterbridge eve weather with history",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "Apache-2.0",
7
7
  "type": "module",
8
- "main": "dist/index.js",
8
+ "main": "dist/module.js",
9
9
  "homepage": "https://www.npmjs.com/package/matterbridge-eve-weather",
10
10
  "repository": {
11
11
  "type": "git",
@@ -32,7 +32,7 @@
32
32
  "history"
33
33
  ],
34
34
  "engines": {
35
- "node": ">=18.0.0 <19.0.0 || >=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0"
35
+ "node": ">=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0"
36
36
  },
37
37
  "dependencies": {
38
38
  "matter-history": "1.1.19",
package/dist/index.js DELETED
@@ -1,4 +0,0 @@
1
- import { EveWeatherPlatform as EveWeatherPlatform } from './platform.js';
2
- export default function initializePlugin(matterbridge, log, config) {
3
- return new EveWeatherPlatform(matterbridge, log, config);
4
- }
package/yellow-button.png DELETED
Binary file