@camstack/types 1.2.433 → 1.2.435
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 +13 -0
- package/dist/addon.js +2 -2
- package/dist/addon.mjs +2 -2
- package/dist/automation/index.d.ts +3 -1
- package/dist/automation/recipe.d.ts +33 -3
- package/dist/automation/stationary-trigger.d.ts +48 -0
- package/dist/automation/trace.d.ts +4 -1
- package/dist/capabilities/actions.cap.d.ts +1 -0
- package/dist/capabilities/air-quality-sensor.cap.d.ts +8 -8
- package/dist/capabilities/ambient-light-sensor.cap.d.ts +4 -4
- package/dist/capabilities/battery.cap.d.ts +14 -14
- package/dist/capabilities/brightness.cap.d.ts +7 -7
- package/dist/capabilities/capability-definition.d.ts +3 -3
- package/dist/capabilities/color.cap.d.ts +6 -6
- package/dist/capabilities/core-blocks.cap.d.ts +156 -0
- package/dist/capabilities/device-history.cap.d.ts +2 -2
- package/dist/capabilities/dishwasher.cap.d.ts +11 -11
- package/dist/capabilities/fan-control.cap.d.ts +6 -6
- package/dist/capabilities/humidity-sensor.cap.d.ts +4 -4
- package/dist/capabilities/lawn-mower-control.cap.d.ts +3 -3
- package/dist/capabilities/media-player.cap.d.ts +8 -8
- package/dist/capabilities/meter.cap.d.ts +1 -1
- package/dist/capabilities/network-link.cap.d.ts +13 -13
- package/dist/capabilities/power-meter.cap.d.ts +22 -22
- package/dist/capabilities/presence.cap.d.ts +1 -15
- package/dist/capabilities/pressure-sensor.cap.d.ts +4 -4
- package/dist/capabilities/temperature-sensor.cap.d.ts +4 -4
- package/dist/capabilities/vacuum-control.cap.d.ts +3 -3
- package/dist/client.js +1 -1
- package/dist/client.mjs +1 -1
- package/dist/composition/composition-report.d.ts +1 -1
- package/dist/composition/examples.d.ts +1 -1
- package/dist/composition/helpers/appliance.d.ts +1 -1
- package/dist/{composition-CpAc0YfQ.js → composition-BZf_gqG7.js} +2 -2
- package/dist/{composition-Bb8iwHEJ.mjs → composition-CZImLpOI.mjs} +2 -2
- package/dist/device/base-device.d.ts +2 -2
- package/dist/device/device-runtime-state.d.ts +1 -1
- package/dist/device/device-state-handle.d.ts +1 -1
- package/dist/device/system-mirror.d.ts +1 -1
- package/dist/enums/event-category.d.ts +1 -1
- package/dist/enums.js +1 -1
- package/dist/enums.mjs +1 -1
- package/dist/{event-category-hdMR7CTW.mjs → event-category-DmZDPDf_.mjs} +1 -1
- package/dist/{event-category-BhzwWQCH.js → event-category-E17zaHjN.js} +1 -1
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/customize-catalog.d.ts +15 -15
- package/dist/generated/history-catalog.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +673 -518
- package/dist/index.mjs +673 -519
- package/dist/interfaces/event-bus.d.ts +24 -3
- package/dist/node.js +1 -1
- package/dist/node.mjs +1 -1
- package/dist/{sleep-BHjNez61.mjs → sleep-Crlmu_tO.mjs} +27 -31
- package/dist/{sleep-5zRztaHa.js → sleep-DHitF_e4.js} +27 -31
- package/package.json +1 -1
|
@@ -185,6 +185,26 @@ export interface PipelineAnalyticsFrameTrackedPayload {
|
|
|
185
185
|
/** Lifecycle phase of a tracked object: it appears (`start`), its best
|
|
186
186
|
* observation materially improves (`update`), then it ends (`end`). */
|
|
187
187
|
export type TrackLifecyclePhase = 'start' | 'update' | 'end';
|
|
188
|
+
/**
|
|
189
|
+
* Emitted on `pipeline-analytics.stationary-changed` when a parked object
|
|
190
|
+
* appears (a track was promoted to a stationary-registry entry) or departs.
|
|
191
|
+
* Telemetry (D8): a dropped event delays nothing durable — the registry is the
|
|
192
|
+
* authority and the automation `stationary-present` condition reads it.
|
|
193
|
+
*/
|
|
194
|
+
export interface PipelineAnalyticsStationaryChangedPayload {
|
|
195
|
+
readonly deviceId: number;
|
|
196
|
+
readonly entryId: string;
|
|
197
|
+
readonly className: string;
|
|
198
|
+
readonly phase: 'appeared' | 'departed';
|
|
199
|
+
/** When the registry CONCLUDED the change. */
|
|
200
|
+
readonly timestamp: number;
|
|
201
|
+
/** When the change was actually OBSERVED (a departure is confirmed later). */
|
|
202
|
+
readonly observedAt: number;
|
|
203
|
+
/** Ids of the camera's zones the parked object's box is in (the same
|
|
204
|
+
* membership rule as occupancy); empty when the camera has none or none match. */
|
|
205
|
+
readonly zones: readonly string[];
|
|
206
|
+
readonly [key: string]: unknown;
|
|
207
|
+
}
|
|
188
208
|
/**
|
|
189
209
|
* Emitted on `pipeline-analytics.track-lifecycle` at three moments of a
|
|
190
210
|
* tracked object's life — `phase:'start'` when it first appears,
|
|
@@ -1201,6 +1221,7 @@ export interface EventCatalog {
|
|
|
1201
1221
|
'motion.on-motion-changed': MotionOnMotionChangedPayload;
|
|
1202
1222
|
'pipeline-analytics.frame-tracked': PipelineAnalyticsFrameTrackedPayload;
|
|
1203
1223
|
'pipeline-analytics.track-lifecycle': PipelineAnalyticsTrackLifecyclePayload;
|
|
1224
|
+
'pipeline-analytics.stationary-changed': PipelineAnalyticsStationaryChangedPayload;
|
|
1204
1225
|
'pipeline-analytics.face-gallery-changed': PipelineAnalyticsFaceGalleryChangedPayload;
|
|
1205
1226
|
'pipeline-analytics.plate-gallery-changed': PipelineAnalyticsPlateGalleryChangedPayload;
|
|
1206
1227
|
'pipeline-analytics.package-delivered': PipelineAnalyticsPackageDeliveredPayload;
|
|
@@ -1399,15 +1420,15 @@ export interface EventCatalog {
|
|
|
1399
1420
|
* by hand (see also `BatteryStatus` in `capabilities/battery.cap.ts`).
|
|
1400
1421
|
*
|
|
1401
1422
|
* "By hand" failed exactly as the repo's no-duplicate-shapes rule predicts:
|
|
1402
|
-
* `
|
|
1423
|
+
* `level` became nullable in the cap and stayed `number` here, so this
|
|
1403
1424
|
* copy refused the very value the cap now defines. Kept in lock-step is a
|
|
1404
1425
|
* hope; the compiler noticing is the only reason it was caught.
|
|
1405
1426
|
*/
|
|
1406
1427
|
'battery.onStatusChanged': {
|
|
1407
1428
|
readonly deviceId: number;
|
|
1408
1429
|
readonly status: {
|
|
1409
|
-
/** `null` = NOT YET KNOWN. See `BatteryStatusSchema.
|
|
1410
|
-
readonly
|
|
1430
|
+
/** `null` = NOT YET KNOWN. See `BatteryStatusSchema.level`. */
|
|
1431
|
+
readonly level: number | null;
|
|
1411
1432
|
/** `'unknown'` = the power source was never read. See `BatteryStatusSchema.charging`. */
|
|
1412
1433
|
readonly charging: 'dc' | 'solar' | 'none' | 'unknown';
|
|
1413
1434
|
readonly sleeping: boolean;
|
package/dist/node.js
CHANGED
|
@@ -21,7 +21,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
21
|
enumerable: true
|
|
22
22
|
}) : target, mod));
|
|
23
23
|
//#endregion
|
|
24
|
-
const require_composition = require("./composition-
|
|
24
|
+
const require_composition = require("./composition-BZf_gqG7.js");
|
|
25
25
|
const require_err_msg = require("./err-msg-U7lLUMNz.js");
|
|
26
26
|
let node_crypto = require("node:crypto");
|
|
27
27
|
let node_fs = require("node:fs");
|
package/dist/node.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as compositionSourceKey, Fn as FFMPEG_RELEASE, In as getFfmpegArtifact, Ln as getFfmpegDownloadUrl, Mn as FFMPEG_PATH_ENV, Nn as chooseFfmpegBinary, Pn as ffmpegBinaryName, Rn as canonicalHash, Un as buildFfmpegArgs, a as CUSTOMIZATION_BLOCK_NAME_PREFIX, qn as isSoftwareDecode, zn as Fmp4BoxSplitter } from "./composition-
|
|
1
|
+
import { F as compositionSourceKey, Fn as FFMPEG_RELEASE, In as getFfmpegArtifact, Ln as getFfmpegDownloadUrl, Mn as FFMPEG_PATH_ENV, Nn as chooseFfmpegBinary, Pn as ffmpegBinaryName, Rn as canonicalHash, Un as buildFfmpegArgs, a as CUSTOMIZATION_BLOCK_NAME_PREFIX, qn as isSoftwareDecode, zn as Fmp4BoxSplitter } from "./composition-CZImLpOI.mjs";
|
|
2
2
|
import { t as errMsg } from "./err-msg-DIorGYeC.mjs";
|
|
3
3
|
import { createHash, createHmac, randomUUID, timingSafeEqual } from "node:crypto";
|
|
4
4
|
import * as fs from "node:fs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as EventCategory } from "./event-category-
|
|
1
|
+
import { t as EventCategory } from "./event-category-DmZDPDf_.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/audio/audio-chunk-format.ts
|
|
4
4
|
/**
|
|
@@ -6832,11 +6832,11 @@ var CAP_NAMES = Object.freeze([
|
|
|
6832
6832
|
var CAP_STATE_LEAVES = Object.freeze({
|
|
6833
6833
|
"air-quality-sensor": [
|
|
6834
6834
|
{
|
|
6835
|
-
"path": "
|
|
6835
|
+
"path": "co2",
|
|
6836
6836
|
"valueType": "number"
|
|
6837
6837
|
},
|
|
6838
6838
|
{
|
|
6839
|
-
"path": "
|
|
6839
|
+
"path": "voc",
|
|
6840
6840
|
"valueType": "number"
|
|
6841
6841
|
},
|
|
6842
6842
|
{
|
|
@@ -6886,7 +6886,7 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
6886
6886
|
}
|
|
6887
6887
|
],
|
|
6888
6888
|
"ambient-light-sensor": [{
|
|
6889
|
-
"path": "
|
|
6889
|
+
"path": "illuminance",
|
|
6890
6890
|
"valueType": "number"
|
|
6891
6891
|
}],
|
|
6892
6892
|
"audio-metrics": [
|
|
@@ -6947,7 +6947,7 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
6947
6947
|
],
|
|
6948
6948
|
"battery": [
|
|
6949
6949
|
{
|
|
6950
|
-
"path": "
|
|
6950
|
+
"path": "level",
|
|
6951
6951
|
"valueType": "number"
|
|
6952
6952
|
},
|
|
6953
6953
|
{
|
|
@@ -6969,7 +6969,7 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
6969
6969
|
"valueType": "number"
|
|
6970
6970
|
},
|
|
6971
6971
|
{
|
|
6972
|
-
"path": "
|
|
6972
|
+
"path": "voltage",
|
|
6973
6973
|
"valueType": "number"
|
|
6974
6974
|
},
|
|
6975
6975
|
{
|
|
@@ -6990,7 +6990,7 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
6990
6990
|
"valueType": "boolean"
|
|
6991
6991
|
}],
|
|
6992
6992
|
"brightness": [{
|
|
6993
|
-
"path": "
|
|
6993
|
+
"path": "level",
|
|
6994
6994
|
"valueType": "number"
|
|
6995
6995
|
}],
|
|
6996
6996
|
"broker": [{
|
|
@@ -7191,7 +7191,7 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
7191
7191
|
"valueType": "number"
|
|
7192
7192
|
},
|
|
7193
7193
|
{
|
|
7194
|
-
"path": "
|
|
7194
|
+
"path": "colorTemperature",
|
|
7195
7195
|
"valueType": "number"
|
|
7196
7196
|
}
|
|
7197
7197
|
],
|
|
@@ -7370,15 +7370,15 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
7370
7370
|
"valueType": "string"
|
|
7371
7371
|
},
|
|
7372
7372
|
{
|
|
7373
|
-
"path": "
|
|
7373
|
+
"path": "remaining",
|
|
7374
7374
|
"valueType": "number"
|
|
7375
7375
|
},
|
|
7376
7376
|
{
|
|
7377
|
-
"path": "
|
|
7377
|
+
"path": "delayedStart",
|
|
7378
7378
|
"valueType": "number"
|
|
7379
7379
|
},
|
|
7380
7380
|
{
|
|
7381
|
-
"path": "
|
|
7381
|
+
"path": "progress",
|
|
7382
7382
|
"valueType": "number"
|
|
7383
7383
|
},
|
|
7384
7384
|
{
|
|
@@ -7492,7 +7492,7 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
7492
7492
|
],
|
|
7493
7493
|
"fan-control": [
|
|
7494
7494
|
{
|
|
7495
|
-
"path": "
|
|
7495
|
+
"path": "speed",
|
|
7496
7496
|
"valueType": "number"
|
|
7497
7497
|
},
|
|
7498
7498
|
{
|
|
@@ -7592,7 +7592,7 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
7592
7592
|
}
|
|
7593
7593
|
],
|
|
7594
7594
|
"humidity-sensor": [{
|
|
7595
|
-
"path": "
|
|
7595
|
+
"path": "humidity",
|
|
7596
7596
|
"valueType": "number"
|
|
7597
7597
|
}],
|
|
7598
7598
|
"image": [{
|
|
@@ -7702,7 +7702,7 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
7702
7702
|
"valueType": "number"
|
|
7703
7703
|
},
|
|
7704
7704
|
{
|
|
7705
|
-
"path": "
|
|
7705
|
+
"path": "progress",
|
|
7706
7706
|
"valueType": "number"
|
|
7707
7707
|
},
|
|
7708
7708
|
{
|
|
@@ -7781,11 +7781,11 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
7781
7781
|
"valueType": "string"
|
|
7782
7782
|
},
|
|
7783
7783
|
{
|
|
7784
|
-
"path": "
|
|
7784
|
+
"path": "position",
|
|
7785
7785
|
"valueType": "number"
|
|
7786
7786
|
},
|
|
7787
7787
|
{
|
|
7788
|
-
"path": "
|
|
7788
|
+
"path": "duration",
|
|
7789
7789
|
"valueType": "number"
|
|
7790
7790
|
},
|
|
7791
7791
|
{
|
|
@@ -7887,11 +7887,11 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
7887
7887
|
]
|
|
7888
7888
|
},
|
|
7889
7889
|
{
|
|
7890
|
-
"path": "
|
|
7890
|
+
"path": "signal",
|
|
7891
7891
|
"valueType": "number"
|
|
7892
7892
|
},
|
|
7893
7893
|
{
|
|
7894
|
-
"path": "
|
|
7894
|
+
"path": "rssi",
|
|
7895
7895
|
"valueType": "number"
|
|
7896
7896
|
},
|
|
7897
7897
|
{
|
|
@@ -8022,23 +8022,23 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
8022
8022
|
],
|
|
8023
8023
|
"power-meter": [
|
|
8024
8024
|
{
|
|
8025
|
-
"path": "
|
|
8025
|
+
"path": "power",
|
|
8026
8026
|
"valueType": "number"
|
|
8027
8027
|
},
|
|
8028
8028
|
{
|
|
8029
|
-
"path": "
|
|
8029
|
+
"path": "energy",
|
|
8030
8030
|
"valueType": "number"
|
|
8031
8031
|
},
|
|
8032
8032
|
{
|
|
8033
|
-
"path": "
|
|
8033
|
+
"path": "voltage",
|
|
8034
8034
|
"valueType": "number"
|
|
8035
8035
|
},
|
|
8036
8036
|
{
|
|
8037
|
-
"path": "
|
|
8037
|
+
"path": "current",
|
|
8038
8038
|
"valueType": "number"
|
|
8039
8039
|
},
|
|
8040
8040
|
{
|
|
8041
|
-
"path": "
|
|
8041
|
+
"path": "apparentPower",
|
|
8042
8042
|
"valueType": "number"
|
|
8043
8043
|
},
|
|
8044
8044
|
{
|
|
@@ -8066,14 +8066,10 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
8066
8066
|
{
|
|
8067
8067
|
"path": "gps.accuracyMeters",
|
|
8068
8068
|
"valueType": "number"
|
|
8069
|
-
},
|
|
8070
|
-
{
|
|
8071
|
-
"path": "batteryPercent",
|
|
8072
|
-
"valueType": "number"
|
|
8073
8069
|
}
|
|
8074
8070
|
],
|
|
8075
8071
|
"pressure-sensor": [{
|
|
8076
|
-
"path": "
|
|
8072
|
+
"path": "pressure",
|
|
8077
8073
|
"valueType": "number"
|
|
8078
8074
|
}],
|
|
8079
8075
|
"privacy-mask": [{
|
|
@@ -8387,7 +8383,7 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
8387
8383
|
"valueType": "boolean"
|
|
8388
8384
|
}],
|
|
8389
8385
|
"temperature-sensor": [{
|
|
8390
|
-
"path": "
|
|
8386
|
+
"path": "temperature",
|
|
8391
8387
|
"valueType": "number"
|
|
8392
8388
|
}],
|
|
8393
8389
|
"update": [
|
|
@@ -8435,7 +8431,7 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
8435
8431
|
"valueType": "string"
|
|
8436
8432
|
},
|
|
8437
8433
|
{
|
|
8438
|
-
"path": "
|
|
8434
|
+
"path": "progress",
|
|
8439
8435
|
"valueType": "number"
|
|
8440
8436
|
},
|
|
8441
8437
|
{
|
|
@@ -8818,7 +8814,7 @@ function createMirrorSource(mirror, listeners, api) {
|
|
|
8818
8814
|
*
|
|
8819
8815
|
* const dev = createDeviceProxy(api, binding)
|
|
8820
8816
|
* dev.state.battery.value // BatteryStatus | undefined
|
|
8821
|
-
* dev.state.battery.value?.
|
|
8817
|
+
* dev.state.battery.value?.level
|
|
8822
8818
|
*
|
|
8823
8819
|
* Two-arg form (deprecated path, kept for spec compatibility):
|
|
8824
8820
|
* passes the api directly, builds a per-handle lazy source. New
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_event_category = require("./event-category-
|
|
1
|
+
const require_event_category = require("./event-category-E17zaHjN.js");
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/audio/audio-chunk-format.ts
|
|
4
4
|
/**
|
|
@@ -6832,11 +6832,11 @@ var CAP_NAMES = Object.freeze([
|
|
|
6832
6832
|
var CAP_STATE_LEAVES = Object.freeze({
|
|
6833
6833
|
"air-quality-sensor": [
|
|
6834
6834
|
{
|
|
6835
|
-
"path": "
|
|
6835
|
+
"path": "co2",
|
|
6836
6836
|
"valueType": "number"
|
|
6837
6837
|
},
|
|
6838
6838
|
{
|
|
6839
|
-
"path": "
|
|
6839
|
+
"path": "voc",
|
|
6840
6840
|
"valueType": "number"
|
|
6841
6841
|
},
|
|
6842
6842
|
{
|
|
@@ -6886,7 +6886,7 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
6886
6886
|
}
|
|
6887
6887
|
],
|
|
6888
6888
|
"ambient-light-sensor": [{
|
|
6889
|
-
"path": "
|
|
6889
|
+
"path": "illuminance",
|
|
6890
6890
|
"valueType": "number"
|
|
6891
6891
|
}],
|
|
6892
6892
|
"audio-metrics": [
|
|
@@ -6947,7 +6947,7 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
6947
6947
|
],
|
|
6948
6948
|
"battery": [
|
|
6949
6949
|
{
|
|
6950
|
-
"path": "
|
|
6950
|
+
"path": "level",
|
|
6951
6951
|
"valueType": "number"
|
|
6952
6952
|
},
|
|
6953
6953
|
{
|
|
@@ -6969,7 +6969,7 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
6969
6969
|
"valueType": "number"
|
|
6970
6970
|
},
|
|
6971
6971
|
{
|
|
6972
|
-
"path": "
|
|
6972
|
+
"path": "voltage",
|
|
6973
6973
|
"valueType": "number"
|
|
6974
6974
|
},
|
|
6975
6975
|
{
|
|
@@ -6990,7 +6990,7 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
6990
6990
|
"valueType": "boolean"
|
|
6991
6991
|
}],
|
|
6992
6992
|
"brightness": [{
|
|
6993
|
-
"path": "
|
|
6993
|
+
"path": "level",
|
|
6994
6994
|
"valueType": "number"
|
|
6995
6995
|
}],
|
|
6996
6996
|
"broker": [{
|
|
@@ -7191,7 +7191,7 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
7191
7191
|
"valueType": "number"
|
|
7192
7192
|
},
|
|
7193
7193
|
{
|
|
7194
|
-
"path": "
|
|
7194
|
+
"path": "colorTemperature",
|
|
7195
7195
|
"valueType": "number"
|
|
7196
7196
|
}
|
|
7197
7197
|
],
|
|
@@ -7370,15 +7370,15 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
7370
7370
|
"valueType": "string"
|
|
7371
7371
|
},
|
|
7372
7372
|
{
|
|
7373
|
-
"path": "
|
|
7373
|
+
"path": "remaining",
|
|
7374
7374
|
"valueType": "number"
|
|
7375
7375
|
},
|
|
7376
7376
|
{
|
|
7377
|
-
"path": "
|
|
7377
|
+
"path": "delayedStart",
|
|
7378
7378
|
"valueType": "number"
|
|
7379
7379
|
},
|
|
7380
7380
|
{
|
|
7381
|
-
"path": "
|
|
7381
|
+
"path": "progress",
|
|
7382
7382
|
"valueType": "number"
|
|
7383
7383
|
},
|
|
7384
7384
|
{
|
|
@@ -7492,7 +7492,7 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
7492
7492
|
],
|
|
7493
7493
|
"fan-control": [
|
|
7494
7494
|
{
|
|
7495
|
-
"path": "
|
|
7495
|
+
"path": "speed",
|
|
7496
7496
|
"valueType": "number"
|
|
7497
7497
|
},
|
|
7498
7498
|
{
|
|
@@ -7592,7 +7592,7 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
7592
7592
|
}
|
|
7593
7593
|
],
|
|
7594
7594
|
"humidity-sensor": [{
|
|
7595
|
-
"path": "
|
|
7595
|
+
"path": "humidity",
|
|
7596
7596
|
"valueType": "number"
|
|
7597
7597
|
}],
|
|
7598
7598
|
"image": [{
|
|
@@ -7702,7 +7702,7 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
7702
7702
|
"valueType": "number"
|
|
7703
7703
|
},
|
|
7704
7704
|
{
|
|
7705
|
-
"path": "
|
|
7705
|
+
"path": "progress",
|
|
7706
7706
|
"valueType": "number"
|
|
7707
7707
|
},
|
|
7708
7708
|
{
|
|
@@ -7781,11 +7781,11 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
7781
7781
|
"valueType": "string"
|
|
7782
7782
|
},
|
|
7783
7783
|
{
|
|
7784
|
-
"path": "
|
|
7784
|
+
"path": "position",
|
|
7785
7785
|
"valueType": "number"
|
|
7786
7786
|
},
|
|
7787
7787
|
{
|
|
7788
|
-
"path": "
|
|
7788
|
+
"path": "duration",
|
|
7789
7789
|
"valueType": "number"
|
|
7790
7790
|
},
|
|
7791
7791
|
{
|
|
@@ -7887,11 +7887,11 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
7887
7887
|
]
|
|
7888
7888
|
},
|
|
7889
7889
|
{
|
|
7890
|
-
"path": "
|
|
7890
|
+
"path": "signal",
|
|
7891
7891
|
"valueType": "number"
|
|
7892
7892
|
},
|
|
7893
7893
|
{
|
|
7894
|
-
"path": "
|
|
7894
|
+
"path": "rssi",
|
|
7895
7895
|
"valueType": "number"
|
|
7896
7896
|
},
|
|
7897
7897
|
{
|
|
@@ -8022,23 +8022,23 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
8022
8022
|
],
|
|
8023
8023
|
"power-meter": [
|
|
8024
8024
|
{
|
|
8025
|
-
"path": "
|
|
8025
|
+
"path": "power",
|
|
8026
8026
|
"valueType": "number"
|
|
8027
8027
|
},
|
|
8028
8028
|
{
|
|
8029
|
-
"path": "
|
|
8029
|
+
"path": "energy",
|
|
8030
8030
|
"valueType": "number"
|
|
8031
8031
|
},
|
|
8032
8032
|
{
|
|
8033
|
-
"path": "
|
|
8033
|
+
"path": "voltage",
|
|
8034
8034
|
"valueType": "number"
|
|
8035
8035
|
},
|
|
8036
8036
|
{
|
|
8037
|
-
"path": "
|
|
8037
|
+
"path": "current",
|
|
8038
8038
|
"valueType": "number"
|
|
8039
8039
|
},
|
|
8040
8040
|
{
|
|
8041
|
-
"path": "
|
|
8041
|
+
"path": "apparentPower",
|
|
8042
8042
|
"valueType": "number"
|
|
8043
8043
|
},
|
|
8044
8044
|
{
|
|
@@ -8066,14 +8066,10 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
8066
8066
|
{
|
|
8067
8067
|
"path": "gps.accuracyMeters",
|
|
8068
8068
|
"valueType": "number"
|
|
8069
|
-
},
|
|
8070
|
-
{
|
|
8071
|
-
"path": "batteryPercent",
|
|
8072
|
-
"valueType": "number"
|
|
8073
8069
|
}
|
|
8074
8070
|
],
|
|
8075
8071
|
"pressure-sensor": [{
|
|
8076
|
-
"path": "
|
|
8072
|
+
"path": "pressure",
|
|
8077
8073
|
"valueType": "number"
|
|
8078
8074
|
}],
|
|
8079
8075
|
"privacy-mask": [{
|
|
@@ -8387,7 +8383,7 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
8387
8383
|
"valueType": "boolean"
|
|
8388
8384
|
}],
|
|
8389
8385
|
"temperature-sensor": [{
|
|
8390
|
-
"path": "
|
|
8386
|
+
"path": "temperature",
|
|
8391
8387
|
"valueType": "number"
|
|
8392
8388
|
}],
|
|
8393
8389
|
"update": [
|
|
@@ -8435,7 +8431,7 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
8435
8431
|
"valueType": "string"
|
|
8436
8432
|
},
|
|
8437
8433
|
{
|
|
8438
|
-
"path": "
|
|
8434
|
+
"path": "progress",
|
|
8439
8435
|
"valueType": "number"
|
|
8440
8436
|
},
|
|
8441
8437
|
{
|
|
@@ -8818,7 +8814,7 @@ function createMirrorSource(mirror, listeners, api) {
|
|
|
8818
8814
|
*
|
|
8819
8815
|
* const dev = createDeviceProxy(api, binding)
|
|
8820
8816
|
* dev.state.battery.value // BatteryStatus | undefined
|
|
8821
|
-
* dev.state.battery.value?.
|
|
8817
|
+
* dev.state.battery.value?.level
|
|
8822
8818
|
*
|
|
8823
8819
|
* Two-arg form (deprecated path, kept for spec compatibility):
|
|
8824
8820
|
* passes the api directly, builds a per-handle lazy source. New
|