@camstack/addon-provider-homematic 1.2.205 → 1.2.207
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/_stub.js +658 -658
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_page-BBYiqZ5h.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_page-6DzqqZ3i.mjs} +4 -4
- package/dist/_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DR952fPS.mjs +26 -0
- package/dist/addon-provider-homematic.css +1 -1
- package/dist/addon.js +1483 -159
- package/dist/addon.mjs +1483 -159
- package/dist/{hostInit-nT-RhOBP.mjs → hostInit-CZgDBnHg.mjs} +3 -3
- package/dist/remoteEntry.js +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_provider_homematic_page__remoteEntry_js-BI01xl_h.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_provider_homematic_page__remoteEntry_js-ZgMsVU2w.mjs} +1 -1
- package/dist/widgets/_stub.js +138 -138
- package/dist/widgets/{_virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_widgets-B0ssCAy7.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_widgets-CtPGHIKn.mjs} +2 -2
- package/dist/widgets/_virtual_mf___mfe_internal__addon_provider_homematic_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-7hqlX2gW.mjs +26 -0
- package/dist/widgets/{hostInit-phYEFIYx.mjs → hostInit-Cy3RS8VW.mjs} +2 -2
- package/dist/widgets/remoteEntry.js +1 -1
- package/package.json +3 -3
- package/dist/_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-Civ5HlCQ.mjs +0 -26
- package/dist/widgets/_virtual_mf___mfe_internal__addon_provider_homematic_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-De1hiEmR.mjs +0 -26
package/dist/addon.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { networkInterfaces } from "node:os";
|
|
|
9
9
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
10
10
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
11
11
|
//#endregion
|
|
12
|
-
//#region ../types/dist/event-category-
|
|
12
|
+
//#region ../types/dist/event-category-7P4A3bYA.mjs
|
|
13
13
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
14
14
|
EventCategory["SystemBoot"] = "system.boot";
|
|
15
15
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -240,6 +240,20 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
240
240
|
* dropped) — consumers MUST also gate on the device record's `probed` flag.
|
|
241
241
|
*/
|
|
242
242
|
EventCategory["DeviceReady"] = "device.ready";
|
|
243
|
+
/**
|
|
244
|
+
* An identity link (D1063) became `linked` — auto on strong evidence or
|
|
245
|
+
* confirmed by the operator — or a confirmed link's evidence came back. Telemetry: the `identity-links` record is the
|
|
246
|
+
* truth, and core-blocks reconciles its contributions from it as well.
|
|
247
|
+
* Payload: `IdentityLinkEventPayload`.
|
|
248
|
+
*/
|
|
249
|
+
EventCategory["IdentityLinkCreated"] = "identity-link.created";
|
|
250
|
+
/**
|
|
251
|
+
* A `linked` identity link stopped acting: its evidence is gone (an auto link
|
|
252
|
+
* is deleted; an operator-confirmed one stays `linked`, flagged
|
|
253
|
+
* `evidenceGone`, and no longer acts), a side was removed, or the operator
|
|
254
|
+
* unlinked it. Payload: `IdentityLinkEventPayload` with `reason`.
|
|
255
|
+
*/
|
|
256
|
+
EventCategory["IdentityLinkLost"] = "identity-link.lost";
|
|
243
257
|
EventCategory["IntegrationEnabled"] = "integration.enabled";
|
|
244
258
|
EventCategory["IntegrationDisabled"] = "integration.disabled";
|
|
245
259
|
EventCategory["IntegrationDeleted"] = "integration.deleted";
|
|
@@ -509,7 +523,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
509
523
|
*/
|
|
510
524
|
EventCategory["NetworkLinkOnStatusChanged"] = "network-link.onStatusChanged";
|
|
511
525
|
/**
|
|
512
|
-
* Emitted by the battery cap provider WHEN `
|
|
526
|
+
* Emitted by the battery cap provider WHEN `wakeUp` enters the
|
|
513
527
|
* "wake in progress" window — between the Baichuan wake-up issue and
|
|
514
528
|
* the camera's first dialed-back RTP packet. The stream-broker
|
|
515
529
|
* manager subscribes to flip the per-broker placeholder reason to
|
|
@@ -841,7 +855,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
841
855
|
return EventCategory;
|
|
842
856
|
}({});
|
|
843
857
|
//#endregion
|
|
844
|
-
//#region ../types/dist/composed-stable-id-
|
|
858
|
+
//#region ../types/dist/composed-stable-id-DIeNz933.mjs
|
|
845
859
|
/**
|
|
846
860
|
import { errMsg } from '@camstack/types'
|
|
847
861
|
* Extract a human-readable message from an unknown error value.
|
|
@@ -980,12 +994,19 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
980
994
|
return DeviceType;
|
|
981
995
|
}({});
|
|
982
996
|
var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
997
|
+
/** The device reports a battery reading (the `battery` cap). Says nothing about sleep. */
|
|
983
998
|
DeviceFeature["BatteryOperated"] = "battery-operated";
|
|
999
|
+
/**
|
|
1000
|
+
* The device goes into low-power sleep and must be WOKEN before it streams
|
|
1001
|
+
* (the `low-power-sleep` cap, `wakeUp`). A battery reading alone is
|
|
1002
|
+
* not this: a battery sensor reports charge and never sleeps (#459, Q2).
|
|
1003
|
+
*/
|
|
1004
|
+
DeviceFeature["Sleeps"] = "sleeps";
|
|
984
1005
|
DeviceFeature["Rebootable"] = "rebootable";
|
|
985
1006
|
/**
|
|
986
1007
|
* Device supports an on-demand re-sync of its derived spec with its
|
|
987
|
-
* upstream source — drives the generic Re-sync button.
|
|
988
|
-
*
|
|
1008
|
+
* upstream source — drives the generic Re-sync button. Present when the
|
|
1009
|
+
* device has the `resync` cap bound (#459, Q6).
|
|
989
1010
|
*/
|
|
990
1011
|
DeviceFeature["Resyncable"] = "resyncable";
|
|
991
1012
|
DeviceFeature["NativeSnapshot"] = "native-snapshot";
|
|
@@ -1069,9 +1090,6 @@ var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
|
1069
1090
|
DeviceFeature["FanDirection"] = "fan-direction";
|
|
1070
1091
|
/** Fan exposes an oscillation toggle. */
|
|
1071
1092
|
DeviceFeature["FanOscillating"] = "fan-oscillating";
|
|
1072
|
-
/** Lock requires a PIN code on lock/unlock. Gates the code-entry
|
|
1073
|
-
* field on the UI lock-controls panel. */
|
|
1074
|
-
DeviceFeature["LockPinRequired"] = "lock-pin-required";
|
|
1075
1093
|
/** Lock supports a latch-release ("open door") action distinct from
|
|
1076
1094
|
* unlock. Mirrors HA `LockEntityFeature.OPEN` (bit 1) in
|
|
1077
1095
|
* `supported_features`. Gates the Open Door button in the UI. */
|
|
@@ -1102,8 +1120,6 @@ var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
|
1102
1120
|
DeviceFeature["MediaPlayerChannelStep"] = "media-player-channel-step";
|
|
1103
1121
|
/** Media player exposes power on / off. */
|
|
1104
1122
|
DeviceFeature["MediaPlayerPower"] = "media-player-power";
|
|
1105
|
-
/** Alarm panel requires a PIN code on arm/disarm. */
|
|
1106
|
-
DeviceFeature["AlarmPinRequired"] = "alarm-pin-required";
|
|
1107
1123
|
/** Presence device carries GPS coordinates (lat/lng/accuracy) in
|
|
1108
1124
|
* addition to a textual location. */
|
|
1109
1125
|
DeviceFeature["PresenceGps"] = "presence-gps";
|
|
@@ -1123,15 +1139,9 @@ var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
|
1123
1139
|
/** Automation `trigger` accepts a skipCondition flag — fires the
|
|
1124
1140
|
* automation's actions while bypassing its condition block. */
|
|
1125
1141
|
DeviceFeature["AutomationSkipCondition"] = "automation-skip-condition";
|
|
1126
|
-
/** Robot vacuum exposes a live cleaning map (image child). Gates the
|
|
1127
|
-
* map tile in the vacuum UI. */
|
|
1128
|
-
DeviceFeature["VacuumHasMap"] = "vacuum-has-map";
|
|
1129
1142
|
/** Robot vacuum exposes AI obstacle-detection toggles. Gates the AI
|
|
1130
1143
|
* switches group. */
|
|
1131
1144
|
DeviceFeature["VacuumHasAi"] = "vacuum-has-ai";
|
|
1132
|
-
/** Robot mower exposes a live mowing map (SVG image child). Gates the
|
|
1133
|
-
* mower map tile. */
|
|
1134
|
-
DeviceFeature["MowerHasMap"] = "mower-has-map";
|
|
1135
1145
|
/** Robot mower exposes targeted mowing (all-area / zones / edges /
|
|
1136
1146
|
* spots) — gates the Mow action + map selectors. */
|
|
1137
1147
|
DeviceFeature["MowerHasTargetedMowing"] = "mower-has-targeted-mowing";
|
|
@@ -1293,6 +1303,9 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
1293
1303
|
/** A machine that runs workloads or is an appliance with its own OS: a
|
|
1294
1304
|
* server, a hypervisor, a gateway console, a CCU. */
|
|
1295
1305
|
DeviceRole["Host"] = "host";
|
|
1306
|
+
/** An uninterruptible power supply: battery charge, mains status and load. A
|
|
1307
|
+
* `DeviceType.Sensor` device. */
|
|
1308
|
+
DeviceRole["Ups"] = "ups";
|
|
1296
1309
|
return DeviceRole;
|
|
1297
1310
|
}({});
|
|
1298
1311
|
/**
|
|
@@ -6119,7 +6132,7 @@ var ZodIssueCode = {
|
|
|
6119
6132
|
var ZodFirstPartyTypeKind;
|
|
6120
6133
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6121
6134
|
//#endregion
|
|
6122
|
-
//#region ../types/dist/
|
|
6135
|
+
//#region ../types/dist/runtime-capabilities-qX7BpOYT.mjs
|
|
6123
6136
|
/**
|
|
6124
6137
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6125
6138
|
* window to float samples (D455).
|
|
@@ -7328,6 +7341,18 @@ function isInstanceEnabled(body) {
|
|
|
7328
7341
|
}
|
|
7329
7342
|
/** The body key of the switch; only {@link RecordIntegrationInstances.setInstanceEnabled} writes it. */
|
|
7330
7343
|
var SWITCH_KEY = "enabled";
|
|
7344
|
+
/**
|
|
7345
|
+
* The "Add device" mode an instance gets when its provider states none, from how the provider's
|
|
7346
|
+
* devices are found: `lan` scans, `account` adopts the account's children, anything else is manual.
|
|
7347
|
+
* The one place this default lives.
|
|
7348
|
+
*/
|
|
7349
|
+
function defaultAddDeviceMode(description) {
|
|
7350
|
+
switch (description.discovery?.mode) {
|
|
7351
|
+
case "lan": return "scan";
|
|
7352
|
+
case "account": return "children";
|
|
7353
|
+
default: return "none";
|
|
7354
|
+
}
|
|
7355
|
+
}
|
|
7331
7356
|
/** The keys of the kind's secret fields that sit at the top level of the body. */
|
|
7332
7357
|
function topLevelSecretKeys(paths) {
|
|
7333
7358
|
return new Set(paths.filter((p) => !p.includes(".") && !p.includes("[") && !p.includes("{")));
|
|
@@ -7430,6 +7455,7 @@ var RecordIntegrationInstances = class {
|
|
|
7430
7455
|
enabled: isInstanceEnabled(record.data),
|
|
7431
7456
|
formValues: shown,
|
|
7432
7457
|
kind,
|
|
7458
|
+
addDevice: this.hooks.addDevice?.(record.data) ?? defaultAddDeviceMode(this.hooks.description),
|
|
7433
7459
|
...health?.status !== void 0 ? { status: health.status } : {},
|
|
7434
7460
|
...health?.lastCheckedAt !== void 0 ? { lastCheckedAt: health.lastCheckedAt } : {}
|
|
7435
7461
|
};
|
|
@@ -10861,6 +10887,10 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
10861
10887
|
it: "Commuta {device}"
|
|
10862
10888
|
},
|
|
10863
10889
|
icon: "toggle-right",
|
|
10890
|
+
sideEffects: [{
|
|
10891
|
+
field: "on",
|
|
10892
|
+
negate: true
|
|
10893
|
+
}],
|
|
10864
10894
|
offeredWhen: {
|
|
10865
10895
|
method: "getOptions",
|
|
10866
10896
|
field: "supportsSetState"
|
|
@@ -11975,7 +12005,15 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
11975
12005
|
effect: {
|
|
11976
12006
|
field: "state",
|
|
11977
12007
|
value: "locked"
|
|
11978
|
-
}
|
|
12008
|
+
},
|
|
12009
|
+
hold: { effects: [{
|
|
12010
|
+
field: "state",
|
|
12011
|
+
value: "locking",
|
|
12012
|
+
when: {
|
|
12013
|
+
field: "state",
|
|
12014
|
+
notIn: ["locked"]
|
|
12015
|
+
}
|
|
12016
|
+
}] }
|
|
11979
12017
|
},
|
|
11980
12018
|
{
|
|
11981
12019
|
id: "lock.unlock",
|
|
@@ -12004,7 +12042,15 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
12004
12042
|
effect: {
|
|
12005
12043
|
field: "state",
|
|
12006
12044
|
value: "unlocked"
|
|
12007
|
-
}
|
|
12045
|
+
},
|
|
12046
|
+
hold: { effects: [{
|
|
12047
|
+
field: "state",
|
|
12048
|
+
value: "unlocking",
|
|
12049
|
+
when: {
|
|
12050
|
+
field: "state",
|
|
12051
|
+
notIn: ["unlocked"]
|
|
12052
|
+
}
|
|
12053
|
+
}] }
|
|
12008
12054
|
},
|
|
12009
12055
|
{
|
|
12010
12056
|
id: "lock.open",
|
|
@@ -12318,6 +12364,14 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
12318
12364
|
step: .5,
|
|
12319
12365
|
unit: "°C"
|
|
12320
12366
|
}
|
|
12367
|
+
}],
|
|
12368
|
+
effect: {
|
|
12369
|
+
field: "targetLow",
|
|
12370
|
+
fromArg: "targetLow"
|
|
12371
|
+
},
|
|
12372
|
+
sideEffects: [{
|
|
12373
|
+
field: "targetHigh",
|
|
12374
|
+
fromArg: "targetHigh"
|
|
12321
12375
|
}]
|
|
12322
12376
|
},
|
|
12323
12377
|
{
|
|
@@ -12374,7 +12428,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
12374
12428
|
from: "status",
|
|
12375
12429
|
field: "availableFanModes"
|
|
12376
12430
|
}
|
|
12377
|
-
}]
|
|
12431
|
+
}],
|
|
12432
|
+
effect: {
|
|
12433
|
+
field: "fanMode",
|
|
12434
|
+
fromArg: "fanMode"
|
|
12435
|
+
}
|
|
12378
12436
|
},
|
|
12379
12437
|
{
|
|
12380
12438
|
id: "climate.preset",
|
|
@@ -12399,7 +12457,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
12399
12457
|
from: "status",
|
|
12400
12458
|
field: "availablePresets"
|
|
12401
12459
|
}
|
|
12402
|
-
}]
|
|
12460
|
+
}],
|
|
12461
|
+
effect: {
|
|
12462
|
+
field: "preset",
|
|
12463
|
+
fromArg: "preset"
|
|
12464
|
+
}
|
|
12403
12465
|
},
|
|
12404
12466
|
{
|
|
12405
12467
|
id: "climate.swingVerticalOn",
|
|
@@ -12632,7 +12694,15 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
12632
12694
|
effect: {
|
|
12633
12695
|
field: "speed",
|
|
12634
12696
|
value: 100
|
|
12635
|
-
}
|
|
12697
|
+
},
|
|
12698
|
+
sideEffects: [{
|
|
12699
|
+
field: "preset",
|
|
12700
|
+
value: "",
|
|
12701
|
+
when: {
|
|
12702
|
+
field: "preset",
|
|
12703
|
+
notIn: [""]
|
|
12704
|
+
}
|
|
12705
|
+
}]
|
|
12636
12706
|
},
|
|
12637
12707
|
{
|
|
12638
12708
|
id: "fan.speed",
|
|
@@ -12663,7 +12733,15 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
12663
12733
|
effect: {
|
|
12664
12734
|
field: "speed",
|
|
12665
12735
|
fromArg: "speed"
|
|
12666
|
-
}
|
|
12736
|
+
},
|
|
12737
|
+
sideEffects: [{
|
|
12738
|
+
field: "preset",
|
|
12739
|
+
value: "",
|
|
12740
|
+
when: {
|
|
12741
|
+
field: "preset",
|
|
12742
|
+
notIn: [""]
|
|
12743
|
+
}
|
|
12744
|
+
}]
|
|
12667
12745
|
},
|
|
12668
12746
|
{
|
|
12669
12747
|
id: "fan.preset",
|
|
@@ -12688,7 +12766,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
12688
12766
|
from: "status",
|
|
12689
12767
|
field: "availablePresets"
|
|
12690
12768
|
}
|
|
12691
|
-
}]
|
|
12769
|
+
}],
|
|
12770
|
+
effect: {
|
|
12771
|
+
field: "preset",
|
|
12772
|
+
fromArg: "preset"
|
|
12773
|
+
}
|
|
12692
12774
|
},
|
|
12693
12775
|
{
|
|
12694
12776
|
id: "fan.forward",
|
|
@@ -13233,7 +13315,15 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
13233
13315
|
effect: {
|
|
13234
13316
|
field: "state",
|
|
13235
13317
|
value: "disarmed"
|
|
13236
|
-
}
|
|
13318
|
+
},
|
|
13319
|
+
hold: { effects: [{
|
|
13320
|
+
field: "state",
|
|
13321
|
+
value: "disarming",
|
|
13322
|
+
when: {
|
|
13323
|
+
field: "state",
|
|
13324
|
+
notIn: ["disarmed"]
|
|
13325
|
+
}
|
|
13326
|
+
}] }
|
|
13237
13327
|
},
|
|
13238
13328
|
{
|
|
13239
13329
|
id: "alarm.arm.home",
|
|
@@ -13263,7 +13353,15 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
13263
13353
|
effect: {
|
|
13264
13354
|
field: "state",
|
|
13265
13355
|
value: "armed_home"
|
|
13266
|
-
}
|
|
13356
|
+
},
|
|
13357
|
+
hold: { effects: [{
|
|
13358
|
+
field: "state",
|
|
13359
|
+
value: "arming",
|
|
13360
|
+
when: {
|
|
13361
|
+
field: "state",
|
|
13362
|
+
notIn: ["armed_home"]
|
|
13363
|
+
}
|
|
13364
|
+
}] }
|
|
13267
13365
|
},
|
|
13268
13366
|
{
|
|
13269
13367
|
id: "alarm.arm.away",
|
|
@@ -13293,7 +13391,15 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
13293
13391
|
effect: {
|
|
13294
13392
|
field: "state",
|
|
13295
13393
|
value: "armed_away"
|
|
13296
|
-
}
|
|
13394
|
+
},
|
|
13395
|
+
hold: { effects: [{
|
|
13396
|
+
field: "state",
|
|
13397
|
+
value: "arming",
|
|
13398
|
+
when: {
|
|
13399
|
+
field: "state",
|
|
13400
|
+
notIn: ["armed_away"]
|
|
13401
|
+
}
|
|
13402
|
+
}] }
|
|
13297
13403
|
},
|
|
13298
13404
|
{
|
|
13299
13405
|
id: "alarm.arm.night",
|
|
@@ -13323,7 +13429,15 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
13323
13429
|
effect: {
|
|
13324
13430
|
field: "state",
|
|
13325
13431
|
value: "armed_night"
|
|
13326
|
-
}
|
|
13432
|
+
},
|
|
13433
|
+
hold: { effects: [{
|
|
13434
|
+
field: "state",
|
|
13435
|
+
value: "arming",
|
|
13436
|
+
when: {
|
|
13437
|
+
field: "state",
|
|
13438
|
+
notIn: ["armed_night"]
|
|
13439
|
+
}
|
|
13440
|
+
}] }
|
|
13327
13441
|
},
|
|
13328
13442
|
{
|
|
13329
13443
|
id: "alarm.arm.vacation",
|
|
@@ -13353,7 +13467,15 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
13353
13467
|
effect: {
|
|
13354
13468
|
field: "state",
|
|
13355
13469
|
value: "armed_vacation"
|
|
13356
|
-
}
|
|
13470
|
+
},
|
|
13471
|
+
hold: { effects: [{
|
|
13472
|
+
field: "state",
|
|
13473
|
+
value: "arming",
|
|
13474
|
+
when: {
|
|
13475
|
+
field: "state",
|
|
13476
|
+
notIn: ["armed_vacation"]
|
|
13477
|
+
}
|
|
13478
|
+
}] }
|
|
13357
13479
|
},
|
|
13358
13480
|
{
|
|
13359
13481
|
id: "alarm.arm.custom_bypass",
|
|
@@ -13383,7 +13505,15 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
13383
13505
|
effect: {
|
|
13384
13506
|
field: "state",
|
|
13385
13507
|
value: "armed_custom_bypass"
|
|
13386
|
-
}
|
|
13508
|
+
},
|
|
13509
|
+
hold: { effects: [{
|
|
13510
|
+
field: "state",
|
|
13511
|
+
value: "arming",
|
|
13512
|
+
when: {
|
|
13513
|
+
field: "state",
|
|
13514
|
+
notIn: ["armed_custom_bypass"]
|
|
13515
|
+
}
|
|
13516
|
+
}] }
|
|
13387
13517
|
}
|
|
13388
13518
|
],
|
|
13389
13519
|
state: [{
|
|
@@ -14525,7 +14655,14 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14525
14655
|
quantity: "mass"
|
|
14526
14656
|
},
|
|
14527
14657
|
optional: true
|
|
14528
|
-
}]
|
|
14658
|
+
}],
|
|
14659
|
+
hold: {
|
|
14660
|
+
effects: [{
|
|
14661
|
+
field: "feeding",
|
|
14662
|
+
value: true
|
|
14663
|
+
}],
|
|
14664
|
+
holdMs: 1e4
|
|
14665
|
+
}
|
|
14529
14666
|
},
|
|
14530
14667
|
{
|
|
14531
14668
|
id: "petFeeder.feedHoppers",
|
|
@@ -14569,7 +14706,14 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14569
14706
|
quantity: "mass"
|
|
14570
14707
|
},
|
|
14571
14708
|
optional: true
|
|
14572
|
-
}]
|
|
14709
|
+
}],
|
|
14710
|
+
hold: {
|
|
14711
|
+
effects: [{
|
|
14712
|
+
field: "feeding",
|
|
14713
|
+
value: true
|
|
14714
|
+
}],
|
|
14715
|
+
holdMs: 1e4
|
|
14716
|
+
}
|
|
14573
14717
|
},
|
|
14574
14718
|
{
|
|
14575
14719
|
id: "petFeeder.cancelFeed",
|
|
@@ -14660,7 +14804,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14660
14804
|
it: "Attiva il blocco bambini di {device}"
|
|
14661
14805
|
},
|
|
14662
14806
|
icon: "lock",
|
|
14663
|
-
args: { on: true }
|
|
14807
|
+
args: { on: true },
|
|
14808
|
+
effect: {
|
|
14809
|
+
field: "childLock",
|
|
14810
|
+
value: true
|
|
14811
|
+
}
|
|
14664
14812
|
},
|
|
14665
14813
|
{
|
|
14666
14814
|
id: "petFeeder.childLockOff",
|
|
@@ -14674,7 +14822,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14674
14822
|
it: "Disattiva il blocco bambini di {device}"
|
|
14675
14823
|
},
|
|
14676
14824
|
icon: "lock-open",
|
|
14677
|
-
args: { on: false }
|
|
14825
|
+
args: { on: false },
|
|
14826
|
+
effect: {
|
|
14827
|
+
field: "childLock",
|
|
14828
|
+
value: false
|
|
14829
|
+
}
|
|
14678
14830
|
},
|
|
14679
14831
|
{
|
|
14680
14832
|
id: "petFeeder.lightOn",
|
|
@@ -14688,7 +14840,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14688
14840
|
it: "Accendi la spia di {device}"
|
|
14689
14841
|
},
|
|
14690
14842
|
icon: "lightbulb",
|
|
14691
|
-
args: { on: true }
|
|
14843
|
+
args: { on: true },
|
|
14844
|
+
effect: {
|
|
14845
|
+
field: "indicatorLight",
|
|
14846
|
+
value: true
|
|
14847
|
+
}
|
|
14692
14848
|
},
|
|
14693
14849
|
{
|
|
14694
14850
|
id: "petFeeder.lightOff",
|
|
@@ -14702,7 +14858,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14702
14858
|
it: "Spegni la spia di {device}"
|
|
14703
14859
|
},
|
|
14704
14860
|
icon: "lightbulb-off",
|
|
14705
|
-
args: { on: false }
|
|
14861
|
+
args: { on: false },
|
|
14862
|
+
effect: {
|
|
14863
|
+
field: "indicatorLight",
|
|
14864
|
+
value: false
|
|
14865
|
+
}
|
|
14706
14866
|
},
|
|
14707
14867
|
{
|
|
14708
14868
|
id: "petFeeder.feedSoundOn",
|
|
@@ -14716,7 +14876,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14716
14876
|
it: "Attiva il suono di erogazione di {device}"
|
|
14717
14877
|
},
|
|
14718
14878
|
icon: "volume-2",
|
|
14719
|
-
args: { on: true }
|
|
14879
|
+
args: { on: true },
|
|
14880
|
+
effect: {
|
|
14881
|
+
field: "feedSound",
|
|
14882
|
+
value: true
|
|
14883
|
+
}
|
|
14720
14884
|
},
|
|
14721
14885
|
{
|
|
14722
14886
|
id: "petFeeder.feedSoundOff",
|
|
@@ -14730,7 +14894,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14730
14894
|
it: "Disattiva il suono di erogazione di {device}"
|
|
14731
14895
|
},
|
|
14732
14896
|
icon: "volume-x",
|
|
14733
|
-
args: { on: false }
|
|
14897
|
+
args: { on: false },
|
|
14898
|
+
effect: {
|
|
14899
|
+
field: "feedSound",
|
|
14900
|
+
value: false
|
|
14901
|
+
}
|
|
14734
14902
|
},
|
|
14735
14903
|
{
|
|
14736
14904
|
id: "petFeeder.volume",
|
|
@@ -14755,7 +14923,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14755
14923
|
min: 0,
|
|
14756
14924
|
step: 1
|
|
14757
14925
|
}
|
|
14758
|
-
}]
|
|
14926
|
+
}],
|
|
14927
|
+
effect: {
|
|
14928
|
+
field: "volume",
|
|
14929
|
+
fromArg: "level"
|
|
14930
|
+
}
|
|
14759
14931
|
}
|
|
14760
14932
|
],
|
|
14761
14933
|
state: [
|
|
@@ -14827,7 +14999,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14827
14999
|
it: "Avvia la pompa di {device}"
|
|
14828
15000
|
},
|
|
14829
15001
|
icon: "play",
|
|
14830
|
-
args: { on: true }
|
|
15002
|
+
args: { on: true },
|
|
15003
|
+
effect: {
|
|
15004
|
+
field: "pumpRunning",
|
|
15005
|
+
value: true
|
|
15006
|
+
}
|
|
14831
15007
|
}, {
|
|
14832
15008
|
id: "petFountain.pumpOff",
|
|
14833
15009
|
method: "setPump",
|
|
@@ -14840,7 +15016,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14840
15016
|
it: "Ferma la pompa di {device}"
|
|
14841
15017
|
},
|
|
14842
15018
|
icon: "square",
|
|
14843
|
-
args: { on: false }
|
|
15019
|
+
args: { on: false },
|
|
15020
|
+
effect: {
|
|
15021
|
+
field: "pumpRunning",
|
|
15022
|
+
value: false
|
|
15023
|
+
}
|
|
14844
15024
|
}],
|
|
14845
15025
|
state: [{
|
|
14846
15026
|
kind: "boolean",
|
|
@@ -14892,7 +15072,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14892
15072
|
it: "Fai lavorare la pompa di {device} a ciclo acceso/spento"
|
|
14893
15073
|
},
|
|
14894
15074
|
icon: "timer",
|
|
14895
|
-
args: { on: true }
|
|
15075
|
+
args: { on: true },
|
|
15076
|
+
effect: {
|
|
15077
|
+
field: "enabled",
|
|
15078
|
+
value: true
|
|
15079
|
+
}
|
|
14896
15080
|
},
|
|
14897
15081
|
{
|
|
14898
15082
|
id: "pumpCycle.off",
|
|
@@ -14906,7 +15090,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14906
15090
|
it: "Fai lavorare la pompa di {device} in continuo"
|
|
14907
15091
|
},
|
|
14908
15092
|
icon: "timer-off",
|
|
14909
|
-
args: { on: false }
|
|
15093
|
+
args: { on: false },
|
|
15094
|
+
effect: {
|
|
15095
|
+
field: "enabled",
|
|
15096
|
+
value: false
|
|
15097
|
+
}
|
|
14910
15098
|
},
|
|
14911
15099
|
{
|
|
14912
15100
|
id: "pumpCycle.onMinutes",
|
|
@@ -14932,7 +15120,12 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14932
15120
|
step: 1,
|
|
14933
15121
|
unit: "min"
|
|
14934
15122
|
}
|
|
14935
|
-
}]
|
|
15123
|
+
}],
|
|
15124
|
+
effect: {
|
|
15125
|
+
field: "onTime",
|
|
15126
|
+
fromArg: "minutes",
|
|
15127
|
+
scale: 60
|
|
15128
|
+
}
|
|
14936
15129
|
},
|
|
14937
15130
|
{
|
|
14938
15131
|
id: "pumpCycle.offMinutes",
|
|
@@ -14958,7 +15151,12 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14958
15151
|
step: 1,
|
|
14959
15152
|
unit: "min"
|
|
14960
15153
|
}
|
|
14961
|
-
}]
|
|
15154
|
+
}],
|
|
15155
|
+
effect: {
|
|
15156
|
+
field: "offTime",
|
|
15157
|
+
fromArg: "minutes",
|
|
15158
|
+
scale: 60
|
|
15159
|
+
}
|
|
14962
15160
|
}
|
|
14963
15161
|
],
|
|
14964
15162
|
state: [{
|
|
@@ -15075,7 +15273,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
15075
15273
|
en: "Play on {device}",
|
|
15076
15274
|
it: "Avvia la riproduzione su {device}"
|
|
15077
15275
|
},
|
|
15078
|
-
icon: "play"
|
|
15276
|
+
icon: "play",
|
|
15277
|
+
effect: {
|
|
15278
|
+
field: "state",
|
|
15279
|
+
value: "playing"
|
|
15280
|
+
}
|
|
15079
15281
|
},
|
|
15080
15282
|
{
|
|
15081
15283
|
id: "media.pause",
|
|
@@ -15088,7 +15290,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
15088
15290
|
en: "Pause {device}",
|
|
15089
15291
|
it: "Metti in pausa {device}"
|
|
15090
15292
|
},
|
|
15091
|
-
icon: "pause"
|
|
15293
|
+
icon: "pause",
|
|
15294
|
+
effect: {
|
|
15295
|
+
field: "state",
|
|
15296
|
+
value: "paused"
|
|
15297
|
+
}
|
|
15092
15298
|
},
|
|
15093
15299
|
{
|
|
15094
15300
|
id: "media.stop",
|
|
@@ -15154,7 +15360,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
15154
15360
|
step: 1,
|
|
15155
15361
|
unit: "%"
|
|
15156
15362
|
}
|
|
15157
|
-
}]
|
|
15363
|
+
}],
|
|
15364
|
+
effect: {
|
|
15365
|
+
field: "volumeLevel",
|
|
15366
|
+
fromArg: "volumeLevel"
|
|
15367
|
+
}
|
|
15158
15368
|
},
|
|
15159
15369
|
{
|
|
15160
15370
|
id: "media.mute",
|
|
@@ -15168,7 +15378,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
15168
15378
|
it: "Silenzia {device}"
|
|
15169
15379
|
},
|
|
15170
15380
|
icon: "volume-x",
|
|
15171
|
-
args: { muted: true }
|
|
15381
|
+
args: { muted: true },
|
|
15382
|
+
effect: {
|
|
15383
|
+
field: "isMuted",
|
|
15384
|
+
value: true
|
|
15385
|
+
}
|
|
15172
15386
|
},
|
|
15173
15387
|
{
|
|
15174
15388
|
id: "media.unmute",
|
|
@@ -15182,7 +15396,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
15182
15396
|
it: "Riattiva l’audio di {device}"
|
|
15183
15397
|
},
|
|
15184
15398
|
icon: "volume-2",
|
|
15185
|
-
args: { muted: false }
|
|
15399
|
+
args: { muted: false },
|
|
15400
|
+
effect: {
|
|
15401
|
+
field: "isMuted",
|
|
15402
|
+
value: false
|
|
15403
|
+
}
|
|
15186
15404
|
},
|
|
15187
15405
|
{
|
|
15188
15406
|
id: "media.shuffleOn",
|
|
@@ -15196,7 +15414,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
15196
15414
|
it: "Attiva la riproduzione casuale su {device}"
|
|
15197
15415
|
},
|
|
15198
15416
|
icon: "shuffle",
|
|
15199
|
-
args: { shuffle: true }
|
|
15417
|
+
args: { shuffle: true },
|
|
15418
|
+
effect: {
|
|
15419
|
+
field: "shuffle",
|
|
15420
|
+
value: true
|
|
15421
|
+
}
|
|
15200
15422
|
},
|
|
15201
15423
|
{
|
|
15202
15424
|
id: "media.shuffleOff",
|
|
@@ -15210,7 +15432,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
15210
15432
|
it: "Disattiva la riproduzione casuale su {device}"
|
|
15211
15433
|
},
|
|
15212
15434
|
icon: "shuffle",
|
|
15213
|
-
args: { shuffle: false }
|
|
15435
|
+
args: { shuffle: false },
|
|
15436
|
+
effect: {
|
|
15437
|
+
field: "shuffle",
|
|
15438
|
+
value: false
|
|
15439
|
+
}
|
|
15214
15440
|
},
|
|
15215
15441
|
{
|
|
15216
15442
|
id: "media.repeat",
|
|
@@ -15256,7 +15482,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
15256
15482
|
}
|
|
15257
15483
|
]
|
|
15258
15484
|
}
|
|
15259
|
-
}]
|
|
15485
|
+
}],
|
|
15486
|
+
effect: {
|
|
15487
|
+
field: "repeat",
|
|
15488
|
+
fromArg: "repeat"
|
|
15489
|
+
}
|
|
15260
15490
|
},
|
|
15261
15491
|
{
|
|
15262
15492
|
id: "media.source",
|
|
@@ -15281,7 +15511,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
15281
15511
|
from: "status",
|
|
15282
15512
|
field: "availableSources"
|
|
15283
15513
|
}
|
|
15284
|
-
}]
|
|
15514
|
+
}],
|
|
15515
|
+
effect: {
|
|
15516
|
+
field: "source",
|
|
15517
|
+
fromArg: "source"
|
|
15518
|
+
}
|
|
15285
15519
|
},
|
|
15286
15520
|
{
|
|
15287
15521
|
id: "media.seek",
|
|
@@ -15821,7 +16055,14 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
15821
16055
|
en: "Run {device}",
|
|
15822
16056
|
it: "Esegui {device}"
|
|
15823
16057
|
},
|
|
15824
|
-
icon: "scroll-text"
|
|
16058
|
+
icon: "scroll-text",
|
|
16059
|
+
hold: {
|
|
16060
|
+
effects: [{
|
|
16061
|
+
field: "isRunning",
|
|
16062
|
+
value: true
|
|
16063
|
+
}],
|
|
16064
|
+
holdMs: 1e4
|
|
16065
|
+
}
|
|
15825
16066
|
}, {
|
|
15826
16067
|
id: "script.stop",
|
|
15827
16068
|
method: "stop",
|
|
@@ -15833,7 +16074,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
15833
16074
|
en: "Stop {device}",
|
|
15834
16075
|
it: "Ferma {device}"
|
|
15835
16076
|
},
|
|
15836
|
-
icon: "square"
|
|
16077
|
+
icon: "square",
|
|
16078
|
+
effect: {
|
|
16079
|
+
field: "isRunning",
|
|
16080
|
+
value: false
|
|
16081
|
+
}
|
|
15837
16082
|
}],
|
|
15838
16083
|
state: [{
|
|
15839
16084
|
kind: "boolean",
|
|
@@ -15871,7 +16116,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
15871
16116
|
en: "Enable {device}",
|
|
15872
16117
|
it: "Abilita {device}"
|
|
15873
16118
|
},
|
|
15874
|
-
icon: "toggle-right"
|
|
16119
|
+
icon: "toggle-right",
|
|
16120
|
+
effect: {
|
|
16121
|
+
field: "enabled",
|
|
16122
|
+
value: true
|
|
16123
|
+
}
|
|
15875
16124
|
},
|
|
15876
16125
|
{
|
|
15877
16126
|
id: "haAutomation.disable",
|
|
@@ -15884,7 +16133,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
15884
16133
|
en: "Disable {device}",
|
|
15885
16134
|
it: "Disabilita {device}"
|
|
15886
16135
|
},
|
|
15887
|
-
icon: "toggle-left"
|
|
16136
|
+
icon: "toggle-left",
|
|
16137
|
+
effect: {
|
|
16138
|
+
field: "enabled",
|
|
16139
|
+
value: false
|
|
16140
|
+
}
|
|
15888
16141
|
},
|
|
15889
16142
|
{
|
|
15890
16143
|
id: "haAutomation.trigger",
|
|
@@ -17478,6 +17731,25 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
17478
17731
|
icon: "refresh-cw"
|
|
17479
17732
|
}]
|
|
17480
17733
|
},
|
|
17734
|
+
"resync": {
|
|
17735
|
+
scope: "device",
|
|
17736
|
+
noun: {
|
|
17737
|
+
en: "Re-sync",
|
|
17738
|
+
it: "Risincronizzazione"
|
|
17739
|
+
},
|
|
17740
|
+
notOperatorFacing: { resync: "device adoption — re-aligning a device with its source is an onboarding step, not an automation action" }
|
|
17741
|
+
},
|
|
17742
|
+
"device-state-refresh": {
|
|
17743
|
+
scope: "device",
|
|
17744
|
+
noun: {
|
|
17745
|
+
en: "State refresh",
|
|
17746
|
+
it: "Aggiornamento dello stato"
|
|
17747
|
+
},
|
|
17748
|
+
notOperatorFacing: {
|
|
17749
|
+
refresh: "the core schedules state refreshes itself; an operator never asks for one",
|
|
17750
|
+
resubscribe: "the core schedules state refreshes itself; an operator never asks for one"
|
|
17751
|
+
}
|
|
17752
|
+
},
|
|
17481
17753
|
"recording": {
|
|
17482
17754
|
scope: "device",
|
|
17483
17755
|
noun: {
|
|
@@ -19489,7 +19761,6 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
19489
19761
|
en: "Battery",
|
|
19490
19762
|
it: "Batteria"
|
|
19491
19763
|
},
|
|
19492
|
-
notOperatorFacing: { wakeForStream: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage" },
|
|
19493
19764
|
state: [
|
|
19494
19765
|
{
|
|
19495
19766
|
kind: "numeric",
|
|
@@ -19599,6 +19870,14 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
19599
19870
|
icon: "moon"
|
|
19600
19871
|
}]
|
|
19601
19872
|
},
|
|
19873
|
+
"low-power-sleep": {
|
|
19874
|
+
scope: "device",
|
|
19875
|
+
noun: {
|
|
19876
|
+
en: "Low-power sleep",
|
|
19877
|
+
it: "Sospensione a basso consumo"
|
|
19878
|
+
},
|
|
19879
|
+
notOperatorFacing: { wakeUp: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage" }
|
|
19880
|
+
},
|
|
19602
19881
|
"network-link": {
|
|
19603
19882
|
scope: "device",
|
|
19604
19883
|
noun: {
|
|
@@ -20465,6 +20744,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
20465
20744
|
"device-removal-hook",
|
|
20466
20745
|
"device-runs",
|
|
20467
20746
|
"device-state",
|
|
20747
|
+
"device-state-refresh",
|
|
20468
20748
|
"device-status",
|
|
20469
20749
|
"device-transitions",
|
|
20470
20750
|
"dishwasher",
|
|
@@ -20510,6 +20790,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
20510
20790
|
"log-channels",
|
|
20511
20791
|
"log-destination",
|
|
20512
20792
|
"login-method",
|
|
20793
|
+
"low-power-sleep",
|
|
20513
20794
|
"media-player",
|
|
20514
20795
|
"mesh-network",
|
|
20515
20796
|
"meter",
|
|
@@ -20563,6 +20844,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
20563
20844
|
"records",
|
|
20564
20845
|
"remote",
|
|
20565
20846
|
"remote-layout-components",
|
|
20847
|
+
"resync",
|
|
20566
20848
|
"running-state",
|
|
20567
20849
|
"scene-monitor",
|
|
20568
20850
|
"schedulers",
|
|
@@ -20666,7 +20948,7 @@ Object.freeze({
|
|
|
20666
20948
|
]
|
|
20667
20949
|
},
|
|
20668
20950
|
{
|
|
20669
|
-
"path": "
|
|
20951
|
+
"path": "codeRequired",
|
|
20670
20952
|
"valueType": "boolean"
|
|
20671
20953
|
}
|
|
20672
20954
|
],
|
|
@@ -21734,7 +22016,24 @@ Object.freeze({
|
|
|
21734
22016
|
"jammed",
|
|
21735
22017
|
"door-open"
|
|
21736
22018
|
]
|
|
22019
|
+
}, {
|
|
22020
|
+
"path": "codeRequired",
|
|
22021
|
+
"valueType": "boolean"
|
|
21737
22022
|
}],
|
|
22023
|
+
"low-power-sleep": [
|
|
22024
|
+
{
|
|
22025
|
+
"path": "sleeping",
|
|
22026
|
+
"valueType": "boolean"
|
|
22027
|
+
},
|
|
22028
|
+
{
|
|
22029
|
+
"path": "lastContactAt",
|
|
22030
|
+
"valueType": "number"
|
|
22031
|
+
},
|
|
22032
|
+
{
|
|
22033
|
+
"path": "lastUpdated",
|
|
22034
|
+
"valueType": "number"
|
|
22035
|
+
}
|
|
22036
|
+
],
|
|
21738
22037
|
"media-player": [
|
|
21739
22038
|
{
|
|
21740
22039
|
"path": "state",
|
|
@@ -22086,6 +22385,10 @@ Object.freeze({
|
|
|
22086
22385
|
"path": "power",
|
|
22087
22386
|
"valueType": "number"
|
|
22088
22387
|
},
|
|
22388
|
+
{
|
|
22389
|
+
"path": "deliveredPower",
|
|
22390
|
+
"valueType": "number"
|
|
22391
|
+
},
|
|
22089
22392
|
{
|
|
22090
22393
|
"path": "energy",
|
|
22091
22394
|
"valueType": "number"
|
|
@@ -22904,7 +23207,7 @@ Object.freeze({
|
|
|
22904
23207
|
}
|
|
22905
23208
|
});
|
|
22906
23209
|
//#endregion
|
|
22907
|
-
//#region ../types/dist/implemented-methods-
|
|
23210
|
+
//#region ../types/dist/implemented-methods-wFScvZ40.mjs
|
|
22908
23211
|
/**
|
|
22909
23212
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
22910
23213
|
*
|
|
@@ -24064,6 +24367,8 @@ var CompositionItemEntrySchema = object({
|
|
|
24064
24367
|
*/
|
|
24065
24368
|
reset: CompositionForwardCommandSchema.optional()
|
|
24066
24369
|
});
|
|
24370
|
+
/** Which identity link added a feature (D1063). */
|
|
24371
|
+
var CompositionContributedBySchema = object({ linkId: string().min(1) });
|
|
24067
24372
|
var CompositionFeatureSchema = discriminatedUnion("kind", [object({
|
|
24068
24373
|
kind: literal("fields"),
|
|
24069
24374
|
cap: string().min(1),
|
|
@@ -24075,7 +24380,14 @@ var CompositionFeatureSchema = discriminatedUnion("kind", [object({
|
|
|
24075
24380
|
*/
|
|
24076
24381
|
items: record$1(string().regex(COMPOSITION_ITEM_KEY_RE), CompositionItemEntrySchema).refine((items) => Object.keys(items).length <= 16, { message: `at most 16 items` }).optional(),
|
|
24077
24382
|
/** Method name → what serves it. Only a BUILT capability takes commands (D967). */
|
|
24078
|
-
commands: record$1(string().min(1), CompositionCommandTargetSchema).optional()
|
|
24383
|
+
commands: record$1(string().min(1), CompositionCommandTargetSchema).optional(),
|
|
24384
|
+
/**
|
|
24385
|
+
* Provenance only (D1063): the identity link that added this feature. The
|
|
24386
|
+
* source ref stays in `fields`; `enabled` stays the operator's switch. An
|
|
24387
|
+
* operator edit of the source drops the stamp and the feature becomes the
|
|
24388
|
+
* operator's; a lost link removes only stamped features.
|
|
24389
|
+
*/
|
|
24390
|
+
contributedBy: CompositionContributedBySchema.optional()
|
|
24079
24391
|
}), object({
|
|
24080
24392
|
kind: literal("passthrough"),
|
|
24081
24393
|
cap: string().min(1),
|
|
@@ -49340,6 +49652,67 @@ object({
|
|
|
49340
49652
|
/** Namespaces the client listed that no longer exist. */
|
|
49341
49653
|
deleted: array(PreferenceNamespaceSchema)
|
|
49342
49654
|
});
|
|
49655
|
+
/**
|
|
49656
|
+
* The wire shapes of `apiCatalog.*` — the API explorer's data (planning#595).
|
|
49657
|
+
*
|
|
49658
|
+
* One entry per tRPC method the hub serves, capability and core routes alike,
|
|
49659
|
+
* read off the live router by the hub (never a hand-written list).
|
|
49660
|
+
*/
|
|
49661
|
+
var ApiProcedureKindSchema = _enum([
|
|
49662
|
+
"query",
|
|
49663
|
+
"mutation",
|
|
49664
|
+
"subscription"
|
|
49665
|
+
]);
|
|
49666
|
+
/** The gate a method runs behind. */
|
|
49667
|
+
var ApiProcedureTierSchema = _enum([
|
|
49668
|
+
"public",
|
|
49669
|
+
"protected",
|
|
49670
|
+
"admin"
|
|
49671
|
+
]);
|
|
49672
|
+
/** The token scope a capability route is matched against (its `METHOD_ACCESS_MAP` row). */
|
|
49673
|
+
var ApiCatalogScopeSchema = object({
|
|
49674
|
+
capName: string(),
|
|
49675
|
+
capScope: _enum(["device", "system"]),
|
|
49676
|
+
access: _enum([
|
|
49677
|
+
"view",
|
|
49678
|
+
"create",
|
|
49679
|
+
"delete"
|
|
49680
|
+
]),
|
|
49681
|
+
role: string()
|
|
49682
|
+
});
|
|
49683
|
+
var ApiCatalogEntrySchema = object({
|
|
49684
|
+
/** `<router>.<method>` — the tRPC path. */
|
|
49685
|
+
path: string(),
|
|
49686
|
+
router: string(),
|
|
49687
|
+
method: string(),
|
|
49688
|
+
kind: ApiProcedureKindSchema,
|
|
49689
|
+
tier: ApiProcedureTierSchema,
|
|
49690
|
+
source: _enum(["capability", "core"]),
|
|
49691
|
+
/** `null` on a core route: it needs authentication only (plus admin where its tier says so). */
|
|
49692
|
+
scope: ApiCatalogScopeSchema.nullable(),
|
|
49693
|
+
hasInput: boolean()
|
|
49694
|
+
});
|
|
49695
|
+
/**
|
|
49696
|
+
* May the CALLER call a method. The list has no input, so a method reached
|
|
49697
|
+
* only through a device grant is `per-device`: the real call is allowed or
|
|
49698
|
+
* refused on the device its input names.
|
|
49699
|
+
*/
|
|
49700
|
+
var ApiCallableSchema = _enum([
|
|
49701
|
+
"yes",
|
|
49702
|
+
"no",
|
|
49703
|
+
"per-device"
|
|
49704
|
+
]);
|
|
49705
|
+
object({ methods: array(ApiCatalogEntrySchema.extend({ callable: ApiCallableSchema })) });
|
|
49706
|
+
/** A JSON Schema document, as the explorer receives it. */
|
|
49707
|
+
var JsonSchemaDocumentSchema = record$1(string(), unknown());
|
|
49708
|
+
object({
|
|
49709
|
+
path: string(),
|
|
49710
|
+
hasInput: boolean(),
|
|
49711
|
+
/** The INPUT JSON schema (what the caller sends); `null` without input or when it could not be produced. */
|
|
49712
|
+
schema: JsonSchemaDocumentSchema.nullable(),
|
|
49713
|
+
/** Why no schema could be produced (a non-Zod parser, an unrepresentable type). */
|
|
49714
|
+
error: string().nullable()
|
|
49715
|
+
});
|
|
49343
49716
|
_enum(["new-session", "step-up"]);
|
|
49344
49717
|
/** The languages the hub's app landing pages are written in (D858). */
|
|
49345
49718
|
var AppPageLangSchema = _enum(["en", "it"]);
|
|
@@ -53198,9 +53571,8 @@ var airQualitySensorCapability = {
|
|
|
53198
53571
|
* Many panels require a PIN code on arm / disarm — the optional
|
|
53199
53572
|
* `code` field on the methods passes it through to the upstream
|
|
53200
53573
|
* service; it's NEVER persisted in the runtime slice or any event
|
|
53201
|
-
* payload.
|
|
53202
|
-
* `
|
|
53203
|
-
* field without a slice fetch.
|
|
53574
|
+
* payload. Whether a code is required is the slice's `codeRequired`
|
|
53575
|
+
* (#459): `null` when the provider cannot tell (D393).
|
|
53204
53576
|
*
|
|
53205
53577
|
* `availableModes` mirrors HA's `supported_features`-derived arm
|
|
53206
53578
|
* mode list — the UI renders only the buttons the panel accepts.
|
|
@@ -53239,9 +53611,13 @@ var AlarmPanelStatusSchema = object({
|
|
|
53239
53611
|
/** Subset of arm modes the panel accepts. UI renders one button per
|
|
53240
53612
|
* mode in this list. */
|
|
53241
53613
|
availableModes: array(AlarmArmModeSchema),
|
|
53242
|
-
/**
|
|
53243
|
-
*
|
|
53244
|
-
requiresCode
|
|
53614
|
+
/**
|
|
53615
|
+
* Whether the panel requires a PIN on arm / disarm (#459; the field was
|
|
53616
|
+
* `requiresCode`, and the `alarm-pin-required` device feature is gone).
|
|
53617
|
+
* `null` = the provider cannot tell (D393), never `false`. A slice restored
|
|
53618
|
+
* from before the rename is upgraded at boot by `restoredFieldRenames`.
|
|
53619
|
+
*/
|
|
53620
|
+
codeRequired: boolean().nullable(),
|
|
53245
53621
|
/** Ms epoch when the slice was last updated. */
|
|
53246
53622
|
lastChangedAt: number$1()
|
|
53247
53623
|
});
|
|
@@ -53284,6 +53660,14 @@ var alarmPanelCapability = {
|
|
|
53284
53660
|
field: "state",
|
|
53285
53661
|
value: "disarmed"
|
|
53286
53662
|
},
|
|
53663
|
+
hold: { effects: [{
|
|
53664
|
+
field: "state",
|
|
53665
|
+
value: "disarming",
|
|
53666
|
+
when: {
|
|
53667
|
+
field: "state",
|
|
53668
|
+
notIn: ["disarmed"]
|
|
53669
|
+
}
|
|
53670
|
+
}] },
|
|
53287
53671
|
openArgs: [{
|
|
53288
53672
|
key: "code",
|
|
53289
53673
|
label: t("PIN code", "Codice PIN"),
|
|
@@ -53298,7 +53682,7 @@ var alarmPanelCapability = {
|
|
|
53298
53682
|
arm: method(object({
|
|
53299
53683
|
deviceId: number$1().int().nonnegative(),
|
|
53300
53684
|
mode: AlarmArmModeSchema,
|
|
53301
|
-
/** Optional PIN code. Required when `
|
|
53685
|
+
/** Optional PIN code. Required when `codeRequired === true`.
|
|
53302
53686
|
* Passed through to the upstream service; never persisted. */
|
|
53303
53687
|
code: string().min(1).optional()
|
|
53304
53688
|
}), _void(), {
|
|
@@ -53314,6 +53698,14 @@ var alarmPanelCapability = {
|
|
|
53314
53698
|
field: "state",
|
|
53315
53699
|
value: "armed_home"
|
|
53316
53700
|
},
|
|
53701
|
+
hold: { effects: [{
|
|
53702
|
+
field: "state",
|
|
53703
|
+
value: "arming",
|
|
53704
|
+
when: {
|
|
53705
|
+
field: "state",
|
|
53706
|
+
notIn: ["armed_home"]
|
|
53707
|
+
}
|
|
53708
|
+
}] },
|
|
53317
53709
|
args: { mode: "home" },
|
|
53318
53710
|
openArgs: [{
|
|
53319
53711
|
key: "code",
|
|
@@ -53334,6 +53726,14 @@ var alarmPanelCapability = {
|
|
|
53334
53726
|
field: "state",
|
|
53335
53727
|
value: "armed_away"
|
|
53336
53728
|
},
|
|
53729
|
+
hold: { effects: [{
|
|
53730
|
+
field: "state",
|
|
53731
|
+
value: "arming",
|
|
53732
|
+
when: {
|
|
53733
|
+
field: "state",
|
|
53734
|
+
notIn: ["armed_away"]
|
|
53735
|
+
}
|
|
53736
|
+
}] },
|
|
53337
53737
|
args: { mode: "away" },
|
|
53338
53738
|
openArgs: [{
|
|
53339
53739
|
key: "code",
|
|
@@ -53354,6 +53754,14 @@ var alarmPanelCapability = {
|
|
|
53354
53754
|
field: "state",
|
|
53355
53755
|
value: "armed_night"
|
|
53356
53756
|
},
|
|
53757
|
+
hold: { effects: [{
|
|
53758
|
+
field: "state",
|
|
53759
|
+
value: "arming",
|
|
53760
|
+
when: {
|
|
53761
|
+
field: "state",
|
|
53762
|
+
notIn: ["armed_night"]
|
|
53763
|
+
}
|
|
53764
|
+
}] },
|
|
53357
53765
|
args: { mode: "night" },
|
|
53358
53766
|
openArgs: [{
|
|
53359
53767
|
key: "code",
|
|
@@ -53374,6 +53782,14 @@ var alarmPanelCapability = {
|
|
|
53374
53782
|
field: "state",
|
|
53375
53783
|
value: "armed_vacation"
|
|
53376
53784
|
},
|
|
53785
|
+
hold: { effects: [{
|
|
53786
|
+
field: "state",
|
|
53787
|
+
value: "arming",
|
|
53788
|
+
when: {
|
|
53789
|
+
field: "state",
|
|
53790
|
+
notIn: ["armed_vacation"]
|
|
53791
|
+
}
|
|
53792
|
+
}] },
|
|
53377
53793
|
args: { mode: "vacation" },
|
|
53378
53794
|
openArgs: [{
|
|
53379
53795
|
key: "code",
|
|
@@ -53394,6 +53810,14 @@ var alarmPanelCapability = {
|
|
|
53394
53810
|
field: "state",
|
|
53395
53811
|
value: "armed_custom_bypass"
|
|
53396
53812
|
},
|
|
53813
|
+
hold: { effects: [{
|
|
53814
|
+
field: "state",
|
|
53815
|
+
value: "arming",
|
|
53816
|
+
when: {
|
|
53817
|
+
field: "state",
|
|
53818
|
+
notIn: ["armed_custom_bypass"]
|
|
53819
|
+
}
|
|
53820
|
+
}] },
|
|
53397
53821
|
args: { mode: "custom_bypass" },
|
|
53398
53822
|
openArgs: [{
|
|
53399
53823
|
key: "code",
|
|
@@ -53415,7 +53839,7 @@ var alarmPanelCapability = {
|
|
|
53415
53839
|
/**
|
|
53416
53840
|
* Runtime-state slice — mirrored by the kernel. UI panel reads the
|
|
53417
53841
|
* full slice; renders an arm button per `availableModes` entry and
|
|
53418
|
-
* a PIN field iff `
|
|
53842
|
+
* a PIN field iff `codeRequired === true`.
|
|
53419
53843
|
*/
|
|
53420
53844
|
runtimeState: AlarmPanelStatusSchema,
|
|
53421
53845
|
/**
|
|
@@ -53426,6 +53850,13 @@ var alarmPanelCapability = {
|
|
|
53426
53850
|
*/
|
|
53427
53851
|
durability: "restored",
|
|
53428
53852
|
/**
|
|
53853
|
+
* A slice persisted before #459 carries `requiresCode`; the boot seed reads it
|
|
53854
|
+
* once into `codeRequired` (`restoredPart`), so no reader meets the old key,
|
|
53855
|
+
* and rewrites the row once without it (`seedMirrorFromRow`) — so this entry
|
|
53856
|
+
* can be dropped after every node has booted once on a release that has it.
|
|
53857
|
+
*/
|
|
53858
|
+
restoredFieldRenames: { requiresCode: "codeRequired" },
|
|
53859
|
+
/**
|
|
53429
53860
|
* History (D850): the panel's lifecycle state as an `enum` series —
|
|
53430
53861
|
* change-only, no floor, so an `arming -> pending -> triggered` sequence of a
|
|
53431
53862
|
* few seconds keeps every step. Who armed it stays in the events ledger.
|
|
@@ -54070,6 +54501,10 @@ var automationControlCapability = {
|
|
|
54070
54501
|
auth: "admin",
|
|
54071
54502
|
actions: [{
|
|
54072
54503
|
id: "haAutomation.enable",
|
|
54504
|
+
effect: {
|
|
54505
|
+
field: "enabled",
|
|
54506
|
+
value: true
|
|
54507
|
+
},
|
|
54073
54508
|
label: t("Enable automation", "Abilita l’automazione"),
|
|
54074
54509
|
phrase: t("Enable {device}", "Abilita {device}"),
|
|
54075
54510
|
icon: "toggle-right"
|
|
@@ -54080,6 +54515,10 @@ var automationControlCapability = {
|
|
|
54080
54515
|
auth: "admin",
|
|
54081
54516
|
actions: [{
|
|
54082
54517
|
id: "haAutomation.disable",
|
|
54518
|
+
effect: {
|
|
54519
|
+
field: "enabled",
|
|
54520
|
+
value: false
|
|
54521
|
+
},
|
|
54083
54522
|
label: t("Disable automation", "Disabilita l’automazione"),
|
|
54084
54523
|
phrase: t("Disable {device}", "Disabilita {device}"),
|
|
54085
54524
|
icon: "toggle-left"
|
|
@@ -54623,9 +55062,9 @@ method(_void(), array(BackupDestinationInfoSchema).readonly(), { auth: "admin" }
|
|
|
54623
55062
|
auth: "admin"
|
|
54624
55063
|
});
|
|
54625
55064
|
/**
|
|
54626
|
-
* Battery status snapshot. Emitted by providers whose device
|
|
54627
|
-
* battery
|
|
54628
|
-
*
|
|
55065
|
+
* Battery status snapshot. Emitted by providers whose device reports a
|
|
55066
|
+
* battery (`DeviceFeature.BatteryOperated`): battery cameras, sensors,
|
|
55067
|
+
* buttons. Whether the device SLEEPS is `low-power-sleep`, not this cap. Consumers build their own "low
|
|
54629
55068
|
* battery" alerting on top — the cap deliberately does NOT enforce a
|
|
54630
55069
|
* threshold.
|
|
54631
55070
|
*/
|
|
@@ -54782,47 +55221,12 @@ var batteryCapability = {
|
|
|
54782
55221
|
deviceNative: true,
|
|
54783
55222
|
mode: "singleton",
|
|
54784
55223
|
deviceTypes: BATTERY_DEVICE_TYPES,
|
|
54785
|
-
methods: {
|
|
54786
|
-
/**
|
|
54787
|
-
* Explicitly wake the camera from low-power sleep ahead of a
|
|
54788
|
-
* streaming session start. Consumers that initiate a stream
|
|
54789
|
-
* against a sleeping battery cam (HomeKit Secure Video, Alexa
|
|
54790
|
-
* RTCSession, snapshot wrappers) call this with a short timeout
|
|
54791
|
-
* before establishing the media pipeline — the broker's own
|
|
54792
|
-
* passive wake-on-dial works but adds 5–7 seconds to first-frame,
|
|
54793
|
-
* during which the consumer renders a black screen. Pre-waking
|
|
54794
|
-
* compresses that gap.
|
|
54795
|
-
*
|
|
54796
|
-
* Returns `awoke: true` when the firmware acknowledged the wake
|
|
54797
|
-
* before `timeoutMs`. Returns `awoke: false` when it timed out OR
|
|
54798
|
-
* the cap surface is unavailable (no Baichuan / firmware
|
|
54799
|
-
* channel); the caller should still attempt the stream — the
|
|
54800
|
-
* passive broker wake remains as fallback.
|
|
54801
|
-
*/
|
|
54802
|
-
wakeForStream: method(object({
|
|
54803
|
-
deviceId: number$1(),
|
|
54804
|
-
/** Bound on the wait. Sensible range 3000–10000ms. */
|
|
54805
|
-
timeoutMs: number$1().int().min(500).max(3e4).default(8e3)
|
|
54806
|
-
}), object({
|
|
54807
|
-
awoke: boolean(),
|
|
54808
|
-
durationMs: number$1()
|
|
54809
|
-
}), {
|
|
54810
|
-
kind: "mutation",
|
|
54811
|
-
notOperatorFacing: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage"
|
|
54812
|
-
}) },
|
|
54813
55224
|
/**
|
|
54814
|
-
*
|
|
54815
|
-
*
|
|
54816
|
-
*
|
|
54817
|
-
* … the cap surface is unavailable." (D663).
|
|
55225
|
+
* No methods: waking a sleeping camera is `low-power-sleep.wakeUp`
|
|
55226
|
+
* (#459, Q2). A battery reading says nothing about sleep — a battery sensor
|
|
55227
|
+
* reports charge and never needs waking.
|
|
54818
55228
|
*/
|
|
54819
|
-
|
|
54820
|
-
kind: "answer",
|
|
54821
|
-
value: {
|
|
54822
|
-
awoke: false,
|
|
54823
|
-
durationMs: 0
|
|
54824
|
-
}
|
|
54825
|
-
} },
|
|
55229
|
+
methods: {},
|
|
54826
55230
|
events: {
|
|
54827
55231
|
/**
|
|
54828
55232
|
* Emitted whenever the cached status changes (firmware push OR
|
|
@@ -56925,6 +57329,14 @@ var climateControlCapability = {
|
|
|
56925
57329
|
label: t("Set temperature range", "Imposta l’intervallo di temperatura"),
|
|
56926
57330
|
phrase: t("Keep {device} between {targetLow} and {targetHigh}", "Mantieni {device} tra {targetLow} e {targetHigh}"),
|
|
56927
57331
|
icon: "thermometer",
|
|
57332
|
+
effect: {
|
|
57333
|
+
field: "targetLow",
|
|
57334
|
+
fromArg: "targetLow"
|
|
57335
|
+
},
|
|
57336
|
+
sideEffects: [{
|
|
57337
|
+
field: "targetHigh",
|
|
57338
|
+
fromArg: "targetHigh"
|
|
57339
|
+
}],
|
|
56928
57340
|
openArgs: [{
|
|
56929
57341
|
key: "targetLow",
|
|
56930
57342
|
label: t("Lowest", "Minima"),
|
|
@@ -56983,6 +57395,10 @@ var climateControlCapability = {
|
|
|
56983
57395
|
label: t("Set fan mode", "Imposta la ventilazione"),
|
|
56984
57396
|
phrase: t("Set the fan of {device} to {fanMode}", "Imposta la ventilazione di {device} su {fanMode}"),
|
|
56985
57397
|
icon: "fan",
|
|
57398
|
+
effect: {
|
|
57399
|
+
field: "fanMode",
|
|
57400
|
+
fromArg: "fanMode"
|
|
57401
|
+
},
|
|
56986
57402
|
openArgs: [{
|
|
56987
57403
|
key: "fanMode",
|
|
56988
57404
|
label: t("Fan mode", "Ventilazione"),
|
|
@@ -57005,6 +57421,10 @@ var climateControlCapability = {
|
|
|
57005
57421
|
label: t("Set preset", "Imposta il preset"),
|
|
57006
57422
|
phrase: t("Set {device} to preset {preset}", "Imposta {device} sul preset {preset}"),
|
|
57007
57423
|
icon: "list",
|
|
57424
|
+
effect: {
|
|
57425
|
+
field: "preset",
|
|
57426
|
+
fromArg: "preset"
|
|
57427
|
+
},
|
|
57008
57428
|
openArgs: [{
|
|
57009
57429
|
key: "preset",
|
|
57010
57430
|
label: t("Preset", "Preset"),
|
|
@@ -57592,7 +58012,8 @@ var CompositionProblemSchema = object({
|
|
|
57592
58012
|
"command-source-unknown",
|
|
57593
58013
|
"command-input-unknown",
|
|
57594
58014
|
"command-input-missing",
|
|
57595
|
-
"power-source-is-actuator"
|
|
58015
|
+
"power-source-is-actuator",
|
|
58016
|
+
"link-contribution-removed"
|
|
57596
58017
|
]),
|
|
57597
58018
|
path: string(),
|
|
57598
58019
|
message: string()
|
|
@@ -59019,6 +59440,10 @@ var mediaPlayerCapability = {
|
|
|
59019
59440
|
auth: "protected",
|
|
59020
59441
|
actions: [{
|
|
59021
59442
|
id: "media.play",
|
|
59443
|
+
effect: {
|
|
59444
|
+
field: "state",
|
|
59445
|
+
value: "playing"
|
|
59446
|
+
},
|
|
59022
59447
|
label: t("Play", "Riproduci"),
|
|
59023
59448
|
phrase: t("Play on {device}", "Avvia la riproduzione su {device}"),
|
|
59024
59449
|
icon: "play"
|
|
@@ -59029,6 +59454,10 @@ var mediaPlayerCapability = {
|
|
|
59029
59454
|
auth: "protected",
|
|
59030
59455
|
actions: [{
|
|
59031
59456
|
id: "media.pause",
|
|
59457
|
+
effect: {
|
|
59458
|
+
field: "state",
|
|
59459
|
+
value: "paused"
|
|
59460
|
+
},
|
|
59032
59461
|
label: t("Pause media", "Metti in pausa"),
|
|
59033
59462
|
phrase: t("Pause {device}", "Metti in pausa {device}"),
|
|
59034
59463
|
icon: "pause"
|
|
@@ -59072,6 +59501,10 @@ var mediaPlayerCapability = {
|
|
|
59072
59501
|
auth: "protected",
|
|
59073
59502
|
actions: [{
|
|
59074
59503
|
id: "media.volume",
|
|
59504
|
+
effect: {
|
|
59505
|
+
field: "volumeLevel",
|
|
59506
|
+
fromArg: "volumeLevel"
|
|
59507
|
+
},
|
|
59075
59508
|
label: t("Set volume", "Imposta il volume"),
|
|
59076
59509
|
phrase: t("Set the volume of {device} to {volumeLevel}", "Imposta il volume di {device} al {volumeLevel}"),
|
|
59077
59510
|
icon: "volume-2",
|
|
@@ -59096,12 +59529,20 @@ var mediaPlayerCapability = {
|
|
|
59096
59529
|
auth: "protected",
|
|
59097
59530
|
actions: [{
|
|
59098
59531
|
id: "media.mute",
|
|
59532
|
+
effect: {
|
|
59533
|
+
field: "isMuted",
|
|
59534
|
+
value: true
|
|
59535
|
+
},
|
|
59099
59536
|
label: t("Mute", "Silenzia"),
|
|
59100
59537
|
phrase: t("Mute {device}", "Silenzia {device}"),
|
|
59101
59538
|
icon: "volume-x",
|
|
59102
59539
|
args: { muted: true }
|
|
59103
59540
|
}, {
|
|
59104
59541
|
id: "media.unmute",
|
|
59542
|
+
effect: {
|
|
59543
|
+
field: "isMuted",
|
|
59544
|
+
value: false
|
|
59545
|
+
},
|
|
59105
59546
|
label: t("Unmute", "Riattiva l’audio"),
|
|
59106
59547
|
phrase: t("Unmute {device}", "Riattiva l’audio di {device}"),
|
|
59107
59548
|
icon: "volume-2",
|
|
@@ -59116,12 +59557,20 @@ var mediaPlayerCapability = {
|
|
|
59116
59557
|
auth: "protected",
|
|
59117
59558
|
actions: [{
|
|
59118
59559
|
id: "media.shuffleOn",
|
|
59560
|
+
effect: {
|
|
59561
|
+
field: "shuffle",
|
|
59562
|
+
value: true
|
|
59563
|
+
},
|
|
59119
59564
|
label: t("Shuffle on", "Riproduzione casuale attiva"),
|
|
59120
59565
|
phrase: t("Turn on shuffle on {device}", "Attiva la riproduzione casuale su {device}"),
|
|
59121
59566
|
icon: "shuffle",
|
|
59122
59567
|
args: { shuffle: true }
|
|
59123
59568
|
}, {
|
|
59124
59569
|
id: "media.shuffleOff",
|
|
59570
|
+
effect: {
|
|
59571
|
+
field: "shuffle",
|
|
59572
|
+
value: false
|
|
59573
|
+
},
|
|
59125
59574
|
label: t("Shuffle off", "Riproduzione casuale spenta"),
|
|
59126
59575
|
phrase: t("Turn off shuffle on {device}", "Disattiva la riproduzione casuale su {device}"),
|
|
59127
59576
|
icon: "shuffle",
|
|
@@ -59136,6 +59585,10 @@ var mediaPlayerCapability = {
|
|
|
59136
59585
|
auth: "protected",
|
|
59137
59586
|
actions: [{
|
|
59138
59587
|
id: "media.repeat",
|
|
59588
|
+
effect: {
|
|
59589
|
+
field: "repeat",
|
|
59590
|
+
fromArg: "repeat"
|
|
59591
|
+
},
|
|
59139
59592
|
label: t("Set repeat", "Imposta la ripetizione"),
|
|
59140
59593
|
phrase: t("Set repeat on {device} to {repeat}", "Imposta la ripetizione di {device} su {repeat}"),
|
|
59141
59594
|
icon: "repeat",
|
|
@@ -59170,6 +59623,10 @@ var mediaPlayerCapability = {
|
|
|
59170
59623
|
auth: "protected",
|
|
59171
59624
|
actions: [{
|
|
59172
59625
|
id: "media.source",
|
|
59626
|
+
effect: {
|
|
59627
|
+
field: "source",
|
|
59628
|
+
fromArg: "source"
|
|
59629
|
+
},
|
|
59173
59630
|
label: t("Select source", "Scegli la sorgente"),
|
|
59174
59631
|
phrase: t("Switch {device} to {source}", "Passa {device} alla sorgente {source}"),
|
|
59175
59632
|
icon: "cast",
|
|
@@ -59338,7 +59795,7 @@ var mediaPlayerCapability = {
|
|
|
59338
59795
|
]
|
|
59339
59796
|
}
|
|
59340
59797
|
};
|
|
59341
|
-
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Climate, DeviceType.EventEmitter, DeviceType.Climate, DeviceType.Climate, DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Workload, DeviceType.Camera, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Lock, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Gateway, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.PetFeeder, DeviceType.MediaPlayer, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation;
|
|
59798
|
+
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Climate, DeviceType.EventEmitter, DeviceType.Climate, DeviceType.Climate, DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Workload, DeviceType.Camera, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Lock, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Workload, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Workload, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Workload, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Workload, DeviceType.Gateway, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.PetFeeder, DeviceType.MediaPlayer, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation;
|
|
59342
59799
|
var NUMBER = {
|
|
59343
59800
|
kind: "fixed",
|
|
59344
59801
|
result: ["number"]
|
|
@@ -59830,7 +60287,9 @@ var PowerSourceRefusalReasonSchema = _enum([
|
|
|
59830
60287
|
"switch-call-failed",
|
|
59831
60288
|
"switch-options-unreadable",
|
|
59832
60289
|
"not-settable",
|
|
59833
|
-
"switch-is-actuator"
|
|
60290
|
+
"switch-is-actuator",
|
|
60291
|
+
"link-lost",
|
|
60292
|
+
"link-unknown"
|
|
59834
60293
|
]);
|
|
59835
60294
|
var PowerSourceActionResultSchema = discriminatedUnion("accepted", [object({ accepted: literal(true) }), object({
|
|
59836
60295
|
accepted: literal(false),
|
|
@@ -61854,6 +62313,142 @@ function normaliseIdentifiers(raw, options = {}) {
|
|
|
61854
62313
|
rejected: refused
|
|
61855
62314
|
};
|
|
61856
62315
|
}
|
|
62316
|
+
/**
|
|
62317
|
+
* Cross-integration identity candidates (planning#593, step 2 of D1059's epic).
|
|
62318
|
+
*
|
|
62319
|
+
* Two devices brought by DIFFERENT integrations that share provider-declared
|
|
62320
|
+
* identifiers ({@link DeviceIdentifiers}) are candidates for being the same
|
|
62321
|
+
* physical object. This module holds the answer's shape; the device-manager
|
|
62322
|
+
* keeps the index that finds the pairs and the ONE rule that grades a match
|
|
62323
|
+
* (`classifyIdentityMatch`, `device-identity-index.ts`).
|
|
62324
|
+
*
|
|
62325
|
+
* The rule (operator, planning#590):
|
|
62326
|
+
*
|
|
62327
|
+
* | Matched keys | Confidence |
|
|
62328
|
+
* | ---------------------------------------------- | ----------- |
|
|
62329
|
+
* | two strong KINDS (e.g. `mac` + `serial`) | `auto` |
|
|
62330
|
+
* | `mac` + `ip` | `auto` |
|
|
62331
|
+
* | exactly one strong kind | `proposal` |
|
|
62332
|
+
* | weak keys only (`hostname`, `ip`) | no candidate|
|
|
62333
|
+
*
|
|
62334
|
+
* Strength counts distinct KINDS, not values: two MACs of one device matching
|
|
62335
|
+
* the other's two MACs are still one kind of evidence, so a proposal. In doubt,
|
|
62336
|
+
* no match.
|
|
62337
|
+
*
|
|
62338
|
+
* Read-only: a candidate is NOT a link. Links are step 3.
|
|
62339
|
+
*/
|
|
62340
|
+
var IdentityConfidenceSchema = _enum(["auto", "proposal"]);
|
|
62341
|
+
/** One identifier both devices declared, with the same normalised value. */
|
|
62342
|
+
var IdentityMatchedKeySchema = object({
|
|
62343
|
+
key: DeviceIdentifierKeySchema,
|
|
62344
|
+
value: string()
|
|
62345
|
+
});
|
|
62346
|
+
/** One side of a pair: the device and the integration that brought it. */
|
|
62347
|
+
var IdentityCandidateDeviceSchema = object({
|
|
62348
|
+
deviceId: number$1().int(),
|
|
62349
|
+
addonId: string(),
|
|
62350
|
+
/** The integration instance (`int_NNNN`) that adopted it; `null` when none was stamped. */
|
|
62351
|
+
integrationId: string().nullable()
|
|
62352
|
+
});
|
|
62353
|
+
/** Two devices of different integrations sharing at least one strong identifier. `a.deviceId < b.deviceId`. */
|
|
62354
|
+
var IdentityCandidatePairSchema = object({
|
|
62355
|
+
a: IdentityCandidateDeviceSchema,
|
|
62356
|
+
b: IdentityCandidateDeviceSchema,
|
|
62357
|
+
/** Every identifier the two share, weak ones included, ordered by key then value. */
|
|
62358
|
+
keys: array(IdentityMatchedKeySchema).readonly(),
|
|
62359
|
+
confidence: IdentityConfidenceSchema
|
|
62360
|
+
});
|
|
62361
|
+
/**
|
|
62362
|
+
* The answer of `device-manager.listIdentityCandidates`.
|
|
62363
|
+
*
|
|
62364
|
+
* - `unknown` — the index has not loaded yet: nothing can be said, and it is
|
|
62365
|
+
* NOT an empty list (D315).
|
|
62366
|
+
* - `answered` — `pairs` holds every candidate. `undeclaredDeviceIds` are the
|
|
62367
|
+
* devices with no identifiers on record: whether they match anything is
|
|
62368
|
+
* UNKNOWN, never "no match" (D393). A device absent from both lists declared
|
|
62369
|
+
* identifiers and matched nobody.
|
|
62370
|
+
*/
|
|
62371
|
+
var IdentityCandidatesSchema = discriminatedUnion("status", [object({
|
|
62372
|
+
status: literal("unknown"),
|
|
62373
|
+
reason: string()
|
|
62374
|
+
}), object({
|
|
62375
|
+
status: literal("answered"),
|
|
62376
|
+
pairs: array(IdentityCandidatePairSchema).readonly(),
|
|
62377
|
+
undeclaredDeviceIds: array(number$1().int()).readonly()
|
|
62378
|
+
})]);
|
|
62379
|
+
var IdentityLinkKindSchema = _enum(["same-device", "poe-power"]);
|
|
62380
|
+
/**
|
|
62381
|
+
* - `proposed` — one strong key matched: waits for the operator;
|
|
62382
|
+
* - `linked` — confirmed by the operator, or auto-linked on strong evidence;
|
|
62383
|
+
* - `dismissed` — the operator said no (or unlinked): sticky, never re-proposed.
|
|
62384
|
+
*/
|
|
62385
|
+
var IdentityLinkStateSchema = _enum([
|
|
62386
|
+
"proposed",
|
|
62387
|
+
"linked",
|
|
62388
|
+
"dismissed"
|
|
62389
|
+
]);
|
|
62390
|
+
/** Who decided the current state: the matcher (`auto`) or the operator. */
|
|
62391
|
+
var IdentityLinkOriginSchema = _enum(["auto", "operator"]);
|
|
62392
|
+
/** One side: the device ref that survives re-registration, plus its current numeric id. */
|
|
62393
|
+
var IdentityLinkSideSchema = object({
|
|
62394
|
+
addonId: string().min(1),
|
|
62395
|
+
stableId: string().min(1),
|
|
62396
|
+
deviceId: number$1().int()
|
|
62397
|
+
});
|
|
62398
|
+
var IdentityLinkSchema = object({
|
|
62399
|
+
kind: IdentityLinkKindSchema,
|
|
62400
|
+
a: IdentityLinkSideSchema,
|
|
62401
|
+
b: IdentityLinkSideSchema,
|
|
62402
|
+
state: IdentityLinkStateSchema,
|
|
62403
|
+
origin: IdentityLinkOriginSchema,
|
|
62404
|
+
/** The identifiers that matched when the link was last evaluated, ordered by key then value. */
|
|
62405
|
+
evidence: array(IdentityMatchedKeySchema).readonly(),
|
|
62406
|
+
/** An operator-confirmed link whose evidence no longer matches: kept, flagged. */
|
|
62407
|
+
evidenceGone: literal(true).optional(),
|
|
62408
|
+
createdAt: number$1().int().nonnegative(),
|
|
62409
|
+
decidedAt: number$1().int().nonnegative().optional()
|
|
62410
|
+
}).extend({ id: string().min(1) });
|
|
62411
|
+
DeviceRole.PoePort;
|
|
62412
|
+
/**
|
|
62413
|
+
* The answer of `device-manager.listIdentityLinks`. `not-loaded` until the
|
|
62414
|
+
* links have been read — never an empty list (D315).
|
|
62415
|
+
*/
|
|
62416
|
+
var IdentityLinksReadSchema = discriminatedUnion("status", [object({
|
|
62417
|
+
status: literal("not-loaded"),
|
|
62418
|
+
reason: string()
|
|
62419
|
+
}), object({
|
|
62420
|
+
status: literal("answered"),
|
|
62421
|
+
links: array(IdentityLinkSchema).readonly()
|
|
62422
|
+
})]);
|
|
62423
|
+
/** Why an operator decision on a link was refused. */
|
|
62424
|
+
var IdentityLinkDecisionRefusalSchema = _enum([
|
|
62425
|
+
"not-loaded",
|
|
62426
|
+
"unknown-link",
|
|
62427
|
+
"wrong-state"
|
|
62428
|
+
]);
|
|
62429
|
+
/** The answer of `confirmIdentityLink` / `dismissIdentityLink` / `unlinkIdentity`. */
|
|
62430
|
+
var IdentityLinkDecisionSchema = discriminatedUnion("ok", [object({
|
|
62431
|
+
ok: literal(true),
|
|
62432
|
+
link: IdentityLinkSchema
|
|
62433
|
+
}), object({
|
|
62434
|
+
ok: literal(false),
|
|
62435
|
+
reason: IdentityLinkDecisionRefusalSchema,
|
|
62436
|
+
message: string()
|
|
62437
|
+
})]);
|
|
62438
|
+
/** Why a link was lost. */
|
|
62439
|
+
var IdentityLinkLostReasonSchema = _enum([
|
|
62440
|
+
"evidence-gone",
|
|
62441
|
+
"device-removed",
|
|
62442
|
+
"operator-unlinked"
|
|
62443
|
+
]);
|
|
62444
|
+
object({
|
|
62445
|
+
linkId: string(),
|
|
62446
|
+
kind: IdentityLinkKindSchema,
|
|
62447
|
+
aDeviceId: number$1().int(),
|
|
62448
|
+
bDeviceId: number$1().int(),
|
|
62449
|
+
origin: IdentityLinkOriginSchema,
|
|
62450
|
+
reason: IdentityLinkLostReasonSchema.optional()
|
|
62451
|
+
});
|
|
61857
62452
|
var DeviceSearchRequiresSchema = object({
|
|
61858
62453
|
/** Capability names the field wants a value of. Absent when the field wants actions only. */
|
|
61859
62454
|
caps: array(string()).readonly().optional(),
|
|
@@ -62420,6 +63015,11 @@ var DeviceInfoSchema = object({
|
|
|
62420
63015
|
* the owning provider via `setIdentifiers`; read-only for the operator.
|
|
62421
63016
|
* Absent ⇒ the provider declared none. */
|
|
62422
63017
|
identifiers: DeviceIdentifiersSchema.optional(),
|
|
63018
|
+
/** The identity of the device at the far end of this device's physical
|
|
63019
|
+
* link (D1059 amended by D1063) — a PoE port's wired client. Written only by
|
|
63020
|
+
* the owning provider via `setAttachedIdentifiers`; it never makes the two
|
|
63021
|
+
* devices the same device. Absent ⇒ none declared. */
|
|
63022
|
+
attachedIdentifiers: DeviceIdentifiersSchema.optional(),
|
|
62423
63023
|
/** Optional upstream-system identity + rendering envelope. See
|
|
62424
63024
|
* `SourceInfo` in `packages/types/src/device/source-info.ts`. */
|
|
62425
63025
|
sourceInfo: SourceInfoSchema.optional(),
|
|
@@ -62573,6 +63173,8 @@ var DeviceMetaSchema = object({
|
|
|
62573
63173
|
metadata: record$1(string(), unknown()).nullable().optional(),
|
|
62574
63174
|
/** Provider-declared identifiers (D1059). See `DeviceMeta.identifiers`. */
|
|
62575
63175
|
identifiers: DeviceIdentifiersSchema.optional(),
|
|
63176
|
+
/** The far end of the device's physical link (D1063). See `DeviceMeta.attachedIdentifiers`. */
|
|
63177
|
+
attachedIdentifiers: DeviceIdentifiersSchema.optional(),
|
|
62576
63178
|
/** Optional upstream-system identity + rendering envelope. See
|
|
62577
63179
|
* `SourceInfo`. Present when the device has been persisted with a
|
|
62578
63180
|
* non-synthetic source identifier (HA entities, vendor MAC, …);
|
|
@@ -62894,6 +63496,29 @@ method(object({
|
|
|
62894
63496
|
}), _void(), {
|
|
62895
63497
|
kind: "mutation",
|
|
62896
63498
|
auth: "admin"
|
|
63499
|
+
}), method(object({}), IdentityCandidatesSchema, {
|
|
63500
|
+
kind: "query",
|
|
63501
|
+
auth: "admin"
|
|
63502
|
+
}), method(object({
|
|
63503
|
+
deviceId: number$1(),
|
|
63504
|
+
identifiers: DeviceIdentifiersSchema.nullable(),
|
|
63505
|
+
/** Kinds the provider tried to read and could not: their stored value is kept. */
|
|
63506
|
+
unread: array(DeviceIdentifierKeySchema).optional()
|
|
63507
|
+
}), _void(), {
|
|
63508
|
+
kind: "mutation",
|
|
63509
|
+
auth: "admin"
|
|
63510
|
+
}), method(object({ deviceId: number$1().int().optional() }), IdentityLinksReadSchema, {
|
|
63511
|
+
kind: "query",
|
|
63512
|
+
auth: "admin"
|
|
63513
|
+
}), method(object({ linkId: string().min(1) }), IdentityLinkDecisionSchema, {
|
|
63514
|
+
kind: "mutation",
|
|
63515
|
+
auth: "admin"
|
|
63516
|
+
}), method(object({ linkId: string().min(1) }), IdentityLinkDecisionSchema, {
|
|
63517
|
+
kind: "mutation",
|
|
63518
|
+
auth: "admin"
|
|
63519
|
+
}), method(object({ linkId: string().min(1) }), IdentityLinkDecisionSchema, {
|
|
63520
|
+
kind: "mutation",
|
|
63521
|
+
auth: "admin"
|
|
62897
63522
|
}), method(_void(), array(string())), method(object({ name: string() }), _void(), {
|
|
62898
63523
|
kind: "mutation",
|
|
62899
63524
|
auth: "admin"
|
|
@@ -63844,8 +64469,12 @@ var ClaimsListingSchema = discriminatedUnion("state", [object({
|
|
|
63844
64469
|
})]);
|
|
63845
64470
|
method(object({ deviceId: number$1() }), record$1(string(), record$1(string(), unknown()))), method(object({
|
|
63846
64471
|
deviceId: number$1(),
|
|
63847
|
-
capName: string()
|
|
63848
|
-
|
|
64472
|
+
capName: string(),
|
|
64473
|
+
/** The slice the device CONFIRMED, without a held command (D1061) — history and automations. */
|
|
64474
|
+
confirmed: boolean().optional()
|
|
64475
|
+
}), record$1(string(), unknown()).nullable()), method(object({
|
|
64476
|
+
/** The slices the devices CONFIRMED, without held commands (D1061). */
|
|
64477
|
+
confirmed: boolean().optional() }), record$1(string(), record$1(string(), record$1(string(), unknown())))), method(object({
|
|
63849
64478
|
deviceId: number$1(),
|
|
63850
64479
|
capName: string(),
|
|
63851
64480
|
slice: record$1(string(), unknown())
|
|
@@ -63883,6 +64512,88 @@ method(object({ deviceId: number$1() }), record$1(string(), record$1(string(), u
|
|
|
63883
64512
|
slice: record$1(string(), unknown())
|
|
63884
64513
|
}));
|
|
63885
64514
|
/**
|
|
64515
|
+
* Server-driven device state refresh (D1062): the core decides WHEN a device is
|
|
64516
|
+
* re-read, the integration only knows HOW.
|
|
64517
|
+
*
|
|
64518
|
+
* A provider states its policy where it registers the device's
|
|
64519
|
+
* `device-state-refresh` cap (`ctx.registerNativeCap(cap, provider, {
|
|
64520
|
+
* stateRefresh })`). It reaches the hub by the road the command-hold options
|
|
64521
|
+
* take (D1061): written directly in-process, carried on a forked child's cap
|
|
64522
|
+
* descriptors otherwise. Plain data, wire-safe.
|
|
64523
|
+
*/
|
|
64524
|
+
/** Why the core asks for a refresh. */
|
|
64525
|
+
var StateRefreshReasonSchema = _enum([
|
|
64526
|
+
"schedule",
|
|
64527
|
+
"command",
|
|
64528
|
+
"burst"
|
|
64529
|
+
]);
|
|
64530
|
+
/**
|
|
64531
|
+
* What arrives without asking: `none` (everything is read), `partial` (some
|
|
64532
|
+
* fields arrive by push, the rest is read on the schedule), `full` (everything
|
|
64533
|
+
* arrives by push — never read on a schedule).
|
|
64534
|
+
*/
|
|
64535
|
+
var StateRefreshPushSchema = _enum([
|
|
64536
|
+
"none",
|
|
64537
|
+
"partial",
|
|
64538
|
+
"full"
|
|
64539
|
+
]);
|
|
64540
|
+
object({
|
|
64541
|
+
/**
|
|
64542
|
+
* The integration instance the device belongs to. Devices of one instance
|
|
64543
|
+
* share one schedule group: a batching provider is asked once for all of
|
|
64544
|
+
* them, and the heartbeat is judged across them.
|
|
64545
|
+
*/
|
|
64546
|
+
integrationId: string().min(1),
|
|
64547
|
+
/** The fastest interval the integration can afford for its devices. The core polls at it by default. */
|
|
64548
|
+
minIntervalMs: number$1().int().min(1e3),
|
|
64549
|
+
/**
|
|
64550
|
+
* The operator's per-integration setting, when there is one. It can only SLOW
|
|
64551
|
+
* the cadence: the core polls at `max(minIntervalMs, intervalMs)`.
|
|
64552
|
+
*/
|
|
64553
|
+
intervalMs: number$1().int().positive().optional(),
|
|
64554
|
+
/** One `refresh` call can read every device of the integration at once. */
|
|
64555
|
+
batch: boolean(),
|
|
64556
|
+
push: StateRefreshPushSchema,
|
|
64557
|
+
/** Longest silence a push integration may keep before the core re-reads it and asks it to resubscribe. */
|
|
64558
|
+
heartbeatMs: number$1().int().positive().optional(),
|
|
64559
|
+
/**
|
|
64560
|
+
* Bumped by the provider each time its push subscription reconnected on its
|
|
64561
|
+
* own. A change makes the core re-read every device of the integration
|
|
64562
|
+
* (pushes lost while it was down; events may be dropped, D8).
|
|
64563
|
+
*/
|
|
64564
|
+
connectionEpoch: number$1().int().nonnegative().optional()
|
|
64565
|
+
});
|
|
64566
|
+
/**
|
|
64567
|
+
* device-state-refresh — the HOW of a device's state refresh, called by the
|
|
64568
|
+
* core, which owns the WHEN (D1062).
|
|
64569
|
+
*
|
|
64570
|
+
* The provider registers it per device with its policy
|
|
64571
|
+
* (`registerNativeCap(cap, provider, { stateRefresh })`). The hub's scheduler
|
|
64572
|
+
* calls `refresh` on the schedule, after a command and in the burst that
|
|
64573
|
+
* follows it, and `resubscribe` when a push integration fell silent. The
|
|
64574
|
+
* provider re-reads and writes the slices it already writes; nothing is
|
|
64575
|
+
* returned but completion.
|
|
64576
|
+
*/
|
|
64577
|
+
var DeviceStateRefreshInputSchema = object({
|
|
64578
|
+
/** The device the call is routed by (one of `deviceIds`). */
|
|
64579
|
+
deviceId: number$1().int().nonnegative(),
|
|
64580
|
+
/** Every device to re-read: one, or the integration's whole set when the provider batches. */
|
|
64581
|
+
deviceIds: array(number$1().int().nonnegative()).min(1),
|
|
64582
|
+
reason: StateRefreshReasonSchema
|
|
64583
|
+
});
|
|
64584
|
+
var DeviceStateResubscribeInputSchema = object({ deviceId: number$1().int().nonnegative() });
|
|
64585
|
+
var DeviceStateRefreshResultSchema = object({ ok: literal(true) });
|
|
64586
|
+
var NOT_OPERATOR_FACING = "the core schedules state refreshes itself; an operator never asks for one";
|
|
64587
|
+
method(DeviceStateRefreshInputSchema, DeviceStateRefreshResultSchema, {
|
|
64588
|
+
kind: "mutation",
|
|
64589
|
+
auth: "admin",
|
|
64590
|
+
notOperatorFacing: NOT_OPERATOR_FACING
|
|
64591
|
+
}), method(DeviceStateResubscribeInputSchema, DeviceStateRefreshResultSchema, {
|
|
64592
|
+
kind: "mutation",
|
|
64593
|
+
auth: "admin",
|
|
64594
|
+
notOperatorFacing: NOT_OPERATOR_FACING
|
|
64595
|
+
});
|
|
64596
|
+
/**
|
|
63886
64597
|
* Generic device-level status snapshot. Auto-registered by `BaseDevice`
|
|
63887
64598
|
* for every device, regardless of provider — the kernel needs a uniform
|
|
63888
64599
|
* cap-keyed slice for the basic device flags every consumer expects to
|
|
@@ -66292,7 +67003,15 @@ var fanControlCapability = {
|
|
|
66292
67003
|
field: "speed",
|
|
66293
67004
|
value: 100
|
|
66294
67005
|
},
|
|
66295
|
-
args: { speed: 100 }
|
|
67006
|
+
args: { speed: 100 },
|
|
67007
|
+
sideEffects: [{
|
|
67008
|
+
field: "preset",
|
|
67009
|
+
value: "",
|
|
67010
|
+
when: {
|
|
67011
|
+
field: "preset",
|
|
67012
|
+
notIn: [""]
|
|
67013
|
+
}
|
|
67014
|
+
}]
|
|
66296
67015
|
},
|
|
66297
67016
|
{
|
|
66298
67017
|
id: "fan.speed",
|
|
@@ -66303,6 +67022,14 @@ var fanControlCapability = {
|
|
|
66303
67022
|
field: "speed",
|
|
66304
67023
|
fromArg: "speed"
|
|
66305
67024
|
},
|
|
67025
|
+
sideEffects: [{
|
|
67026
|
+
field: "preset",
|
|
67027
|
+
value: "",
|
|
67028
|
+
when: {
|
|
67029
|
+
field: "preset",
|
|
67030
|
+
notIn: [""]
|
|
67031
|
+
}
|
|
67032
|
+
}],
|
|
66306
67033
|
openArgs: [{
|
|
66307
67034
|
key: "speed",
|
|
66308
67035
|
label: t("Speed", "Velocità"),
|
|
@@ -66328,6 +67055,10 @@ var fanControlCapability = {
|
|
|
66328
67055
|
label: t("Set preset", "Imposta il preset"),
|
|
66329
67056
|
phrase: t("Set {device} to preset {preset}", "Imposta {device} sul preset {preset}"),
|
|
66330
67057
|
icon: "list",
|
|
67058
|
+
effect: {
|
|
67059
|
+
field: "preset",
|
|
67060
|
+
fromArg: "preset"
|
|
67061
|
+
},
|
|
66331
67062
|
openArgs: [{
|
|
66332
67063
|
key: "preset",
|
|
66333
67064
|
label: t("Preset", "Preset"),
|
|
@@ -68058,7 +68789,7 @@ var HeroSceneSchema = object({
|
|
|
68058
68789
|
level: number$1().min(0).max(1).nullable()
|
|
68059
68790
|
});
|
|
68060
68791
|
DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Workload, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
|
|
68061
|
-
DeviceRole.Siren, DeviceRole.Floodlight, DeviceRole.Spotlight, DeviceRole.PirSensor, DeviceRole.Chime, DeviceRole.Autotrack, DeviceRole.Nightvision, DeviceRole.PrivacyMask, DeviceRole.Doorbell, DeviceRole.CoverBlind, DeviceRole.CoverShutter, DeviceRole.CoverAwning, DeviceRole.CoverCurtain, DeviceRole.CoverGarage, DeviceRole.CoverGate, DeviceRole.CoverDoor, DeviceRole.CoverWindow, DeviceRole.BinaryHelper, DeviceRole.Outlet, DeviceRole.SwitchHeater, DeviceRole.SwitchFan, DeviceRole.SwitchLight, DeviceRole.PoePort, DeviceRole.ClimateAc, DeviceRole.ClimateThermostat, DeviceRole.ClimateFloor, DeviceRole.ClimateRadiator, DeviceRole.ClimateHeater, DeviceRole.ClimateHeatPumpCircuit, DeviceRole.MotionSensor, DeviceRole.ContactSensor, DeviceRole.LeakSensor, DeviceRole.SmokeSensor, DeviceRole.COSensor, DeviceRole.GasSensor, DeviceRole.TamperSensor, DeviceRole.VibrationSensor, DeviceRole.ConnectivitySensor, DeviceRole.SoundSensor, DeviceRole.BinarySensor, DeviceRole.TemperatureSensor, DeviceRole.HumiditySensor, DeviceRole.AmbientLightSensor, DeviceRole.PressureSensor, DeviceRole.WindSensor, DeviceRole.RainSensor, DeviceRole.UvSensor, DeviceRole.SolarRadiationSensor, DeviceRole.SoilMoistureSensor, DeviceRole.PowerSensor, DeviceRole.EnergySensor, DeviceRole.VoltageSensor, DeviceRole.CurrentSensor, DeviceRole.AirQualitySensor, DeviceRole.BatterySensor, DeviceRole.NumericSensor, DeviceRole.EnumSensor, DeviceRole.DateTimeSensor, DeviceRole.GenericSensor, DeviceRole.NumericControl, DeviceRole.SelectControl, DeviceRole.TextControl, DeviceRole.DateTimeControl, DeviceRole.MobilePushNotifier, DeviceRole.MessagingNotifier, DeviceRole.EmailNotifier, DeviceRole.GenericNotifier, DeviceRole.IrTransmitter, DeviceRole.Vm, DeviceRole.AppContainer, DeviceRole.Lxc, DeviceRole.App, DeviceRole.Host;
|
|
68792
|
+
DeviceRole.Siren, DeviceRole.Floodlight, DeviceRole.Spotlight, DeviceRole.PirSensor, DeviceRole.Chime, DeviceRole.Autotrack, DeviceRole.Nightvision, DeviceRole.PrivacyMask, DeviceRole.Doorbell, DeviceRole.CoverBlind, DeviceRole.CoverShutter, DeviceRole.CoverAwning, DeviceRole.CoverCurtain, DeviceRole.CoverGarage, DeviceRole.CoverGate, DeviceRole.CoverDoor, DeviceRole.CoverWindow, DeviceRole.BinaryHelper, DeviceRole.Outlet, DeviceRole.SwitchHeater, DeviceRole.SwitchFan, DeviceRole.SwitchLight, DeviceRole.PoePort, DeviceRole.ClimateAc, DeviceRole.ClimateThermostat, DeviceRole.ClimateFloor, DeviceRole.ClimateRadiator, DeviceRole.ClimateHeater, DeviceRole.ClimateHeatPumpCircuit, DeviceRole.MotionSensor, DeviceRole.ContactSensor, DeviceRole.LeakSensor, DeviceRole.SmokeSensor, DeviceRole.COSensor, DeviceRole.GasSensor, DeviceRole.TamperSensor, DeviceRole.VibrationSensor, DeviceRole.ConnectivitySensor, DeviceRole.SoundSensor, DeviceRole.BinarySensor, DeviceRole.TemperatureSensor, DeviceRole.HumiditySensor, DeviceRole.AmbientLightSensor, DeviceRole.PressureSensor, DeviceRole.WindSensor, DeviceRole.RainSensor, DeviceRole.UvSensor, DeviceRole.SolarRadiationSensor, DeviceRole.SoilMoistureSensor, DeviceRole.PowerSensor, DeviceRole.EnergySensor, DeviceRole.VoltageSensor, DeviceRole.CurrentSensor, DeviceRole.AirQualitySensor, DeviceRole.BatterySensor, DeviceRole.NumericSensor, DeviceRole.EnumSensor, DeviceRole.DateTimeSensor, DeviceRole.GenericSensor, DeviceRole.NumericControl, DeviceRole.SelectControl, DeviceRole.TextControl, DeviceRole.DateTimeControl, DeviceRole.MobilePushNotifier, DeviceRole.MessagingNotifier, DeviceRole.EmailNotifier, DeviceRole.GenericNotifier, DeviceRole.IrTransmitter, DeviceRole.Vm, DeviceRole.AppContainer, DeviceRole.Lxc, DeviceRole.App, DeviceRole.Host, DeviceRole.Ups;
|
|
68062
68793
|
var HeroRowIdSchema = _enum([
|
|
68063
68794
|
"progress",
|
|
68064
68795
|
"run-for",
|
|
@@ -69330,6 +70061,16 @@ var IntegrationInstanceStatusSchema = object({
|
|
|
69330
70061
|
/** A short human word for the state ("Signed in", "Token expired"); shown instead of `state`. */
|
|
69331
70062
|
label: string().optional()
|
|
69332
70063
|
});
|
|
70064
|
+
/**
|
|
70065
|
+
* What "Add device" inside ONE instance offers, decided per instance by its provider. `scan`: the
|
|
70066
|
+
* LAN scan finds devices this instance holds; `children`: only the instance's own children, via
|
|
70067
|
+
* adoption (a scan would offer other hosts, which are new integrations); `none`: manual add only.
|
|
70068
|
+
*/
|
|
70069
|
+
var IntegrationInstanceAddDeviceSchema = _enum([
|
|
70070
|
+
"scan",
|
|
70071
|
+
"children",
|
|
70072
|
+
"none"
|
|
70073
|
+
]);
|
|
69333
70074
|
var IntegrationInstanceSchema = object({
|
|
69334
70075
|
id: IntegrationInstanceIdSchema,
|
|
69335
70076
|
name: string(),
|
|
@@ -69347,7 +70088,9 @@ var IntegrationInstanceSchema = object({
|
|
|
69347
70088
|
formValues: record$1(string(), unknown()),
|
|
69348
70089
|
status: IntegrationInstanceStatusSchema.optional(),
|
|
69349
70090
|
/** Epoch ms of the last probe of the remote that produced `status`; absent when never checked. */
|
|
69350
|
-
lastCheckedAt: number$1().optional()
|
|
70091
|
+
lastCheckedAt: number$1().optional(),
|
|
70092
|
+
/** What "Add device" inside this instance offers; see {@link IntegrationInstanceAddDeviceSchema}. Absent means the caller derives it from `describe().discovery` with `defaultAddDeviceMode` (lan → scan, account → children, else none). */
|
|
70093
|
+
addDevice: IntegrationInstanceAddDeviceSchema.optional()
|
|
69351
70094
|
});
|
|
69352
70095
|
var IntegrationInstancePatchSchema = object({
|
|
69353
70096
|
id: IntegrationInstanceIdSchema,
|
|
@@ -71432,6 +72175,13 @@ var LockControlStatusSchema = object({
|
|
|
71432
72175
|
"jammed",
|
|
71433
72176
|
"door-open"
|
|
71434
72177
|
]),
|
|
72178
|
+
/**
|
|
72179
|
+
* Whether lock / unlock need a PIN `code` (#459, replaces the
|
|
72180
|
+
* `lock-pin-required` device feature). `null` = the provider cannot tell
|
|
72181
|
+
* (D393) — never `false`. `.optional()` so a restored slice written before
|
|
72182
|
+
* the field still parses; readers treat absent exactly like `null`.
|
|
72183
|
+
*/
|
|
72184
|
+
codeRequired: boolean().nullable().optional(),
|
|
71435
72185
|
/** Ms epoch when the slice was last updated. */
|
|
71436
72186
|
lastChangedAt: number$1()
|
|
71437
72187
|
});
|
|
@@ -71491,6 +72241,14 @@ var lockControlCapability = {
|
|
|
71491
72241
|
field: "state",
|
|
71492
72242
|
value: "locked"
|
|
71493
72243
|
},
|
|
72244
|
+
hold: { effects: [{
|
|
72245
|
+
field: "state",
|
|
72246
|
+
value: "locking",
|
|
72247
|
+
when: {
|
|
72248
|
+
field: "state",
|
|
72249
|
+
notIn: ["locked"]
|
|
72250
|
+
}
|
|
72251
|
+
}] },
|
|
71494
72252
|
openArgs: [{
|
|
71495
72253
|
key: "code",
|
|
71496
72254
|
label: t("PIN code", "Codice PIN"),
|
|
@@ -71524,6 +72282,14 @@ var lockControlCapability = {
|
|
|
71524
72282
|
field: "state",
|
|
71525
72283
|
value: "unlocked"
|
|
71526
72284
|
},
|
|
72285
|
+
hold: { effects: [{
|
|
72286
|
+
field: "state",
|
|
72287
|
+
value: "unlocking",
|
|
72288
|
+
when: {
|
|
72289
|
+
field: "state",
|
|
72290
|
+
notIn: ["unlocked"]
|
|
72291
|
+
}
|
|
72292
|
+
}] },
|
|
71527
72293
|
openArgs: [{
|
|
71528
72294
|
key: "code",
|
|
71529
72295
|
label: t("PIN code", "Codice PIN"),
|
|
@@ -71889,6 +72655,90 @@ var LoginMethodContributionSchema = discriminatedUnion("kind", [
|
|
|
71889
72655
|
]);
|
|
71890
72656
|
method(_void(), array(LoginMethodContributionSchema).readonly()), NOT_A_DEVICE.IDENTITY;
|
|
71891
72657
|
/**
|
|
72658
|
+
* low-power-sleep — a device that goes into low-power sleep and must be WOKEN
|
|
72659
|
+
* before it streams (#459, Q2). A battery camera (Reolink Argus, a robot's
|
|
72660
|
+
* on-board camera) is one; a battery SENSOR is not: it reports charge on the
|
|
72661
|
+
* `battery` cap and never sleeps. The two meanings used to share
|
|
72662
|
+
* `DeviceFeature.BatteryOperated`; this cap is the one that answers "sleeps",
|
|
72663
|
+
* and `DeviceFeature.Sleeps` is derived from it being bound with
|
|
72664
|
+
* `wakeUp` implemented.
|
|
72665
|
+
*
|
|
72666
|
+
* The state is the sleep inputs (`deriveBatteryPresence`): whether the device
|
|
72667
|
+
* is asleep, and the last time it PROVED it was reachable. Read from this slice
|
|
72668
|
+
* by the stream broker (`readBatterySleepFacts`), the recorder
|
|
72669
|
+
* (`recordingWakeDeps`) and the snapshot builtin. The broker's per-device
|
|
72670
|
+
* mirror is still also fed by `BatteryOnStatusChanged` events.
|
|
72671
|
+
*/
|
|
72672
|
+
var LowPowerSleepStatusSchema = object({
|
|
72673
|
+
/**
|
|
72674
|
+
* True while the firmware is in low-power mode. A provider MUST avoid polling
|
|
72675
|
+
* during sleep — a read wakes the device and drains charge.
|
|
72676
|
+
*/
|
|
72677
|
+
sleeping: boolean().meta({ label: "Sleeping" }),
|
|
72678
|
+
/**
|
|
72679
|
+
* Ms epoch of the last time the device proved it was reachable, from
|
|
72680
|
+
* PASSIVE signals only (a completed round-trip, an observed wake, a push).
|
|
72681
|
+
* Absent = never since this slice was born. The only input that separates
|
|
72682
|
+
* "asleep" from "gone".
|
|
72683
|
+
*/
|
|
72684
|
+
lastContactAt: number$1().optional(),
|
|
72685
|
+
/** Ms epoch of the last observation. */
|
|
72686
|
+
lastUpdated: number$1().meta(readingMeta("none"))
|
|
72687
|
+
});
|
|
72688
|
+
var lowPowerSleepCapability = {
|
|
72689
|
+
name: "low-power-sleep",
|
|
72690
|
+
scope: "device",
|
|
72691
|
+
deviceNative: true,
|
|
72692
|
+
mode: "singleton",
|
|
72693
|
+
deviceTypes: [DeviceType.Camera],
|
|
72694
|
+
methods: {
|
|
72695
|
+
/**
|
|
72696
|
+
* Explicitly wake the device from low-power sleep ahead of a streaming
|
|
72697
|
+
* session start. Consumers that initiate a stream against a sleeping
|
|
72698
|
+
* camera (wake-on-play, the recorder, HomeKit, Alexa, snapshot wrappers)
|
|
72699
|
+
* call this with a short timeout before establishing the media pipeline —
|
|
72700
|
+
* the broker's own passive wake-on-dial works but adds 5–7 seconds to
|
|
72701
|
+
* first-frame. Pre-waking compresses that gap.
|
|
72702
|
+
*
|
|
72703
|
+
* Returns `awoke: true` when the firmware acknowledged the wake before
|
|
72704
|
+
* `timeoutMs`, `awoke: false` when it timed out; the caller should still
|
|
72705
|
+
* attempt the stream — the passive broker wake remains as fallback.
|
|
72706
|
+
*/
|
|
72707
|
+
wakeUp: method(object({
|
|
72708
|
+
deviceId: number$1(),
|
|
72709
|
+
/** Bound on the wait. Sensible range 3000–10000ms. */
|
|
72710
|
+
timeoutMs: number$1().int().min(500).max(3e4).default(8e3)
|
|
72711
|
+
}), object({
|
|
72712
|
+
awoke: boolean(),
|
|
72713
|
+
durationMs: number$1()
|
|
72714
|
+
}), {
|
|
72715
|
+
kind: "mutation",
|
|
72716
|
+
notOperatorFacing: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage"
|
|
72717
|
+
}) },
|
|
72718
|
+
status: {
|
|
72719
|
+
schema: LowPowerSleepStatusSchema,
|
|
72720
|
+
kind: "push",
|
|
72721
|
+
empty: {
|
|
72722
|
+
sleeping: false,
|
|
72723
|
+
lastUpdated: 0
|
|
72724
|
+
}
|
|
72725
|
+
},
|
|
72726
|
+
runtimeState: LowPowerSleepStatusSchema,
|
|
72727
|
+
/**
|
|
72728
|
+
* Runtime-state durability: **restored** — a sleeping camera may not report
|
|
72729
|
+
* for hours; the restored sleep inputs are the only thing the sleep gate and
|
|
72730
|
+
* the presence derivation have (the same argument as `battery`).
|
|
72731
|
+
*/
|
|
72732
|
+
durability: "restored",
|
|
72733
|
+
/** History (D850): none — battery never recorded a sleep series either. */
|
|
72734
|
+
history: "none",
|
|
72735
|
+
volatileStateFields: ["lastUpdated"],
|
|
72736
|
+
vocabulary: {
|
|
72737
|
+
noun: t("Low-power sleep", "Sospensione a basso consumo"),
|
|
72738
|
+
order: 5245
|
|
72739
|
+
}
|
|
72740
|
+
};
|
|
72741
|
+
/**
|
|
71892
72742
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
71893
72743
|
*
|
|
71894
72744
|
* Different shape from `network-access` (public tunnels):
|
|
@@ -75829,6 +76679,16 @@ DeviceType.Camera, method(object({ deviceId: number$1() }), array(TrackSchema).r
|
|
|
75829
76679
|
timestamp: number$1()
|
|
75830
76680
|
}), EventCategory.PipelineAnalyticsDetectionEvent, EventCategory.PipelineAnalyticsPackageDelivered, EventCategory.PipelineAnalyticsPackagePickedUp;
|
|
75831
76681
|
/**
|
|
76682
|
+
* A rectangle as a fraction of a frame, `[0, 1]` on both axes — the wire shape
|
|
76683
|
+
* of `NormalizedRect` (which is derived from it).
|
|
76684
|
+
*/
|
|
76685
|
+
var NormalizedRectSchema = object({
|
|
76686
|
+
x: number$1(),
|
|
76687
|
+
y: number$1(),
|
|
76688
|
+
w: number$1(),
|
|
76689
|
+
h: number$1()
|
|
76690
|
+
});
|
|
76691
|
+
/**
|
|
75832
76692
|
* A root model's boxes standing in for one crop-kind step's own inference
|
|
75833
76693
|
* (D730) — see `runPipeline.suppliedRoot`.
|
|
75834
76694
|
*/
|
|
@@ -76221,7 +77081,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
76221
77081
|
* reader) run on them through their own crop policy. Boxes are in the
|
|
76222
77082
|
* PIXELS of the image this call carries. Absent ⇒ the root step runs.
|
|
76223
77083
|
*/
|
|
76224
|
-
suppliedRoot: SuppliedRootOutputSchema.optional()
|
|
77084
|
+
suppliedRoot: SuppliedRootOutputSchema.optional(),
|
|
77085
|
+
/**
|
|
77086
|
+
* The motion analyzer's merged subjects (D394) for this camera, fresh,
|
|
77087
|
+
* normalised to the frame (0..1). Feeds the motion-guided root crop
|
|
77088
|
+
* (D1060): the executor picks per frame whether the object-detection
|
|
77089
|
+
* root runs on the full frame or on a crop around them. Honoured only
|
|
77090
|
+
* on the live `frame` plane with a `frameRef`. Absent or empty ⇒ no
|
|
77091
|
+
* motion known ⇒ full frame.
|
|
77092
|
+
*/
|
|
77093
|
+
motionRegions: array(NormalizedRectSchema).optional()
|
|
76225
77094
|
}), PipelineRunResultBridge, { kind: "mutation" }), method(object({
|
|
76226
77095
|
steps: array(PipelineStepInputSchema).min(1),
|
|
76227
77096
|
frames: array(FrameInputSchema).min(1).max(255),
|
|
@@ -77313,7 +78182,15 @@ var RunnerInferenceDeviceSchema = object({
|
|
|
77313
78182
|
* Absent field ⇒ an orchestrator that predates D650: the jumped step keeps
|
|
77314
78183
|
* the elected device's provisioning, as before.
|
|
77315
78184
|
*/
|
|
77316
|
-
steps: record$1(string(), RunnerJumpStepProvisioningSchema).optional()
|
|
78185
|
+
steps: record$1(string(), RunnerJumpStepProvisioningSchema).optional(),
|
|
78186
|
+
/**
|
|
78187
|
+
* Steps switched OFF on this device (D1065, `inferenceDevices[key].steps[s]
|
|
78188
|
+
* .enabled === false`). The runner never runs a subtree containing one of
|
|
78189
|
+
* them here: it auto-jumps it to an allowed device, and when none can take
|
|
78190
|
+
* it the subtree is skipped (`disabled-on-device`), never run here anyway.
|
|
78191
|
+
* Absent ⇒ none (an orchestrator that predates D1065).
|
|
78192
|
+
*/
|
|
78193
|
+
disabledSteps: array(string()).readonly().optional()
|
|
77317
78194
|
});
|
|
77318
78195
|
/**
|
|
77319
78196
|
* Camera assignment payload sent by `addon-pipeline-orchestrator` to a
|
|
@@ -82957,6 +83834,14 @@ method(object({ deviceId: number$1().int() }), object({
|
|
|
82957
83834
|
auth: "admin"
|
|
82958
83835
|
}), NOT_A_DEVICE.PIPELINE;
|
|
82959
83836
|
/**
|
|
83837
|
+
* Hold limits a cap's vocabulary may declare on an action (D1061).
|
|
83838
|
+
*
|
|
83839
|
+
* A one-shot command (feed, run a script) has no lasting state to confirm; it
|
|
83840
|
+
* holds its in-progress flag just long enough that a second tap, before the
|
|
83841
|
+
* device reports, is seen as "already running" and refused.
|
|
83842
|
+
*/
|
|
83843
|
+
var ONE_SHOT_HOLD_MS = 1e4;
|
|
83844
|
+
/**
|
|
82960
83845
|
* Feeder connectivity / power status — mirrors the HA petkit device-status
|
|
82961
83846
|
* enum: `normal` (online, mains), `offline` (not reaching PetKit cloud),
|
|
82962
83847
|
* `on_batteries` (running on battery backup). `null` until first reported.
|
|
@@ -83074,6 +83959,13 @@ var petFeederCapability = {
|
|
|
83074
83959
|
label: t("Feed", "Dai da mangiare"),
|
|
83075
83960
|
phrase: t("Dispense {grams} from {device}", "Eroga {grams} da {device}"),
|
|
83076
83961
|
icon: "paw-print",
|
|
83962
|
+
hold: {
|
|
83963
|
+
effects: [{
|
|
83964
|
+
field: "feeding",
|
|
83965
|
+
value: true
|
|
83966
|
+
}],
|
|
83967
|
+
holdMs: ONE_SHOT_HOLD_MS
|
|
83968
|
+
},
|
|
83077
83969
|
openArgs: [{
|
|
83078
83970
|
key: "grams",
|
|
83079
83971
|
label: t("Grams", "Grammi"),
|
|
@@ -83092,6 +83984,13 @@ var petFeederCapability = {
|
|
|
83092
83984
|
label: t("Feed from both hoppers", "Eroga da entrambi i serbatoi"),
|
|
83093
83985
|
phrase: t("Dispense {hopper1} and {hopper2} from {device}", "Eroga {hopper1} e {hopper2} da {device}"),
|
|
83094
83986
|
icon: "paw-print",
|
|
83987
|
+
hold: {
|
|
83988
|
+
effects: [{
|
|
83989
|
+
field: "feeding",
|
|
83990
|
+
value: true
|
|
83991
|
+
}],
|
|
83992
|
+
holdMs: ONE_SHOT_HOLD_MS
|
|
83993
|
+
},
|
|
83095
83994
|
openArgs: [{
|
|
83096
83995
|
key: "hopper1",
|
|
83097
83996
|
label: t("Hopper 1", "Serbatoio 1"),
|
|
@@ -83197,12 +84096,20 @@ var petFeederCapability = {
|
|
|
83197
84096
|
auth: "protected",
|
|
83198
84097
|
actions: [{
|
|
83199
84098
|
id: "petFeeder.childLockOn",
|
|
84099
|
+
effect: {
|
|
84100
|
+
field: "childLock",
|
|
84101
|
+
value: true
|
|
84102
|
+
},
|
|
83200
84103
|
label: t("Child lock on", "Blocco bambini attivo"),
|
|
83201
84104
|
phrase: t("Turn on the child lock of {device}", "Attiva il blocco bambini di {device}"),
|
|
83202
84105
|
icon: "lock",
|
|
83203
84106
|
args: { on: true }
|
|
83204
84107
|
}, {
|
|
83205
84108
|
id: "petFeeder.childLockOff",
|
|
84109
|
+
effect: {
|
|
84110
|
+
field: "childLock",
|
|
84111
|
+
value: false
|
|
84112
|
+
},
|
|
83206
84113
|
label: t("Child lock off", "Blocco bambini spento"),
|
|
83207
84114
|
phrase: t("Turn off the child lock of {device}", "Disattiva il blocco bambini di {device}"),
|
|
83208
84115
|
icon: "lock-open",
|
|
@@ -83218,12 +84125,20 @@ var petFeederCapability = {
|
|
|
83218
84125
|
auth: "protected",
|
|
83219
84126
|
actions: [{
|
|
83220
84127
|
id: "petFeeder.lightOn",
|
|
84128
|
+
effect: {
|
|
84129
|
+
field: "indicatorLight",
|
|
84130
|
+
value: true
|
|
84131
|
+
},
|
|
83221
84132
|
label: t("Indicator light on", "Spia accesa"),
|
|
83222
84133
|
phrase: t("Turn on the indicator light of {device}", "Accendi la spia di {device}"),
|
|
83223
84134
|
icon: "lightbulb",
|
|
83224
84135
|
args: { on: true }
|
|
83225
84136
|
}, {
|
|
83226
84137
|
id: "petFeeder.lightOff",
|
|
84138
|
+
effect: {
|
|
84139
|
+
field: "indicatorLight",
|
|
84140
|
+
value: false
|
|
84141
|
+
},
|
|
83227
84142
|
label: t("Indicator light off", "Spia spenta"),
|
|
83228
84143
|
phrase: t("Turn off the indicator light of {device}", "Spegni la spia di {device}"),
|
|
83229
84144
|
icon: "lightbulb-off",
|
|
@@ -83239,12 +84154,20 @@ var petFeederCapability = {
|
|
|
83239
84154
|
auth: "protected",
|
|
83240
84155
|
actions: [{
|
|
83241
84156
|
id: "petFeeder.feedSoundOn",
|
|
84157
|
+
effect: {
|
|
84158
|
+
field: "feedSound",
|
|
84159
|
+
value: true
|
|
84160
|
+
},
|
|
83242
84161
|
label: t("Feeding sound on", "Suono di erogazione attivo"),
|
|
83243
84162
|
phrase: t("Turn on the feeding sound of {device}", "Attiva il suono di erogazione di {device}"),
|
|
83244
84163
|
icon: "volume-2",
|
|
83245
84164
|
args: { on: true }
|
|
83246
84165
|
}, {
|
|
83247
84166
|
id: "petFeeder.feedSoundOff",
|
|
84167
|
+
effect: {
|
|
84168
|
+
field: "feedSound",
|
|
84169
|
+
value: false
|
|
84170
|
+
},
|
|
83248
84171
|
label: t("Feeding sound off", "Suono di erogazione spento"),
|
|
83249
84172
|
phrase: t("Turn off the feeding sound of {device}", "Disattiva il suono di erogazione di {device}"),
|
|
83250
84173
|
icon: "volume-x",
|
|
@@ -83260,6 +84183,10 @@ var petFeederCapability = {
|
|
|
83260
84183
|
auth: "protected",
|
|
83261
84184
|
actions: [{
|
|
83262
84185
|
id: "petFeeder.volume",
|
|
84186
|
+
effect: {
|
|
84187
|
+
field: "volume",
|
|
84188
|
+
fromArg: "level"
|
|
84189
|
+
},
|
|
83263
84190
|
label: t("Set volume", "Imposta il volume"),
|
|
83264
84191
|
phrase: t("Set the volume of {device} to {level}", "Imposta il volume di {device} a {level}"),
|
|
83265
84192
|
icon: "volume-2",
|
|
@@ -83405,12 +84332,20 @@ setPump: method(object({
|
|
|
83405
84332
|
auth: "protected",
|
|
83406
84333
|
actions: [{
|
|
83407
84334
|
id: "petFountain.pumpOn",
|
|
84335
|
+
effect: {
|
|
84336
|
+
field: "pumpRunning",
|
|
84337
|
+
value: true
|
|
84338
|
+
},
|
|
83408
84339
|
label: t("Pump on", "Pompa accesa"),
|
|
83409
84340
|
phrase: t("Start the pump of {device}", "Avvia la pompa di {device}"),
|
|
83410
84341
|
icon: "play",
|
|
83411
84342
|
args: { on: true }
|
|
83412
84343
|
}, {
|
|
83413
84344
|
id: "petFountain.pumpOff",
|
|
84345
|
+
effect: {
|
|
84346
|
+
field: "pumpRunning",
|
|
84347
|
+
value: false
|
|
84348
|
+
},
|
|
83414
84349
|
label: t("Pump off", "Pompa spenta"),
|
|
83415
84350
|
phrase: t("Stop the pump of {device}", "Ferma la pompa di {device}"),
|
|
83416
84351
|
icon: "square",
|
|
@@ -83957,7 +84892,15 @@ var DeviceStepConfigSchema = object({
|
|
|
83957
84892
|
* at a disabled/absent device on that node at save time. Absent ⇒ the runner
|
|
83958
84893
|
* auto-jumps only when the effective device's format cannot run the step.
|
|
83959
84894
|
*/
|
|
83960
|
-
jumpDeviceKey: string().optional()
|
|
84895
|
+
jumpDeviceKey: string().optional(),
|
|
84896
|
+
/**
|
|
84897
|
+
* DEVICE switch for this step (D1065). `false` = the step is never
|
|
84898
|
+
* provisioned on this accelerator: a detail step jumps to another enabled
|
|
84899
|
+
* device of the node where it is allowed, else it is skipped with reason
|
|
84900
|
+
* `disabled-on-device`; a root is skipped. Absent = inherit (on). Written by
|
|
84901
|
+
* `setDeviceStepEnabled`.
|
|
84902
|
+
*/
|
|
84903
|
+
enabled: boolean().optional()
|
|
83961
84904
|
});
|
|
83962
84905
|
var AgentPipelineSettingsSchema = object({
|
|
83963
84906
|
maxCameras: number$1().int().nonnegative().nullable().default(null),
|
|
@@ -84001,6 +84944,12 @@ var AgentPipelineSettingsSchema = object({
|
|
|
84001
84944
|
*/
|
|
84002
84945
|
stepSettings: record$1(string(), record$1(string(), unknown()).readonly()).optional(),
|
|
84003
84946
|
/**
|
|
84947
|
+
* NODE switch per step (D1065): `stepId → enabled`. `false` = the step never
|
|
84948
|
+
* runs on a camera whose pipeline runs on this node (skip reason
|
|
84949
|
+
* `disabled-on-node`). Absent = inherit. Written by `setNodeStepEnabled`.
|
|
84950
|
+
*/
|
|
84951
|
+
stepEnabled: record$1(string(), boolean()).optional(),
|
|
84952
|
+
/**
|
|
84004
84953
|
* Multi-device inference opt-in (Phase 4). Per-node map deviceKey → {enabled,
|
|
84005
84954
|
* weight, steps}. Absent / all-disabled ⇒ the node's single default
|
|
84006
84955
|
* accelerator (safe default); two+ enabled ⇒ the dispatcher balances
|
|
@@ -84322,7 +85271,8 @@ var InferenceDeviceExclusionReasonSchema = _enum([
|
|
|
84322
85271
|
"disabled",
|
|
84323
85272
|
"unavailable",
|
|
84324
85273
|
"cannot-host-camera-root",
|
|
84325
|
-
"accelerator-preferred"
|
|
85274
|
+
"accelerator-preferred",
|
|
85275
|
+
"root-switched-off"
|
|
84326
85276
|
]);
|
|
84327
85277
|
var NodeInferenceDeviceSchema = object({
|
|
84328
85278
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
@@ -84408,6 +85358,75 @@ var NodeInferenceDevicesSchema = object({
|
|
|
84408
85358
|
devices: array(NodeInferenceDeviceSchema).readonly()
|
|
84409
85359
|
});
|
|
84410
85360
|
/**
|
|
85361
|
+
* The CLUSTER switch of one pipeline step (D1065):
|
|
85362
|
+
* - `off` — hard off: no camera, node or device can turn it on;
|
|
85363
|
+
* - `on` — on by default; a camera may turn it off (`stepToggles`);
|
|
85364
|
+
* - `opt-in` — off by default; a camera turns it on (`stepToggles`).
|
|
85365
|
+
* Absent = the catalog's `enabledByDefault` (`true` → `on`, `false` → `opt-in`).
|
|
85366
|
+
*/
|
|
85367
|
+
var StepClusterModeSchema = _enum([
|
|
85368
|
+
"off",
|
|
85369
|
+
"on",
|
|
85370
|
+
"opt-in"
|
|
85371
|
+
]);
|
|
85372
|
+
/**
|
|
85373
|
+
* What one step does on one (node, device) — computed by the orchestrator with
|
|
85374
|
+
* the SAME placement function the attach path runs (`pipeline-resolver.ts`),
|
|
85375
|
+
* so a client never re-derives it. Precedence: cluster off > camera toggle
|
|
85376
|
+
* (else the cluster default) > node off > device off / jump.
|
|
85377
|
+
*/
|
|
85378
|
+
var StepSwitchCellSchema = discriminatedUnion("kind", [
|
|
85379
|
+
object({ kind: literal("on") }),
|
|
85380
|
+
object({ kind: literal("off-cluster") }),
|
|
85381
|
+
object({ kind: literal("off-node") }),
|
|
85382
|
+
object({ kind: literal("off-device") }),
|
|
85383
|
+
object({
|
|
85384
|
+
kind: literal("jump"),
|
|
85385
|
+
toDeviceKey: string()
|
|
85386
|
+
}),
|
|
85387
|
+
object({
|
|
85388
|
+
kind: literal("skip"),
|
|
85389
|
+
reason: _enum(["no-compatible-model", "root-not-runnable-on-elected-device"])
|
|
85390
|
+
}),
|
|
85391
|
+
object({ kind: literal("zone-driven") }),
|
|
85392
|
+
object({
|
|
85393
|
+
kind: literal("supplied-by-root"),
|
|
85394
|
+
rootModelId: string()
|
|
85395
|
+
}),
|
|
85396
|
+
object({ kind: literal("opt-in-unused") })
|
|
85397
|
+
]);
|
|
85398
|
+
var StepSwitchDeviceSchema = object({
|
|
85399
|
+
deviceKey: string(),
|
|
85400
|
+
format: _enum(MODEL_FORMATS),
|
|
85401
|
+
/** The device switch as stored (`inferenceDevices[key].steps[step].enabled`); `null` = inherit. */
|
|
85402
|
+
stepEnabled: boolean().nullable(),
|
|
85403
|
+
/** Whether the device is in the node's dispatch roster (enabled, available, not excluded). */
|
|
85404
|
+
eligible: boolean(),
|
|
85405
|
+
cell: StepSwitchCellSchema
|
|
85406
|
+
});
|
|
85407
|
+
var StepSwitchNodeSchema = object({
|
|
85408
|
+
nodeId: string(),
|
|
85409
|
+
/** False when the node's catalog or device probe did not answer — no cells are claimed. */
|
|
85410
|
+
reachable: boolean(),
|
|
85411
|
+
/** The node switch as stored (`stepEnabled[step]`); `null` = inherit. */
|
|
85412
|
+
stepEnabled: boolean().nullable(),
|
|
85413
|
+
devices: array(StepSwitchDeviceSchema).readonly()
|
|
85414
|
+
});
|
|
85415
|
+
var StepSwitchMatrixSchema = object({ steps: array(object({
|
|
85416
|
+
stepId: string(),
|
|
85417
|
+
name: string(),
|
|
85418
|
+
slot: string(),
|
|
85419
|
+
/** The stored cluster mode; `null` = the catalog default applies. */
|
|
85420
|
+
clusterMode: StepClusterModeSchema.nullable(),
|
|
85421
|
+
/** The mode in force (stored, else derived from `enabledByDefault`). */
|
|
85422
|
+
effectiveMode: StepClusterModeSchema,
|
|
85423
|
+
/** Cameras whose `stepToggles[step]` is `true`. */
|
|
85424
|
+
camerasEnabling: number$1().int().nonnegative(),
|
|
85425
|
+
/** Cameras whose `stepToggles[step]` is `false`. */
|
|
85426
|
+
camerasDisabling: number$1().int().nonnegative(),
|
|
85427
|
+
nodes: array(StepSwitchNodeSchema).readonly()
|
|
85428
|
+
})).readonly() });
|
|
85429
|
+
/**
|
|
84411
85430
|
* Pipeline Orchestrator capability — global load balancer + camera dispatcher.
|
|
84412
85431
|
*
|
|
84413
85432
|
* Lives on the hub. Tracks the camera-to-agent assignment map, listens to
|
|
@@ -84578,7 +85597,28 @@ method(object({
|
|
|
84578
85597
|
}), object({ success: literal(true) }), {
|
|
84579
85598
|
kind: "mutation",
|
|
84580
85599
|
auth: "admin"
|
|
84581
|
-
}), method(object({
|
|
85600
|
+
}), method(object({
|
|
85601
|
+
stepId: string(),
|
|
85602
|
+
mode: StepClusterModeSchema.nullable()
|
|
85603
|
+
}), object({ success: literal(true) }), {
|
|
85604
|
+
kind: "mutation",
|
|
85605
|
+
auth: "admin"
|
|
85606
|
+
}), method(object({
|
|
85607
|
+
agentNodeId: string(),
|
|
85608
|
+
stepId: string(),
|
|
85609
|
+
enabled: boolean().nullable()
|
|
85610
|
+
}), object({ success: literal(true) }), {
|
|
85611
|
+
kind: "mutation",
|
|
85612
|
+
auth: "admin"
|
|
85613
|
+
}), method(object({
|
|
85614
|
+
agentNodeId: string(),
|
|
85615
|
+
deviceKey: string(),
|
|
85616
|
+
stepId: string(),
|
|
85617
|
+
enabled: boolean().nullable()
|
|
85618
|
+
}), object({ success: literal(true) }), {
|
|
85619
|
+
kind: "mutation",
|
|
85620
|
+
auth: "admin"
|
|
85621
|
+
}), method(_void(), StepSwitchMatrixSchema), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({
|
|
84582
85622
|
agentNodeId: string(),
|
|
84583
85623
|
deviceKey: string()
|
|
84584
85624
|
}), object({ success: literal(true) }), {
|
|
@@ -84993,6 +86033,16 @@ var CoralInfoSchema = object({
|
|
|
84993
86033
|
reason: _enum(["driver-missing", "device-not-accessible"])
|
|
84994
86034
|
})).readonly().optional()
|
|
84995
86035
|
});
|
|
86036
|
+
var NvidiaInfoBaseSchema = object({
|
|
86037
|
+
type: literal("nvidia"),
|
|
86038
|
+
name: string(),
|
|
86039
|
+
memoryMB: number$1().optional()
|
|
86040
|
+
});
|
|
86041
|
+
/** An NVIDIA GPU: usable ⇔ the CUDA execution provider exists; otherwise the reason. */
|
|
86042
|
+
var NvidiaInfoSchema = discriminatedUnion("usable", [NvidiaInfoBaseSchema.extend({ usable: literal(true) }), NvidiaInfoBaseSchema.extend({
|
|
86043
|
+
usable: literal(false),
|
|
86044
|
+
reason: _enum(["no-cuda-execution-provider"])
|
|
86045
|
+
})]);
|
|
84996
86046
|
var HardwareInfoSchema = object({
|
|
84997
86047
|
platform: HardwarePlatformSchema,
|
|
84998
86048
|
arch: HardwareArchSchema,
|
|
@@ -85003,6 +86053,7 @@ var HardwareInfoSchema = object({
|
|
|
85003
86053
|
gpu: GpuInfoSchema.nullable(),
|
|
85004
86054
|
npu: NpuInfoSchema.nullable(),
|
|
85005
86055
|
coral: CoralInfoSchema.nullable().optional(),
|
|
86056
|
+
nvidia: NvidiaInfoSchema.nullable().optional(),
|
|
85006
86057
|
/**
|
|
85007
86058
|
* Per-accelerator compute (D930). Omitted by a node that has not probed it.
|
|
85008
86059
|
* `null` fields inside an entry are a failed query, never a zero.
|
|
@@ -85090,8 +86141,14 @@ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema)
|
|
|
85090
86141
|
* in real-world devices.
|
|
85091
86142
|
*/
|
|
85092
86143
|
var PowerMeterStatusSchema = object({
|
|
85093
|
-
/** Instantaneous power draw (watts). */
|
|
86144
|
+
/** Instantaneous TOTAL power draw of the device (watts), when known. */
|
|
85094
86145
|
power: number$1().optional().meta(readingMeta("power", { label: "Power" })),
|
|
86146
|
+
/**
|
|
86147
|
+
* Power the device passes on to downstream loads (watts), e.g. the PoE a switch delivers to
|
|
86148
|
+
* its ports. When `power` is known it already includes this (the own draw is `netPowerOf`);
|
|
86149
|
+
* a device that reports no total (a UniFi switch) carries this field alone.
|
|
86150
|
+
*/
|
|
86151
|
+
deliveredPower: number$1().optional().meta(readingMeta("power", { label: "Delivered" })),
|
|
85095
86152
|
/** Cumulative energy in kilowatt-hours since the meter was reset. */
|
|
85096
86153
|
energy: number$1().optional().meta(readingMeta("energy", { label: "Energy" })),
|
|
85097
86154
|
/** Voltage (volts). */
|
|
@@ -85126,7 +86183,8 @@ var POWER_METER_DEVICE_TYPES = [
|
|
|
85126
86183
|
DeviceType.Dishwasher,
|
|
85127
86184
|
DeviceType.Vacuum,
|
|
85128
86185
|
DeviceType.LawnMower,
|
|
85129
|
-
DeviceType.PetFeeder
|
|
86186
|
+
DeviceType.PetFeeder,
|
|
86187
|
+
DeviceType.Workload
|
|
85130
86188
|
];
|
|
85131
86189
|
/** Everything but a bare `Sensor`: a sensor that takes its reading from another sensor adds nothing. */
|
|
85132
86190
|
var POWER_METER_CUSTOMIZE_DEVICE_TYPES = POWER_METER_DEVICE_TYPES.filter((type) => type !== DeviceType.Sensor);
|
|
@@ -86181,12 +87239,20 @@ var pumpCycleCapability = {
|
|
|
86181
87239
|
auth: "protected",
|
|
86182
87240
|
actions: [{
|
|
86183
87241
|
id: "pumpCycle.on",
|
|
87242
|
+
effect: {
|
|
87243
|
+
field: "enabled",
|
|
87244
|
+
value: true
|
|
87245
|
+
},
|
|
86184
87246
|
label: t("Pump cycle on", "Ciclo pompa attivo"),
|
|
86185
87247
|
phrase: t("Run the pump of {device} on its on/off cycle", "Fai lavorare la pompa di {device} a ciclo acceso/spento"),
|
|
86186
87248
|
icon: "timer",
|
|
86187
87249
|
args: { on: true }
|
|
86188
87250
|
}, {
|
|
86189
87251
|
id: "pumpCycle.off",
|
|
87252
|
+
effect: {
|
|
87253
|
+
field: "enabled",
|
|
87254
|
+
value: false
|
|
87255
|
+
},
|
|
86190
87256
|
label: t("Pump cycle off", "Ciclo pompa spento"),
|
|
86191
87257
|
phrase: t("Run the pump of {device} continuously", "Fai lavorare la pompa di {device} in continuo"),
|
|
86192
87258
|
icon: "timer-off",
|
|
@@ -86205,6 +87271,11 @@ var pumpCycleCapability = {
|
|
|
86205
87271
|
label: t("Set pump run time", "Imposta il tempo di lavoro della pompa"),
|
|
86206
87272
|
phrase: t("Set the pump of {device} to run {minutes} minutes per cycle", "Imposta la pompa di {device} a lavorare {minutes} minuti per ciclo"),
|
|
86207
87273
|
icon: "timer",
|
|
87274
|
+
effect: {
|
|
87275
|
+
field: "onTime",
|
|
87276
|
+
fromArg: "minutes",
|
|
87277
|
+
scale: 60
|
|
87278
|
+
},
|
|
86208
87279
|
openArgs: [{
|
|
86209
87280
|
key: "minutes",
|
|
86210
87281
|
label: t("Minutes", "Minuti"),
|
|
@@ -86229,6 +87300,11 @@ var pumpCycleCapability = {
|
|
|
86229
87300
|
label: t("Set pump rest time", "Imposta il tempo di riposo della pompa"),
|
|
86230
87301
|
phrase: t("Set the pump of {device} to rest {minutes} minutes per cycle", "Imposta la pompa di {device} a riposare {minutes} minuti per ciclo"),
|
|
86231
87302
|
icon: "timer-off",
|
|
87303
|
+
effect: {
|
|
87304
|
+
field: "offTime",
|
|
87305
|
+
fromArg: "minutes",
|
|
87306
|
+
scale: 60
|
|
87307
|
+
},
|
|
86232
87308
|
openArgs: [{
|
|
86233
87309
|
key: "minutes",
|
|
86234
87310
|
label: t("Minutes", "Minuti"),
|
|
@@ -89041,6 +90117,42 @@ var RemoteLayoutComponentSchema = object({
|
|
|
89041
90117
|
});
|
|
89042
90118
|
});
|
|
89043
90119
|
method(object({}), array(RemoteLayoutComponentSchema), { auth: "protected" });
|
|
90120
|
+
/**
|
|
90121
|
+
* resync — a device whose derived spec can be re-aligned on demand with its
|
|
90122
|
+
* upstream source (#459, Q6). Registered by the containers an integration
|
|
90123
|
+
* adopted; `DeviceFeature.Resyncable` (the generic Re-sync button) is derived
|
|
90124
|
+
* from it being bound with `resync` implemented.
|
|
90125
|
+
*
|
|
90126
|
+
* The work itself stays where it is: the owning addon's `device-adoption`
|
|
90127
|
+
* provider, reached through `deviceManager.adoptionResync` (which also owns
|
|
90128
|
+
* the "resync from zero" child purge). A provider answers this method by
|
|
90129
|
+
* asking for exactly that — see `resyncThroughAdoption`.
|
|
90130
|
+
*/
|
|
90131
|
+
var ResyncDeviceInputSchema = object({
|
|
90132
|
+
deviceId: number$1().int().nonnegative(),
|
|
90133
|
+
/** "Resync from zero": purge the accessory children before re-deriving. */
|
|
90134
|
+
resetToSource: boolean().optional()
|
|
90135
|
+
});
|
|
90136
|
+
var resyncCapability = {
|
|
90137
|
+
name: "resync",
|
|
90138
|
+
scope: "device",
|
|
90139
|
+
deviceNative: true,
|
|
90140
|
+
mode: "singleton",
|
|
90141
|
+
deviceTypes: [
|
|
90142
|
+
DeviceType.Container,
|
|
90143
|
+
DeviceType.Workload,
|
|
90144
|
+
DeviceType.WeatherStation
|
|
90145
|
+
],
|
|
90146
|
+
methods: { resync: method(ResyncDeviceInputSchema, ResyncResultSchema, {
|
|
90147
|
+
kind: "mutation",
|
|
90148
|
+
auth: "admin",
|
|
90149
|
+
notOperatorFacing: "device adoption — re-aligning a device with its source is an onboarding step, not an automation action"
|
|
90150
|
+
}) },
|
|
90151
|
+
vocabulary: {
|
|
90152
|
+
noun: t("Re-sync", "Risincronizzazione"),
|
|
90153
|
+
order: 3245
|
|
90154
|
+
}
|
|
90155
|
+
};
|
|
89044
90156
|
var RUNNING_POWER_START_DELAY_MS = 3e4;
|
|
89045
90157
|
var RUNNING_POWER_STOP_DELAY_MS = 18e4;
|
|
89046
90158
|
/**
|
|
@@ -89722,7 +90834,14 @@ var scriptRunnerCapability = {
|
|
|
89722
90834
|
id: "script.run",
|
|
89723
90835
|
label: t("Run script", "Esegui lo script"),
|
|
89724
90836
|
phrase: t("Run {device}", "Esegui {device}"),
|
|
89725
|
-
icon: "scroll-text"
|
|
90837
|
+
icon: "scroll-text",
|
|
90838
|
+
hold: {
|
|
90839
|
+
effects: [{
|
|
90840
|
+
field: "isRunning",
|
|
90841
|
+
value: true
|
|
90842
|
+
}],
|
|
90843
|
+
holdMs: ONE_SHOT_HOLD_MS
|
|
90844
|
+
}
|
|
89726
90845
|
}]
|
|
89727
90846
|
}),
|
|
89728
90847
|
/** Cancel a running script. Provider rejects when the script
|
|
@@ -89732,6 +90851,10 @@ var scriptRunnerCapability = {
|
|
|
89732
90851
|
auth: "admin",
|
|
89733
90852
|
actions: [{
|
|
89734
90853
|
id: "script.stop",
|
|
90854
|
+
effect: {
|
|
90855
|
+
field: "isRunning",
|
|
90856
|
+
value: false
|
|
90857
|
+
},
|
|
89735
90858
|
label: t("Stop script", "Ferma lo script"),
|
|
89736
90859
|
phrase: t("Stop {device}", "Ferma {device}"),
|
|
89737
90860
|
icon: "square"
|
|
@@ -91590,6 +92713,10 @@ var switchCapability = {
|
|
|
91590
92713
|
auth: "protected",
|
|
91591
92714
|
actions: [{
|
|
91592
92715
|
id: "switch.toggle",
|
|
92716
|
+
sideEffects: [{
|
|
92717
|
+
field: "on",
|
|
92718
|
+
negate: true
|
|
92719
|
+
}],
|
|
91593
92720
|
label: t("Toggle", "Commuta"),
|
|
91594
92721
|
phrase: t("Toggle {device}", "Commuta {device}"),
|
|
91595
92722
|
icon: "toggle-right",
|
|
@@ -97338,6 +98465,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
97338
98465
|
irTransmitter: irTransmitterCapability,
|
|
97339
98466
|
lawnMowerControl: lawnMowerControlCapability,
|
|
97340
98467
|
lockControl: lockControlCapability,
|
|
98468
|
+
lowPowerSleep: lowPowerSleepCapability,
|
|
97341
98469
|
mediaPlayer: mediaPlayerCapability,
|
|
97342
98470
|
meter: meterCapability,
|
|
97343
98471
|
motion: motionCapability,
|
|
@@ -97773,6 +98901,20 @@ var BaseDevice = class {
|
|
|
97773
98901
|
}, raw, options);
|
|
97774
98902
|
}
|
|
97775
98903
|
/**
|
|
98904
|
+
* Declare the identity of the device at the FAR END of this device's physical
|
|
98905
|
+
* link (D1063): a PoE port's wired client. Same normalisation, `unread`
|
|
98906
|
+
* rule and owner check as {@link declareIdentifiers}, written through
|
|
98907
|
+
* `device-manager.setAttachedIdentifiers`. It never makes the two devices the
|
|
98908
|
+
* same device. Best-effort: never throws.
|
|
98909
|
+
*/
|
|
98910
|
+
async declareAttachedIdentifiers(raw, options) {
|
|
98911
|
+
return declareDeviceIdentifiers({
|
|
98912
|
+
deviceId: this.id,
|
|
98913
|
+
logger: this.ctx.logger,
|
|
98914
|
+
writer: this.ctx.api.deviceManager?.setAttachedIdentifiers
|
|
98915
|
+
}, raw, options);
|
|
98916
|
+
}
|
|
98917
|
+
/**
|
|
97776
98918
|
* Re-publish the device's current `features` array to the persisted
|
|
97777
98919
|
* meta blob. Drivers call this after a probe finishes when the live
|
|
97778
98920
|
* `features` getter has gained new flags (e.g. `hasIntercom` flips
|
|
@@ -98817,6 +99959,21 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
98817
99959
|
return toDeviceSummary(device, this.addonId);
|
|
98818
99960
|
}
|
|
98819
99961
|
};
|
|
99962
|
+
/**
|
|
99963
|
+
* The `resync` provider of an adopted container (#459, Q6): the work is the
|
|
99964
|
+
* owning addon's `device-adoption.resync`, reached through
|
|
99965
|
+
* `deviceManager.adoptionResync`, which also owns the "resync from zero" child
|
|
99966
|
+
* purge. Registering this is what makes `DeviceFeature.Resyncable` true.
|
|
99967
|
+
*/
|
|
99968
|
+
function resyncThroughAdoption(deviceManager, ownDeviceId) {
|
|
99969
|
+
return { resync: async ({ deviceId, resetToSource }) => {
|
|
99970
|
+
if (deviceId !== ownDeviceId) throw new Error(`resync: deviceId mismatch, expected ${ownDeviceId}, got ${deviceId}`);
|
|
99971
|
+
return deviceManager.adoptionResync.mutate({
|
|
99972
|
+
camDeviceId: deviceId,
|
|
99973
|
+
...resetToSource !== void 0 ? { resetToSource } : {}
|
|
99974
|
+
});
|
|
99975
|
+
} };
|
|
99976
|
+
}
|
|
98820
99977
|
DeviceType.HeatPump;
|
|
98821
99978
|
DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Workload, DeviceType.Camera, DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
|
|
98822
99979
|
new Set(Object.values(DeviceType));
|
|
@@ -99027,8 +100184,8 @@ var ALARM_MODES = [
|
|
|
99027
100184
|
"vacation",
|
|
99028
100185
|
"custom_bypass"
|
|
99029
100186
|
];
|
|
99030
|
-
function alarmControls(state, modes,
|
|
99031
|
-
if (
|
|
100187
|
+
function alarmControls(state, modes, codeRequired) {
|
|
100188
|
+
if (codeRequired) return [];
|
|
99032
100189
|
const disarm = asAction(action("alarm.disarm", t("Disarm", "Disinserisci"), "shield-off", "alarm-panel", "disarm", {}, "primary"));
|
|
99033
100190
|
const arm = (primaryFirst) => modes.map((mode, i) => asAction(action(`alarm.arm.${mode}`, ARM_LABELS[mode], "shield-check", "alarm-panel", "arm", { mode }, primaryFirst && i === 0 ? "primary" : "normal")));
|
|
99034
100191
|
switch (state) {
|
|
@@ -99048,7 +100205,7 @@ var ACCESS_FAMILY_CONTRIBUTIONS = {
|
|
|
99048
100205
|
const modes = slice === void 0 ? ALARM_MODES : slice.availableModes;
|
|
99049
100206
|
return {
|
|
99050
100207
|
reading: reading$1("alarm-panel", words?.state ?? "unknown", false, words?.title),
|
|
99051
|
-
rows: [row$1("alarm", state === "triggered" ? "shield-alert" : state === "disarmed" ? "shield-off" : "shield-check", joinText([words?.title ?? NOT_REPORTED, since]), alarmControls(state, modes, slice?.
|
|
100208
|
+
rows: [row$1("alarm", state === "triggered" ? "shield-alert" : state === "disarmed" ? "shield-off" : "shield-check", joinText([words?.title ?? NOT_REPORTED, since]), alarmControls(state, modes, slice?.codeRequired !== false))],
|
|
99052
100209
|
...since === null || words === null ? {} : { facts: [fact("since", "clock", since, state === "triggered" ? "danger" : "muted")] },
|
|
99053
100210
|
...words === null ? {} : { tiles: {
|
|
99054
100211
|
left: [{
|
|
@@ -99488,23 +100645,56 @@ var fountainContribution = contribution("pet-fountain", PetFountainStatusSchema,
|
|
|
99488
100645
|
};
|
|
99489
100646
|
});
|
|
99490
100647
|
var minutesOf = (seconds) => Math.max(0, Math.round(seconds / 60));
|
|
100648
|
+
var pumpCycleContribution = contribution("pump-cycle", PumpCycleStatusSchema, (slice) => {
|
|
100649
|
+
const enabled = slice?.enabled ?? null;
|
|
100650
|
+
const cycle = slice?.onTime != null && slice.offTime != null ? t(`${minutesOf(slice.onTime)} min on · ${minutesOf(slice.offTime)} min off`, `${minutesOf(slice.onTime)} min acceso · ${minutesOf(slice.offTime)} min spento`) : null;
|
|
100651
|
+
return { rows: [row$1("pump-cycle", "timer", enabled === null ? unknownText : enabled ? joinText([t("Cycling", "A cicli"), cycle]) : t("Runs continuously", "Sempre attiva"), [{
|
|
100652
|
+
kind: "toggle",
|
|
100653
|
+
id: "pump-cycle.enabled",
|
|
100654
|
+
label: t("Pump cycle", "Ciclo pompa"),
|
|
100655
|
+
on: enabled,
|
|
100656
|
+
turnOn: action("pump-cycle.on", t("Cycle the pump", "Attiva il ciclo"), "timer", "pump-cycle", "setEnabled", { on: true }),
|
|
100657
|
+
turnOff: action("pump-cycle.off", t("Run continuously", "Sempre attiva"), "timer-off", "pump-cycle", "setEnabled", { on: false })
|
|
100658
|
+
}])] };
|
|
100659
|
+
});
|
|
100660
|
+
var WORKLOAD_WORDS = {
|
|
100661
|
+
running: {
|
|
100662
|
+
state: "on",
|
|
100663
|
+
title: t("Running", "In esecuzione")
|
|
100664
|
+
},
|
|
100665
|
+
paused: {
|
|
100666
|
+
state: "standby",
|
|
100667
|
+
title: t("Paused", "In pausa")
|
|
100668
|
+
},
|
|
100669
|
+
stopped: {
|
|
100670
|
+
state: "off",
|
|
100671
|
+
title: t("Stopped", "Fermo")
|
|
100672
|
+
},
|
|
100673
|
+
starting: {
|
|
100674
|
+
state: "running",
|
|
100675
|
+
title: t("Starting", "In avvio")
|
|
100676
|
+
},
|
|
100677
|
+
stopping: {
|
|
100678
|
+
state: "running",
|
|
100679
|
+
title: t("Stopping", "In arresto")
|
|
100680
|
+
},
|
|
100681
|
+
crashed: {
|
|
100682
|
+
state: "alert",
|
|
100683
|
+
title: t("Crashed", "Andato in errore")
|
|
100684
|
+
}
|
|
100685
|
+
};
|
|
99491
100686
|
var DEVICES_FAMILY_CONTRIBUTIONS = {
|
|
99492
100687
|
"fan-control": fanContribution,
|
|
99493
100688
|
"vacuum-control": vacuumContribution,
|
|
99494
100689
|
"lawn-mower-control": mowerContribution,
|
|
99495
100690
|
"pet-feeder": feederContribution,
|
|
99496
100691
|
"pet-fountain": fountainContribution,
|
|
99497
|
-
"pump-cycle":
|
|
99498
|
-
|
|
99499
|
-
const
|
|
99500
|
-
|
|
99501
|
-
|
|
99502
|
-
|
|
99503
|
-
label: t("Pump cycle", "Ciclo pompa"),
|
|
99504
|
-
on: enabled,
|
|
99505
|
-
turnOn: action("pump-cycle.on", t("Cycle the pump", "Attiva il ciclo"), "timer", "pump-cycle", "setEnabled", { on: true }),
|
|
99506
|
-
turnOff: action("pump-cycle.off", t("Run continuously", "Sempre attiva"), "timer-off", "pump-cycle", "setEnabled", { on: false })
|
|
99507
|
-
}])] };
|
|
100692
|
+
"pump-cycle": pumpCycleContribution,
|
|
100693
|
+
workload: contribution("workload", WorkloadStatusSchema, (slice) => {
|
|
100694
|
+
const state = slice?.state ?? null;
|
|
100695
|
+
if (state === null) return { reading: reading$1("workload", "unknown") };
|
|
100696
|
+
const words = WORKLOAD_WORDS[state];
|
|
100697
|
+
return { reading: reading$1("workload", words.state, false, words.title) };
|
|
99508
100698
|
})
|
|
99509
100699
|
};
|
|
99510
100700
|
/**
|
|
@@ -101519,7 +102709,7 @@ lookOf({
|
|
|
101519
102709
|
});
|
|
101520
102710
|
DeviceType.Climate;
|
|
101521
102711
|
DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Workload, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
|
|
101522
|
-
DeviceRole.Siren, DeviceRole.Floodlight, DeviceRole.Spotlight, DeviceRole.PirSensor, DeviceRole.Chime, DeviceRole.Autotrack, DeviceRole.Nightvision, DeviceRole.PrivacyMask, DeviceRole.Doorbell, DeviceRole.CoverBlind, DeviceRole.CoverShutter, DeviceRole.CoverAwning, DeviceRole.CoverCurtain, DeviceRole.CoverGarage, DeviceRole.CoverGate, DeviceRole.CoverDoor, DeviceRole.CoverWindow, DeviceRole.BinaryHelper, DeviceRole.Outlet, DeviceRole.SwitchHeater, DeviceRole.SwitchFan, DeviceRole.SwitchLight, DeviceRole.PoePort, DeviceRole.ClimateAc, DeviceRole.ClimateThermostat, DeviceRole.ClimateFloor, DeviceRole.ClimateRadiator, DeviceRole.ClimateHeater, DeviceRole.ClimateHeatPumpCircuit, DeviceRole.MotionSensor, DeviceRole.ContactSensor, DeviceRole.LeakSensor, DeviceRole.SmokeSensor, DeviceRole.COSensor, DeviceRole.GasSensor, DeviceRole.TamperSensor, DeviceRole.VibrationSensor, DeviceRole.ConnectivitySensor, DeviceRole.SoundSensor, DeviceRole.BinarySensor, DeviceRole.TemperatureSensor, DeviceRole.HumiditySensor, DeviceRole.AmbientLightSensor, DeviceRole.PressureSensor, DeviceRole.WindSensor, DeviceRole.RainSensor, DeviceRole.UvSensor, DeviceRole.SolarRadiationSensor, DeviceRole.SoilMoistureSensor, DeviceRole.PowerSensor, DeviceRole.EnergySensor, DeviceRole.VoltageSensor, DeviceRole.CurrentSensor, DeviceRole.AirQualitySensor, DeviceRole.BatterySensor, DeviceRole.NumericSensor, DeviceRole.EnumSensor, DeviceRole.DateTimeSensor, DeviceRole.GenericSensor, DeviceRole.NumericControl, DeviceRole.SelectControl, DeviceRole.TextControl, DeviceRole.DateTimeControl, DeviceRole.MobilePushNotifier, DeviceRole.MessagingNotifier, DeviceRole.EmailNotifier, DeviceRole.GenericNotifier, DeviceRole.IrTransmitter, DeviceRole.Vm, DeviceRole.AppContainer, DeviceRole.Lxc, DeviceRole.App, DeviceRole.Host;
|
|
102712
|
+
DeviceRole.Siren, DeviceRole.Floodlight, DeviceRole.Spotlight, DeviceRole.PirSensor, DeviceRole.Chime, DeviceRole.Autotrack, DeviceRole.Nightvision, DeviceRole.PrivacyMask, DeviceRole.Doorbell, DeviceRole.CoverBlind, DeviceRole.CoverShutter, DeviceRole.CoverAwning, DeviceRole.CoverCurtain, DeviceRole.CoverGarage, DeviceRole.CoverGate, DeviceRole.CoverDoor, DeviceRole.CoverWindow, DeviceRole.BinaryHelper, DeviceRole.Outlet, DeviceRole.SwitchHeater, DeviceRole.SwitchFan, DeviceRole.SwitchLight, DeviceRole.PoePort, DeviceRole.ClimateAc, DeviceRole.ClimateThermostat, DeviceRole.ClimateFloor, DeviceRole.ClimateRadiator, DeviceRole.ClimateHeater, DeviceRole.ClimateHeatPumpCircuit, DeviceRole.MotionSensor, DeviceRole.ContactSensor, DeviceRole.LeakSensor, DeviceRole.SmokeSensor, DeviceRole.COSensor, DeviceRole.GasSensor, DeviceRole.TamperSensor, DeviceRole.VibrationSensor, DeviceRole.ConnectivitySensor, DeviceRole.SoundSensor, DeviceRole.BinarySensor, DeviceRole.TemperatureSensor, DeviceRole.HumiditySensor, DeviceRole.AmbientLightSensor, DeviceRole.PressureSensor, DeviceRole.WindSensor, DeviceRole.RainSensor, DeviceRole.UvSensor, DeviceRole.SolarRadiationSensor, DeviceRole.SoilMoistureSensor, DeviceRole.PowerSensor, DeviceRole.EnergySensor, DeviceRole.VoltageSensor, DeviceRole.CurrentSensor, DeviceRole.AirQualitySensor, DeviceRole.BatterySensor, DeviceRole.NumericSensor, DeviceRole.EnumSensor, DeviceRole.DateTimeSensor, DeviceRole.GenericSensor, DeviceRole.NumericControl, DeviceRole.SelectControl, DeviceRole.TextControl, DeviceRole.DateTimeControl, DeviceRole.MobilePushNotifier, DeviceRole.MessagingNotifier, DeviceRole.EmailNotifier, DeviceRole.GenericNotifier, DeviceRole.IrTransmitter, DeviceRole.Vm, DeviceRole.AppContainer, DeviceRole.Lxc, DeviceRole.App, DeviceRole.Host, DeviceRole.Ups;
|
|
101523
102713
|
Object.freeze({
|
|
101524
102714
|
"accessories.getStatus": {
|
|
101525
102715
|
capName: "accessories",
|
|
@@ -102431,13 +103621,6 @@ Object.freeze({
|
|
|
102431
103621
|
access: "view",
|
|
102432
103622
|
role: "viewer"
|
|
102433
103623
|
},
|
|
102434
|
-
"battery.wakeForStream": {
|
|
102435
|
-
capName: "battery",
|
|
102436
|
-
capScope: "device",
|
|
102437
|
-
addonId: null,
|
|
102438
|
-
access: "create",
|
|
102439
|
-
role: "viewer"
|
|
102440
|
-
},
|
|
102441
103624
|
"binary.getStatus": {
|
|
102442
103625
|
capName: "binary",
|
|
102443
103626
|
capScope: "device",
|
|
@@ -103726,6 +104909,13 @@ Object.freeze({
|
|
|
103726
104909
|
access: "create",
|
|
103727
104910
|
role: "admin"
|
|
103728
104911
|
},
|
|
104912
|
+
"deviceManager.confirmIdentityLink": {
|
|
104913
|
+
capName: "device-manager",
|
|
104914
|
+
capScope: "system",
|
|
104915
|
+
addonId: null,
|
|
104916
|
+
access: "create",
|
|
104917
|
+
role: "admin"
|
|
104918
|
+
},
|
|
103729
104919
|
"deviceManager.createDevice": {
|
|
103730
104920
|
capName: "device-manager",
|
|
103731
104921
|
capScope: "system",
|
|
@@ -103775,6 +104965,13 @@ Object.freeze({
|
|
|
103775
104965
|
access: "create",
|
|
103776
104966
|
role: "admin"
|
|
103777
104967
|
},
|
|
104968
|
+
"deviceManager.dismissIdentityLink": {
|
|
104969
|
+
capName: "device-manager",
|
|
104970
|
+
capScope: "system",
|
|
104971
|
+
addonId: null,
|
|
104972
|
+
access: "create",
|
|
104973
|
+
role: "admin"
|
|
104974
|
+
},
|
|
103778
104975
|
"deviceManager.enable": {
|
|
103779
104976
|
capName: "device-manager",
|
|
103780
104977
|
capScope: "system",
|
|
@@ -103964,6 +105161,20 @@ Object.freeze({
|
|
|
103964
105161
|
access: "view",
|
|
103965
105162
|
role: "admin"
|
|
103966
105163
|
},
|
|
105164
|
+
"deviceManager.listIdentityCandidates": {
|
|
105165
|
+
capName: "device-manager",
|
|
105166
|
+
capScope: "system",
|
|
105167
|
+
addonId: null,
|
|
105168
|
+
access: "view",
|
|
105169
|
+
role: "admin"
|
|
105170
|
+
},
|
|
105171
|
+
"deviceManager.listIdentityLinks": {
|
|
105172
|
+
capName: "device-manager",
|
|
105173
|
+
capScope: "system",
|
|
105174
|
+
addonId: null,
|
|
105175
|
+
access: "view",
|
|
105176
|
+
role: "admin"
|
|
105177
|
+
},
|
|
103967
105178
|
"deviceManager.listLocationDescriptions": {
|
|
103968
105179
|
capName: "device-manager",
|
|
103969
105180
|
capScope: "system",
|
|
@@ -104160,6 +105371,13 @@ Object.freeze({
|
|
|
104160
105371
|
access: "create",
|
|
104161
105372
|
role: "admin"
|
|
104162
105373
|
},
|
|
105374
|
+
"deviceManager.setAttachedIdentifiers": {
|
|
105375
|
+
capName: "device-manager",
|
|
105376
|
+
capScope: "system",
|
|
105377
|
+
addonId: null,
|
|
105378
|
+
access: "create",
|
|
105379
|
+
role: "admin"
|
|
105380
|
+
},
|
|
104163
105381
|
"deviceManager.setChildLayout": {
|
|
104164
105382
|
capName: "device-manager",
|
|
104165
105383
|
capScope: "system",
|
|
@@ -104321,6 +105539,13 @@ Object.freeze({
|
|
|
104321
105539
|
access: "create",
|
|
104322
105540
|
role: "admin"
|
|
104323
105541
|
},
|
|
105542
|
+
"deviceManager.unlinkIdentity": {
|
|
105543
|
+
capName: "device-manager",
|
|
105544
|
+
capScope: "system",
|
|
105545
|
+
addonId: null,
|
|
105546
|
+
access: "delete",
|
|
105547
|
+
role: "admin"
|
|
105548
|
+
},
|
|
104324
105549
|
"deviceManager.updateConfig": {
|
|
104325
105550
|
capName: "device-manager",
|
|
104326
105551
|
capScope: "system",
|
|
@@ -104601,6 +105826,20 @@ Object.freeze({
|
|
|
104601
105826
|
access: "create",
|
|
104602
105827
|
role: "admin"
|
|
104603
105828
|
},
|
|
105829
|
+
"deviceStateRefresh.refresh": {
|
|
105830
|
+
capName: "device-state-refresh",
|
|
105831
|
+
capScope: "device",
|
|
105832
|
+
addonId: null,
|
|
105833
|
+
access: "create",
|
|
105834
|
+
role: "admin"
|
|
105835
|
+
},
|
|
105836
|
+
"deviceStateRefresh.resubscribe": {
|
|
105837
|
+
capName: "device-state-refresh",
|
|
105838
|
+
capScope: "device",
|
|
105839
|
+
addonId: null,
|
|
105840
|
+
access: "create",
|
|
105841
|
+
role: "admin"
|
|
105842
|
+
},
|
|
104604
105843
|
"deviceStatus.getStatus": {
|
|
104605
105844
|
capName: "device-status",
|
|
104606
105845
|
capScope: "device",
|
|
@@ -106085,6 +107324,20 @@ Object.freeze({
|
|
|
106085
107324
|
access: "view",
|
|
106086
107325
|
role: "admin"
|
|
106087
107326
|
},
|
|
107327
|
+
"lowPowerSleep.getStatus": {
|
|
107328
|
+
capName: "low-power-sleep",
|
|
107329
|
+
capScope: "device",
|
|
107330
|
+
addonId: null,
|
|
107331
|
+
access: "view",
|
|
107332
|
+
role: "viewer"
|
|
107333
|
+
},
|
|
107334
|
+
"lowPowerSleep.wakeUp": {
|
|
107335
|
+
capName: "low-power-sleep",
|
|
107336
|
+
capScope: "device",
|
|
107337
|
+
addonId: null,
|
|
107338
|
+
access: "create",
|
|
107339
|
+
role: "viewer"
|
|
107340
|
+
},
|
|
106088
107341
|
"mediaPlayer.channelDown": {
|
|
106089
107342
|
capName: "media-player",
|
|
106090
107343
|
capScope: "device",
|
|
@@ -108458,6 +109711,13 @@ Object.freeze({
|
|
|
108458
109711
|
access: "view",
|
|
108459
109712
|
role: "admin"
|
|
108460
109713
|
},
|
|
109714
|
+
"pipelineOrchestrator.getStepSwitches": {
|
|
109715
|
+
capName: "pipeline-orchestrator",
|
|
109716
|
+
capScope: "system",
|
|
109717
|
+
addonId: null,
|
|
109718
|
+
access: "view",
|
|
109719
|
+
role: "admin"
|
|
109720
|
+
},
|
|
108461
109721
|
"pipelineOrchestrator.listAgentSettings": {
|
|
108462
109722
|
capName: "pipeline-orchestrator",
|
|
108463
109723
|
capScope: "system",
|
|
@@ -108612,6 +109872,20 @@ Object.freeze({
|
|
|
108612
109872
|
access: "create",
|
|
108613
109873
|
role: "admin"
|
|
108614
109874
|
},
|
|
109875
|
+
"pipelineOrchestrator.setClusterStepMode": {
|
|
109876
|
+
capName: "pipeline-orchestrator",
|
|
109877
|
+
capScope: "system",
|
|
109878
|
+
addonId: null,
|
|
109879
|
+
access: "create",
|
|
109880
|
+
role: "admin"
|
|
109881
|
+
},
|
|
109882
|
+
"pipelineOrchestrator.setDeviceStepEnabled": {
|
|
109883
|
+
capName: "pipeline-orchestrator",
|
|
109884
|
+
capScope: "system",
|
|
109885
|
+
addonId: null,
|
|
109886
|
+
access: "create",
|
|
109887
|
+
role: "admin"
|
|
109888
|
+
},
|
|
108615
109889
|
"pipelineOrchestrator.setLoadBalancingShares": {
|
|
108616
109890
|
capName: "pipeline-orchestrator",
|
|
108617
109891
|
capScope: "system",
|
|
@@ -108619,6 +109893,13 @@ Object.freeze({
|
|
|
108619
109893
|
access: "create",
|
|
108620
109894
|
role: "admin"
|
|
108621
109895
|
},
|
|
109896
|
+
"pipelineOrchestrator.setNodeStepEnabled": {
|
|
109897
|
+
capName: "pipeline-orchestrator",
|
|
109898
|
+
capScope: "system",
|
|
109899
|
+
addonId: null,
|
|
109900
|
+
access: "create",
|
|
109901
|
+
role: "admin"
|
|
109902
|
+
},
|
|
108622
109903
|
"pipelineOrchestrator.setNodeStepSettings": {
|
|
108623
109904
|
capName: "pipeline-orchestrator",
|
|
108624
109905
|
capScope: "system",
|
|
@@ -109760,6 +111041,13 @@ Object.freeze({
|
|
|
109760
111041
|
access: "view",
|
|
109761
111042
|
role: "admin"
|
|
109762
111043
|
},
|
|
111044
|
+
"resync.resync": {
|
|
111045
|
+
capName: "resync",
|
|
111046
|
+
capScope: "device",
|
|
111047
|
+
addonId: null,
|
|
111048
|
+
access: "create",
|
|
111049
|
+
role: "admin"
|
|
111050
|
+
},
|
|
109763
111051
|
"runningState.getStatus": {
|
|
109764
111052
|
capName: "running-state",
|
|
109765
111053
|
capScope: "device",
|
|
@@ -112155,7 +113443,7 @@ Object.freeze({
|
|
|
112155
113443
|
role: "admin"
|
|
112156
113444
|
}
|
|
112157
113445
|
});
|
|
112158
|
-
DeviceFeature.
|
|
113446
|
+
DeviceFeature.Sleeps;
|
|
112159
113447
|
function bound(cap, methods = [], authority = "reported") {
|
|
112160
113448
|
return {
|
|
112161
113449
|
kind: "cap",
|
|
@@ -112167,11 +113455,11 @@ function bound(cap, methods = [], authority = "reported") {
|
|
|
112167
113455
|
function derived(cap, methods = []) {
|
|
112168
113456
|
return bound(cap, methods, "derived");
|
|
112169
113457
|
}
|
|
112170
|
-
DeviceFeature.BatteryOperated, DeviceFeature.Rebootable, derived("reboot", ["reboot"]), DeviceFeature.Resyncable, DeviceFeature.NativeSnapshot, DeviceFeature.DoorbellButton, derived("doorbell"), DeviceFeature.TwoWayAudio, derived("intercom", [
|
|
113458
|
+
DeviceFeature.BatteryOperated, DeviceFeature.Sleeps, derived("low-power-sleep", ["wakeUp"]), DeviceFeature.Rebootable, derived("reboot", ["reboot"]), DeviceFeature.Resyncable, derived("resync", ["resync"]), DeviceFeature.NativeSnapshot, DeviceFeature.DoorbellButton, derived("doorbell"), DeviceFeature.TwoWayAudio, derived("intercom", [
|
|
112171
113459
|
"startTalkSession",
|
|
112172
113460
|
"pushTalkAudio",
|
|
112173
113461
|
"endTalkSession"
|
|
112174
|
-
]), DeviceFeature.PanTiltZoom, derived("ptz"), DeviceFeature.PtzAutotrack, derived("ptz-autotrack"), DeviceFeature.MotionTrigger, derived("motion-trigger", ["setMotionTrigger"]), DeviceFeature.TimedRun, derived("timed-run", ["runFor"]), DeviceFeature.Switch, DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired, DeviceFeature.ClimateDualSetpoint, DeviceFeature.ClimateHumidity, DeviceFeature.ClimateFanMode, DeviceFeature.ClimatePreset, DeviceFeature.ClimateSwingVertical, DeviceFeature.ClimateSwingHorizontal, DeviceFeature.CoverPositionable, DeviceFeature.CoverTilt, DeviceFeature.CoverStoppable, DeviceFeature.ValvePositionable, DeviceFeature.FanSpeed, DeviceFeature.FanPreset, DeviceFeature.FanDirection, DeviceFeature.FanOscillating, DeviceFeature.
|
|
113462
|
+
]), DeviceFeature.PanTiltZoom, derived("ptz"), DeviceFeature.PtzAutotrack, derived("ptz-autotrack"), DeviceFeature.MotionTrigger, derived("motion-trigger", ["setMotionTrigger"]), DeviceFeature.TimedRun, derived("timed-run", ["runFor"]), DeviceFeature.Switch, DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired, DeviceFeature.ClimateDualSetpoint, DeviceFeature.ClimateHumidity, DeviceFeature.ClimateFanMode, DeviceFeature.ClimatePreset, DeviceFeature.ClimateSwingVertical, DeviceFeature.ClimateSwingHorizontal, DeviceFeature.CoverPositionable, DeviceFeature.CoverTilt, DeviceFeature.CoverStoppable, DeviceFeature.ValvePositionable, DeviceFeature.FanSpeed, DeviceFeature.FanPreset, DeviceFeature.FanDirection, DeviceFeature.FanOscillating, DeviceFeature.LockOpen, DeviceFeature.MediaPlayerSeek, DeviceFeature.MediaPlayerVolume, DeviceFeature.MediaPlayerMute, DeviceFeature.MediaPlayerShuffle, DeviceFeature.MediaPlayerRepeat, DeviceFeature.MediaPlayerSelectSource, DeviceFeature.MediaPlayerPlayMedia, DeviceFeature.MediaPlayerNext, DeviceFeature.MediaPlayerPrevious, DeviceFeature.MediaPlayerStop, DeviceFeature.MediaPlayerVolumeStep, DeviceFeature.MediaPlayerChannelStep, DeviceFeature.MediaPlayerPower, DeviceFeature.PresenceGps, DeviceFeature.NotifierImage, DeviceFeature.NotifierPriority, DeviceFeature.NotifierData, DeviceFeature.NotifierActions, DeviceFeature.NotifierRecipients, DeviceFeature.ScriptVariables, DeviceFeature.AutomationSkipCondition, DeviceFeature.VacuumHasAi, DeviceFeature.MowerHasTargetedMowing, DeviceFeature.Navigation, derived("navigation"), DeviceFeature.NetworkLink, derived("network-link");
|
|
112175
113463
|
var ALL_FEATURES = Object.values(DeviceFeature);
|
|
112176
113464
|
new Set(ALL_FEATURES);
|
|
112177
113465
|
DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
|
|
@@ -112214,7 +113502,7 @@ function offered(received) {
|
|
|
112214
113502
|
}
|
|
112215
113503
|
offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
|
|
112216
113504
|
DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Workload, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
|
|
112217
|
-
DeviceRole.Siren, DeviceRole.Floodlight, DeviceRole.Spotlight, DeviceRole.PirSensor, DeviceRole.Chime, DeviceRole.Autotrack, DeviceRole.Nightvision, DeviceRole.PrivacyMask, DeviceRole.Doorbell, DeviceRole.CoverBlind, DeviceRole.CoverShutter, DeviceRole.CoverAwning, DeviceRole.CoverCurtain, DeviceRole.CoverGarage, DeviceRole.CoverGate, DeviceRole.CoverDoor, DeviceRole.CoverWindow, DeviceRole.BinaryHelper, DeviceRole.Outlet, DeviceRole.SwitchHeater, DeviceRole.SwitchFan, DeviceRole.SwitchLight, DeviceRole.PoePort, DeviceRole.ClimateAc, DeviceRole.ClimateThermostat, DeviceRole.ClimateFloor, DeviceRole.ClimateRadiator, DeviceRole.ClimateHeater, DeviceRole.ClimateHeatPumpCircuit, DeviceRole.MotionSensor, DeviceRole.ContactSensor, DeviceRole.LeakSensor, DeviceRole.SmokeSensor, DeviceRole.COSensor, DeviceRole.GasSensor, DeviceRole.TamperSensor, DeviceRole.VibrationSensor, DeviceRole.ConnectivitySensor, DeviceRole.SoundSensor, DeviceRole.BinarySensor, DeviceRole.TemperatureSensor, DeviceRole.HumiditySensor, DeviceRole.AmbientLightSensor, DeviceRole.PressureSensor, DeviceRole.WindSensor, DeviceRole.RainSensor, DeviceRole.UvSensor, DeviceRole.SolarRadiationSensor, DeviceRole.SoilMoistureSensor, DeviceRole.PowerSensor, DeviceRole.EnergySensor, DeviceRole.VoltageSensor, DeviceRole.CurrentSensor, DeviceRole.AirQualitySensor, DeviceRole.BatterySensor, DeviceRole.NumericSensor, DeviceRole.EnumSensor, DeviceRole.DateTimeSensor, DeviceRole.GenericSensor, DeviceRole.NumericControl, DeviceRole.SelectControl, DeviceRole.TextControl, DeviceRole.DateTimeControl, DeviceRole.MobilePushNotifier, DeviceRole.MessagingNotifier, DeviceRole.EmailNotifier, DeviceRole.GenericNotifier, DeviceRole.IrTransmitter, DeviceRole.Vm, DeviceRole.AppContainer, DeviceRole.Lxc, DeviceRole.App, DeviceRole.Host;
|
|
113505
|
+
DeviceRole.Siren, DeviceRole.Floodlight, DeviceRole.Spotlight, DeviceRole.PirSensor, DeviceRole.Chime, DeviceRole.Autotrack, DeviceRole.Nightvision, DeviceRole.PrivacyMask, DeviceRole.Doorbell, DeviceRole.CoverBlind, DeviceRole.CoverShutter, DeviceRole.CoverAwning, DeviceRole.CoverCurtain, DeviceRole.CoverGarage, DeviceRole.CoverGate, DeviceRole.CoverDoor, DeviceRole.CoverWindow, DeviceRole.BinaryHelper, DeviceRole.Outlet, DeviceRole.SwitchHeater, DeviceRole.SwitchFan, DeviceRole.SwitchLight, DeviceRole.PoePort, DeviceRole.ClimateAc, DeviceRole.ClimateThermostat, DeviceRole.ClimateFloor, DeviceRole.ClimateRadiator, DeviceRole.ClimateHeater, DeviceRole.ClimateHeatPumpCircuit, DeviceRole.MotionSensor, DeviceRole.ContactSensor, DeviceRole.LeakSensor, DeviceRole.SmokeSensor, DeviceRole.COSensor, DeviceRole.GasSensor, DeviceRole.TamperSensor, DeviceRole.VibrationSensor, DeviceRole.ConnectivitySensor, DeviceRole.SoundSensor, DeviceRole.BinarySensor, DeviceRole.TemperatureSensor, DeviceRole.HumiditySensor, DeviceRole.AmbientLightSensor, DeviceRole.PressureSensor, DeviceRole.WindSensor, DeviceRole.RainSensor, DeviceRole.UvSensor, DeviceRole.SolarRadiationSensor, DeviceRole.SoilMoistureSensor, DeviceRole.PowerSensor, DeviceRole.EnergySensor, DeviceRole.VoltageSensor, DeviceRole.CurrentSensor, DeviceRole.AirQualitySensor, DeviceRole.BatterySensor, DeviceRole.NumericSensor, DeviceRole.EnumSensor, DeviceRole.DateTimeSensor, DeviceRole.GenericSensor, DeviceRole.NumericControl, DeviceRole.SelectControl, DeviceRole.TextControl, DeviceRole.DateTimeControl, DeviceRole.MobilePushNotifier, DeviceRole.MessagingNotifier, DeviceRole.EmailNotifier, DeviceRole.GenericNotifier, DeviceRole.IrTransmitter, DeviceRole.Vm, DeviceRole.AppContainer, DeviceRole.Lxc, DeviceRole.App, DeviceRole.Host, DeviceRole.Ups;
|
|
112218
113506
|
new Set(Object.values(DeviceType));
|
|
112219
113507
|
new Set(Object.values(DeviceRole));
|
|
112220
113508
|
var PowerSwitchRefusedError = class extends Error {
|
|
@@ -112510,11 +113798,6 @@ Object.freeze({
|
|
|
112510
113798
|
form: "single",
|
|
112511
113799
|
optional: false
|
|
112512
113800
|
}],
|
|
112513
|
-
"battery.wakeForStream": [{
|
|
112514
|
-
name: "deviceId",
|
|
112515
|
-
form: "single",
|
|
112516
|
-
optional: false
|
|
112517
|
-
}],
|
|
112518
113801
|
"binary.getStatus": [{
|
|
112519
113802
|
name: "deviceId",
|
|
112520
113803
|
form: "single",
|
|
@@ -112994,6 +114277,11 @@ Object.freeze({
|
|
|
112994
114277
|
form: "array",
|
|
112995
114278
|
optional: true
|
|
112996
114279
|
}],
|
|
114280
|
+
"deviceManager.listIdentityLinks": [{
|
|
114281
|
+
name: "deviceId",
|
|
114282
|
+
form: "single",
|
|
114283
|
+
optional: true
|
|
114284
|
+
}],
|
|
112997
114285
|
"deviceManager.loadConfig": [{
|
|
112998
114286
|
name: "deviceId",
|
|
112999
114287
|
form: "single",
|
|
@@ -113044,6 +114332,11 @@ Object.freeze({
|
|
|
113044
114332
|
form: "single",
|
|
113045
114333
|
optional: false
|
|
113046
114334
|
}],
|
|
114335
|
+
"deviceManager.setAttachedIdentifiers": [{
|
|
114336
|
+
name: "deviceId",
|
|
114337
|
+
form: "single",
|
|
114338
|
+
optional: false
|
|
114339
|
+
}],
|
|
113047
114340
|
"deviceManager.setChildLayout": [{
|
|
113048
114341
|
name: "deviceId",
|
|
113049
114342
|
form: "single",
|
|
@@ -113238,6 +114531,20 @@ Object.freeze({
|
|
|
113238
114531
|
form: "single",
|
|
113239
114532
|
optional: false
|
|
113240
114533
|
}],
|
|
114534
|
+
"deviceStateRefresh.refresh": [{
|
|
114535
|
+
name: "deviceId",
|
|
114536
|
+
form: "single",
|
|
114537
|
+
optional: false
|
|
114538
|
+
}, {
|
|
114539
|
+
name: "deviceIds",
|
|
114540
|
+
form: "array",
|
|
114541
|
+
optional: false
|
|
114542
|
+
}],
|
|
114543
|
+
"deviceStateRefresh.resubscribe": [{
|
|
114544
|
+
name: "deviceId",
|
|
114545
|
+
form: "single",
|
|
114546
|
+
optional: false
|
|
114547
|
+
}],
|
|
113241
114548
|
"deviceStatus.getStatus": [{
|
|
113242
114549
|
name: "deviceId",
|
|
113243
114550
|
form: "single",
|
|
@@ -113698,6 +115005,16 @@ Object.freeze({
|
|
|
113698
115005
|
form: "single",
|
|
113699
115006
|
optional: true
|
|
113700
115007
|
}],
|
|
115008
|
+
"lowPowerSleep.getStatus": [{
|
|
115009
|
+
name: "deviceId",
|
|
115010
|
+
form: "single",
|
|
115011
|
+
optional: false
|
|
115012
|
+
}],
|
|
115013
|
+
"lowPowerSleep.wakeUp": [{
|
|
115014
|
+
name: "deviceId",
|
|
115015
|
+
form: "single",
|
|
115016
|
+
optional: false
|
|
115017
|
+
}],
|
|
113701
115018
|
"mediaPlayer.channelDown": [{
|
|
113702
115019
|
name: "deviceId",
|
|
113703
115020
|
form: "single",
|
|
@@ -114983,6 +116300,11 @@ Object.freeze({
|
|
|
114983
116300
|
form: "single",
|
|
114984
116301
|
optional: false
|
|
114985
116302
|
}],
|
|
116303
|
+
"resync.resync": [{
|
|
116304
|
+
name: "deviceId",
|
|
116305
|
+
form: "single",
|
|
116306
|
+
optional: false
|
|
116307
|
+
}],
|
|
114986
116308
|
"runningState.getStatus": [{
|
|
114987
116309
|
name: "deviceId",
|
|
114988
116310
|
form: "single",
|
|
@@ -146760,6 +148082,7 @@ var HmContainerDevice = class HmContainerDevice extends BaseDevice {
|
|
|
146760
148082
|
constructor(ctx) {
|
|
146761
148083
|
const cfg = hmContainerSchema.parse(ctx.persistedConfig ?? {});
|
|
146762
148084
|
super(ctx, hmContainerSchema, { type: DeviceType.Container });
|
|
148085
|
+
this.ctx.registerNativeCap(resyncCapability, resyncThroughAdoption(this.ctx.api.deviceManager, this.id));
|
|
146763
148086
|
this.address = cfg.address;
|
|
146764
148087
|
this.integrationId = cfg.integrationId;
|
|
146765
148088
|
const hmDevice = this.resolveHmDevice();
|
|
@@ -148813,6 +150136,7 @@ function buildHomematicInstances(records, deps) {
|
|
|
148813
150136
|
},
|
|
148814
150137
|
formSchema: () => buildConnectionFormSchema(),
|
|
148815
150138
|
initialBody: (name) => ({ name }),
|
|
150139
|
+
addDevice: () => "children",
|
|
148816
150140
|
configured: (body) => (body.host ?? "").trim().length > 0,
|
|
148817
150141
|
onChanged: () => deps.onChanged(),
|
|
148818
150142
|
test: async ({ id, values }) => {
|