matterbridge-eve-room 1.2.2 → 1.2.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 +12 -0
- package/dist/platform.js +6 -8
- package/npm-shrinkwrap.json +6 -2
- package/package.json +5 -1
- package/tsconfig.jest.json +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.2.3] - 2025-04-30
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- [package]: Require Matterbridge 3.0.0.
|
|
10
|
+
- [package]: Update dependencies.
|
|
11
|
+
- [package]: Update package.
|
|
12
|
+
|
|
13
|
+
<a href="https://www.buymeacoffee.com/luligugithub">
|
|
14
|
+
<img src="./yellow-button.png" alt="Buy me a coffee" width="120">
|
|
15
|
+
</a>
|
|
16
|
+
|
|
5
17
|
## [1.2.2] - 2025-04-03
|
|
6
18
|
|
|
7
19
|
### Changed
|
package/dist/platform.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { airQualitySensor, MatterbridgeAccessoryPlatform, MatterbridgeEndpoint, powerSource } from 'matterbridge';
|
|
2
|
-
import { RelativeHumidityMeasurement, TemperatureMeasurement, AirQuality,
|
|
3
|
-
import { MatterHistory } from 'matter-history';
|
|
2
|
+
import { RelativeHumidityMeasurement, TemperatureMeasurement, AirQuality, } from 'matterbridge/matter/clusters';
|
|
3
|
+
import { EveHistory, MatterHistory } from 'matter-history';
|
|
4
4
|
export class EveRoomPlatform extends MatterbridgeAccessoryPlatform {
|
|
5
5
|
room;
|
|
6
6
|
history;
|
|
@@ -9,8 +9,8 @@ export class EveRoomPlatform extends MatterbridgeAccessoryPlatform {
|
|
|
9
9
|
maxTemperature = 0;
|
|
10
10
|
constructor(matterbridge, log, config) {
|
|
11
11
|
super(matterbridge, log, config);
|
|
12
|
-
if (this.verifyMatterbridgeVersion === undefined || typeof this.verifyMatterbridgeVersion !== 'function' || !this.verifyMatterbridgeVersion('
|
|
13
|
-
throw new Error(`This plugin requires Matterbridge version >= "
|
|
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."`);
|
|
14
14
|
}
|
|
15
15
|
this.log.info('Initializing platform:', this.config.name);
|
|
16
16
|
}
|
|
@@ -21,7 +21,7 @@ export class EveRoomPlatform extends MatterbridgeAccessoryPlatform {
|
|
|
21
21
|
this.room.createDefaultIdentifyClusterServer();
|
|
22
22
|
this.room.createDefaultBasicInformationClusterServer('Eve room', '0x84224975', 4874, 'Eve Systems', 0x27, 'Eve Room 20EAM9901', 1416, '1.2.11', 1, '1.0.0');
|
|
23
23
|
this.room.createDefaultAirQualityClusterServer(AirQuality.AirQualityEnum.Good);
|
|
24
|
-
this.room.createDefaultTvocMeasurementClusterServer();
|
|
24
|
+
this.room.createDefaultTvocMeasurementClusterServer(100);
|
|
25
25
|
this.room.createDefaultTemperatureMeasurementClusterServer(20 * 100);
|
|
26
26
|
this.room.createDefaultRelativeHumidityMeasurementClusterServer(50 * 100);
|
|
27
27
|
this.room.createDefaultPowerSourceRechargeableBatteryClusterServer(87);
|
|
@@ -40,6 +40,7 @@ export class EveRoomPlatform extends MatterbridgeAccessoryPlatform {
|
|
|
40
40
|
}
|
|
41
41
|
async onConfigure() {
|
|
42
42
|
this.log.info('onConfigure called');
|
|
43
|
+
await this.room?.setAttribute(EveHistory.Cluster.id, 'temperatureDisplayUnits', 0, this.log);
|
|
43
44
|
this.interval = setInterval(async () => {
|
|
44
45
|
if (!this.room || !this.history)
|
|
45
46
|
return;
|
|
@@ -54,9 +55,6 @@ export class EveRoomPlatform extends MatterbridgeAccessoryPlatform {
|
|
|
54
55
|
this.maxTemperature = Math.max(this.maxTemperature, temperature);
|
|
55
56
|
const humidity = this.history.getFakeLevel(1, 99, 2);
|
|
56
57
|
await this.room.setAttribute(AirQuality.Cluster.id, 'airQuality', airquality);
|
|
57
|
-
await this.room.setAttribute(TotalVolatileOrganicCompoundsConcentrationMeasurement.Cluster.id, 'measuredValue', voc, this.log);
|
|
58
|
-
await this.room.setAttribute(TemperatureMeasurement.Cluster.id, 'minMeasuredValue', this.minTemperature * 100, this.log);
|
|
59
|
-
await this.room.setAttribute(TemperatureMeasurement.Cluster.id, 'maxMeasuredValue', this.maxTemperature * 100, this.log);
|
|
60
58
|
await this.room.setAttribute(TemperatureMeasurement.Cluster.id, 'measuredValue', temperature * 100, this.log);
|
|
61
59
|
await this.room.setAttribute(RelativeHumidityMeasurement.Cluster.id, 'measuredValue', humidity * 100, this.log);
|
|
62
60
|
this.history.setMaxMinTemperature(this.maxTemperature, this.minTemperature);
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge-eve-room",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "matterbridge-eve-room",
|
|
9
|
-
"version": "1.2.
|
|
9
|
+
"version": "1.2.3",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"matter-history": "1.1.18",
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
17
17
|
"node": ">=18.0.0 <19.0.0 || >=20.0.0 <21.0.0 || >=22.0.0"
|
|
18
|
+
},
|
|
19
|
+
"funding": {
|
|
20
|
+
"type": "buymeacoffee",
|
|
21
|
+
"url": "https://www.buymeacoffee.com/luligugithub"
|
|
18
22
|
}
|
|
19
23
|
},
|
|
20
24
|
"node_modules/matter-history": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge-eve-room",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Matterbridge eve room with history",
|
|
5
5
|
"author": "https://github.com/Luligu",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
"bugs": {
|
|
14
14
|
"url": "https://github.com/Luligu/matterbridge-eve-room/issues"
|
|
15
15
|
},
|
|
16
|
+
"funding": {
|
|
17
|
+
"type": "buymeacoffee",
|
|
18
|
+
"url": "https://www.buymeacoffee.com/luligugithub"
|
|
19
|
+
},
|
|
16
20
|
"keywords": [
|
|
17
21
|
"matterbridge",
|
|
18
22
|
"homebridge",
|