matterbridge 2.2.8-dev.1 → 3.0.0-edge.2
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 +31 -2
- package/dist/cluster/export.js +205 -1
- package/dist/matterbridge.js +43 -13
- package/dist/matterbridgeBehaviors.js +88 -10
- package/dist/matterbridgeDeviceTypes.js +145 -121
- package/dist/matterbridgeEndpoint.js +77 -25
- package/dist/matterbridgeEndpointHelpers.js +21 -18
- package/frontend/build/asset-manifest.json +3 -3
- package/frontend/build/index.html +1 -1
- package/frontend/build/static/js/{main.eb2f3e01.js → main.fe57dcc8.js} +3 -3
- package/frontend/build/static/js/{main.eb2f3e01.js.map → main.fe57dcc8.js.map} +1 -1
- package/npm-shrinkwrap.json +44 -44
- package/package.json +2 -2
- /package/frontend/build/static/js/{main.eb2f3e01.js.LICENSE.txt → main.fe57dcc8.js.LICENSE.txt} +0 -0
|
@@ -499,51 +499,54 @@ export async function subscribeAttribute(endpoint, cluster, attribute, listener,
|
|
|
499
499
|
log?.info(`${db}Subscribed endpoint ${or}${endpoint.id}${db}:${or}${endpoint.number}${db} attribute ${hk}${capitalizeFirstLetter(clusterName)}${db}.${hk}${attribute}${db}`);
|
|
500
500
|
return true;
|
|
501
501
|
}
|
|
502
|
-
export function getDefaultTemperatureMeasurementClusterServer(measuredValue =
|
|
502
|
+
export function getDefaultTemperatureMeasurementClusterServer(measuredValue = null, minMeasuredValue = null, maxMeasuredValue = null) {
|
|
503
503
|
return optionsFor(TemperatureMeasurementServer, {
|
|
504
504
|
measuredValue,
|
|
505
|
-
minMeasuredValue
|
|
506
|
-
maxMeasuredValue
|
|
505
|
+
minMeasuredValue,
|
|
506
|
+
maxMeasuredValue,
|
|
507
507
|
tolerance: 0,
|
|
508
508
|
});
|
|
509
509
|
}
|
|
510
|
-
export function getDefaultRelativeHumidityMeasurementClusterServer(measuredValue =
|
|
510
|
+
export function getDefaultRelativeHumidityMeasurementClusterServer(measuredValue = null, minMeasuredValue = null, maxMeasuredValue = null) {
|
|
511
511
|
return optionsFor(RelativeHumidityMeasurementServer, {
|
|
512
512
|
measuredValue,
|
|
513
|
-
minMeasuredValue
|
|
514
|
-
maxMeasuredValue
|
|
513
|
+
minMeasuredValue,
|
|
514
|
+
maxMeasuredValue,
|
|
515
515
|
tolerance: 0,
|
|
516
516
|
});
|
|
517
517
|
}
|
|
518
|
-
export function getDefaultPressureMeasurementClusterServer(measuredValue =
|
|
518
|
+
export function getDefaultPressureMeasurementClusterServer(measuredValue = null, minMeasuredValue = null, maxMeasuredValue = null) {
|
|
519
519
|
return optionsFor(PressureMeasurementServer, {
|
|
520
520
|
measuredValue,
|
|
521
|
-
minMeasuredValue
|
|
522
|
-
maxMeasuredValue
|
|
521
|
+
minMeasuredValue,
|
|
522
|
+
maxMeasuredValue,
|
|
523
523
|
tolerance: 0,
|
|
524
524
|
});
|
|
525
525
|
}
|
|
526
|
-
export function getDefaultIlluminanceMeasurementClusterServer(measuredValue =
|
|
526
|
+
export function getDefaultIlluminanceMeasurementClusterServer(measuredValue = null, minMeasuredValue = null, maxMeasuredValue = null) {
|
|
527
527
|
return optionsFor(IlluminanceMeasurementServer, {
|
|
528
528
|
measuredValue,
|
|
529
|
-
minMeasuredValue
|
|
530
|
-
maxMeasuredValue
|
|
529
|
+
minMeasuredValue,
|
|
530
|
+
maxMeasuredValue,
|
|
531
531
|
tolerance: 0,
|
|
532
532
|
});
|
|
533
533
|
}
|
|
534
|
-
export function getDefaultFlowMeasurementClusterServer(measuredValue =
|
|
534
|
+
export function getDefaultFlowMeasurementClusterServer(measuredValue = null, minMeasuredValue = null, maxMeasuredValue = null) {
|
|
535
535
|
return optionsFor(FlowMeasurementServer, {
|
|
536
536
|
measuredValue,
|
|
537
|
-
minMeasuredValue
|
|
538
|
-
maxMeasuredValue
|
|
537
|
+
minMeasuredValue,
|
|
538
|
+
maxMeasuredValue,
|
|
539
539
|
tolerance: 0,
|
|
540
540
|
});
|
|
541
541
|
}
|
|
542
|
-
export function getDefaultOccupancySensingClusterServer(occupied = false) {
|
|
543
|
-
return optionsFor(OccupancySensingServer, {
|
|
542
|
+
export function getDefaultOccupancySensingClusterServer(occupied = false, holdTime = 30, holdTimeMin = 1, holdTimeMax = 300) {
|
|
543
|
+
return optionsFor(OccupancySensingServer.with(OccupancySensing.Feature.PassiveInfrared), {
|
|
544
544
|
occupancy: { occupied },
|
|
545
545
|
occupancySensorType: OccupancySensing.OccupancySensorType.Pir,
|
|
546
546
|
occupancySensorTypeBitmap: { pir: true, ultrasonic: false, physicalContact: false },
|
|
547
|
-
pirOccupiedToUnoccupiedDelay:
|
|
547
|
+
pirOccupiedToUnoccupiedDelay: holdTime,
|
|
548
|
+
pirUnoccupiedToOccupiedDelay: holdTime,
|
|
549
|
+
holdTime,
|
|
550
|
+
holdTimeLimits: { holdTimeMin, holdTimeMax, holdTimeDefault: holdTime },
|
|
548
551
|
});
|
|
549
552
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"files": {
|
|
3
3
|
"main.css": "./static/css/main.ea7910e9.css",
|
|
4
|
-
"main.js": "./static/js/main.
|
|
4
|
+
"main.js": "./static/js/main.fe57dcc8.js",
|
|
5
5
|
"static/js/453.d855a71b.chunk.js": "./static/js/453.d855a71b.chunk.js",
|
|
6
6
|
"static/media/roboto-latin-700-normal.woff2": "./static/media/roboto-latin-700-normal.c4d6cab43bec89049809.woff2",
|
|
7
7
|
"static/media/roboto-latin-500-normal.woff2": "./static/media/roboto-latin-500-normal.599f66a60bdf974e578e.woff2",
|
|
@@ -77,11 +77,11 @@
|
|
|
77
77
|
"static/media/roboto-greek-ext-300-normal.woff": "./static/media/roboto-greek-ext-300-normal.60729cafbded24073dfb.woff",
|
|
78
78
|
"index.html": "./index.html",
|
|
79
79
|
"main.ea7910e9.css.map": "./static/css/main.ea7910e9.css.map",
|
|
80
|
-
"main.
|
|
80
|
+
"main.fe57dcc8.js.map": "./static/js/main.fe57dcc8.js.map",
|
|
81
81
|
"453.d855a71b.chunk.js.map": "./static/js/453.d855a71b.chunk.js.map"
|
|
82
82
|
},
|
|
83
83
|
"entrypoints": [
|
|
84
84
|
"static/css/main.ea7910e9.css",
|
|
85
|
-
"static/js/main.
|
|
85
|
+
"static/js/main.fe57dcc8.js"
|
|
86
86
|
]
|
|
87
87
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><base href="./"><link rel="icon" href="./matterbridge 32x32.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><title>Matterbridge</title><link rel="manifest" href="./manifest.json"/><script defer="defer" src="./static/js/main.
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><base href="./"><link rel="icon" href="./matterbridge 32x32.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><title>Matterbridge</title><link rel="manifest" href="./manifest.json"/><script defer="defer" src="./static/js/main.fe57dcc8.js"></script><link href="./static/css/main.ea7910e9.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|