matterbridge-example-dynamic-platform 1.1.5-dev.1 → 1.1.5-dev.4
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 +2 -2
- package/dist/platform.js +4 -3
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -10,9 +10,9 @@ If you like this project and find it useful, please consider giving it a star on
|
|
10
10
|
|
11
11
|
### Changed
|
12
12
|
|
13
|
-
- [package]: Require matterbridge 2.1.0.
|
14
|
-
- [package]: Updated dependencies.
|
15
13
|
- [package]: Updated package.
|
14
|
+
- [package]: Updated dependencies.
|
15
|
+
- [package]: Require matterbridge 2.1.0.
|
16
16
|
|
17
17
|
### Fixed
|
18
18
|
|
package/dist/platform.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
import {
|
2
|
-
import { MatterbridgeEndpoint, MatterbridgeDynamicPlatform } from 'matterbridge';
|
1
|
+
import { MatterbridgeEndpoint, MatterbridgeDynamicPlatform, airConditioner, airQualitySensor, bridgedNode, colorTemperatureLight, coverDevice, dimmableLight, doorLockDevice, fanDevice, flowSensor, humiditySensor, onOffLight, onOffOutlet, onOffSwitch, powerSource, rainSensor, smokeCoAlarm, temperatureSensor, thermostatDevice, waterFreezeDetector, waterLeakDetector, airPurifier, pumpDevice, waterValve, } from 'matterbridge';
|
3
2
|
import { isValidBoolean, isValidNumber } from 'matterbridge/utils';
|
3
|
+
import { LocationTag } from 'matterbridge/matter';
|
4
|
+
import { AirQuality, AirQualityCluster, BooleanStateCluster, CarbonDioxideConcentrationMeasurement, CarbonMonoxideConcentrationMeasurement, ColorControl, ColorControlCluster, DoorLock, DoorLockCluster, FanControl, FanControlCluster, FlowMeasurementCluster, FormaldehydeConcentrationMeasurement, LevelControlCluster, NitrogenDioxideConcentrationMeasurement, OnOffCluster, OzoneConcentrationMeasurement, Pm10ConcentrationMeasurement, Pm1ConcentrationMeasurement, Pm25ConcentrationMeasurement, RadonConcentrationMeasurement, RelativeHumidityMeasurement, RelativeHumidityMeasurementCluster, SmokeCoAlarm, SmokeCoAlarmCluster, TemperatureMeasurement, TemperatureMeasurementCluster, Thermostat, ThermostatCluster, TotalVolatileOrganicCompoundsConcentrationMeasurement, WindowCovering, WindowCoveringCluster, } from 'matterbridge/matter/clusters';
|
4
5
|
export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatform {
|
5
6
|
switch;
|
6
7
|
lightOnOff;
|
@@ -687,7 +688,7 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
|
|
687
688
|
await this.dimmer?.setAttribute(LevelControlCluster.id, 'currentLevel', 1, this.dimmer.log);
|
688
689
|
this.dimmer?.log.info(`Set dimmer initial onOff to false, currentLevel to 1.`);
|
689
690
|
await this.light?.setAttribute(OnOffCluster.id, 'onOff', false, this.light.log);
|
690
|
-
await this.light?.setAttribute(LevelControlCluster.id, 'currentLevel',
|
691
|
+
await this.light?.setAttribute(LevelControlCluster.id, 'currentLevel', 200, this.light.log);
|
691
692
|
await this.light?.setAttribute(ColorControlCluster.id, 'currentHue', 0, this.light.log);
|
692
693
|
await this.light?.setAttribute(ColorControlCluster.id, 'currentSaturation', 128, this.light.log);
|
693
694
|
await this.light?.configureColorControlMode(ColorControl.ColorMode.CurrentHueAndCurrentSaturation);
|
package/npm-shrinkwrap.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "matterbridge-example-dynamic-platform",
|
3
|
-
"version": "1.1.5-dev.
|
3
|
+
"version": "1.1.5-dev.4",
|
4
4
|
"lockfileVersion": 3,
|
5
5
|
"requires": true,
|
6
6
|
"packages": {
|
7
7
|
"": {
|
8
8
|
"name": "matterbridge-example-dynamic-platform",
|
9
|
-
"version": "1.1.5-dev.
|
9
|
+
"version": "1.1.5-dev.4",
|
10
10
|
"license": "MIT",
|
11
11
|
"dependencies": {
|
12
12
|
"node-ansi-logger": "3.0.0",
|