@camstack/addon-provider-homematic 1.2.206 → 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 +6 -0
- package/dist/_stub.js +658 -658
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_page-DZpqsn6u.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 +1092 -75
- package/dist/addon.mjs +1092 -75
- package/dist/{hostInit-DBO78Hu-.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-D1CbMi19.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-Bwve1HPK.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-DSjxilwJ.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-CiaZc7Zu.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-DaUa1YeZ.mjs +0 -26
package/dist/addon.js
CHANGED
|
@@ -8,7 +8,7 @@ let crypto$1 = require("crypto");
|
|
|
8
8
|
let fs_promises = require("fs/promises");
|
|
9
9
|
let path = require("path");
|
|
10
10
|
let node_os = require("node:os");
|
|
11
|
-
//#region ../types/dist/event-category-
|
|
11
|
+
//#region ../types/dist/event-category-7P4A3bYA.mjs
|
|
12
12
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
13
13
|
EventCategory["SystemBoot"] = "system.boot";
|
|
14
14
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -239,6 +239,20 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
239
239
|
* dropped) — consumers MUST also gate on the device record's `probed` flag.
|
|
240
240
|
*/
|
|
241
241
|
EventCategory["DeviceReady"] = "device.ready";
|
|
242
|
+
/**
|
|
243
|
+
* An identity link (D1063) became `linked` — auto on strong evidence or
|
|
244
|
+
* confirmed by the operator — or a confirmed link's evidence came back. Telemetry: the `identity-links` record is the
|
|
245
|
+
* truth, and core-blocks reconciles its contributions from it as well.
|
|
246
|
+
* Payload: `IdentityLinkEventPayload`.
|
|
247
|
+
*/
|
|
248
|
+
EventCategory["IdentityLinkCreated"] = "identity-link.created";
|
|
249
|
+
/**
|
|
250
|
+
* A `linked` identity link stopped acting: its evidence is gone (an auto link
|
|
251
|
+
* is deleted; an operator-confirmed one stays `linked`, flagged
|
|
252
|
+
* `evidenceGone`, and no longer acts), a side was removed, or the operator
|
|
253
|
+
* unlinked it. Payload: `IdentityLinkEventPayload` with `reason`.
|
|
254
|
+
*/
|
|
255
|
+
EventCategory["IdentityLinkLost"] = "identity-link.lost";
|
|
242
256
|
EventCategory["IntegrationEnabled"] = "integration.enabled";
|
|
243
257
|
EventCategory["IntegrationDisabled"] = "integration.disabled";
|
|
244
258
|
EventCategory["IntegrationDeleted"] = "integration.deleted";
|
|
@@ -840,7 +854,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
840
854
|
return EventCategory;
|
|
841
855
|
}({});
|
|
842
856
|
//#endregion
|
|
843
|
-
//#region ../types/dist/composed-stable-id-
|
|
857
|
+
//#region ../types/dist/composed-stable-id-DIeNz933.mjs
|
|
844
858
|
/**
|
|
845
859
|
import { errMsg } from '@camstack/types'
|
|
846
860
|
* Extract a human-readable message from an unknown error value.
|
|
@@ -1288,6 +1302,9 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
1288
1302
|
/** A machine that runs workloads or is an appliance with its own OS: a
|
|
1289
1303
|
* server, a hypervisor, a gateway console, a CCU. */
|
|
1290
1304
|
DeviceRole["Host"] = "host";
|
|
1305
|
+
/** An uninterruptible power supply: battery charge, mains status and load. A
|
|
1306
|
+
* `DeviceType.Sensor` device. */
|
|
1307
|
+
DeviceRole["Ups"] = "ups";
|
|
1291
1308
|
return DeviceRole;
|
|
1292
1309
|
}({});
|
|
1293
1310
|
/**
|
|
@@ -6114,7 +6131,7 @@ var ZodIssueCode = {
|
|
|
6114
6131
|
var ZodFirstPartyTypeKind;
|
|
6115
6132
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6116
6133
|
//#endregion
|
|
6117
|
-
//#region ../types/dist/
|
|
6134
|
+
//#region ../types/dist/runtime-capabilities-qX7BpOYT.mjs
|
|
6118
6135
|
/**
|
|
6119
6136
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6120
6137
|
* window to float samples (D455).
|
|
@@ -7323,6 +7340,18 @@ function isInstanceEnabled(body) {
|
|
|
7323
7340
|
}
|
|
7324
7341
|
/** The body key of the switch; only {@link RecordIntegrationInstances.setInstanceEnabled} writes it. */
|
|
7325
7342
|
var SWITCH_KEY = "enabled";
|
|
7343
|
+
/**
|
|
7344
|
+
* The "Add device" mode an instance gets when its provider states none, from how the provider's
|
|
7345
|
+
* devices are found: `lan` scans, `account` adopts the account's children, anything else is manual.
|
|
7346
|
+
* The one place this default lives.
|
|
7347
|
+
*/
|
|
7348
|
+
function defaultAddDeviceMode(description) {
|
|
7349
|
+
switch (description.discovery?.mode) {
|
|
7350
|
+
case "lan": return "scan";
|
|
7351
|
+
case "account": return "children";
|
|
7352
|
+
default: return "none";
|
|
7353
|
+
}
|
|
7354
|
+
}
|
|
7326
7355
|
/** The keys of the kind's secret fields that sit at the top level of the body. */
|
|
7327
7356
|
function topLevelSecretKeys(paths) {
|
|
7328
7357
|
return new Set(paths.filter((p) => !p.includes(".") && !p.includes("[") && !p.includes("{")));
|
|
@@ -7425,6 +7454,7 @@ var RecordIntegrationInstances = class {
|
|
|
7425
7454
|
enabled: isInstanceEnabled(record.data),
|
|
7426
7455
|
formValues: shown,
|
|
7427
7456
|
kind,
|
|
7457
|
+
addDevice: this.hooks.addDevice?.(record.data) ?? defaultAddDeviceMode(this.hooks.description),
|
|
7428
7458
|
...health?.status !== void 0 ? { status: health.status } : {},
|
|
7429
7459
|
...health?.lastCheckedAt !== void 0 ? { lastCheckedAt: health.lastCheckedAt } : {}
|
|
7430
7460
|
};
|
|
@@ -10856,6 +10886,10 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
10856
10886
|
it: "Commuta {device}"
|
|
10857
10887
|
},
|
|
10858
10888
|
icon: "toggle-right",
|
|
10889
|
+
sideEffects: [{
|
|
10890
|
+
field: "on",
|
|
10891
|
+
negate: true
|
|
10892
|
+
}],
|
|
10859
10893
|
offeredWhen: {
|
|
10860
10894
|
method: "getOptions",
|
|
10861
10895
|
field: "supportsSetState"
|
|
@@ -11970,7 +12004,15 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
11970
12004
|
effect: {
|
|
11971
12005
|
field: "state",
|
|
11972
12006
|
value: "locked"
|
|
11973
|
-
}
|
|
12007
|
+
},
|
|
12008
|
+
hold: { effects: [{
|
|
12009
|
+
field: "state",
|
|
12010
|
+
value: "locking",
|
|
12011
|
+
when: {
|
|
12012
|
+
field: "state",
|
|
12013
|
+
notIn: ["locked"]
|
|
12014
|
+
}
|
|
12015
|
+
}] }
|
|
11974
12016
|
},
|
|
11975
12017
|
{
|
|
11976
12018
|
id: "lock.unlock",
|
|
@@ -11999,7 +12041,15 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
11999
12041
|
effect: {
|
|
12000
12042
|
field: "state",
|
|
12001
12043
|
value: "unlocked"
|
|
12002
|
-
}
|
|
12044
|
+
},
|
|
12045
|
+
hold: { effects: [{
|
|
12046
|
+
field: "state",
|
|
12047
|
+
value: "unlocking",
|
|
12048
|
+
when: {
|
|
12049
|
+
field: "state",
|
|
12050
|
+
notIn: ["unlocked"]
|
|
12051
|
+
}
|
|
12052
|
+
}] }
|
|
12003
12053
|
},
|
|
12004
12054
|
{
|
|
12005
12055
|
id: "lock.open",
|
|
@@ -12313,6 +12363,14 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
12313
12363
|
step: .5,
|
|
12314
12364
|
unit: "°C"
|
|
12315
12365
|
}
|
|
12366
|
+
}],
|
|
12367
|
+
effect: {
|
|
12368
|
+
field: "targetLow",
|
|
12369
|
+
fromArg: "targetLow"
|
|
12370
|
+
},
|
|
12371
|
+
sideEffects: [{
|
|
12372
|
+
field: "targetHigh",
|
|
12373
|
+
fromArg: "targetHigh"
|
|
12316
12374
|
}]
|
|
12317
12375
|
},
|
|
12318
12376
|
{
|
|
@@ -12369,7 +12427,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
12369
12427
|
from: "status",
|
|
12370
12428
|
field: "availableFanModes"
|
|
12371
12429
|
}
|
|
12372
|
-
}]
|
|
12430
|
+
}],
|
|
12431
|
+
effect: {
|
|
12432
|
+
field: "fanMode",
|
|
12433
|
+
fromArg: "fanMode"
|
|
12434
|
+
}
|
|
12373
12435
|
},
|
|
12374
12436
|
{
|
|
12375
12437
|
id: "climate.preset",
|
|
@@ -12394,7 +12456,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
12394
12456
|
from: "status",
|
|
12395
12457
|
field: "availablePresets"
|
|
12396
12458
|
}
|
|
12397
|
-
}]
|
|
12459
|
+
}],
|
|
12460
|
+
effect: {
|
|
12461
|
+
field: "preset",
|
|
12462
|
+
fromArg: "preset"
|
|
12463
|
+
}
|
|
12398
12464
|
},
|
|
12399
12465
|
{
|
|
12400
12466
|
id: "climate.swingVerticalOn",
|
|
@@ -12627,7 +12693,15 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
12627
12693
|
effect: {
|
|
12628
12694
|
field: "speed",
|
|
12629
12695
|
value: 100
|
|
12630
|
-
}
|
|
12696
|
+
},
|
|
12697
|
+
sideEffects: [{
|
|
12698
|
+
field: "preset",
|
|
12699
|
+
value: "",
|
|
12700
|
+
when: {
|
|
12701
|
+
field: "preset",
|
|
12702
|
+
notIn: [""]
|
|
12703
|
+
}
|
|
12704
|
+
}]
|
|
12631
12705
|
},
|
|
12632
12706
|
{
|
|
12633
12707
|
id: "fan.speed",
|
|
@@ -12658,7 +12732,15 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
12658
12732
|
effect: {
|
|
12659
12733
|
field: "speed",
|
|
12660
12734
|
fromArg: "speed"
|
|
12661
|
-
}
|
|
12735
|
+
},
|
|
12736
|
+
sideEffects: [{
|
|
12737
|
+
field: "preset",
|
|
12738
|
+
value: "",
|
|
12739
|
+
when: {
|
|
12740
|
+
field: "preset",
|
|
12741
|
+
notIn: [""]
|
|
12742
|
+
}
|
|
12743
|
+
}]
|
|
12662
12744
|
},
|
|
12663
12745
|
{
|
|
12664
12746
|
id: "fan.preset",
|
|
@@ -12683,7 +12765,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
12683
12765
|
from: "status",
|
|
12684
12766
|
field: "availablePresets"
|
|
12685
12767
|
}
|
|
12686
|
-
}]
|
|
12768
|
+
}],
|
|
12769
|
+
effect: {
|
|
12770
|
+
field: "preset",
|
|
12771
|
+
fromArg: "preset"
|
|
12772
|
+
}
|
|
12687
12773
|
},
|
|
12688
12774
|
{
|
|
12689
12775
|
id: "fan.forward",
|
|
@@ -13228,7 +13314,15 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
13228
13314
|
effect: {
|
|
13229
13315
|
field: "state",
|
|
13230
13316
|
value: "disarmed"
|
|
13231
|
-
}
|
|
13317
|
+
},
|
|
13318
|
+
hold: { effects: [{
|
|
13319
|
+
field: "state",
|
|
13320
|
+
value: "disarming",
|
|
13321
|
+
when: {
|
|
13322
|
+
field: "state",
|
|
13323
|
+
notIn: ["disarmed"]
|
|
13324
|
+
}
|
|
13325
|
+
}] }
|
|
13232
13326
|
},
|
|
13233
13327
|
{
|
|
13234
13328
|
id: "alarm.arm.home",
|
|
@@ -13258,7 +13352,15 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
13258
13352
|
effect: {
|
|
13259
13353
|
field: "state",
|
|
13260
13354
|
value: "armed_home"
|
|
13261
|
-
}
|
|
13355
|
+
},
|
|
13356
|
+
hold: { effects: [{
|
|
13357
|
+
field: "state",
|
|
13358
|
+
value: "arming",
|
|
13359
|
+
when: {
|
|
13360
|
+
field: "state",
|
|
13361
|
+
notIn: ["armed_home"]
|
|
13362
|
+
}
|
|
13363
|
+
}] }
|
|
13262
13364
|
},
|
|
13263
13365
|
{
|
|
13264
13366
|
id: "alarm.arm.away",
|
|
@@ -13288,7 +13390,15 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
13288
13390
|
effect: {
|
|
13289
13391
|
field: "state",
|
|
13290
13392
|
value: "armed_away"
|
|
13291
|
-
}
|
|
13393
|
+
},
|
|
13394
|
+
hold: { effects: [{
|
|
13395
|
+
field: "state",
|
|
13396
|
+
value: "arming",
|
|
13397
|
+
when: {
|
|
13398
|
+
field: "state",
|
|
13399
|
+
notIn: ["armed_away"]
|
|
13400
|
+
}
|
|
13401
|
+
}] }
|
|
13292
13402
|
},
|
|
13293
13403
|
{
|
|
13294
13404
|
id: "alarm.arm.night",
|
|
@@ -13318,7 +13428,15 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
13318
13428
|
effect: {
|
|
13319
13429
|
field: "state",
|
|
13320
13430
|
value: "armed_night"
|
|
13321
|
-
}
|
|
13431
|
+
},
|
|
13432
|
+
hold: { effects: [{
|
|
13433
|
+
field: "state",
|
|
13434
|
+
value: "arming",
|
|
13435
|
+
when: {
|
|
13436
|
+
field: "state",
|
|
13437
|
+
notIn: ["armed_night"]
|
|
13438
|
+
}
|
|
13439
|
+
}] }
|
|
13322
13440
|
},
|
|
13323
13441
|
{
|
|
13324
13442
|
id: "alarm.arm.vacation",
|
|
@@ -13348,7 +13466,15 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
13348
13466
|
effect: {
|
|
13349
13467
|
field: "state",
|
|
13350
13468
|
value: "armed_vacation"
|
|
13351
|
-
}
|
|
13469
|
+
},
|
|
13470
|
+
hold: { effects: [{
|
|
13471
|
+
field: "state",
|
|
13472
|
+
value: "arming",
|
|
13473
|
+
when: {
|
|
13474
|
+
field: "state",
|
|
13475
|
+
notIn: ["armed_vacation"]
|
|
13476
|
+
}
|
|
13477
|
+
}] }
|
|
13352
13478
|
},
|
|
13353
13479
|
{
|
|
13354
13480
|
id: "alarm.arm.custom_bypass",
|
|
@@ -13378,7 +13504,15 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
13378
13504
|
effect: {
|
|
13379
13505
|
field: "state",
|
|
13380
13506
|
value: "armed_custom_bypass"
|
|
13381
|
-
}
|
|
13507
|
+
},
|
|
13508
|
+
hold: { effects: [{
|
|
13509
|
+
field: "state",
|
|
13510
|
+
value: "arming",
|
|
13511
|
+
when: {
|
|
13512
|
+
field: "state",
|
|
13513
|
+
notIn: ["armed_custom_bypass"]
|
|
13514
|
+
}
|
|
13515
|
+
}] }
|
|
13382
13516
|
}
|
|
13383
13517
|
],
|
|
13384
13518
|
state: [{
|
|
@@ -14520,7 +14654,14 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14520
14654
|
quantity: "mass"
|
|
14521
14655
|
},
|
|
14522
14656
|
optional: true
|
|
14523
|
-
}]
|
|
14657
|
+
}],
|
|
14658
|
+
hold: {
|
|
14659
|
+
effects: [{
|
|
14660
|
+
field: "feeding",
|
|
14661
|
+
value: true
|
|
14662
|
+
}],
|
|
14663
|
+
holdMs: 1e4
|
|
14664
|
+
}
|
|
14524
14665
|
},
|
|
14525
14666
|
{
|
|
14526
14667
|
id: "petFeeder.feedHoppers",
|
|
@@ -14564,7 +14705,14 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14564
14705
|
quantity: "mass"
|
|
14565
14706
|
},
|
|
14566
14707
|
optional: true
|
|
14567
|
-
}]
|
|
14708
|
+
}],
|
|
14709
|
+
hold: {
|
|
14710
|
+
effects: [{
|
|
14711
|
+
field: "feeding",
|
|
14712
|
+
value: true
|
|
14713
|
+
}],
|
|
14714
|
+
holdMs: 1e4
|
|
14715
|
+
}
|
|
14568
14716
|
},
|
|
14569
14717
|
{
|
|
14570
14718
|
id: "petFeeder.cancelFeed",
|
|
@@ -14655,7 +14803,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14655
14803
|
it: "Attiva il blocco bambini di {device}"
|
|
14656
14804
|
},
|
|
14657
14805
|
icon: "lock",
|
|
14658
|
-
args: { on: true }
|
|
14806
|
+
args: { on: true },
|
|
14807
|
+
effect: {
|
|
14808
|
+
field: "childLock",
|
|
14809
|
+
value: true
|
|
14810
|
+
}
|
|
14659
14811
|
},
|
|
14660
14812
|
{
|
|
14661
14813
|
id: "petFeeder.childLockOff",
|
|
@@ -14669,7 +14821,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14669
14821
|
it: "Disattiva il blocco bambini di {device}"
|
|
14670
14822
|
},
|
|
14671
14823
|
icon: "lock-open",
|
|
14672
|
-
args: { on: false }
|
|
14824
|
+
args: { on: false },
|
|
14825
|
+
effect: {
|
|
14826
|
+
field: "childLock",
|
|
14827
|
+
value: false
|
|
14828
|
+
}
|
|
14673
14829
|
},
|
|
14674
14830
|
{
|
|
14675
14831
|
id: "petFeeder.lightOn",
|
|
@@ -14683,7 +14839,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14683
14839
|
it: "Accendi la spia di {device}"
|
|
14684
14840
|
},
|
|
14685
14841
|
icon: "lightbulb",
|
|
14686
|
-
args: { on: true }
|
|
14842
|
+
args: { on: true },
|
|
14843
|
+
effect: {
|
|
14844
|
+
field: "indicatorLight",
|
|
14845
|
+
value: true
|
|
14846
|
+
}
|
|
14687
14847
|
},
|
|
14688
14848
|
{
|
|
14689
14849
|
id: "petFeeder.lightOff",
|
|
@@ -14697,7 +14857,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14697
14857
|
it: "Spegni la spia di {device}"
|
|
14698
14858
|
},
|
|
14699
14859
|
icon: "lightbulb-off",
|
|
14700
|
-
args: { on: false }
|
|
14860
|
+
args: { on: false },
|
|
14861
|
+
effect: {
|
|
14862
|
+
field: "indicatorLight",
|
|
14863
|
+
value: false
|
|
14864
|
+
}
|
|
14701
14865
|
},
|
|
14702
14866
|
{
|
|
14703
14867
|
id: "petFeeder.feedSoundOn",
|
|
@@ -14711,7 +14875,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14711
14875
|
it: "Attiva il suono di erogazione di {device}"
|
|
14712
14876
|
},
|
|
14713
14877
|
icon: "volume-2",
|
|
14714
|
-
args: { on: true }
|
|
14878
|
+
args: { on: true },
|
|
14879
|
+
effect: {
|
|
14880
|
+
field: "feedSound",
|
|
14881
|
+
value: true
|
|
14882
|
+
}
|
|
14715
14883
|
},
|
|
14716
14884
|
{
|
|
14717
14885
|
id: "petFeeder.feedSoundOff",
|
|
@@ -14725,7 +14893,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14725
14893
|
it: "Disattiva il suono di erogazione di {device}"
|
|
14726
14894
|
},
|
|
14727
14895
|
icon: "volume-x",
|
|
14728
|
-
args: { on: false }
|
|
14896
|
+
args: { on: false },
|
|
14897
|
+
effect: {
|
|
14898
|
+
field: "feedSound",
|
|
14899
|
+
value: false
|
|
14900
|
+
}
|
|
14729
14901
|
},
|
|
14730
14902
|
{
|
|
14731
14903
|
id: "petFeeder.volume",
|
|
@@ -14750,7 +14922,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14750
14922
|
min: 0,
|
|
14751
14923
|
step: 1
|
|
14752
14924
|
}
|
|
14753
|
-
}]
|
|
14925
|
+
}],
|
|
14926
|
+
effect: {
|
|
14927
|
+
field: "volume",
|
|
14928
|
+
fromArg: "level"
|
|
14929
|
+
}
|
|
14754
14930
|
}
|
|
14755
14931
|
],
|
|
14756
14932
|
state: [
|
|
@@ -14822,7 +14998,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14822
14998
|
it: "Avvia la pompa di {device}"
|
|
14823
14999
|
},
|
|
14824
15000
|
icon: "play",
|
|
14825
|
-
args: { on: true }
|
|
15001
|
+
args: { on: true },
|
|
15002
|
+
effect: {
|
|
15003
|
+
field: "pumpRunning",
|
|
15004
|
+
value: true
|
|
15005
|
+
}
|
|
14826
15006
|
}, {
|
|
14827
15007
|
id: "petFountain.pumpOff",
|
|
14828
15008
|
method: "setPump",
|
|
@@ -14835,7 +15015,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14835
15015
|
it: "Ferma la pompa di {device}"
|
|
14836
15016
|
},
|
|
14837
15017
|
icon: "square",
|
|
14838
|
-
args: { on: false }
|
|
15018
|
+
args: { on: false },
|
|
15019
|
+
effect: {
|
|
15020
|
+
field: "pumpRunning",
|
|
15021
|
+
value: false
|
|
15022
|
+
}
|
|
14839
15023
|
}],
|
|
14840
15024
|
state: [{
|
|
14841
15025
|
kind: "boolean",
|
|
@@ -14887,7 +15071,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14887
15071
|
it: "Fai lavorare la pompa di {device} a ciclo acceso/spento"
|
|
14888
15072
|
},
|
|
14889
15073
|
icon: "timer",
|
|
14890
|
-
args: { on: true }
|
|
15074
|
+
args: { on: true },
|
|
15075
|
+
effect: {
|
|
15076
|
+
field: "enabled",
|
|
15077
|
+
value: true
|
|
15078
|
+
}
|
|
14891
15079
|
},
|
|
14892
15080
|
{
|
|
14893
15081
|
id: "pumpCycle.off",
|
|
@@ -14901,7 +15089,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14901
15089
|
it: "Fai lavorare la pompa di {device} in continuo"
|
|
14902
15090
|
},
|
|
14903
15091
|
icon: "timer-off",
|
|
14904
|
-
args: { on: false }
|
|
15092
|
+
args: { on: false },
|
|
15093
|
+
effect: {
|
|
15094
|
+
field: "enabled",
|
|
15095
|
+
value: false
|
|
15096
|
+
}
|
|
14905
15097
|
},
|
|
14906
15098
|
{
|
|
14907
15099
|
id: "pumpCycle.onMinutes",
|
|
@@ -14927,7 +15119,12 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14927
15119
|
step: 1,
|
|
14928
15120
|
unit: "min"
|
|
14929
15121
|
}
|
|
14930
|
-
}]
|
|
15122
|
+
}],
|
|
15123
|
+
effect: {
|
|
15124
|
+
field: "onTime",
|
|
15125
|
+
fromArg: "minutes",
|
|
15126
|
+
scale: 60
|
|
15127
|
+
}
|
|
14931
15128
|
},
|
|
14932
15129
|
{
|
|
14933
15130
|
id: "pumpCycle.offMinutes",
|
|
@@ -14953,7 +15150,12 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14953
15150
|
step: 1,
|
|
14954
15151
|
unit: "min"
|
|
14955
15152
|
}
|
|
14956
|
-
}]
|
|
15153
|
+
}],
|
|
15154
|
+
effect: {
|
|
15155
|
+
field: "offTime",
|
|
15156
|
+
fromArg: "minutes",
|
|
15157
|
+
scale: 60
|
|
15158
|
+
}
|
|
14957
15159
|
}
|
|
14958
15160
|
],
|
|
14959
15161
|
state: [{
|
|
@@ -15070,7 +15272,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
15070
15272
|
en: "Play on {device}",
|
|
15071
15273
|
it: "Avvia la riproduzione su {device}"
|
|
15072
15274
|
},
|
|
15073
|
-
icon: "play"
|
|
15275
|
+
icon: "play",
|
|
15276
|
+
effect: {
|
|
15277
|
+
field: "state",
|
|
15278
|
+
value: "playing"
|
|
15279
|
+
}
|
|
15074
15280
|
},
|
|
15075
15281
|
{
|
|
15076
15282
|
id: "media.pause",
|
|
@@ -15083,7 +15289,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
15083
15289
|
en: "Pause {device}",
|
|
15084
15290
|
it: "Metti in pausa {device}"
|
|
15085
15291
|
},
|
|
15086
|
-
icon: "pause"
|
|
15292
|
+
icon: "pause",
|
|
15293
|
+
effect: {
|
|
15294
|
+
field: "state",
|
|
15295
|
+
value: "paused"
|
|
15296
|
+
}
|
|
15087
15297
|
},
|
|
15088
15298
|
{
|
|
15089
15299
|
id: "media.stop",
|
|
@@ -15149,7 +15359,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
15149
15359
|
step: 1,
|
|
15150
15360
|
unit: "%"
|
|
15151
15361
|
}
|
|
15152
|
-
}]
|
|
15362
|
+
}],
|
|
15363
|
+
effect: {
|
|
15364
|
+
field: "volumeLevel",
|
|
15365
|
+
fromArg: "volumeLevel"
|
|
15366
|
+
}
|
|
15153
15367
|
},
|
|
15154
15368
|
{
|
|
15155
15369
|
id: "media.mute",
|
|
@@ -15163,7 +15377,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
15163
15377
|
it: "Silenzia {device}"
|
|
15164
15378
|
},
|
|
15165
15379
|
icon: "volume-x",
|
|
15166
|
-
args: { muted: true }
|
|
15380
|
+
args: { muted: true },
|
|
15381
|
+
effect: {
|
|
15382
|
+
field: "isMuted",
|
|
15383
|
+
value: true
|
|
15384
|
+
}
|
|
15167
15385
|
},
|
|
15168
15386
|
{
|
|
15169
15387
|
id: "media.unmute",
|
|
@@ -15177,7 +15395,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
15177
15395
|
it: "Riattiva l’audio di {device}"
|
|
15178
15396
|
},
|
|
15179
15397
|
icon: "volume-2",
|
|
15180
|
-
args: { muted: false }
|
|
15398
|
+
args: { muted: false },
|
|
15399
|
+
effect: {
|
|
15400
|
+
field: "isMuted",
|
|
15401
|
+
value: false
|
|
15402
|
+
}
|
|
15181
15403
|
},
|
|
15182
15404
|
{
|
|
15183
15405
|
id: "media.shuffleOn",
|
|
@@ -15191,7 +15413,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
15191
15413
|
it: "Attiva la riproduzione casuale su {device}"
|
|
15192
15414
|
},
|
|
15193
15415
|
icon: "shuffle",
|
|
15194
|
-
args: { shuffle: true }
|
|
15416
|
+
args: { shuffle: true },
|
|
15417
|
+
effect: {
|
|
15418
|
+
field: "shuffle",
|
|
15419
|
+
value: true
|
|
15420
|
+
}
|
|
15195
15421
|
},
|
|
15196
15422
|
{
|
|
15197
15423
|
id: "media.shuffleOff",
|
|
@@ -15205,7 +15431,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
15205
15431
|
it: "Disattiva la riproduzione casuale su {device}"
|
|
15206
15432
|
},
|
|
15207
15433
|
icon: "shuffle",
|
|
15208
|
-
args: { shuffle: false }
|
|
15434
|
+
args: { shuffle: false },
|
|
15435
|
+
effect: {
|
|
15436
|
+
field: "shuffle",
|
|
15437
|
+
value: false
|
|
15438
|
+
}
|
|
15209
15439
|
},
|
|
15210
15440
|
{
|
|
15211
15441
|
id: "media.repeat",
|
|
@@ -15251,7 +15481,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
15251
15481
|
}
|
|
15252
15482
|
]
|
|
15253
15483
|
}
|
|
15254
|
-
}]
|
|
15484
|
+
}],
|
|
15485
|
+
effect: {
|
|
15486
|
+
field: "repeat",
|
|
15487
|
+
fromArg: "repeat"
|
|
15488
|
+
}
|
|
15255
15489
|
},
|
|
15256
15490
|
{
|
|
15257
15491
|
id: "media.source",
|
|
@@ -15276,7 +15510,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
15276
15510
|
from: "status",
|
|
15277
15511
|
field: "availableSources"
|
|
15278
15512
|
}
|
|
15279
|
-
}]
|
|
15513
|
+
}],
|
|
15514
|
+
effect: {
|
|
15515
|
+
field: "source",
|
|
15516
|
+
fromArg: "source"
|
|
15517
|
+
}
|
|
15280
15518
|
},
|
|
15281
15519
|
{
|
|
15282
15520
|
id: "media.seek",
|
|
@@ -15816,7 +16054,14 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
15816
16054
|
en: "Run {device}",
|
|
15817
16055
|
it: "Esegui {device}"
|
|
15818
16056
|
},
|
|
15819
|
-
icon: "scroll-text"
|
|
16057
|
+
icon: "scroll-text",
|
|
16058
|
+
hold: {
|
|
16059
|
+
effects: [{
|
|
16060
|
+
field: "isRunning",
|
|
16061
|
+
value: true
|
|
16062
|
+
}],
|
|
16063
|
+
holdMs: 1e4
|
|
16064
|
+
}
|
|
15820
16065
|
}, {
|
|
15821
16066
|
id: "script.stop",
|
|
15822
16067
|
method: "stop",
|
|
@@ -15828,7 +16073,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
15828
16073
|
en: "Stop {device}",
|
|
15829
16074
|
it: "Ferma {device}"
|
|
15830
16075
|
},
|
|
15831
|
-
icon: "square"
|
|
16076
|
+
icon: "square",
|
|
16077
|
+
effect: {
|
|
16078
|
+
field: "isRunning",
|
|
16079
|
+
value: false
|
|
16080
|
+
}
|
|
15832
16081
|
}],
|
|
15833
16082
|
state: [{
|
|
15834
16083
|
kind: "boolean",
|
|
@@ -15866,7 +16115,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
15866
16115
|
en: "Enable {device}",
|
|
15867
16116
|
it: "Abilita {device}"
|
|
15868
16117
|
},
|
|
15869
|
-
icon: "toggle-right"
|
|
16118
|
+
icon: "toggle-right",
|
|
16119
|
+
effect: {
|
|
16120
|
+
field: "enabled",
|
|
16121
|
+
value: true
|
|
16122
|
+
}
|
|
15870
16123
|
},
|
|
15871
16124
|
{
|
|
15872
16125
|
id: "haAutomation.disable",
|
|
@@ -15879,7 +16132,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
15879
16132
|
en: "Disable {device}",
|
|
15880
16133
|
it: "Disabilita {device}"
|
|
15881
16134
|
},
|
|
15882
|
-
icon: "toggle-left"
|
|
16135
|
+
icon: "toggle-left",
|
|
16136
|
+
effect: {
|
|
16137
|
+
field: "enabled",
|
|
16138
|
+
value: false
|
|
16139
|
+
}
|
|
15883
16140
|
},
|
|
15884
16141
|
{
|
|
15885
16142
|
id: "haAutomation.trigger",
|
|
@@ -17481,6 +17738,17 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
17481
17738
|
},
|
|
17482
17739
|
notOperatorFacing: { resync: "device adoption — re-aligning a device with its source is an onboarding step, not an automation action" }
|
|
17483
17740
|
},
|
|
17741
|
+
"device-state-refresh": {
|
|
17742
|
+
scope: "device",
|
|
17743
|
+
noun: {
|
|
17744
|
+
en: "State refresh",
|
|
17745
|
+
it: "Aggiornamento dello stato"
|
|
17746
|
+
},
|
|
17747
|
+
notOperatorFacing: {
|
|
17748
|
+
refresh: "the core schedules state refreshes itself; an operator never asks for one",
|
|
17749
|
+
resubscribe: "the core schedules state refreshes itself; an operator never asks for one"
|
|
17750
|
+
}
|
|
17751
|
+
},
|
|
17484
17752
|
"recording": {
|
|
17485
17753
|
scope: "device",
|
|
17486
17754
|
noun: {
|
|
@@ -20475,6 +20743,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
20475
20743
|
"device-removal-hook",
|
|
20476
20744
|
"device-runs",
|
|
20477
20745
|
"device-state",
|
|
20746
|
+
"device-state-refresh",
|
|
20478
20747
|
"device-status",
|
|
20479
20748
|
"device-transitions",
|
|
20480
20749
|
"dishwasher",
|
|
@@ -22115,6 +22384,10 @@ Object.freeze({
|
|
|
22115
22384
|
"path": "power",
|
|
22116
22385
|
"valueType": "number"
|
|
22117
22386
|
},
|
|
22387
|
+
{
|
|
22388
|
+
"path": "deliveredPower",
|
|
22389
|
+
"valueType": "number"
|
|
22390
|
+
},
|
|
22118
22391
|
{
|
|
22119
22392
|
"path": "energy",
|
|
22120
22393
|
"valueType": "number"
|
|
@@ -22933,7 +23206,7 @@ Object.freeze({
|
|
|
22933
23206
|
}
|
|
22934
23207
|
});
|
|
22935
23208
|
//#endregion
|
|
22936
|
-
//#region ../types/dist/implemented-methods-
|
|
23209
|
+
//#region ../types/dist/implemented-methods-wFScvZ40.mjs
|
|
22937
23210
|
/**
|
|
22938
23211
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
22939
23212
|
*
|
|
@@ -24093,6 +24366,8 @@ var CompositionItemEntrySchema = object({
|
|
|
24093
24366
|
*/
|
|
24094
24367
|
reset: CompositionForwardCommandSchema.optional()
|
|
24095
24368
|
});
|
|
24369
|
+
/** Which identity link added a feature (D1063). */
|
|
24370
|
+
var CompositionContributedBySchema = object({ linkId: string().min(1) });
|
|
24096
24371
|
var CompositionFeatureSchema = discriminatedUnion("kind", [object({
|
|
24097
24372
|
kind: literal("fields"),
|
|
24098
24373
|
cap: string().min(1),
|
|
@@ -24104,7 +24379,14 @@ var CompositionFeatureSchema = discriminatedUnion("kind", [object({
|
|
|
24104
24379
|
*/
|
|
24105
24380
|
items: record$1(string().regex(COMPOSITION_ITEM_KEY_RE), CompositionItemEntrySchema).refine((items) => Object.keys(items).length <= 16, { message: `at most 16 items` }).optional(),
|
|
24106
24381
|
/** Method name → what serves it. Only a BUILT capability takes commands (D967). */
|
|
24107
|
-
commands: record$1(string().min(1), CompositionCommandTargetSchema).optional()
|
|
24382
|
+
commands: record$1(string().min(1), CompositionCommandTargetSchema).optional(),
|
|
24383
|
+
/**
|
|
24384
|
+
* Provenance only (D1063): the identity link that added this feature. The
|
|
24385
|
+
* source ref stays in `fields`; `enabled` stays the operator's switch. An
|
|
24386
|
+
* operator edit of the source drops the stamp and the feature becomes the
|
|
24387
|
+
* operator's; a lost link removes only stamped features.
|
|
24388
|
+
*/
|
|
24389
|
+
contributedBy: CompositionContributedBySchema.optional()
|
|
24108
24390
|
}), object({
|
|
24109
24391
|
kind: literal("passthrough"),
|
|
24110
24392
|
cap: string().min(1),
|
|
@@ -53377,6 +53659,14 @@ var alarmPanelCapability = {
|
|
|
53377
53659
|
field: "state",
|
|
53378
53660
|
value: "disarmed"
|
|
53379
53661
|
},
|
|
53662
|
+
hold: { effects: [{
|
|
53663
|
+
field: "state",
|
|
53664
|
+
value: "disarming",
|
|
53665
|
+
when: {
|
|
53666
|
+
field: "state",
|
|
53667
|
+
notIn: ["disarmed"]
|
|
53668
|
+
}
|
|
53669
|
+
}] },
|
|
53380
53670
|
openArgs: [{
|
|
53381
53671
|
key: "code",
|
|
53382
53672
|
label: t("PIN code", "Codice PIN"),
|
|
@@ -53407,6 +53697,14 @@ var alarmPanelCapability = {
|
|
|
53407
53697
|
field: "state",
|
|
53408
53698
|
value: "armed_home"
|
|
53409
53699
|
},
|
|
53700
|
+
hold: { effects: [{
|
|
53701
|
+
field: "state",
|
|
53702
|
+
value: "arming",
|
|
53703
|
+
when: {
|
|
53704
|
+
field: "state",
|
|
53705
|
+
notIn: ["armed_home"]
|
|
53706
|
+
}
|
|
53707
|
+
}] },
|
|
53410
53708
|
args: { mode: "home" },
|
|
53411
53709
|
openArgs: [{
|
|
53412
53710
|
key: "code",
|
|
@@ -53427,6 +53725,14 @@ var alarmPanelCapability = {
|
|
|
53427
53725
|
field: "state",
|
|
53428
53726
|
value: "armed_away"
|
|
53429
53727
|
},
|
|
53728
|
+
hold: { effects: [{
|
|
53729
|
+
field: "state",
|
|
53730
|
+
value: "arming",
|
|
53731
|
+
when: {
|
|
53732
|
+
field: "state",
|
|
53733
|
+
notIn: ["armed_away"]
|
|
53734
|
+
}
|
|
53735
|
+
}] },
|
|
53430
53736
|
args: { mode: "away" },
|
|
53431
53737
|
openArgs: [{
|
|
53432
53738
|
key: "code",
|
|
@@ -53447,6 +53753,14 @@ var alarmPanelCapability = {
|
|
|
53447
53753
|
field: "state",
|
|
53448
53754
|
value: "armed_night"
|
|
53449
53755
|
},
|
|
53756
|
+
hold: { effects: [{
|
|
53757
|
+
field: "state",
|
|
53758
|
+
value: "arming",
|
|
53759
|
+
when: {
|
|
53760
|
+
field: "state",
|
|
53761
|
+
notIn: ["armed_night"]
|
|
53762
|
+
}
|
|
53763
|
+
}] },
|
|
53450
53764
|
args: { mode: "night" },
|
|
53451
53765
|
openArgs: [{
|
|
53452
53766
|
key: "code",
|
|
@@ -53467,6 +53781,14 @@ var alarmPanelCapability = {
|
|
|
53467
53781
|
field: "state",
|
|
53468
53782
|
value: "armed_vacation"
|
|
53469
53783
|
},
|
|
53784
|
+
hold: { effects: [{
|
|
53785
|
+
field: "state",
|
|
53786
|
+
value: "arming",
|
|
53787
|
+
when: {
|
|
53788
|
+
field: "state",
|
|
53789
|
+
notIn: ["armed_vacation"]
|
|
53790
|
+
}
|
|
53791
|
+
}] },
|
|
53470
53792
|
args: { mode: "vacation" },
|
|
53471
53793
|
openArgs: [{
|
|
53472
53794
|
key: "code",
|
|
@@ -53487,6 +53809,14 @@ var alarmPanelCapability = {
|
|
|
53487
53809
|
field: "state",
|
|
53488
53810
|
value: "armed_custom_bypass"
|
|
53489
53811
|
},
|
|
53812
|
+
hold: { effects: [{
|
|
53813
|
+
field: "state",
|
|
53814
|
+
value: "arming",
|
|
53815
|
+
when: {
|
|
53816
|
+
field: "state",
|
|
53817
|
+
notIn: ["armed_custom_bypass"]
|
|
53818
|
+
}
|
|
53819
|
+
}] },
|
|
53490
53820
|
args: { mode: "custom_bypass" },
|
|
53491
53821
|
openArgs: [{
|
|
53492
53822
|
key: "code",
|
|
@@ -54170,6 +54500,10 @@ var automationControlCapability = {
|
|
|
54170
54500
|
auth: "admin",
|
|
54171
54501
|
actions: [{
|
|
54172
54502
|
id: "haAutomation.enable",
|
|
54503
|
+
effect: {
|
|
54504
|
+
field: "enabled",
|
|
54505
|
+
value: true
|
|
54506
|
+
},
|
|
54173
54507
|
label: t("Enable automation", "Abilita l’automazione"),
|
|
54174
54508
|
phrase: t("Enable {device}", "Abilita {device}"),
|
|
54175
54509
|
icon: "toggle-right"
|
|
@@ -54180,6 +54514,10 @@ var automationControlCapability = {
|
|
|
54180
54514
|
auth: "admin",
|
|
54181
54515
|
actions: [{
|
|
54182
54516
|
id: "haAutomation.disable",
|
|
54517
|
+
effect: {
|
|
54518
|
+
field: "enabled",
|
|
54519
|
+
value: false
|
|
54520
|
+
},
|
|
54183
54521
|
label: t("Disable automation", "Disabilita l’automazione"),
|
|
54184
54522
|
phrase: t("Disable {device}", "Disabilita {device}"),
|
|
54185
54523
|
icon: "toggle-left"
|
|
@@ -56990,6 +57328,14 @@ var climateControlCapability = {
|
|
|
56990
57328
|
label: t("Set temperature range", "Imposta l’intervallo di temperatura"),
|
|
56991
57329
|
phrase: t("Keep {device} between {targetLow} and {targetHigh}", "Mantieni {device} tra {targetLow} e {targetHigh}"),
|
|
56992
57330
|
icon: "thermometer",
|
|
57331
|
+
effect: {
|
|
57332
|
+
field: "targetLow",
|
|
57333
|
+
fromArg: "targetLow"
|
|
57334
|
+
},
|
|
57335
|
+
sideEffects: [{
|
|
57336
|
+
field: "targetHigh",
|
|
57337
|
+
fromArg: "targetHigh"
|
|
57338
|
+
}],
|
|
56993
57339
|
openArgs: [{
|
|
56994
57340
|
key: "targetLow",
|
|
56995
57341
|
label: t("Lowest", "Minima"),
|
|
@@ -57048,6 +57394,10 @@ var climateControlCapability = {
|
|
|
57048
57394
|
label: t("Set fan mode", "Imposta la ventilazione"),
|
|
57049
57395
|
phrase: t("Set the fan of {device} to {fanMode}", "Imposta la ventilazione di {device} su {fanMode}"),
|
|
57050
57396
|
icon: "fan",
|
|
57397
|
+
effect: {
|
|
57398
|
+
field: "fanMode",
|
|
57399
|
+
fromArg: "fanMode"
|
|
57400
|
+
},
|
|
57051
57401
|
openArgs: [{
|
|
57052
57402
|
key: "fanMode",
|
|
57053
57403
|
label: t("Fan mode", "Ventilazione"),
|
|
@@ -57070,6 +57420,10 @@ var climateControlCapability = {
|
|
|
57070
57420
|
label: t("Set preset", "Imposta il preset"),
|
|
57071
57421
|
phrase: t("Set {device} to preset {preset}", "Imposta {device} sul preset {preset}"),
|
|
57072
57422
|
icon: "list",
|
|
57423
|
+
effect: {
|
|
57424
|
+
field: "preset",
|
|
57425
|
+
fromArg: "preset"
|
|
57426
|
+
},
|
|
57073
57427
|
openArgs: [{
|
|
57074
57428
|
key: "preset",
|
|
57075
57429
|
label: t("Preset", "Preset"),
|
|
@@ -57657,7 +58011,8 @@ var CompositionProblemSchema = object({
|
|
|
57657
58011
|
"command-source-unknown",
|
|
57658
58012
|
"command-input-unknown",
|
|
57659
58013
|
"command-input-missing",
|
|
57660
|
-
"power-source-is-actuator"
|
|
58014
|
+
"power-source-is-actuator",
|
|
58015
|
+
"link-contribution-removed"
|
|
57661
58016
|
]),
|
|
57662
58017
|
path: string(),
|
|
57663
58018
|
message: string()
|
|
@@ -59084,6 +59439,10 @@ var mediaPlayerCapability = {
|
|
|
59084
59439
|
auth: "protected",
|
|
59085
59440
|
actions: [{
|
|
59086
59441
|
id: "media.play",
|
|
59442
|
+
effect: {
|
|
59443
|
+
field: "state",
|
|
59444
|
+
value: "playing"
|
|
59445
|
+
},
|
|
59087
59446
|
label: t("Play", "Riproduci"),
|
|
59088
59447
|
phrase: t("Play on {device}", "Avvia la riproduzione su {device}"),
|
|
59089
59448
|
icon: "play"
|
|
@@ -59094,6 +59453,10 @@ var mediaPlayerCapability = {
|
|
|
59094
59453
|
auth: "protected",
|
|
59095
59454
|
actions: [{
|
|
59096
59455
|
id: "media.pause",
|
|
59456
|
+
effect: {
|
|
59457
|
+
field: "state",
|
|
59458
|
+
value: "paused"
|
|
59459
|
+
},
|
|
59097
59460
|
label: t("Pause media", "Metti in pausa"),
|
|
59098
59461
|
phrase: t("Pause {device}", "Metti in pausa {device}"),
|
|
59099
59462
|
icon: "pause"
|
|
@@ -59137,6 +59500,10 @@ var mediaPlayerCapability = {
|
|
|
59137
59500
|
auth: "protected",
|
|
59138
59501
|
actions: [{
|
|
59139
59502
|
id: "media.volume",
|
|
59503
|
+
effect: {
|
|
59504
|
+
field: "volumeLevel",
|
|
59505
|
+
fromArg: "volumeLevel"
|
|
59506
|
+
},
|
|
59140
59507
|
label: t("Set volume", "Imposta il volume"),
|
|
59141
59508
|
phrase: t("Set the volume of {device} to {volumeLevel}", "Imposta il volume di {device} al {volumeLevel}"),
|
|
59142
59509
|
icon: "volume-2",
|
|
@@ -59161,12 +59528,20 @@ var mediaPlayerCapability = {
|
|
|
59161
59528
|
auth: "protected",
|
|
59162
59529
|
actions: [{
|
|
59163
59530
|
id: "media.mute",
|
|
59531
|
+
effect: {
|
|
59532
|
+
field: "isMuted",
|
|
59533
|
+
value: true
|
|
59534
|
+
},
|
|
59164
59535
|
label: t("Mute", "Silenzia"),
|
|
59165
59536
|
phrase: t("Mute {device}", "Silenzia {device}"),
|
|
59166
59537
|
icon: "volume-x",
|
|
59167
59538
|
args: { muted: true }
|
|
59168
59539
|
}, {
|
|
59169
59540
|
id: "media.unmute",
|
|
59541
|
+
effect: {
|
|
59542
|
+
field: "isMuted",
|
|
59543
|
+
value: false
|
|
59544
|
+
},
|
|
59170
59545
|
label: t("Unmute", "Riattiva l’audio"),
|
|
59171
59546
|
phrase: t("Unmute {device}", "Riattiva l’audio di {device}"),
|
|
59172
59547
|
icon: "volume-2",
|
|
@@ -59181,12 +59556,20 @@ var mediaPlayerCapability = {
|
|
|
59181
59556
|
auth: "protected",
|
|
59182
59557
|
actions: [{
|
|
59183
59558
|
id: "media.shuffleOn",
|
|
59559
|
+
effect: {
|
|
59560
|
+
field: "shuffle",
|
|
59561
|
+
value: true
|
|
59562
|
+
},
|
|
59184
59563
|
label: t("Shuffle on", "Riproduzione casuale attiva"),
|
|
59185
59564
|
phrase: t("Turn on shuffle on {device}", "Attiva la riproduzione casuale su {device}"),
|
|
59186
59565
|
icon: "shuffle",
|
|
59187
59566
|
args: { shuffle: true }
|
|
59188
59567
|
}, {
|
|
59189
59568
|
id: "media.shuffleOff",
|
|
59569
|
+
effect: {
|
|
59570
|
+
field: "shuffle",
|
|
59571
|
+
value: false
|
|
59572
|
+
},
|
|
59190
59573
|
label: t("Shuffle off", "Riproduzione casuale spenta"),
|
|
59191
59574
|
phrase: t("Turn off shuffle on {device}", "Disattiva la riproduzione casuale su {device}"),
|
|
59192
59575
|
icon: "shuffle",
|
|
@@ -59201,6 +59584,10 @@ var mediaPlayerCapability = {
|
|
|
59201
59584
|
auth: "protected",
|
|
59202
59585
|
actions: [{
|
|
59203
59586
|
id: "media.repeat",
|
|
59587
|
+
effect: {
|
|
59588
|
+
field: "repeat",
|
|
59589
|
+
fromArg: "repeat"
|
|
59590
|
+
},
|
|
59204
59591
|
label: t("Set repeat", "Imposta la ripetizione"),
|
|
59205
59592
|
phrase: t("Set repeat on {device} to {repeat}", "Imposta la ripetizione di {device} su {repeat}"),
|
|
59206
59593
|
icon: "repeat",
|
|
@@ -59235,6 +59622,10 @@ var mediaPlayerCapability = {
|
|
|
59235
59622
|
auth: "protected",
|
|
59236
59623
|
actions: [{
|
|
59237
59624
|
id: "media.source",
|
|
59625
|
+
effect: {
|
|
59626
|
+
field: "source",
|
|
59627
|
+
fromArg: "source"
|
|
59628
|
+
},
|
|
59238
59629
|
label: t("Select source", "Scegli la sorgente"),
|
|
59239
59630
|
phrase: t("Switch {device} to {source}", "Passa {device} alla sorgente {source}"),
|
|
59240
59631
|
icon: "cast",
|
|
@@ -59403,7 +59794,7 @@ var mediaPlayerCapability = {
|
|
|
59403
59794
|
]
|
|
59404
59795
|
}
|
|
59405
59796
|
};
|
|
59406
|
-
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;
|
|
59797
|
+
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;
|
|
59407
59798
|
var NUMBER = {
|
|
59408
59799
|
kind: "fixed",
|
|
59409
59800
|
result: ["number"]
|
|
@@ -59895,7 +60286,9 @@ var PowerSourceRefusalReasonSchema = _enum([
|
|
|
59895
60286
|
"switch-call-failed",
|
|
59896
60287
|
"switch-options-unreadable",
|
|
59897
60288
|
"not-settable",
|
|
59898
|
-
"switch-is-actuator"
|
|
60289
|
+
"switch-is-actuator",
|
|
60290
|
+
"link-lost",
|
|
60291
|
+
"link-unknown"
|
|
59899
60292
|
]);
|
|
59900
60293
|
var PowerSourceActionResultSchema = discriminatedUnion("accepted", [object({ accepted: literal(true) }), object({
|
|
59901
60294
|
accepted: literal(false),
|
|
@@ -61982,6 +62375,79 @@ var IdentityCandidatesSchema = discriminatedUnion("status", [object({
|
|
|
61982
62375
|
pairs: array(IdentityCandidatePairSchema).readonly(),
|
|
61983
62376
|
undeclaredDeviceIds: array(number$1().int()).readonly()
|
|
61984
62377
|
})]);
|
|
62378
|
+
var IdentityLinkKindSchema = _enum(["same-device", "poe-power"]);
|
|
62379
|
+
/**
|
|
62380
|
+
* - `proposed` — one strong key matched: waits for the operator;
|
|
62381
|
+
* - `linked` — confirmed by the operator, or auto-linked on strong evidence;
|
|
62382
|
+
* - `dismissed` — the operator said no (or unlinked): sticky, never re-proposed.
|
|
62383
|
+
*/
|
|
62384
|
+
var IdentityLinkStateSchema = _enum([
|
|
62385
|
+
"proposed",
|
|
62386
|
+
"linked",
|
|
62387
|
+
"dismissed"
|
|
62388
|
+
]);
|
|
62389
|
+
/** Who decided the current state: the matcher (`auto`) or the operator. */
|
|
62390
|
+
var IdentityLinkOriginSchema = _enum(["auto", "operator"]);
|
|
62391
|
+
/** One side: the device ref that survives re-registration, plus its current numeric id. */
|
|
62392
|
+
var IdentityLinkSideSchema = object({
|
|
62393
|
+
addonId: string().min(1),
|
|
62394
|
+
stableId: string().min(1),
|
|
62395
|
+
deviceId: number$1().int()
|
|
62396
|
+
});
|
|
62397
|
+
var IdentityLinkSchema = object({
|
|
62398
|
+
kind: IdentityLinkKindSchema,
|
|
62399
|
+
a: IdentityLinkSideSchema,
|
|
62400
|
+
b: IdentityLinkSideSchema,
|
|
62401
|
+
state: IdentityLinkStateSchema,
|
|
62402
|
+
origin: IdentityLinkOriginSchema,
|
|
62403
|
+
/** The identifiers that matched when the link was last evaluated, ordered by key then value. */
|
|
62404
|
+
evidence: array(IdentityMatchedKeySchema).readonly(),
|
|
62405
|
+
/** An operator-confirmed link whose evidence no longer matches: kept, flagged. */
|
|
62406
|
+
evidenceGone: literal(true).optional(),
|
|
62407
|
+
createdAt: number$1().int().nonnegative(),
|
|
62408
|
+
decidedAt: number$1().int().nonnegative().optional()
|
|
62409
|
+
}).extend({ id: string().min(1) });
|
|
62410
|
+
DeviceRole.PoePort;
|
|
62411
|
+
/**
|
|
62412
|
+
* The answer of `device-manager.listIdentityLinks`. `not-loaded` until the
|
|
62413
|
+
* links have been read — never an empty list (D315).
|
|
62414
|
+
*/
|
|
62415
|
+
var IdentityLinksReadSchema = discriminatedUnion("status", [object({
|
|
62416
|
+
status: literal("not-loaded"),
|
|
62417
|
+
reason: string()
|
|
62418
|
+
}), object({
|
|
62419
|
+
status: literal("answered"),
|
|
62420
|
+
links: array(IdentityLinkSchema).readonly()
|
|
62421
|
+
})]);
|
|
62422
|
+
/** Why an operator decision on a link was refused. */
|
|
62423
|
+
var IdentityLinkDecisionRefusalSchema = _enum([
|
|
62424
|
+
"not-loaded",
|
|
62425
|
+
"unknown-link",
|
|
62426
|
+
"wrong-state"
|
|
62427
|
+
]);
|
|
62428
|
+
/** The answer of `confirmIdentityLink` / `dismissIdentityLink` / `unlinkIdentity`. */
|
|
62429
|
+
var IdentityLinkDecisionSchema = discriminatedUnion("ok", [object({
|
|
62430
|
+
ok: literal(true),
|
|
62431
|
+
link: IdentityLinkSchema
|
|
62432
|
+
}), object({
|
|
62433
|
+
ok: literal(false),
|
|
62434
|
+
reason: IdentityLinkDecisionRefusalSchema,
|
|
62435
|
+
message: string()
|
|
62436
|
+
})]);
|
|
62437
|
+
/** Why a link was lost. */
|
|
62438
|
+
var IdentityLinkLostReasonSchema = _enum([
|
|
62439
|
+
"evidence-gone",
|
|
62440
|
+
"device-removed",
|
|
62441
|
+
"operator-unlinked"
|
|
62442
|
+
]);
|
|
62443
|
+
object({
|
|
62444
|
+
linkId: string(),
|
|
62445
|
+
kind: IdentityLinkKindSchema,
|
|
62446
|
+
aDeviceId: number$1().int(),
|
|
62447
|
+
bDeviceId: number$1().int(),
|
|
62448
|
+
origin: IdentityLinkOriginSchema,
|
|
62449
|
+
reason: IdentityLinkLostReasonSchema.optional()
|
|
62450
|
+
});
|
|
61985
62451
|
var DeviceSearchRequiresSchema = object({
|
|
61986
62452
|
/** Capability names the field wants a value of. Absent when the field wants actions only. */
|
|
61987
62453
|
caps: array(string()).readonly().optional(),
|
|
@@ -62548,6 +63014,11 @@ var DeviceInfoSchema = object({
|
|
|
62548
63014
|
* the owning provider via `setIdentifiers`; read-only for the operator.
|
|
62549
63015
|
* Absent ⇒ the provider declared none. */
|
|
62550
63016
|
identifiers: DeviceIdentifiersSchema.optional(),
|
|
63017
|
+
/** The identity of the device at the far end of this device's physical
|
|
63018
|
+
* link (D1059 amended by D1063) — a PoE port's wired client. Written only by
|
|
63019
|
+
* the owning provider via `setAttachedIdentifiers`; it never makes the two
|
|
63020
|
+
* devices the same device. Absent ⇒ none declared. */
|
|
63021
|
+
attachedIdentifiers: DeviceIdentifiersSchema.optional(),
|
|
62551
63022
|
/** Optional upstream-system identity + rendering envelope. See
|
|
62552
63023
|
* `SourceInfo` in `packages/types/src/device/source-info.ts`. */
|
|
62553
63024
|
sourceInfo: SourceInfoSchema.optional(),
|
|
@@ -62701,6 +63172,8 @@ var DeviceMetaSchema = object({
|
|
|
62701
63172
|
metadata: record$1(string(), unknown()).nullable().optional(),
|
|
62702
63173
|
/** Provider-declared identifiers (D1059). See `DeviceMeta.identifiers`. */
|
|
62703
63174
|
identifiers: DeviceIdentifiersSchema.optional(),
|
|
63175
|
+
/** The far end of the device's physical link (D1063). See `DeviceMeta.attachedIdentifiers`. */
|
|
63176
|
+
attachedIdentifiers: DeviceIdentifiersSchema.optional(),
|
|
62704
63177
|
/** Optional upstream-system identity + rendering envelope. See
|
|
62705
63178
|
* `SourceInfo`. Present when the device has been persisted with a
|
|
62706
63179
|
* non-synthetic source identifier (HA entities, vendor MAC, …);
|
|
@@ -63025,6 +63498,26 @@ method(object({
|
|
|
63025
63498
|
}), method(object({}), IdentityCandidatesSchema, {
|
|
63026
63499
|
kind: "query",
|
|
63027
63500
|
auth: "admin"
|
|
63501
|
+
}), method(object({
|
|
63502
|
+
deviceId: number$1(),
|
|
63503
|
+
identifiers: DeviceIdentifiersSchema.nullable(),
|
|
63504
|
+
/** Kinds the provider tried to read and could not: their stored value is kept. */
|
|
63505
|
+
unread: array(DeviceIdentifierKeySchema).optional()
|
|
63506
|
+
}), _void(), {
|
|
63507
|
+
kind: "mutation",
|
|
63508
|
+
auth: "admin"
|
|
63509
|
+
}), method(object({ deviceId: number$1().int().optional() }), IdentityLinksReadSchema, {
|
|
63510
|
+
kind: "query",
|
|
63511
|
+
auth: "admin"
|
|
63512
|
+
}), method(object({ linkId: string().min(1) }), IdentityLinkDecisionSchema, {
|
|
63513
|
+
kind: "mutation",
|
|
63514
|
+
auth: "admin"
|
|
63515
|
+
}), method(object({ linkId: string().min(1) }), IdentityLinkDecisionSchema, {
|
|
63516
|
+
kind: "mutation",
|
|
63517
|
+
auth: "admin"
|
|
63518
|
+
}), method(object({ linkId: string().min(1) }), IdentityLinkDecisionSchema, {
|
|
63519
|
+
kind: "mutation",
|
|
63520
|
+
auth: "admin"
|
|
63028
63521
|
}), method(_void(), array(string())), method(object({ name: string() }), _void(), {
|
|
63029
63522
|
kind: "mutation",
|
|
63030
63523
|
auth: "admin"
|
|
@@ -63975,8 +64468,12 @@ var ClaimsListingSchema = discriminatedUnion("state", [object({
|
|
|
63975
64468
|
})]);
|
|
63976
64469
|
method(object({ deviceId: number$1() }), record$1(string(), record$1(string(), unknown()))), method(object({
|
|
63977
64470
|
deviceId: number$1(),
|
|
63978
|
-
capName: string()
|
|
63979
|
-
|
|
64471
|
+
capName: string(),
|
|
64472
|
+
/** The slice the device CONFIRMED, without a held command (D1061) — history and automations. */
|
|
64473
|
+
confirmed: boolean().optional()
|
|
64474
|
+
}), record$1(string(), unknown()).nullable()), method(object({
|
|
64475
|
+
/** The slices the devices CONFIRMED, without held commands (D1061). */
|
|
64476
|
+
confirmed: boolean().optional() }), record$1(string(), record$1(string(), record$1(string(), unknown())))), method(object({
|
|
63980
64477
|
deviceId: number$1(),
|
|
63981
64478
|
capName: string(),
|
|
63982
64479
|
slice: record$1(string(), unknown())
|
|
@@ -64014,6 +64511,88 @@ method(object({ deviceId: number$1() }), record$1(string(), record$1(string(), u
|
|
|
64014
64511
|
slice: record$1(string(), unknown())
|
|
64015
64512
|
}));
|
|
64016
64513
|
/**
|
|
64514
|
+
* Server-driven device state refresh (D1062): the core decides WHEN a device is
|
|
64515
|
+
* re-read, the integration only knows HOW.
|
|
64516
|
+
*
|
|
64517
|
+
* A provider states its policy where it registers the device's
|
|
64518
|
+
* `device-state-refresh` cap (`ctx.registerNativeCap(cap, provider, {
|
|
64519
|
+
* stateRefresh })`). It reaches the hub by the road the command-hold options
|
|
64520
|
+
* take (D1061): written directly in-process, carried on a forked child's cap
|
|
64521
|
+
* descriptors otherwise. Plain data, wire-safe.
|
|
64522
|
+
*/
|
|
64523
|
+
/** Why the core asks for a refresh. */
|
|
64524
|
+
var StateRefreshReasonSchema = _enum([
|
|
64525
|
+
"schedule",
|
|
64526
|
+
"command",
|
|
64527
|
+
"burst"
|
|
64528
|
+
]);
|
|
64529
|
+
/**
|
|
64530
|
+
* What arrives without asking: `none` (everything is read), `partial` (some
|
|
64531
|
+
* fields arrive by push, the rest is read on the schedule), `full` (everything
|
|
64532
|
+
* arrives by push — never read on a schedule).
|
|
64533
|
+
*/
|
|
64534
|
+
var StateRefreshPushSchema = _enum([
|
|
64535
|
+
"none",
|
|
64536
|
+
"partial",
|
|
64537
|
+
"full"
|
|
64538
|
+
]);
|
|
64539
|
+
object({
|
|
64540
|
+
/**
|
|
64541
|
+
* The integration instance the device belongs to. Devices of one instance
|
|
64542
|
+
* share one schedule group: a batching provider is asked once for all of
|
|
64543
|
+
* them, and the heartbeat is judged across them.
|
|
64544
|
+
*/
|
|
64545
|
+
integrationId: string().min(1),
|
|
64546
|
+
/** The fastest interval the integration can afford for its devices. The core polls at it by default. */
|
|
64547
|
+
minIntervalMs: number$1().int().min(1e3),
|
|
64548
|
+
/**
|
|
64549
|
+
* The operator's per-integration setting, when there is one. It can only SLOW
|
|
64550
|
+
* the cadence: the core polls at `max(minIntervalMs, intervalMs)`.
|
|
64551
|
+
*/
|
|
64552
|
+
intervalMs: number$1().int().positive().optional(),
|
|
64553
|
+
/** One `refresh` call can read every device of the integration at once. */
|
|
64554
|
+
batch: boolean(),
|
|
64555
|
+
push: StateRefreshPushSchema,
|
|
64556
|
+
/** Longest silence a push integration may keep before the core re-reads it and asks it to resubscribe. */
|
|
64557
|
+
heartbeatMs: number$1().int().positive().optional(),
|
|
64558
|
+
/**
|
|
64559
|
+
* Bumped by the provider each time its push subscription reconnected on its
|
|
64560
|
+
* own. A change makes the core re-read every device of the integration
|
|
64561
|
+
* (pushes lost while it was down; events may be dropped, D8).
|
|
64562
|
+
*/
|
|
64563
|
+
connectionEpoch: number$1().int().nonnegative().optional()
|
|
64564
|
+
});
|
|
64565
|
+
/**
|
|
64566
|
+
* device-state-refresh — the HOW of a device's state refresh, called by the
|
|
64567
|
+
* core, which owns the WHEN (D1062).
|
|
64568
|
+
*
|
|
64569
|
+
* The provider registers it per device with its policy
|
|
64570
|
+
* (`registerNativeCap(cap, provider, { stateRefresh })`). The hub's scheduler
|
|
64571
|
+
* calls `refresh` on the schedule, after a command and in the burst that
|
|
64572
|
+
* follows it, and `resubscribe` when a push integration fell silent. The
|
|
64573
|
+
* provider re-reads and writes the slices it already writes; nothing is
|
|
64574
|
+
* returned but completion.
|
|
64575
|
+
*/
|
|
64576
|
+
var DeviceStateRefreshInputSchema = object({
|
|
64577
|
+
/** The device the call is routed by (one of `deviceIds`). */
|
|
64578
|
+
deviceId: number$1().int().nonnegative(),
|
|
64579
|
+
/** Every device to re-read: one, or the integration's whole set when the provider batches. */
|
|
64580
|
+
deviceIds: array(number$1().int().nonnegative()).min(1),
|
|
64581
|
+
reason: StateRefreshReasonSchema
|
|
64582
|
+
});
|
|
64583
|
+
var DeviceStateResubscribeInputSchema = object({ deviceId: number$1().int().nonnegative() });
|
|
64584
|
+
var DeviceStateRefreshResultSchema = object({ ok: literal(true) });
|
|
64585
|
+
var NOT_OPERATOR_FACING = "the core schedules state refreshes itself; an operator never asks for one";
|
|
64586
|
+
method(DeviceStateRefreshInputSchema, DeviceStateRefreshResultSchema, {
|
|
64587
|
+
kind: "mutation",
|
|
64588
|
+
auth: "admin",
|
|
64589
|
+
notOperatorFacing: NOT_OPERATOR_FACING
|
|
64590
|
+
}), method(DeviceStateResubscribeInputSchema, DeviceStateRefreshResultSchema, {
|
|
64591
|
+
kind: "mutation",
|
|
64592
|
+
auth: "admin",
|
|
64593
|
+
notOperatorFacing: NOT_OPERATOR_FACING
|
|
64594
|
+
});
|
|
64595
|
+
/**
|
|
64017
64596
|
* Generic device-level status snapshot. Auto-registered by `BaseDevice`
|
|
64018
64597
|
* for every device, regardless of provider — the kernel needs a uniform
|
|
64019
64598
|
* cap-keyed slice for the basic device flags every consumer expects to
|
|
@@ -66423,7 +67002,15 @@ var fanControlCapability = {
|
|
|
66423
67002
|
field: "speed",
|
|
66424
67003
|
value: 100
|
|
66425
67004
|
},
|
|
66426
|
-
args: { speed: 100 }
|
|
67005
|
+
args: { speed: 100 },
|
|
67006
|
+
sideEffects: [{
|
|
67007
|
+
field: "preset",
|
|
67008
|
+
value: "",
|
|
67009
|
+
when: {
|
|
67010
|
+
field: "preset",
|
|
67011
|
+
notIn: [""]
|
|
67012
|
+
}
|
|
67013
|
+
}]
|
|
66427
67014
|
},
|
|
66428
67015
|
{
|
|
66429
67016
|
id: "fan.speed",
|
|
@@ -66434,6 +67021,14 @@ var fanControlCapability = {
|
|
|
66434
67021
|
field: "speed",
|
|
66435
67022
|
fromArg: "speed"
|
|
66436
67023
|
},
|
|
67024
|
+
sideEffects: [{
|
|
67025
|
+
field: "preset",
|
|
67026
|
+
value: "",
|
|
67027
|
+
when: {
|
|
67028
|
+
field: "preset",
|
|
67029
|
+
notIn: [""]
|
|
67030
|
+
}
|
|
67031
|
+
}],
|
|
66437
67032
|
openArgs: [{
|
|
66438
67033
|
key: "speed",
|
|
66439
67034
|
label: t("Speed", "Velocità"),
|
|
@@ -66459,6 +67054,10 @@ var fanControlCapability = {
|
|
|
66459
67054
|
label: t("Set preset", "Imposta il preset"),
|
|
66460
67055
|
phrase: t("Set {device} to preset {preset}", "Imposta {device} sul preset {preset}"),
|
|
66461
67056
|
icon: "list",
|
|
67057
|
+
effect: {
|
|
67058
|
+
field: "preset",
|
|
67059
|
+
fromArg: "preset"
|
|
67060
|
+
},
|
|
66462
67061
|
openArgs: [{
|
|
66463
67062
|
key: "preset",
|
|
66464
67063
|
label: t("Preset", "Preset"),
|
|
@@ -68189,7 +68788,7 @@ var HeroSceneSchema = object({
|
|
|
68189
68788
|
level: number$1().min(0).max(1).nullable()
|
|
68190
68789
|
});
|
|
68191
68790
|
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;
|
|
68192
|
-
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;
|
|
68791
|
+
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;
|
|
68193
68792
|
var HeroRowIdSchema = _enum([
|
|
68194
68793
|
"progress",
|
|
68195
68794
|
"run-for",
|
|
@@ -69461,6 +70060,16 @@ var IntegrationInstanceStatusSchema = object({
|
|
|
69461
70060
|
/** A short human word for the state ("Signed in", "Token expired"); shown instead of `state`. */
|
|
69462
70061
|
label: string().optional()
|
|
69463
70062
|
});
|
|
70063
|
+
/**
|
|
70064
|
+
* What "Add device" inside ONE instance offers, decided per instance by its provider. `scan`: the
|
|
70065
|
+
* LAN scan finds devices this instance holds; `children`: only the instance's own children, via
|
|
70066
|
+
* adoption (a scan would offer other hosts, which are new integrations); `none`: manual add only.
|
|
70067
|
+
*/
|
|
70068
|
+
var IntegrationInstanceAddDeviceSchema = _enum([
|
|
70069
|
+
"scan",
|
|
70070
|
+
"children",
|
|
70071
|
+
"none"
|
|
70072
|
+
]);
|
|
69464
70073
|
var IntegrationInstanceSchema = object({
|
|
69465
70074
|
id: IntegrationInstanceIdSchema,
|
|
69466
70075
|
name: string(),
|
|
@@ -69478,7 +70087,9 @@ var IntegrationInstanceSchema = object({
|
|
|
69478
70087
|
formValues: record$1(string(), unknown()),
|
|
69479
70088
|
status: IntegrationInstanceStatusSchema.optional(),
|
|
69480
70089
|
/** Epoch ms of the last probe of the remote that produced `status`; absent when never checked. */
|
|
69481
|
-
lastCheckedAt: number$1().optional()
|
|
70090
|
+
lastCheckedAt: number$1().optional(),
|
|
70091
|
+
/** 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). */
|
|
70092
|
+
addDevice: IntegrationInstanceAddDeviceSchema.optional()
|
|
69482
70093
|
});
|
|
69483
70094
|
var IntegrationInstancePatchSchema = object({
|
|
69484
70095
|
id: IntegrationInstanceIdSchema,
|
|
@@ -71629,6 +72240,14 @@ var lockControlCapability = {
|
|
|
71629
72240
|
field: "state",
|
|
71630
72241
|
value: "locked"
|
|
71631
72242
|
},
|
|
72243
|
+
hold: { effects: [{
|
|
72244
|
+
field: "state",
|
|
72245
|
+
value: "locking",
|
|
72246
|
+
when: {
|
|
72247
|
+
field: "state",
|
|
72248
|
+
notIn: ["locked"]
|
|
72249
|
+
}
|
|
72250
|
+
}] },
|
|
71632
72251
|
openArgs: [{
|
|
71633
72252
|
key: "code",
|
|
71634
72253
|
label: t("PIN code", "Codice PIN"),
|
|
@@ -71662,6 +72281,14 @@ var lockControlCapability = {
|
|
|
71662
72281
|
field: "state",
|
|
71663
72282
|
value: "unlocked"
|
|
71664
72283
|
},
|
|
72284
|
+
hold: { effects: [{
|
|
72285
|
+
field: "state",
|
|
72286
|
+
value: "unlocking",
|
|
72287
|
+
when: {
|
|
72288
|
+
field: "state",
|
|
72289
|
+
notIn: ["unlocked"]
|
|
72290
|
+
}
|
|
72291
|
+
}] },
|
|
71665
72292
|
openArgs: [{
|
|
71666
72293
|
key: "code",
|
|
71667
72294
|
label: t("PIN code", "Codice PIN"),
|
|
@@ -76051,6 +76678,16 @@ DeviceType.Camera, method(object({ deviceId: number$1() }), array(TrackSchema).r
|
|
|
76051
76678
|
timestamp: number$1()
|
|
76052
76679
|
}), EventCategory.PipelineAnalyticsDetectionEvent, EventCategory.PipelineAnalyticsPackageDelivered, EventCategory.PipelineAnalyticsPackagePickedUp;
|
|
76053
76680
|
/**
|
|
76681
|
+
* A rectangle as a fraction of a frame, `[0, 1]` on both axes — the wire shape
|
|
76682
|
+
* of `NormalizedRect` (which is derived from it).
|
|
76683
|
+
*/
|
|
76684
|
+
var NormalizedRectSchema = object({
|
|
76685
|
+
x: number$1(),
|
|
76686
|
+
y: number$1(),
|
|
76687
|
+
w: number$1(),
|
|
76688
|
+
h: number$1()
|
|
76689
|
+
});
|
|
76690
|
+
/**
|
|
76054
76691
|
* A root model's boxes standing in for one crop-kind step's own inference
|
|
76055
76692
|
* (D730) — see `runPipeline.suppliedRoot`.
|
|
76056
76693
|
*/
|
|
@@ -76443,7 +77080,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
76443
77080
|
* reader) run on them through their own crop policy. Boxes are in the
|
|
76444
77081
|
* PIXELS of the image this call carries. Absent ⇒ the root step runs.
|
|
76445
77082
|
*/
|
|
76446
|
-
suppliedRoot: SuppliedRootOutputSchema.optional()
|
|
77083
|
+
suppliedRoot: SuppliedRootOutputSchema.optional(),
|
|
77084
|
+
/**
|
|
77085
|
+
* The motion analyzer's merged subjects (D394) for this camera, fresh,
|
|
77086
|
+
* normalised to the frame (0..1). Feeds the motion-guided root crop
|
|
77087
|
+
* (D1060): the executor picks per frame whether the object-detection
|
|
77088
|
+
* root runs on the full frame or on a crop around them. Honoured only
|
|
77089
|
+
* on the live `frame` plane with a `frameRef`. Absent or empty ⇒ no
|
|
77090
|
+
* motion known ⇒ full frame.
|
|
77091
|
+
*/
|
|
77092
|
+
motionRegions: array(NormalizedRectSchema).optional()
|
|
76447
77093
|
}), PipelineRunResultBridge, { kind: "mutation" }), method(object({
|
|
76448
77094
|
steps: array(PipelineStepInputSchema).min(1),
|
|
76449
77095
|
frames: array(FrameInputSchema).min(1).max(255),
|
|
@@ -77535,7 +78181,15 @@ var RunnerInferenceDeviceSchema = object({
|
|
|
77535
78181
|
* Absent field ⇒ an orchestrator that predates D650: the jumped step keeps
|
|
77536
78182
|
* the elected device's provisioning, as before.
|
|
77537
78183
|
*/
|
|
77538
|
-
steps: record$1(string(), RunnerJumpStepProvisioningSchema).optional()
|
|
78184
|
+
steps: record$1(string(), RunnerJumpStepProvisioningSchema).optional(),
|
|
78185
|
+
/**
|
|
78186
|
+
* Steps switched OFF on this device (D1065, `inferenceDevices[key].steps[s]
|
|
78187
|
+
* .enabled === false`). The runner never runs a subtree containing one of
|
|
78188
|
+
* them here: it auto-jumps it to an allowed device, and when none can take
|
|
78189
|
+
* it the subtree is skipped (`disabled-on-device`), never run here anyway.
|
|
78190
|
+
* Absent ⇒ none (an orchestrator that predates D1065).
|
|
78191
|
+
*/
|
|
78192
|
+
disabledSteps: array(string()).readonly().optional()
|
|
77539
78193
|
});
|
|
77540
78194
|
/**
|
|
77541
78195
|
* Camera assignment payload sent by `addon-pipeline-orchestrator` to a
|
|
@@ -83179,6 +83833,14 @@ method(object({ deviceId: number$1().int() }), object({
|
|
|
83179
83833
|
auth: "admin"
|
|
83180
83834
|
}), NOT_A_DEVICE.PIPELINE;
|
|
83181
83835
|
/**
|
|
83836
|
+
* Hold limits a cap's vocabulary may declare on an action (D1061).
|
|
83837
|
+
*
|
|
83838
|
+
* A one-shot command (feed, run a script) has no lasting state to confirm; it
|
|
83839
|
+
* holds its in-progress flag just long enough that a second tap, before the
|
|
83840
|
+
* device reports, is seen as "already running" and refused.
|
|
83841
|
+
*/
|
|
83842
|
+
var ONE_SHOT_HOLD_MS = 1e4;
|
|
83843
|
+
/**
|
|
83182
83844
|
* Feeder connectivity / power status — mirrors the HA petkit device-status
|
|
83183
83845
|
* enum: `normal` (online, mains), `offline` (not reaching PetKit cloud),
|
|
83184
83846
|
* `on_batteries` (running on battery backup). `null` until first reported.
|
|
@@ -83296,6 +83958,13 @@ var petFeederCapability = {
|
|
|
83296
83958
|
label: t("Feed", "Dai da mangiare"),
|
|
83297
83959
|
phrase: t("Dispense {grams} from {device}", "Eroga {grams} da {device}"),
|
|
83298
83960
|
icon: "paw-print",
|
|
83961
|
+
hold: {
|
|
83962
|
+
effects: [{
|
|
83963
|
+
field: "feeding",
|
|
83964
|
+
value: true
|
|
83965
|
+
}],
|
|
83966
|
+
holdMs: ONE_SHOT_HOLD_MS
|
|
83967
|
+
},
|
|
83299
83968
|
openArgs: [{
|
|
83300
83969
|
key: "grams",
|
|
83301
83970
|
label: t("Grams", "Grammi"),
|
|
@@ -83314,6 +83983,13 @@ var petFeederCapability = {
|
|
|
83314
83983
|
label: t("Feed from both hoppers", "Eroga da entrambi i serbatoi"),
|
|
83315
83984
|
phrase: t("Dispense {hopper1} and {hopper2} from {device}", "Eroga {hopper1} e {hopper2} da {device}"),
|
|
83316
83985
|
icon: "paw-print",
|
|
83986
|
+
hold: {
|
|
83987
|
+
effects: [{
|
|
83988
|
+
field: "feeding",
|
|
83989
|
+
value: true
|
|
83990
|
+
}],
|
|
83991
|
+
holdMs: ONE_SHOT_HOLD_MS
|
|
83992
|
+
},
|
|
83317
83993
|
openArgs: [{
|
|
83318
83994
|
key: "hopper1",
|
|
83319
83995
|
label: t("Hopper 1", "Serbatoio 1"),
|
|
@@ -83419,12 +84095,20 @@ var petFeederCapability = {
|
|
|
83419
84095
|
auth: "protected",
|
|
83420
84096
|
actions: [{
|
|
83421
84097
|
id: "petFeeder.childLockOn",
|
|
84098
|
+
effect: {
|
|
84099
|
+
field: "childLock",
|
|
84100
|
+
value: true
|
|
84101
|
+
},
|
|
83422
84102
|
label: t("Child lock on", "Blocco bambini attivo"),
|
|
83423
84103
|
phrase: t("Turn on the child lock of {device}", "Attiva il blocco bambini di {device}"),
|
|
83424
84104
|
icon: "lock",
|
|
83425
84105
|
args: { on: true }
|
|
83426
84106
|
}, {
|
|
83427
84107
|
id: "petFeeder.childLockOff",
|
|
84108
|
+
effect: {
|
|
84109
|
+
field: "childLock",
|
|
84110
|
+
value: false
|
|
84111
|
+
},
|
|
83428
84112
|
label: t("Child lock off", "Blocco bambini spento"),
|
|
83429
84113
|
phrase: t("Turn off the child lock of {device}", "Disattiva il blocco bambini di {device}"),
|
|
83430
84114
|
icon: "lock-open",
|
|
@@ -83440,12 +84124,20 @@ var petFeederCapability = {
|
|
|
83440
84124
|
auth: "protected",
|
|
83441
84125
|
actions: [{
|
|
83442
84126
|
id: "petFeeder.lightOn",
|
|
84127
|
+
effect: {
|
|
84128
|
+
field: "indicatorLight",
|
|
84129
|
+
value: true
|
|
84130
|
+
},
|
|
83443
84131
|
label: t("Indicator light on", "Spia accesa"),
|
|
83444
84132
|
phrase: t("Turn on the indicator light of {device}", "Accendi la spia di {device}"),
|
|
83445
84133
|
icon: "lightbulb",
|
|
83446
84134
|
args: { on: true }
|
|
83447
84135
|
}, {
|
|
83448
84136
|
id: "petFeeder.lightOff",
|
|
84137
|
+
effect: {
|
|
84138
|
+
field: "indicatorLight",
|
|
84139
|
+
value: false
|
|
84140
|
+
},
|
|
83449
84141
|
label: t("Indicator light off", "Spia spenta"),
|
|
83450
84142
|
phrase: t("Turn off the indicator light of {device}", "Spegni la spia di {device}"),
|
|
83451
84143
|
icon: "lightbulb-off",
|
|
@@ -83461,12 +84153,20 @@ var petFeederCapability = {
|
|
|
83461
84153
|
auth: "protected",
|
|
83462
84154
|
actions: [{
|
|
83463
84155
|
id: "petFeeder.feedSoundOn",
|
|
84156
|
+
effect: {
|
|
84157
|
+
field: "feedSound",
|
|
84158
|
+
value: true
|
|
84159
|
+
},
|
|
83464
84160
|
label: t("Feeding sound on", "Suono di erogazione attivo"),
|
|
83465
84161
|
phrase: t("Turn on the feeding sound of {device}", "Attiva il suono di erogazione di {device}"),
|
|
83466
84162
|
icon: "volume-2",
|
|
83467
84163
|
args: { on: true }
|
|
83468
84164
|
}, {
|
|
83469
84165
|
id: "petFeeder.feedSoundOff",
|
|
84166
|
+
effect: {
|
|
84167
|
+
field: "feedSound",
|
|
84168
|
+
value: false
|
|
84169
|
+
},
|
|
83470
84170
|
label: t("Feeding sound off", "Suono di erogazione spento"),
|
|
83471
84171
|
phrase: t("Turn off the feeding sound of {device}", "Disattiva il suono di erogazione di {device}"),
|
|
83472
84172
|
icon: "volume-x",
|
|
@@ -83482,6 +84182,10 @@ var petFeederCapability = {
|
|
|
83482
84182
|
auth: "protected",
|
|
83483
84183
|
actions: [{
|
|
83484
84184
|
id: "petFeeder.volume",
|
|
84185
|
+
effect: {
|
|
84186
|
+
field: "volume",
|
|
84187
|
+
fromArg: "level"
|
|
84188
|
+
},
|
|
83485
84189
|
label: t("Set volume", "Imposta il volume"),
|
|
83486
84190
|
phrase: t("Set the volume of {device} to {level}", "Imposta il volume di {device} a {level}"),
|
|
83487
84191
|
icon: "volume-2",
|
|
@@ -83627,12 +84331,20 @@ setPump: method(object({
|
|
|
83627
84331
|
auth: "protected",
|
|
83628
84332
|
actions: [{
|
|
83629
84333
|
id: "petFountain.pumpOn",
|
|
84334
|
+
effect: {
|
|
84335
|
+
field: "pumpRunning",
|
|
84336
|
+
value: true
|
|
84337
|
+
},
|
|
83630
84338
|
label: t("Pump on", "Pompa accesa"),
|
|
83631
84339
|
phrase: t("Start the pump of {device}", "Avvia la pompa di {device}"),
|
|
83632
84340
|
icon: "play",
|
|
83633
84341
|
args: { on: true }
|
|
83634
84342
|
}, {
|
|
83635
84343
|
id: "petFountain.pumpOff",
|
|
84344
|
+
effect: {
|
|
84345
|
+
field: "pumpRunning",
|
|
84346
|
+
value: false
|
|
84347
|
+
},
|
|
83636
84348
|
label: t("Pump off", "Pompa spenta"),
|
|
83637
84349
|
phrase: t("Stop the pump of {device}", "Ferma la pompa di {device}"),
|
|
83638
84350
|
icon: "square",
|
|
@@ -84179,7 +84891,15 @@ var DeviceStepConfigSchema = object({
|
|
|
84179
84891
|
* at a disabled/absent device on that node at save time. Absent ⇒ the runner
|
|
84180
84892
|
* auto-jumps only when the effective device's format cannot run the step.
|
|
84181
84893
|
*/
|
|
84182
|
-
jumpDeviceKey: string().optional()
|
|
84894
|
+
jumpDeviceKey: string().optional(),
|
|
84895
|
+
/**
|
|
84896
|
+
* DEVICE switch for this step (D1065). `false` = the step is never
|
|
84897
|
+
* provisioned on this accelerator: a detail step jumps to another enabled
|
|
84898
|
+
* device of the node where it is allowed, else it is skipped with reason
|
|
84899
|
+
* `disabled-on-device`; a root is skipped. Absent = inherit (on). Written by
|
|
84900
|
+
* `setDeviceStepEnabled`.
|
|
84901
|
+
*/
|
|
84902
|
+
enabled: boolean().optional()
|
|
84183
84903
|
});
|
|
84184
84904
|
var AgentPipelineSettingsSchema = object({
|
|
84185
84905
|
maxCameras: number$1().int().nonnegative().nullable().default(null),
|
|
@@ -84223,6 +84943,12 @@ var AgentPipelineSettingsSchema = object({
|
|
|
84223
84943
|
*/
|
|
84224
84944
|
stepSettings: record$1(string(), record$1(string(), unknown()).readonly()).optional(),
|
|
84225
84945
|
/**
|
|
84946
|
+
* NODE switch per step (D1065): `stepId → enabled`. `false` = the step never
|
|
84947
|
+
* runs on a camera whose pipeline runs on this node (skip reason
|
|
84948
|
+
* `disabled-on-node`). Absent = inherit. Written by `setNodeStepEnabled`.
|
|
84949
|
+
*/
|
|
84950
|
+
stepEnabled: record$1(string(), boolean()).optional(),
|
|
84951
|
+
/**
|
|
84226
84952
|
* Multi-device inference opt-in (Phase 4). Per-node map deviceKey → {enabled,
|
|
84227
84953
|
* weight, steps}. Absent / all-disabled ⇒ the node's single default
|
|
84228
84954
|
* accelerator (safe default); two+ enabled ⇒ the dispatcher balances
|
|
@@ -84544,7 +85270,8 @@ var InferenceDeviceExclusionReasonSchema = _enum([
|
|
|
84544
85270
|
"disabled",
|
|
84545
85271
|
"unavailable",
|
|
84546
85272
|
"cannot-host-camera-root",
|
|
84547
|
-
"accelerator-preferred"
|
|
85273
|
+
"accelerator-preferred",
|
|
85274
|
+
"root-switched-off"
|
|
84548
85275
|
]);
|
|
84549
85276
|
var NodeInferenceDeviceSchema = object({
|
|
84550
85277
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
@@ -84630,6 +85357,75 @@ var NodeInferenceDevicesSchema = object({
|
|
|
84630
85357
|
devices: array(NodeInferenceDeviceSchema).readonly()
|
|
84631
85358
|
});
|
|
84632
85359
|
/**
|
|
85360
|
+
* The CLUSTER switch of one pipeline step (D1065):
|
|
85361
|
+
* - `off` — hard off: no camera, node or device can turn it on;
|
|
85362
|
+
* - `on` — on by default; a camera may turn it off (`stepToggles`);
|
|
85363
|
+
* - `opt-in` — off by default; a camera turns it on (`stepToggles`).
|
|
85364
|
+
* Absent = the catalog's `enabledByDefault` (`true` → `on`, `false` → `opt-in`).
|
|
85365
|
+
*/
|
|
85366
|
+
var StepClusterModeSchema = _enum([
|
|
85367
|
+
"off",
|
|
85368
|
+
"on",
|
|
85369
|
+
"opt-in"
|
|
85370
|
+
]);
|
|
85371
|
+
/**
|
|
85372
|
+
* What one step does on one (node, device) — computed by the orchestrator with
|
|
85373
|
+
* the SAME placement function the attach path runs (`pipeline-resolver.ts`),
|
|
85374
|
+
* so a client never re-derives it. Precedence: cluster off > camera toggle
|
|
85375
|
+
* (else the cluster default) > node off > device off / jump.
|
|
85376
|
+
*/
|
|
85377
|
+
var StepSwitchCellSchema = discriminatedUnion("kind", [
|
|
85378
|
+
object({ kind: literal("on") }),
|
|
85379
|
+
object({ kind: literal("off-cluster") }),
|
|
85380
|
+
object({ kind: literal("off-node") }),
|
|
85381
|
+
object({ kind: literal("off-device") }),
|
|
85382
|
+
object({
|
|
85383
|
+
kind: literal("jump"),
|
|
85384
|
+
toDeviceKey: string()
|
|
85385
|
+
}),
|
|
85386
|
+
object({
|
|
85387
|
+
kind: literal("skip"),
|
|
85388
|
+
reason: _enum(["no-compatible-model", "root-not-runnable-on-elected-device"])
|
|
85389
|
+
}),
|
|
85390
|
+
object({ kind: literal("zone-driven") }),
|
|
85391
|
+
object({
|
|
85392
|
+
kind: literal("supplied-by-root"),
|
|
85393
|
+
rootModelId: string()
|
|
85394
|
+
}),
|
|
85395
|
+
object({ kind: literal("opt-in-unused") })
|
|
85396
|
+
]);
|
|
85397
|
+
var StepSwitchDeviceSchema = object({
|
|
85398
|
+
deviceKey: string(),
|
|
85399
|
+
format: _enum(MODEL_FORMATS),
|
|
85400
|
+
/** The device switch as stored (`inferenceDevices[key].steps[step].enabled`); `null` = inherit. */
|
|
85401
|
+
stepEnabled: boolean().nullable(),
|
|
85402
|
+
/** Whether the device is in the node's dispatch roster (enabled, available, not excluded). */
|
|
85403
|
+
eligible: boolean(),
|
|
85404
|
+
cell: StepSwitchCellSchema
|
|
85405
|
+
});
|
|
85406
|
+
var StepSwitchNodeSchema = object({
|
|
85407
|
+
nodeId: string(),
|
|
85408
|
+
/** False when the node's catalog or device probe did not answer — no cells are claimed. */
|
|
85409
|
+
reachable: boolean(),
|
|
85410
|
+
/** The node switch as stored (`stepEnabled[step]`); `null` = inherit. */
|
|
85411
|
+
stepEnabled: boolean().nullable(),
|
|
85412
|
+
devices: array(StepSwitchDeviceSchema).readonly()
|
|
85413
|
+
});
|
|
85414
|
+
var StepSwitchMatrixSchema = object({ steps: array(object({
|
|
85415
|
+
stepId: string(),
|
|
85416
|
+
name: string(),
|
|
85417
|
+
slot: string(),
|
|
85418
|
+
/** The stored cluster mode; `null` = the catalog default applies. */
|
|
85419
|
+
clusterMode: StepClusterModeSchema.nullable(),
|
|
85420
|
+
/** The mode in force (stored, else derived from `enabledByDefault`). */
|
|
85421
|
+
effectiveMode: StepClusterModeSchema,
|
|
85422
|
+
/** Cameras whose `stepToggles[step]` is `true`. */
|
|
85423
|
+
camerasEnabling: number$1().int().nonnegative(),
|
|
85424
|
+
/** Cameras whose `stepToggles[step]` is `false`. */
|
|
85425
|
+
camerasDisabling: number$1().int().nonnegative(),
|
|
85426
|
+
nodes: array(StepSwitchNodeSchema).readonly()
|
|
85427
|
+
})).readonly() });
|
|
85428
|
+
/**
|
|
84633
85429
|
* Pipeline Orchestrator capability — global load balancer + camera dispatcher.
|
|
84634
85430
|
*
|
|
84635
85431
|
* Lives on the hub. Tracks the camera-to-agent assignment map, listens to
|
|
@@ -84800,7 +85596,28 @@ method(object({
|
|
|
84800
85596
|
}), object({ success: literal(true) }), {
|
|
84801
85597
|
kind: "mutation",
|
|
84802
85598
|
auth: "admin"
|
|
84803
|
-
}), method(object({
|
|
85599
|
+
}), method(object({
|
|
85600
|
+
stepId: string(),
|
|
85601
|
+
mode: StepClusterModeSchema.nullable()
|
|
85602
|
+
}), object({ success: literal(true) }), {
|
|
85603
|
+
kind: "mutation",
|
|
85604
|
+
auth: "admin"
|
|
85605
|
+
}), method(object({
|
|
85606
|
+
agentNodeId: string(),
|
|
85607
|
+
stepId: string(),
|
|
85608
|
+
enabled: boolean().nullable()
|
|
85609
|
+
}), object({ success: literal(true) }), {
|
|
85610
|
+
kind: "mutation",
|
|
85611
|
+
auth: "admin"
|
|
85612
|
+
}), method(object({
|
|
85613
|
+
agentNodeId: string(),
|
|
85614
|
+
deviceKey: string(),
|
|
85615
|
+
stepId: string(),
|
|
85616
|
+
enabled: boolean().nullable()
|
|
85617
|
+
}), object({ success: literal(true) }), {
|
|
85618
|
+
kind: "mutation",
|
|
85619
|
+
auth: "admin"
|
|
85620
|
+
}), method(_void(), StepSwitchMatrixSchema), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({
|
|
84804
85621
|
agentNodeId: string(),
|
|
84805
85622
|
deviceKey: string()
|
|
84806
85623
|
}), object({ success: literal(true) }), {
|
|
@@ -85215,6 +86032,16 @@ var CoralInfoSchema = object({
|
|
|
85215
86032
|
reason: _enum(["driver-missing", "device-not-accessible"])
|
|
85216
86033
|
})).readonly().optional()
|
|
85217
86034
|
});
|
|
86035
|
+
var NvidiaInfoBaseSchema = object({
|
|
86036
|
+
type: literal("nvidia"),
|
|
86037
|
+
name: string(),
|
|
86038
|
+
memoryMB: number$1().optional()
|
|
86039
|
+
});
|
|
86040
|
+
/** An NVIDIA GPU: usable ⇔ the CUDA execution provider exists; otherwise the reason. */
|
|
86041
|
+
var NvidiaInfoSchema = discriminatedUnion("usable", [NvidiaInfoBaseSchema.extend({ usable: literal(true) }), NvidiaInfoBaseSchema.extend({
|
|
86042
|
+
usable: literal(false),
|
|
86043
|
+
reason: _enum(["no-cuda-execution-provider"])
|
|
86044
|
+
})]);
|
|
85218
86045
|
var HardwareInfoSchema = object({
|
|
85219
86046
|
platform: HardwarePlatformSchema,
|
|
85220
86047
|
arch: HardwareArchSchema,
|
|
@@ -85225,6 +86052,7 @@ var HardwareInfoSchema = object({
|
|
|
85225
86052
|
gpu: GpuInfoSchema.nullable(),
|
|
85226
86053
|
npu: NpuInfoSchema.nullable(),
|
|
85227
86054
|
coral: CoralInfoSchema.nullable().optional(),
|
|
86055
|
+
nvidia: NvidiaInfoSchema.nullable().optional(),
|
|
85228
86056
|
/**
|
|
85229
86057
|
* Per-accelerator compute (D930). Omitted by a node that has not probed it.
|
|
85230
86058
|
* `null` fields inside an entry are a failed query, never a zero.
|
|
@@ -85312,8 +86140,14 @@ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema)
|
|
|
85312
86140
|
* in real-world devices.
|
|
85313
86141
|
*/
|
|
85314
86142
|
var PowerMeterStatusSchema = object({
|
|
85315
|
-
/** Instantaneous power draw (watts). */
|
|
86143
|
+
/** Instantaneous TOTAL power draw of the device (watts), when known. */
|
|
85316
86144
|
power: number$1().optional().meta(readingMeta("power", { label: "Power" })),
|
|
86145
|
+
/**
|
|
86146
|
+
* Power the device passes on to downstream loads (watts), e.g. the PoE a switch delivers to
|
|
86147
|
+
* its ports. When `power` is known it already includes this (the own draw is `netPowerOf`);
|
|
86148
|
+
* a device that reports no total (a UniFi switch) carries this field alone.
|
|
86149
|
+
*/
|
|
86150
|
+
deliveredPower: number$1().optional().meta(readingMeta("power", { label: "Delivered" })),
|
|
85317
86151
|
/** Cumulative energy in kilowatt-hours since the meter was reset. */
|
|
85318
86152
|
energy: number$1().optional().meta(readingMeta("energy", { label: "Energy" })),
|
|
85319
86153
|
/** Voltage (volts). */
|
|
@@ -85348,7 +86182,8 @@ var POWER_METER_DEVICE_TYPES = [
|
|
|
85348
86182
|
DeviceType.Dishwasher,
|
|
85349
86183
|
DeviceType.Vacuum,
|
|
85350
86184
|
DeviceType.LawnMower,
|
|
85351
|
-
DeviceType.PetFeeder
|
|
86185
|
+
DeviceType.PetFeeder,
|
|
86186
|
+
DeviceType.Workload
|
|
85352
86187
|
];
|
|
85353
86188
|
/** Everything but a bare `Sensor`: a sensor that takes its reading from another sensor adds nothing. */
|
|
85354
86189
|
var POWER_METER_CUSTOMIZE_DEVICE_TYPES = POWER_METER_DEVICE_TYPES.filter((type) => type !== DeviceType.Sensor);
|
|
@@ -86403,12 +87238,20 @@ var pumpCycleCapability = {
|
|
|
86403
87238
|
auth: "protected",
|
|
86404
87239
|
actions: [{
|
|
86405
87240
|
id: "pumpCycle.on",
|
|
87241
|
+
effect: {
|
|
87242
|
+
field: "enabled",
|
|
87243
|
+
value: true
|
|
87244
|
+
},
|
|
86406
87245
|
label: t("Pump cycle on", "Ciclo pompa attivo"),
|
|
86407
87246
|
phrase: t("Run the pump of {device} on its on/off cycle", "Fai lavorare la pompa di {device} a ciclo acceso/spento"),
|
|
86408
87247
|
icon: "timer",
|
|
86409
87248
|
args: { on: true }
|
|
86410
87249
|
}, {
|
|
86411
87250
|
id: "pumpCycle.off",
|
|
87251
|
+
effect: {
|
|
87252
|
+
field: "enabled",
|
|
87253
|
+
value: false
|
|
87254
|
+
},
|
|
86412
87255
|
label: t("Pump cycle off", "Ciclo pompa spento"),
|
|
86413
87256
|
phrase: t("Run the pump of {device} continuously", "Fai lavorare la pompa di {device} in continuo"),
|
|
86414
87257
|
icon: "timer-off",
|
|
@@ -86427,6 +87270,11 @@ var pumpCycleCapability = {
|
|
|
86427
87270
|
label: t("Set pump run time", "Imposta il tempo di lavoro della pompa"),
|
|
86428
87271
|
phrase: t("Set the pump of {device} to run {minutes} minutes per cycle", "Imposta la pompa di {device} a lavorare {minutes} minuti per ciclo"),
|
|
86429
87272
|
icon: "timer",
|
|
87273
|
+
effect: {
|
|
87274
|
+
field: "onTime",
|
|
87275
|
+
fromArg: "minutes",
|
|
87276
|
+
scale: 60
|
|
87277
|
+
},
|
|
86430
87278
|
openArgs: [{
|
|
86431
87279
|
key: "minutes",
|
|
86432
87280
|
label: t("Minutes", "Minuti"),
|
|
@@ -86451,6 +87299,11 @@ var pumpCycleCapability = {
|
|
|
86451
87299
|
label: t("Set pump rest time", "Imposta il tempo di riposo della pompa"),
|
|
86452
87300
|
phrase: t("Set the pump of {device} to rest {minutes} minutes per cycle", "Imposta la pompa di {device} a riposare {minutes} minuti per ciclo"),
|
|
86453
87301
|
icon: "timer-off",
|
|
87302
|
+
effect: {
|
|
87303
|
+
field: "offTime",
|
|
87304
|
+
fromArg: "minutes",
|
|
87305
|
+
scale: 60
|
|
87306
|
+
},
|
|
86454
87307
|
openArgs: [{
|
|
86455
87308
|
key: "minutes",
|
|
86456
87309
|
label: t("Minutes", "Minuti"),
|
|
@@ -89980,7 +90833,14 @@ var scriptRunnerCapability = {
|
|
|
89980
90833
|
id: "script.run",
|
|
89981
90834
|
label: t("Run script", "Esegui lo script"),
|
|
89982
90835
|
phrase: t("Run {device}", "Esegui {device}"),
|
|
89983
|
-
icon: "scroll-text"
|
|
90836
|
+
icon: "scroll-text",
|
|
90837
|
+
hold: {
|
|
90838
|
+
effects: [{
|
|
90839
|
+
field: "isRunning",
|
|
90840
|
+
value: true
|
|
90841
|
+
}],
|
|
90842
|
+
holdMs: ONE_SHOT_HOLD_MS
|
|
90843
|
+
}
|
|
89984
90844
|
}]
|
|
89985
90845
|
}),
|
|
89986
90846
|
/** Cancel a running script. Provider rejects when the script
|
|
@@ -89990,6 +90850,10 @@ var scriptRunnerCapability = {
|
|
|
89990
90850
|
auth: "admin",
|
|
89991
90851
|
actions: [{
|
|
89992
90852
|
id: "script.stop",
|
|
90853
|
+
effect: {
|
|
90854
|
+
field: "isRunning",
|
|
90855
|
+
value: false
|
|
90856
|
+
},
|
|
89993
90857
|
label: t("Stop script", "Ferma lo script"),
|
|
89994
90858
|
phrase: t("Stop {device}", "Ferma {device}"),
|
|
89995
90859
|
icon: "square"
|
|
@@ -91848,6 +92712,10 @@ var switchCapability = {
|
|
|
91848
92712
|
auth: "protected",
|
|
91849
92713
|
actions: [{
|
|
91850
92714
|
id: "switch.toggle",
|
|
92715
|
+
sideEffects: [{
|
|
92716
|
+
field: "on",
|
|
92717
|
+
negate: true
|
|
92718
|
+
}],
|
|
91851
92719
|
label: t("Toggle", "Commuta"),
|
|
91852
92720
|
phrase: t("Toggle {device}", "Commuta {device}"),
|
|
91853
92721
|
icon: "toggle-right",
|
|
@@ -98032,6 +98900,20 @@ var BaseDevice = class {
|
|
|
98032
98900
|
}, raw, options);
|
|
98033
98901
|
}
|
|
98034
98902
|
/**
|
|
98903
|
+
* Declare the identity of the device at the FAR END of this device's physical
|
|
98904
|
+
* link (D1063): a PoE port's wired client. Same normalisation, `unread`
|
|
98905
|
+
* rule and owner check as {@link declareIdentifiers}, written through
|
|
98906
|
+
* `device-manager.setAttachedIdentifiers`. It never makes the two devices the
|
|
98907
|
+
* same device. Best-effort: never throws.
|
|
98908
|
+
*/
|
|
98909
|
+
async declareAttachedIdentifiers(raw, options) {
|
|
98910
|
+
return declareDeviceIdentifiers({
|
|
98911
|
+
deviceId: this.id,
|
|
98912
|
+
logger: this.ctx.logger,
|
|
98913
|
+
writer: this.ctx.api.deviceManager?.setAttachedIdentifiers
|
|
98914
|
+
}, raw, options);
|
|
98915
|
+
}
|
|
98916
|
+
/**
|
|
98035
98917
|
* Re-publish the device's current `features` array to the persisted
|
|
98036
98918
|
* meta blob. Drivers call this after a probe finishes when the live
|
|
98037
98919
|
* `features` getter has gained new flags (e.g. `hasIntercom` flips
|
|
@@ -99762,23 +100644,56 @@ var fountainContribution = contribution("pet-fountain", PetFountainStatusSchema,
|
|
|
99762
100644
|
};
|
|
99763
100645
|
});
|
|
99764
100646
|
var minutesOf = (seconds) => Math.max(0, Math.round(seconds / 60));
|
|
100647
|
+
var pumpCycleContribution = contribution("pump-cycle", PumpCycleStatusSchema, (slice) => {
|
|
100648
|
+
const enabled = slice?.enabled ?? null;
|
|
100649
|
+
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;
|
|
100650
|
+
return { rows: [row$1("pump-cycle", "timer", enabled === null ? unknownText : enabled ? joinText([t("Cycling", "A cicli"), cycle]) : t("Runs continuously", "Sempre attiva"), [{
|
|
100651
|
+
kind: "toggle",
|
|
100652
|
+
id: "pump-cycle.enabled",
|
|
100653
|
+
label: t("Pump cycle", "Ciclo pompa"),
|
|
100654
|
+
on: enabled,
|
|
100655
|
+
turnOn: action("pump-cycle.on", t("Cycle the pump", "Attiva il ciclo"), "timer", "pump-cycle", "setEnabled", { on: true }),
|
|
100656
|
+
turnOff: action("pump-cycle.off", t("Run continuously", "Sempre attiva"), "timer-off", "pump-cycle", "setEnabled", { on: false })
|
|
100657
|
+
}])] };
|
|
100658
|
+
});
|
|
100659
|
+
var WORKLOAD_WORDS = {
|
|
100660
|
+
running: {
|
|
100661
|
+
state: "on",
|
|
100662
|
+
title: t("Running", "In esecuzione")
|
|
100663
|
+
},
|
|
100664
|
+
paused: {
|
|
100665
|
+
state: "standby",
|
|
100666
|
+
title: t("Paused", "In pausa")
|
|
100667
|
+
},
|
|
100668
|
+
stopped: {
|
|
100669
|
+
state: "off",
|
|
100670
|
+
title: t("Stopped", "Fermo")
|
|
100671
|
+
},
|
|
100672
|
+
starting: {
|
|
100673
|
+
state: "running",
|
|
100674
|
+
title: t("Starting", "In avvio")
|
|
100675
|
+
},
|
|
100676
|
+
stopping: {
|
|
100677
|
+
state: "running",
|
|
100678
|
+
title: t("Stopping", "In arresto")
|
|
100679
|
+
},
|
|
100680
|
+
crashed: {
|
|
100681
|
+
state: "alert",
|
|
100682
|
+
title: t("Crashed", "Andato in errore")
|
|
100683
|
+
}
|
|
100684
|
+
};
|
|
99765
100685
|
var DEVICES_FAMILY_CONTRIBUTIONS = {
|
|
99766
100686
|
"fan-control": fanContribution,
|
|
99767
100687
|
"vacuum-control": vacuumContribution,
|
|
99768
100688
|
"lawn-mower-control": mowerContribution,
|
|
99769
100689
|
"pet-feeder": feederContribution,
|
|
99770
100690
|
"pet-fountain": fountainContribution,
|
|
99771
|
-
"pump-cycle":
|
|
99772
|
-
|
|
99773
|
-
const
|
|
99774
|
-
|
|
99775
|
-
|
|
99776
|
-
|
|
99777
|
-
label: t("Pump cycle", "Ciclo pompa"),
|
|
99778
|
-
on: enabled,
|
|
99779
|
-
turnOn: action("pump-cycle.on", t("Cycle the pump", "Attiva il ciclo"), "timer", "pump-cycle", "setEnabled", { on: true }),
|
|
99780
|
-
turnOff: action("pump-cycle.off", t("Run continuously", "Sempre attiva"), "timer-off", "pump-cycle", "setEnabled", { on: false })
|
|
99781
|
-
}])] };
|
|
100691
|
+
"pump-cycle": pumpCycleContribution,
|
|
100692
|
+
workload: contribution("workload", WorkloadStatusSchema, (slice) => {
|
|
100693
|
+
const state = slice?.state ?? null;
|
|
100694
|
+
if (state === null) return { reading: reading$1("workload", "unknown") };
|
|
100695
|
+
const words = WORKLOAD_WORDS[state];
|
|
100696
|
+
return { reading: reading$1("workload", words.state, false, words.title) };
|
|
99782
100697
|
})
|
|
99783
100698
|
};
|
|
99784
100699
|
/**
|
|
@@ -101793,7 +102708,7 @@ lookOf({
|
|
|
101793
102708
|
});
|
|
101794
102709
|
DeviceType.Climate;
|
|
101795
102710
|
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;
|
|
101796
|
-
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;
|
|
102711
|
+
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;
|
|
101797
102712
|
Object.freeze({
|
|
101798
102713
|
"accessories.getStatus": {
|
|
101799
102714
|
capName: "accessories",
|
|
@@ -103993,6 +104908,13 @@ Object.freeze({
|
|
|
103993
104908
|
access: "create",
|
|
103994
104909
|
role: "admin"
|
|
103995
104910
|
},
|
|
104911
|
+
"deviceManager.confirmIdentityLink": {
|
|
104912
|
+
capName: "device-manager",
|
|
104913
|
+
capScope: "system",
|
|
104914
|
+
addonId: null,
|
|
104915
|
+
access: "create",
|
|
104916
|
+
role: "admin"
|
|
104917
|
+
},
|
|
103996
104918
|
"deviceManager.createDevice": {
|
|
103997
104919
|
capName: "device-manager",
|
|
103998
104920
|
capScope: "system",
|
|
@@ -104042,6 +104964,13 @@ Object.freeze({
|
|
|
104042
104964
|
access: "create",
|
|
104043
104965
|
role: "admin"
|
|
104044
104966
|
},
|
|
104967
|
+
"deviceManager.dismissIdentityLink": {
|
|
104968
|
+
capName: "device-manager",
|
|
104969
|
+
capScope: "system",
|
|
104970
|
+
addonId: null,
|
|
104971
|
+
access: "create",
|
|
104972
|
+
role: "admin"
|
|
104973
|
+
},
|
|
104045
104974
|
"deviceManager.enable": {
|
|
104046
104975
|
capName: "device-manager",
|
|
104047
104976
|
capScope: "system",
|
|
@@ -104238,6 +105167,13 @@ Object.freeze({
|
|
|
104238
105167
|
access: "view",
|
|
104239
105168
|
role: "admin"
|
|
104240
105169
|
},
|
|
105170
|
+
"deviceManager.listIdentityLinks": {
|
|
105171
|
+
capName: "device-manager",
|
|
105172
|
+
capScope: "system",
|
|
105173
|
+
addonId: null,
|
|
105174
|
+
access: "view",
|
|
105175
|
+
role: "admin"
|
|
105176
|
+
},
|
|
104241
105177
|
"deviceManager.listLocationDescriptions": {
|
|
104242
105178
|
capName: "device-manager",
|
|
104243
105179
|
capScope: "system",
|
|
@@ -104434,6 +105370,13 @@ Object.freeze({
|
|
|
104434
105370
|
access: "create",
|
|
104435
105371
|
role: "admin"
|
|
104436
105372
|
},
|
|
105373
|
+
"deviceManager.setAttachedIdentifiers": {
|
|
105374
|
+
capName: "device-manager",
|
|
105375
|
+
capScope: "system",
|
|
105376
|
+
addonId: null,
|
|
105377
|
+
access: "create",
|
|
105378
|
+
role: "admin"
|
|
105379
|
+
},
|
|
104437
105380
|
"deviceManager.setChildLayout": {
|
|
104438
105381
|
capName: "device-manager",
|
|
104439
105382
|
capScope: "system",
|
|
@@ -104595,6 +105538,13 @@ Object.freeze({
|
|
|
104595
105538
|
access: "create",
|
|
104596
105539
|
role: "admin"
|
|
104597
105540
|
},
|
|
105541
|
+
"deviceManager.unlinkIdentity": {
|
|
105542
|
+
capName: "device-manager",
|
|
105543
|
+
capScope: "system",
|
|
105544
|
+
addonId: null,
|
|
105545
|
+
access: "delete",
|
|
105546
|
+
role: "admin"
|
|
105547
|
+
},
|
|
104598
105548
|
"deviceManager.updateConfig": {
|
|
104599
105549
|
capName: "device-manager",
|
|
104600
105550
|
capScope: "system",
|
|
@@ -104875,6 +105825,20 @@ Object.freeze({
|
|
|
104875
105825
|
access: "create",
|
|
104876
105826
|
role: "admin"
|
|
104877
105827
|
},
|
|
105828
|
+
"deviceStateRefresh.refresh": {
|
|
105829
|
+
capName: "device-state-refresh",
|
|
105830
|
+
capScope: "device",
|
|
105831
|
+
addonId: null,
|
|
105832
|
+
access: "create",
|
|
105833
|
+
role: "admin"
|
|
105834
|
+
},
|
|
105835
|
+
"deviceStateRefresh.resubscribe": {
|
|
105836
|
+
capName: "device-state-refresh",
|
|
105837
|
+
capScope: "device",
|
|
105838
|
+
addonId: null,
|
|
105839
|
+
access: "create",
|
|
105840
|
+
role: "admin"
|
|
105841
|
+
},
|
|
104878
105842
|
"deviceStatus.getStatus": {
|
|
104879
105843
|
capName: "device-status",
|
|
104880
105844
|
capScope: "device",
|
|
@@ -108746,6 +109710,13 @@ Object.freeze({
|
|
|
108746
109710
|
access: "view",
|
|
108747
109711
|
role: "admin"
|
|
108748
109712
|
},
|
|
109713
|
+
"pipelineOrchestrator.getStepSwitches": {
|
|
109714
|
+
capName: "pipeline-orchestrator",
|
|
109715
|
+
capScope: "system",
|
|
109716
|
+
addonId: null,
|
|
109717
|
+
access: "view",
|
|
109718
|
+
role: "admin"
|
|
109719
|
+
},
|
|
108749
109720
|
"pipelineOrchestrator.listAgentSettings": {
|
|
108750
109721
|
capName: "pipeline-orchestrator",
|
|
108751
109722
|
capScope: "system",
|
|
@@ -108900,6 +109871,20 @@ Object.freeze({
|
|
|
108900
109871
|
access: "create",
|
|
108901
109872
|
role: "admin"
|
|
108902
109873
|
},
|
|
109874
|
+
"pipelineOrchestrator.setClusterStepMode": {
|
|
109875
|
+
capName: "pipeline-orchestrator",
|
|
109876
|
+
capScope: "system",
|
|
109877
|
+
addonId: null,
|
|
109878
|
+
access: "create",
|
|
109879
|
+
role: "admin"
|
|
109880
|
+
},
|
|
109881
|
+
"pipelineOrchestrator.setDeviceStepEnabled": {
|
|
109882
|
+
capName: "pipeline-orchestrator",
|
|
109883
|
+
capScope: "system",
|
|
109884
|
+
addonId: null,
|
|
109885
|
+
access: "create",
|
|
109886
|
+
role: "admin"
|
|
109887
|
+
},
|
|
108903
109888
|
"pipelineOrchestrator.setLoadBalancingShares": {
|
|
108904
109889
|
capName: "pipeline-orchestrator",
|
|
108905
109890
|
capScope: "system",
|
|
@@ -108907,6 +109892,13 @@ Object.freeze({
|
|
|
108907
109892
|
access: "create",
|
|
108908
109893
|
role: "admin"
|
|
108909
109894
|
},
|
|
109895
|
+
"pipelineOrchestrator.setNodeStepEnabled": {
|
|
109896
|
+
capName: "pipeline-orchestrator",
|
|
109897
|
+
capScope: "system",
|
|
109898
|
+
addonId: null,
|
|
109899
|
+
access: "create",
|
|
109900
|
+
role: "admin"
|
|
109901
|
+
},
|
|
108910
109902
|
"pipelineOrchestrator.setNodeStepSettings": {
|
|
108911
109903
|
capName: "pipeline-orchestrator",
|
|
108912
109904
|
capScope: "system",
|
|
@@ -112509,7 +113501,7 @@ function offered(received) {
|
|
|
112509
113501
|
}
|
|
112510
113502
|
offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
|
|
112511
113503
|
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;
|
|
112512
|
-
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;
|
|
113504
|
+
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;
|
|
112513
113505
|
new Set(Object.values(DeviceType));
|
|
112514
113506
|
new Set(Object.values(DeviceRole));
|
|
112515
113507
|
var PowerSwitchRefusedError = class extends Error {
|
|
@@ -113284,6 +114276,11 @@ Object.freeze({
|
|
|
113284
114276
|
form: "array",
|
|
113285
114277
|
optional: true
|
|
113286
114278
|
}],
|
|
114279
|
+
"deviceManager.listIdentityLinks": [{
|
|
114280
|
+
name: "deviceId",
|
|
114281
|
+
form: "single",
|
|
114282
|
+
optional: true
|
|
114283
|
+
}],
|
|
113287
114284
|
"deviceManager.loadConfig": [{
|
|
113288
114285
|
name: "deviceId",
|
|
113289
114286
|
form: "single",
|
|
@@ -113334,6 +114331,11 @@ Object.freeze({
|
|
|
113334
114331
|
form: "single",
|
|
113335
114332
|
optional: false
|
|
113336
114333
|
}],
|
|
114334
|
+
"deviceManager.setAttachedIdentifiers": [{
|
|
114335
|
+
name: "deviceId",
|
|
114336
|
+
form: "single",
|
|
114337
|
+
optional: false
|
|
114338
|
+
}],
|
|
113337
114339
|
"deviceManager.setChildLayout": [{
|
|
113338
114340
|
name: "deviceId",
|
|
113339
114341
|
form: "single",
|
|
@@ -113528,6 +114530,20 @@ Object.freeze({
|
|
|
113528
114530
|
form: "single",
|
|
113529
114531
|
optional: false
|
|
113530
114532
|
}],
|
|
114533
|
+
"deviceStateRefresh.refresh": [{
|
|
114534
|
+
name: "deviceId",
|
|
114535
|
+
form: "single",
|
|
114536
|
+
optional: false
|
|
114537
|
+
}, {
|
|
114538
|
+
name: "deviceIds",
|
|
114539
|
+
form: "array",
|
|
114540
|
+
optional: false
|
|
114541
|
+
}],
|
|
114542
|
+
"deviceStateRefresh.resubscribe": [{
|
|
114543
|
+
name: "deviceId",
|
|
114544
|
+
form: "single",
|
|
114545
|
+
optional: false
|
|
114546
|
+
}],
|
|
113531
114547
|
"deviceStatus.getStatus": [{
|
|
113532
114548
|
name: "deviceId",
|
|
113533
114549
|
form: "single",
|
|
@@ -149119,6 +150135,7 @@ function buildHomematicInstances(records, deps) {
|
|
|
149119
150135
|
},
|
|
149120
150136
|
formSchema: () => buildConnectionFormSchema(),
|
|
149121
150137
|
initialBody: (name) => ({ name }),
|
|
150138
|
+
addDevice: () => "children",
|
|
149122
150139
|
configured: (body) => (body.host ?? "").trim().length > 0,
|
|
149123
150140
|
onChanged: () => deps.onChanged(),
|
|
149124
150141
|
test: async ({ id, values }) => {
|