@camstack/addon-provider-reolink 1.2.244 → 1.2.245

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/dist/addon.js CHANGED
@@ -100698,7 +100698,7 @@ function parseBaichuanWebhookObject(mess) {
100698
100698
  return parsed;
100699
100699
  }
100700
100700
  //#endregion
100701
- //#region ../types/dist/event-category-CY27-fF0.mjs
100701
+ //#region ../types/dist/event-category-7P4A3bYA.mjs
100702
100702
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
100703
100703
  EventCategory["SystemBoot"] = "system.boot";
100704
100704
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -100929,6 +100929,20 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
100929
100929
  * dropped) — consumers MUST also gate on the device record's `probed` flag.
100930
100930
  */
100931
100931
  EventCategory["DeviceReady"] = "device.ready";
100932
+ /**
100933
+ * An identity link (D1063) became `linked` — auto on strong evidence or
100934
+ * confirmed by the operator — or a confirmed link's evidence came back. Telemetry: the `identity-links` record is the
100935
+ * truth, and core-blocks reconciles its contributions from it as well.
100936
+ * Payload: `IdentityLinkEventPayload`.
100937
+ */
100938
+ EventCategory["IdentityLinkCreated"] = "identity-link.created";
100939
+ /**
100940
+ * A `linked` identity link stopped acting: its evidence is gone (an auto link
100941
+ * is deleted; an operator-confirmed one stays `linked`, flagged
100942
+ * `evidenceGone`, and no longer acts), a side was removed, or the operator
100943
+ * unlinked it. Payload: `IdentityLinkEventPayload` with `reason`.
100944
+ */
100945
+ EventCategory["IdentityLinkLost"] = "identity-link.lost";
100932
100946
  EventCategory["IntegrationEnabled"] = "integration.enabled";
100933
100947
  EventCategory["IntegrationDisabled"] = "integration.disabled";
100934
100948
  EventCategory["IntegrationDeleted"] = "integration.deleted";
@@ -101530,7 +101544,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
101530
101544
  return EventCategory;
101531
101545
  }({});
101532
101546
  //#endregion
101533
- //#region ../types/dist/composed-stable-id-BNTaDZEh.mjs
101547
+ //#region ../types/dist/composed-stable-id-DIeNz933.mjs
101534
101548
  /**
101535
101549
  import { errMsg } from '@camstack/types'
101536
101550
  * Extract a human-readable message from an unknown error value.
@@ -101978,6 +101992,9 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
101978
101992
  /** A machine that runs workloads or is an appliance with its own OS: a
101979
101993
  * server, a hypervisor, a gateway console, a CCU. */
101980
101994
  DeviceRole["Host"] = "host";
101995
+ /** An uninterruptible power supply: battery charge, mains status and load. A
101996
+ * `DeviceType.Sensor` device. */
101997
+ DeviceRole["Ups"] = "ups";
101981
101998
  return DeviceRole;
101982
101999
  }({});
101983
102000
  /**
@@ -106804,7 +106821,7 @@ var ZodIssueCode = {
106804
106821
  var ZodFirstPartyTypeKind;
106805
106822
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
106806
106823
  //#endregion
106807
- //#region ../types/dist/sleep-BT1bLgPq.mjs
106824
+ //#region ../types/dist/runtime-capabilities-qX7BpOYT.mjs
106808
106825
  /**
106809
106826
  * The audio chunk plane's byte format, and the ONE expansion from a coded
106810
106827
  * window to float samples (D455).
@@ -108020,6 +108037,18 @@ function isInstanceEnabled(body) {
108020
108037
  }
108021
108038
  /** The body key of the switch; only {@link RecordIntegrationInstances.setInstanceEnabled} writes it. */
108022
108039
  var SWITCH_KEY = "enabled";
108040
+ /**
108041
+ * The "Add device" mode an instance gets when its provider states none, from how the provider's
108042
+ * devices are found: `lan` scans, `account` adopts the account's children, anything else is manual.
108043
+ * The one place this default lives.
108044
+ */
108045
+ function defaultAddDeviceMode(description) {
108046
+ switch (description.discovery?.mode) {
108047
+ case "lan": return "scan";
108048
+ case "account": return "children";
108049
+ default: return "none";
108050
+ }
108051
+ }
108023
108052
  /** The keys of the kind's secret fields that sit at the top level of the body. */
108024
108053
  function topLevelSecretKeys(paths) {
108025
108054
  return new Set(paths.filter((p) => !p.includes(".") && !p.includes("[") && !p.includes("{")));
@@ -108122,6 +108151,7 @@ var RecordIntegrationInstances = class {
108122
108151
  enabled: isInstanceEnabled(record.data),
108123
108152
  formValues: shown,
108124
108153
  kind,
108154
+ addDevice: this.hooks.addDevice?.(record.data) ?? defaultAddDeviceMode(this.hooks.description),
108125
108155
  ...health?.status !== void 0 ? { status: health.status } : {},
108126
108156
  ...health?.lastCheckedAt !== void 0 ? { lastCheckedAt: health.lastCheckedAt } : {}
108127
108157
  };
@@ -111642,6 +111672,10 @@ var CAP_VOCABULARY_BY_NAME = {
111642
111672
  it: "Commuta {device}"
111643
111673
  },
111644
111674
  icon: "toggle-right",
111675
+ sideEffects: [{
111676
+ field: "on",
111677
+ negate: true
111678
+ }],
111645
111679
  offeredWhen: {
111646
111680
  method: "getOptions",
111647
111681
  field: "supportsSetState"
@@ -112756,7 +112790,15 @@ var CAP_VOCABULARY_BY_NAME = {
112756
112790
  effect: {
112757
112791
  field: "state",
112758
112792
  value: "locked"
112759
- }
112793
+ },
112794
+ hold: { effects: [{
112795
+ field: "state",
112796
+ value: "locking",
112797
+ when: {
112798
+ field: "state",
112799
+ notIn: ["locked"]
112800
+ }
112801
+ }] }
112760
112802
  },
112761
112803
  {
112762
112804
  id: "lock.unlock",
@@ -112785,7 +112827,15 @@ var CAP_VOCABULARY_BY_NAME = {
112785
112827
  effect: {
112786
112828
  field: "state",
112787
112829
  value: "unlocked"
112788
- }
112830
+ },
112831
+ hold: { effects: [{
112832
+ field: "state",
112833
+ value: "unlocking",
112834
+ when: {
112835
+ field: "state",
112836
+ notIn: ["unlocked"]
112837
+ }
112838
+ }] }
112789
112839
  },
112790
112840
  {
112791
112841
  id: "lock.open",
@@ -113099,6 +113149,14 @@ var CAP_VOCABULARY_BY_NAME = {
113099
113149
  step: .5,
113100
113150
  unit: "°C"
113101
113151
  }
113152
+ }],
113153
+ effect: {
113154
+ field: "targetLow",
113155
+ fromArg: "targetLow"
113156
+ },
113157
+ sideEffects: [{
113158
+ field: "targetHigh",
113159
+ fromArg: "targetHigh"
113102
113160
  }]
113103
113161
  },
113104
113162
  {
@@ -113155,7 +113213,11 @@ var CAP_VOCABULARY_BY_NAME = {
113155
113213
  from: "status",
113156
113214
  field: "availableFanModes"
113157
113215
  }
113158
- }]
113216
+ }],
113217
+ effect: {
113218
+ field: "fanMode",
113219
+ fromArg: "fanMode"
113220
+ }
113159
113221
  },
113160
113222
  {
113161
113223
  id: "climate.preset",
@@ -113180,7 +113242,11 @@ var CAP_VOCABULARY_BY_NAME = {
113180
113242
  from: "status",
113181
113243
  field: "availablePresets"
113182
113244
  }
113183
- }]
113245
+ }],
113246
+ effect: {
113247
+ field: "preset",
113248
+ fromArg: "preset"
113249
+ }
113184
113250
  },
113185
113251
  {
113186
113252
  id: "climate.swingVerticalOn",
@@ -113413,7 +113479,15 @@ var CAP_VOCABULARY_BY_NAME = {
113413
113479
  effect: {
113414
113480
  field: "speed",
113415
113481
  value: 100
113416
- }
113482
+ },
113483
+ sideEffects: [{
113484
+ field: "preset",
113485
+ value: "",
113486
+ when: {
113487
+ field: "preset",
113488
+ notIn: [""]
113489
+ }
113490
+ }]
113417
113491
  },
113418
113492
  {
113419
113493
  id: "fan.speed",
@@ -113444,7 +113518,15 @@ var CAP_VOCABULARY_BY_NAME = {
113444
113518
  effect: {
113445
113519
  field: "speed",
113446
113520
  fromArg: "speed"
113447
- }
113521
+ },
113522
+ sideEffects: [{
113523
+ field: "preset",
113524
+ value: "",
113525
+ when: {
113526
+ field: "preset",
113527
+ notIn: [""]
113528
+ }
113529
+ }]
113448
113530
  },
113449
113531
  {
113450
113532
  id: "fan.preset",
@@ -113469,7 +113551,11 @@ var CAP_VOCABULARY_BY_NAME = {
113469
113551
  from: "status",
113470
113552
  field: "availablePresets"
113471
113553
  }
113472
- }]
113554
+ }],
113555
+ effect: {
113556
+ field: "preset",
113557
+ fromArg: "preset"
113558
+ }
113473
113559
  },
113474
113560
  {
113475
113561
  id: "fan.forward",
@@ -114014,7 +114100,15 @@ var CAP_VOCABULARY_BY_NAME = {
114014
114100
  effect: {
114015
114101
  field: "state",
114016
114102
  value: "disarmed"
114017
- }
114103
+ },
114104
+ hold: { effects: [{
114105
+ field: "state",
114106
+ value: "disarming",
114107
+ when: {
114108
+ field: "state",
114109
+ notIn: ["disarmed"]
114110
+ }
114111
+ }] }
114018
114112
  },
114019
114113
  {
114020
114114
  id: "alarm.arm.home",
@@ -114044,7 +114138,15 @@ var CAP_VOCABULARY_BY_NAME = {
114044
114138
  effect: {
114045
114139
  field: "state",
114046
114140
  value: "armed_home"
114047
- }
114141
+ },
114142
+ hold: { effects: [{
114143
+ field: "state",
114144
+ value: "arming",
114145
+ when: {
114146
+ field: "state",
114147
+ notIn: ["armed_home"]
114148
+ }
114149
+ }] }
114048
114150
  },
114049
114151
  {
114050
114152
  id: "alarm.arm.away",
@@ -114074,7 +114176,15 @@ var CAP_VOCABULARY_BY_NAME = {
114074
114176
  effect: {
114075
114177
  field: "state",
114076
114178
  value: "armed_away"
114077
- }
114179
+ },
114180
+ hold: { effects: [{
114181
+ field: "state",
114182
+ value: "arming",
114183
+ when: {
114184
+ field: "state",
114185
+ notIn: ["armed_away"]
114186
+ }
114187
+ }] }
114078
114188
  },
114079
114189
  {
114080
114190
  id: "alarm.arm.night",
@@ -114104,7 +114214,15 @@ var CAP_VOCABULARY_BY_NAME = {
114104
114214
  effect: {
114105
114215
  field: "state",
114106
114216
  value: "armed_night"
114107
- }
114217
+ },
114218
+ hold: { effects: [{
114219
+ field: "state",
114220
+ value: "arming",
114221
+ when: {
114222
+ field: "state",
114223
+ notIn: ["armed_night"]
114224
+ }
114225
+ }] }
114108
114226
  },
114109
114227
  {
114110
114228
  id: "alarm.arm.vacation",
@@ -114134,7 +114252,15 @@ var CAP_VOCABULARY_BY_NAME = {
114134
114252
  effect: {
114135
114253
  field: "state",
114136
114254
  value: "armed_vacation"
114137
- }
114255
+ },
114256
+ hold: { effects: [{
114257
+ field: "state",
114258
+ value: "arming",
114259
+ when: {
114260
+ field: "state",
114261
+ notIn: ["armed_vacation"]
114262
+ }
114263
+ }] }
114138
114264
  },
114139
114265
  {
114140
114266
  id: "alarm.arm.custom_bypass",
@@ -114164,7 +114290,15 @@ var CAP_VOCABULARY_BY_NAME = {
114164
114290
  effect: {
114165
114291
  field: "state",
114166
114292
  value: "armed_custom_bypass"
114167
- }
114293
+ },
114294
+ hold: { effects: [{
114295
+ field: "state",
114296
+ value: "arming",
114297
+ when: {
114298
+ field: "state",
114299
+ notIn: ["armed_custom_bypass"]
114300
+ }
114301
+ }] }
114168
114302
  }
114169
114303
  ],
114170
114304
  state: [{
@@ -115306,7 +115440,14 @@ var CAP_VOCABULARY_BY_NAME = {
115306
115440
  quantity: "mass"
115307
115441
  },
115308
115442
  optional: true
115309
- }]
115443
+ }],
115444
+ hold: {
115445
+ effects: [{
115446
+ field: "feeding",
115447
+ value: true
115448
+ }],
115449
+ holdMs: 1e4
115450
+ }
115310
115451
  },
115311
115452
  {
115312
115453
  id: "petFeeder.feedHoppers",
@@ -115350,7 +115491,14 @@ var CAP_VOCABULARY_BY_NAME = {
115350
115491
  quantity: "mass"
115351
115492
  },
115352
115493
  optional: true
115353
- }]
115494
+ }],
115495
+ hold: {
115496
+ effects: [{
115497
+ field: "feeding",
115498
+ value: true
115499
+ }],
115500
+ holdMs: 1e4
115501
+ }
115354
115502
  },
115355
115503
  {
115356
115504
  id: "petFeeder.cancelFeed",
@@ -115441,7 +115589,11 @@ var CAP_VOCABULARY_BY_NAME = {
115441
115589
  it: "Attiva il blocco bambini di {device}"
115442
115590
  },
115443
115591
  icon: "lock",
115444
- args: { on: true }
115592
+ args: { on: true },
115593
+ effect: {
115594
+ field: "childLock",
115595
+ value: true
115596
+ }
115445
115597
  },
115446
115598
  {
115447
115599
  id: "petFeeder.childLockOff",
@@ -115455,7 +115607,11 @@ var CAP_VOCABULARY_BY_NAME = {
115455
115607
  it: "Disattiva il blocco bambini di {device}"
115456
115608
  },
115457
115609
  icon: "lock-open",
115458
- args: { on: false }
115610
+ args: { on: false },
115611
+ effect: {
115612
+ field: "childLock",
115613
+ value: false
115614
+ }
115459
115615
  },
115460
115616
  {
115461
115617
  id: "petFeeder.lightOn",
@@ -115469,7 +115625,11 @@ var CAP_VOCABULARY_BY_NAME = {
115469
115625
  it: "Accendi la spia di {device}"
115470
115626
  },
115471
115627
  icon: "lightbulb",
115472
- args: { on: true }
115628
+ args: { on: true },
115629
+ effect: {
115630
+ field: "indicatorLight",
115631
+ value: true
115632
+ }
115473
115633
  },
115474
115634
  {
115475
115635
  id: "petFeeder.lightOff",
@@ -115483,7 +115643,11 @@ var CAP_VOCABULARY_BY_NAME = {
115483
115643
  it: "Spegni la spia di {device}"
115484
115644
  },
115485
115645
  icon: "lightbulb-off",
115486
- args: { on: false }
115646
+ args: { on: false },
115647
+ effect: {
115648
+ field: "indicatorLight",
115649
+ value: false
115650
+ }
115487
115651
  },
115488
115652
  {
115489
115653
  id: "petFeeder.feedSoundOn",
@@ -115497,7 +115661,11 @@ var CAP_VOCABULARY_BY_NAME = {
115497
115661
  it: "Attiva il suono di erogazione di {device}"
115498
115662
  },
115499
115663
  icon: "volume-2",
115500
- args: { on: true }
115664
+ args: { on: true },
115665
+ effect: {
115666
+ field: "feedSound",
115667
+ value: true
115668
+ }
115501
115669
  },
115502
115670
  {
115503
115671
  id: "petFeeder.feedSoundOff",
@@ -115511,7 +115679,11 @@ var CAP_VOCABULARY_BY_NAME = {
115511
115679
  it: "Disattiva il suono di erogazione di {device}"
115512
115680
  },
115513
115681
  icon: "volume-x",
115514
- args: { on: false }
115682
+ args: { on: false },
115683
+ effect: {
115684
+ field: "feedSound",
115685
+ value: false
115686
+ }
115515
115687
  },
115516
115688
  {
115517
115689
  id: "petFeeder.volume",
@@ -115536,7 +115708,11 @@ var CAP_VOCABULARY_BY_NAME = {
115536
115708
  min: 0,
115537
115709
  step: 1
115538
115710
  }
115539
- }]
115711
+ }],
115712
+ effect: {
115713
+ field: "volume",
115714
+ fromArg: "level"
115715
+ }
115540
115716
  }
115541
115717
  ],
115542
115718
  state: [
@@ -115608,7 +115784,11 @@ var CAP_VOCABULARY_BY_NAME = {
115608
115784
  it: "Avvia la pompa di {device}"
115609
115785
  },
115610
115786
  icon: "play",
115611
- args: { on: true }
115787
+ args: { on: true },
115788
+ effect: {
115789
+ field: "pumpRunning",
115790
+ value: true
115791
+ }
115612
115792
  }, {
115613
115793
  id: "petFountain.pumpOff",
115614
115794
  method: "setPump",
@@ -115621,7 +115801,11 @@ var CAP_VOCABULARY_BY_NAME = {
115621
115801
  it: "Ferma la pompa di {device}"
115622
115802
  },
115623
115803
  icon: "square",
115624
- args: { on: false }
115804
+ args: { on: false },
115805
+ effect: {
115806
+ field: "pumpRunning",
115807
+ value: false
115808
+ }
115625
115809
  }],
115626
115810
  state: [{
115627
115811
  kind: "boolean",
@@ -115673,7 +115857,11 @@ var CAP_VOCABULARY_BY_NAME = {
115673
115857
  it: "Fai lavorare la pompa di {device} a ciclo acceso/spento"
115674
115858
  },
115675
115859
  icon: "timer",
115676
- args: { on: true }
115860
+ args: { on: true },
115861
+ effect: {
115862
+ field: "enabled",
115863
+ value: true
115864
+ }
115677
115865
  },
115678
115866
  {
115679
115867
  id: "pumpCycle.off",
@@ -115687,7 +115875,11 @@ var CAP_VOCABULARY_BY_NAME = {
115687
115875
  it: "Fai lavorare la pompa di {device} in continuo"
115688
115876
  },
115689
115877
  icon: "timer-off",
115690
- args: { on: false }
115878
+ args: { on: false },
115879
+ effect: {
115880
+ field: "enabled",
115881
+ value: false
115882
+ }
115691
115883
  },
115692
115884
  {
115693
115885
  id: "pumpCycle.onMinutes",
@@ -115713,7 +115905,12 @@ var CAP_VOCABULARY_BY_NAME = {
115713
115905
  step: 1,
115714
115906
  unit: "min"
115715
115907
  }
115716
- }]
115908
+ }],
115909
+ effect: {
115910
+ field: "onTime",
115911
+ fromArg: "minutes",
115912
+ scale: 60
115913
+ }
115717
115914
  },
115718
115915
  {
115719
115916
  id: "pumpCycle.offMinutes",
@@ -115739,7 +115936,12 @@ var CAP_VOCABULARY_BY_NAME = {
115739
115936
  step: 1,
115740
115937
  unit: "min"
115741
115938
  }
115742
- }]
115939
+ }],
115940
+ effect: {
115941
+ field: "offTime",
115942
+ fromArg: "minutes",
115943
+ scale: 60
115944
+ }
115743
115945
  }
115744
115946
  ],
115745
115947
  state: [{
@@ -115856,7 +116058,11 @@ var CAP_VOCABULARY_BY_NAME = {
115856
116058
  en: "Play on {device}",
115857
116059
  it: "Avvia la riproduzione su {device}"
115858
116060
  },
115859
- icon: "play"
116061
+ icon: "play",
116062
+ effect: {
116063
+ field: "state",
116064
+ value: "playing"
116065
+ }
115860
116066
  },
115861
116067
  {
115862
116068
  id: "media.pause",
@@ -115869,7 +116075,11 @@ var CAP_VOCABULARY_BY_NAME = {
115869
116075
  en: "Pause {device}",
115870
116076
  it: "Metti in pausa {device}"
115871
116077
  },
115872
- icon: "pause"
116078
+ icon: "pause",
116079
+ effect: {
116080
+ field: "state",
116081
+ value: "paused"
116082
+ }
115873
116083
  },
115874
116084
  {
115875
116085
  id: "media.stop",
@@ -115935,7 +116145,11 @@ var CAP_VOCABULARY_BY_NAME = {
115935
116145
  step: 1,
115936
116146
  unit: "%"
115937
116147
  }
115938
- }]
116148
+ }],
116149
+ effect: {
116150
+ field: "volumeLevel",
116151
+ fromArg: "volumeLevel"
116152
+ }
115939
116153
  },
115940
116154
  {
115941
116155
  id: "media.mute",
@@ -115949,7 +116163,11 @@ var CAP_VOCABULARY_BY_NAME = {
115949
116163
  it: "Silenzia {device}"
115950
116164
  },
115951
116165
  icon: "volume-x",
115952
- args: { muted: true }
116166
+ args: { muted: true },
116167
+ effect: {
116168
+ field: "isMuted",
116169
+ value: true
116170
+ }
115953
116171
  },
115954
116172
  {
115955
116173
  id: "media.unmute",
@@ -115963,7 +116181,11 @@ var CAP_VOCABULARY_BY_NAME = {
115963
116181
  it: "Riattiva l’audio di {device}"
115964
116182
  },
115965
116183
  icon: "volume-2",
115966
- args: { muted: false }
116184
+ args: { muted: false },
116185
+ effect: {
116186
+ field: "isMuted",
116187
+ value: false
116188
+ }
115967
116189
  },
115968
116190
  {
115969
116191
  id: "media.shuffleOn",
@@ -115977,7 +116199,11 @@ var CAP_VOCABULARY_BY_NAME = {
115977
116199
  it: "Attiva la riproduzione casuale su {device}"
115978
116200
  },
115979
116201
  icon: "shuffle",
115980
- args: { shuffle: true }
116202
+ args: { shuffle: true },
116203
+ effect: {
116204
+ field: "shuffle",
116205
+ value: true
116206
+ }
115981
116207
  },
115982
116208
  {
115983
116209
  id: "media.shuffleOff",
@@ -115991,7 +116217,11 @@ var CAP_VOCABULARY_BY_NAME = {
115991
116217
  it: "Disattiva la riproduzione casuale su {device}"
115992
116218
  },
115993
116219
  icon: "shuffle",
115994
- args: { shuffle: false }
116220
+ args: { shuffle: false },
116221
+ effect: {
116222
+ field: "shuffle",
116223
+ value: false
116224
+ }
115995
116225
  },
115996
116226
  {
115997
116227
  id: "media.repeat",
@@ -116037,7 +116267,11 @@ var CAP_VOCABULARY_BY_NAME = {
116037
116267
  }
116038
116268
  ]
116039
116269
  }
116040
- }]
116270
+ }],
116271
+ effect: {
116272
+ field: "repeat",
116273
+ fromArg: "repeat"
116274
+ }
116041
116275
  },
116042
116276
  {
116043
116277
  id: "media.source",
@@ -116062,7 +116296,11 @@ var CAP_VOCABULARY_BY_NAME = {
116062
116296
  from: "status",
116063
116297
  field: "availableSources"
116064
116298
  }
116065
- }]
116299
+ }],
116300
+ effect: {
116301
+ field: "source",
116302
+ fromArg: "source"
116303
+ }
116066
116304
  },
116067
116305
  {
116068
116306
  id: "media.seek",
@@ -116602,7 +116840,14 @@ var CAP_VOCABULARY_BY_NAME = {
116602
116840
  en: "Run {device}",
116603
116841
  it: "Esegui {device}"
116604
116842
  },
116605
- icon: "scroll-text"
116843
+ icon: "scroll-text",
116844
+ hold: {
116845
+ effects: [{
116846
+ field: "isRunning",
116847
+ value: true
116848
+ }],
116849
+ holdMs: 1e4
116850
+ }
116606
116851
  }, {
116607
116852
  id: "script.stop",
116608
116853
  method: "stop",
@@ -116614,7 +116859,11 @@ var CAP_VOCABULARY_BY_NAME = {
116614
116859
  en: "Stop {device}",
116615
116860
  it: "Ferma {device}"
116616
116861
  },
116617
- icon: "square"
116862
+ icon: "square",
116863
+ effect: {
116864
+ field: "isRunning",
116865
+ value: false
116866
+ }
116618
116867
  }],
116619
116868
  state: [{
116620
116869
  kind: "boolean",
@@ -116652,7 +116901,11 @@ var CAP_VOCABULARY_BY_NAME = {
116652
116901
  en: "Enable {device}",
116653
116902
  it: "Abilita {device}"
116654
116903
  },
116655
- icon: "toggle-right"
116904
+ icon: "toggle-right",
116905
+ effect: {
116906
+ field: "enabled",
116907
+ value: true
116908
+ }
116656
116909
  },
116657
116910
  {
116658
116911
  id: "haAutomation.disable",
@@ -116665,7 +116918,11 @@ var CAP_VOCABULARY_BY_NAME = {
116665
116918
  en: "Disable {device}",
116666
116919
  it: "Disabilita {device}"
116667
116920
  },
116668
- icon: "toggle-left"
116921
+ icon: "toggle-left",
116922
+ effect: {
116923
+ field: "enabled",
116924
+ value: false
116925
+ }
116669
116926
  },
116670
116927
  {
116671
116928
  id: "haAutomation.trigger",
@@ -118267,6 +118524,17 @@ var CAP_VOCABULARY_BY_NAME = {
118267
118524
  },
118268
118525
  notOperatorFacing: { resync: "device adoption — re-aligning a device with its source is an onboarding step, not an automation action" }
118269
118526
  },
118527
+ "device-state-refresh": {
118528
+ scope: "device",
118529
+ noun: {
118530
+ en: "State refresh",
118531
+ it: "Aggiornamento dello stato"
118532
+ },
118533
+ notOperatorFacing: {
118534
+ refresh: "the core schedules state refreshes itself; an operator never asks for one",
118535
+ resubscribe: "the core schedules state refreshes itself; an operator never asks for one"
118536
+ }
118537
+ },
118270
118538
  "recording": {
118271
118539
  scope: "device",
118272
118540
  noun: {
@@ -121255,6 +121523,7 @@ var CAP_NAMES = Object.freeze([
121255
121523
  "device-removal-hook",
121256
121524
  "device-runs",
121257
121525
  "device-state",
121526
+ "device-state-refresh",
121258
121527
  "device-status",
121259
121528
  "device-transitions",
121260
121529
  "dishwasher",
@@ -122895,6 +123164,10 @@ Object.freeze({
122895
123164
  "path": "power",
122896
123165
  "valueType": "number"
122897
123166
  },
123167
+ {
123168
+ "path": "deliveredPower",
123169
+ "valueType": "number"
123170
+ },
122898
123171
  {
122899
123172
  "path": "energy",
122900
123173
  "valueType": "number"
@@ -123737,7 +124010,7 @@ function sleep(ms) {
123737
124010
  return new Promise((resolve) => setTimeout(resolve, Math.max(0, ms)));
123738
124011
  }
123739
124012
  //#endregion
123740
- //#region ../types/dist/implemented-methods-k3KProJd.mjs
124013
+ //#region ../types/dist/implemented-methods-wFScvZ40.mjs
123741
124014
  /**
123742
124015
  * The ffmpeg build every CamStack node downloads, per platform and arch.
123743
124016
  *
@@ -124897,6 +125170,8 @@ var CompositionItemEntrySchema = object({
124897
125170
  */
124898
125171
  reset: CompositionForwardCommandSchema.optional()
124899
125172
  });
125173
+ /** Which identity link added a feature (D1063). */
125174
+ var CompositionContributedBySchema = object({ linkId: string().min(1) });
124900
125175
  var CompositionFeatureSchema = discriminatedUnion("kind", [object({
124901
125176
  kind: literal("fields"),
124902
125177
  cap: string().min(1),
@@ -124908,7 +125183,14 @@ var CompositionFeatureSchema = discriminatedUnion("kind", [object({
124908
125183
  */
124909
125184
  items: record(string().regex(COMPOSITION_ITEM_KEY_RE), CompositionItemEntrySchema).refine((items) => Object.keys(items).length <= 16, { message: `at most 16 items` }).optional(),
124910
125185
  /** Method name → what serves it. Only a BUILT capability takes commands (D967). */
124911
- commands: record(string().min(1), CompositionCommandTargetSchema).optional()
125186
+ commands: record(string().min(1), CompositionCommandTargetSchema).optional(),
125187
+ /**
125188
+ * Provenance only (D1063): the identity link that added this feature. The
125189
+ * source ref stays in `fields`; `enabled` stays the operator's switch. An
125190
+ * operator edit of the source drops the stamp and the feature becomes the
125191
+ * operator's; a lost link removes only stamped features.
125192
+ */
125193
+ contributedBy: CompositionContributedBySchema.optional()
124912
125194
  }), object({
124913
125195
  kind: literal("passthrough"),
124914
125196
  cap: string().min(1),
@@ -127597,7 +127879,7 @@ function ordinalOf(id) {
127597
127879
  function defaultIntegrationOf(integrations, eligible) {
127598
127880
  return [...eligible === void 0 ? integrations : integrations.filter(eligible)].sort((a, b) => ordinalOf(a.id) - ordinalOf(b.id) || (a.id < b.id ? -1 : 1))[0] ?? null;
127599
127881
  }
127600
- function unstamped(device) {
127882
+ function unstamped$1(device) {
127601
127883
  return device.integrationId === void 0 || device.integrationId === null || device.integrationId === "";
127602
127884
  }
127603
127885
  /**
@@ -127614,8 +127896,8 @@ async function claimDevicesToDefaultIntegration(ports, spec) {
127614
127896
  const all = await ports.listDevices(spec.addonId);
127615
127897
  const byId = new Map(all.map((d) => [d.id, d]));
127616
127898
  const reservations = /* @__PURE__ */ new Set();
127617
- for (const device of all) if (unstamped(device) && await isReservation(ports, device)) reservations.add(device.id);
127618
- const orphans = all.filter((d) => unstamped(d) && !reservations.has(d.id));
127899
+ for (const device of all) if (unstamped$1(device) && await isReservation(ports, device)) reservations.add(device.id);
127900
+ const orphans = all.filter((d) => unstamped$1(d) && !reservations.has(d.id));
127619
127901
  const summaryBase = { reservations: reservations.size };
127620
127902
  if (orphans.length === 0) return {
127621
127903
  outcome: "already-done",
@@ -127630,7 +127912,7 @@ async function claimDevicesToDefaultIntegration(ports, spec) {
127630
127912
  const unresolved = /* @__PURE__ */ new Set();
127631
127913
  const failed = /* @__PURE__ */ new Set();
127632
127914
  const resolve = (device, seen) => {
127633
- if (!unstamped(device)) return device.integrationId ?? null;
127915
+ if (!unstamped$1(device)) return device.integrationId ?? null;
127634
127916
  const planned = plan.get(device.id);
127635
127917
  if (planned !== void 0) return planned;
127636
127918
  if (failed.has(device.id)) return null;
@@ -154822,6 +155104,14 @@ var alarmPanelCapability = {
154822
155104
  field: "state",
154823
155105
  value: "disarmed"
154824
155106
  },
155107
+ hold: { effects: [{
155108
+ field: "state",
155109
+ value: "disarming",
155110
+ when: {
155111
+ field: "state",
155112
+ notIn: ["disarmed"]
155113
+ }
155114
+ }] },
154825
155115
  openArgs: [{
154826
155116
  key: "code",
154827
155117
  label: t("PIN code", "Codice PIN"),
@@ -154852,6 +155142,14 @@ var alarmPanelCapability = {
154852
155142
  field: "state",
154853
155143
  value: "armed_home"
154854
155144
  },
155145
+ hold: { effects: [{
155146
+ field: "state",
155147
+ value: "arming",
155148
+ when: {
155149
+ field: "state",
155150
+ notIn: ["armed_home"]
155151
+ }
155152
+ }] },
154855
155153
  args: { mode: "home" },
154856
155154
  openArgs: [{
154857
155155
  key: "code",
@@ -154872,6 +155170,14 @@ var alarmPanelCapability = {
154872
155170
  field: "state",
154873
155171
  value: "armed_away"
154874
155172
  },
155173
+ hold: { effects: [{
155174
+ field: "state",
155175
+ value: "arming",
155176
+ when: {
155177
+ field: "state",
155178
+ notIn: ["armed_away"]
155179
+ }
155180
+ }] },
154875
155181
  args: { mode: "away" },
154876
155182
  openArgs: [{
154877
155183
  key: "code",
@@ -154892,6 +155198,14 @@ var alarmPanelCapability = {
154892
155198
  field: "state",
154893
155199
  value: "armed_night"
154894
155200
  },
155201
+ hold: { effects: [{
155202
+ field: "state",
155203
+ value: "arming",
155204
+ when: {
155205
+ field: "state",
155206
+ notIn: ["armed_night"]
155207
+ }
155208
+ }] },
154895
155209
  args: { mode: "night" },
154896
155210
  openArgs: [{
154897
155211
  key: "code",
@@ -154912,6 +155226,14 @@ var alarmPanelCapability = {
154912
155226
  field: "state",
154913
155227
  value: "armed_vacation"
154914
155228
  },
155229
+ hold: { effects: [{
155230
+ field: "state",
155231
+ value: "arming",
155232
+ when: {
155233
+ field: "state",
155234
+ notIn: ["armed_vacation"]
155235
+ }
155236
+ }] },
154915
155237
  args: { mode: "vacation" },
154916
155238
  openArgs: [{
154917
155239
  key: "code",
@@ -154932,6 +155254,14 @@ var alarmPanelCapability = {
154932
155254
  field: "state",
154933
155255
  value: "armed_custom_bypass"
154934
155256
  },
155257
+ hold: { effects: [{
155258
+ field: "state",
155259
+ value: "arming",
155260
+ when: {
155261
+ field: "state",
155262
+ notIn: ["armed_custom_bypass"]
155263
+ }
155264
+ }] },
154935
155265
  args: { mode: "custom_bypass" },
154936
155266
  openArgs: [{
154937
155267
  key: "code",
@@ -155615,6 +155945,10 @@ var automationControlCapability = {
155615
155945
  auth: "admin",
155616
155946
  actions: [{
155617
155947
  id: "haAutomation.enable",
155948
+ effect: {
155949
+ field: "enabled",
155950
+ value: true
155951
+ },
155618
155952
  label: t("Enable automation", "Abilita l’automazione"),
155619
155953
  phrase: t("Enable {device}", "Abilita {device}"),
155620
155954
  icon: "toggle-right"
@@ -155625,6 +155959,10 @@ var automationControlCapability = {
155625
155959
  auth: "admin",
155626
155960
  actions: [{
155627
155961
  id: "haAutomation.disable",
155962
+ effect: {
155963
+ field: "enabled",
155964
+ value: false
155965
+ },
155628
155966
  label: t("Disable automation", "Disabilita l’automazione"),
155629
155967
  phrase: t("Disable {device}", "Disabilita {device}"),
155630
155968
  icon: "toggle-left"
@@ -158435,6 +158773,14 @@ var climateControlCapability = {
158435
158773
  label: t("Set temperature range", "Imposta l’intervallo di temperatura"),
158436
158774
  phrase: t("Keep {device} between {targetLow} and {targetHigh}", "Mantieni {device} tra {targetLow} e {targetHigh}"),
158437
158775
  icon: "thermometer",
158776
+ effect: {
158777
+ field: "targetLow",
158778
+ fromArg: "targetLow"
158779
+ },
158780
+ sideEffects: [{
158781
+ field: "targetHigh",
158782
+ fromArg: "targetHigh"
158783
+ }],
158438
158784
  openArgs: [{
158439
158785
  key: "targetLow",
158440
158786
  label: t("Lowest", "Minima"),
@@ -158493,6 +158839,10 @@ var climateControlCapability = {
158493
158839
  label: t("Set fan mode", "Imposta la ventilazione"),
158494
158840
  phrase: t("Set the fan of {device} to {fanMode}", "Imposta la ventilazione di {device} su {fanMode}"),
158495
158841
  icon: "fan",
158842
+ effect: {
158843
+ field: "fanMode",
158844
+ fromArg: "fanMode"
158845
+ },
158496
158846
  openArgs: [{
158497
158847
  key: "fanMode",
158498
158848
  label: t("Fan mode", "Ventilazione"),
@@ -158515,6 +158865,10 @@ var climateControlCapability = {
158515
158865
  label: t("Set preset", "Imposta il preset"),
158516
158866
  phrase: t("Set {device} to preset {preset}", "Imposta {device} sul preset {preset}"),
158517
158867
  icon: "list",
158868
+ effect: {
158869
+ field: "preset",
158870
+ fromArg: "preset"
158871
+ },
158518
158872
  openArgs: [{
158519
158873
  key: "preset",
158520
158874
  label: t("Preset", "Preset"),
@@ -159102,7 +159456,8 @@ var CompositionProblemSchema = object({
159102
159456
  "command-source-unknown",
159103
159457
  "command-input-unknown",
159104
159458
  "command-input-missing",
159105
- "power-source-is-actuator"
159459
+ "power-source-is-actuator",
159460
+ "link-contribution-removed"
159106
159461
  ]),
159107
159462
  path: string(),
159108
159463
  message: string()
@@ -160529,6 +160884,10 @@ var mediaPlayerCapability = {
160529
160884
  auth: "protected",
160530
160885
  actions: [{
160531
160886
  id: "media.play",
160887
+ effect: {
160888
+ field: "state",
160889
+ value: "playing"
160890
+ },
160532
160891
  label: t("Play", "Riproduci"),
160533
160892
  phrase: t("Play on {device}", "Avvia la riproduzione su {device}"),
160534
160893
  icon: "play"
@@ -160539,6 +160898,10 @@ var mediaPlayerCapability = {
160539
160898
  auth: "protected",
160540
160899
  actions: [{
160541
160900
  id: "media.pause",
160901
+ effect: {
160902
+ field: "state",
160903
+ value: "paused"
160904
+ },
160542
160905
  label: t("Pause media", "Metti in pausa"),
160543
160906
  phrase: t("Pause {device}", "Metti in pausa {device}"),
160544
160907
  icon: "pause"
@@ -160582,6 +160945,10 @@ var mediaPlayerCapability = {
160582
160945
  auth: "protected",
160583
160946
  actions: [{
160584
160947
  id: "media.volume",
160948
+ effect: {
160949
+ field: "volumeLevel",
160950
+ fromArg: "volumeLevel"
160951
+ },
160585
160952
  label: t("Set volume", "Imposta il volume"),
160586
160953
  phrase: t("Set the volume of {device} to {volumeLevel}", "Imposta il volume di {device} al {volumeLevel}"),
160587
160954
  icon: "volume-2",
@@ -160606,12 +160973,20 @@ var mediaPlayerCapability = {
160606
160973
  auth: "protected",
160607
160974
  actions: [{
160608
160975
  id: "media.mute",
160976
+ effect: {
160977
+ field: "isMuted",
160978
+ value: true
160979
+ },
160609
160980
  label: t("Mute", "Silenzia"),
160610
160981
  phrase: t("Mute {device}", "Silenzia {device}"),
160611
160982
  icon: "volume-x",
160612
160983
  args: { muted: true }
160613
160984
  }, {
160614
160985
  id: "media.unmute",
160986
+ effect: {
160987
+ field: "isMuted",
160988
+ value: false
160989
+ },
160615
160990
  label: t("Unmute", "Riattiva l’audio"),
160616
160991
  phrase: t("Unmute {device}", "Riattiva l’audio di {device}"),
160617
160992
  icon: "volume-2",
@@ -160626,12 +161001,20 @@ var mediaPlayerCapability = {
160626
161001
  auth: "protected",
160627
161002
  actions: [{
160628
161003
  id: "media.shuffleOn",
161004
+ effect: {
161005
+ field: "shuffle",
161006
+ value: true
161007
+ },
160629
161008
  label: t("Shuffle on", "Riproduzione casuale attiva"),
160630
161009
  phrase: t("Turn on shuffle on {device}", "Attiva la riproduzione casuale su {device}"),
160631
161010
  icon: "shuffle",
160632
161011
  args: { shuffle: true }
160633
161012
  }, {
160634
161013
  id: "media.shuffleOff",
161014
+ effect: {
161015
+ field: "shuffle",
161016
+ value: false
161017
+ },
160635
161018
  label: t("Shuffle off", "Riproduzione casuale spenta"),
160636
161019
  phrase: t("Turn off shuffle on {device}", "Disattiva la riproduzione casuale su {device}"),
160637
161020
  icon: "shuffle",
@@ -160646,6 +161029,10 @@ var mediaPlayerCapability = {
160646
161029
  auth: "protected",
160647
161030
  actions: [{
160648
161031
  id: "media.repeat",
161032
+ effect: {
161033
+ field: "repeat",
161034
+ fromArg: "repeat"
161035
+ },
160649
161036
  label: t("Set repeat", "Imposta la ripetizione"),
160650
161037
  phrase: t("Set repeat on {device} to {repeat}", "Imposta la ripetizione di {device} su {repeat}"),
160651
161038
  icon: "repeat",
@@ -160680,6 +161067,10 @@ var mediaPlayerCapability = {
160680
161067
  auth: "protected",
160681
161068
  actions: [{
160682
161069
  id: "media.source",
161070
+ effect: {
161071
+ field: "source",
161072
+ fromArg: "source"
161073
+ },
160683
161074
  label: t("Select source", "Scegli la sorgente"),
160684
161075
  phrase: t("Switch {device} to {source}", "Passa {device} alla sorgente {source}"),
160685
161076
  icon: "cast",
@@ -160848,7 +161239,7 @@ var mediaPlayerCapability = {
160848
161239
  ]
160849
161240
  }
160850
161241
  };
160851
- 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;
161242
+ 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;
160852
161243
  var NUMBER = {
160853
161244
  kind: "fixed",
160854
161245
  result: ["number"]
@@ -161340,7 +161731,9 @@ var PowerSourceRefusalReasonSchema = _enum([
161340
161731
  "switch-call-failed",
161341
161732
  "switch-options-unreadable",
161342
161733
  "not-settable",
161343
- "switch-is-actuator"
161734
+ "switch-is-actuator",
161735
+ "link-lost",
161736
+ "link-unknown"
161344
161737
  ]);
161345
161738
  var PowerSourceActionResultSchema = discriminatedUnion("accepted", [object({ accepted: literal(true) }), object({
161346
161739
  accepted: literal(false),
@@ -163427,6 +163820,79 @@ var IdentityCandidatesSchema = discriminatedUnion("status", [object({
163427
163820
  pairs: array(IdentityCandidatePairSchema).readonly(),
163428
163821
  undeclaredDeviceIds: array(number$1().int()).readonly()
163429
163822
  })]);
163823
+ var IdentityLinkKindSchema = _enum(["same-device", "poe-power"]);
163824
+ /**
163825
+ * - `proposed` — one strong key matched: waits for the operator;
163826
+ * - `linked` — confirmed by the operator, or auto-linked on strong evidence;
163827
+ * - `dismissed` — the operator said no (or unlinked): sticky, never re-proposed.
163828
+ */
163829
+ var IdentityLinkStateSchema = _enum([
163830
+ "proposed",
163831
+ "linked",
163832
+ "dismissed"
163833
+ ]);
163834
+ /** Who decided the current state: the matcher (`auto`) or the operator. */
163835
+ var IdentityLinkOriginSchema = _enum(["auto", "operator"]);
163836
+ /** One side: the device ref that survives re-registration, plus its current numeric id. */
163837
+ var IdentityLinkSideSchema = object({
163838
+ addonId: string().min(1),
163839
+ stableId: string().min(1),
163840
+ deviceId: number$1().int()
163841
+ });
163842
+ var IdentityLinkSchema = object({
163843
+ kind: IdentityLinkKindSchema,
163844
+ a: IdentityLinkSideSchema,
163845
+ b: IdentityLinkSideSchema,
163846
+ state: IdentityLinkStateSchema,
163847
+ origin: IdentityLinkOriginSchema,
163848
+ /** The identifiers that matched when the link was last evaluated, ordered by key then value. */
163849
+ evidence: array(IdentityMatchedKeySchema).readonly(),
163850
+ /** An operator-confirmed link whose evidence no longer matches: kept, flagged. */
163851
+ evidenceGone: literal(true).optional(),
163852
+ createdAt: number$1().int().nonnegative(),
163853
+ decidedAt: number$1().int().nonnegative().optional()
163854
+ }).extend({ id: string().min(1) });
163855
+ DeviceRole.PoePort;
163856
+ /**
163857
+ * The answer of `device-manager.listIdentityLinks`. `not-loaded` until the
163858
+ * links have been read — never an empty list (D315).
163859
+ */
163860
+ var IdentityLinksReadSchema = discriminatedUnion("status", [object({
163861
+ status: literal("not-loaded"),
163862
+ reason: string()
163863
+ }), object({
163864
+ status: literal("answered"),
163865
+ links: array(IdentityLinkSchema).readonly()
163866
+ })]);
163867
+ /** Why an operator decision on a link was refused. */
163868
+ var IdentityLinkDecisionRefusalSchema = _enum([
163869
+ "not-loaded",
163870
+ "unknown-link",
163871
+ "wrong-state"
163872
+ ]);
163873
+ /** The answer of `confirmIdentityLink` / `dismissIdentityLink` / `unlinkIdentity`. */
163874
+ var IdentityLinkDecisionSchema = discriminatedUnion("ok", [object({
163875
+ ok: literal(true),
163876
+ link: IdentityLinkSchema
163877
+ }), object({
163878
+ ok: literal(false),
163879
+ reason: IdentityLinkDecisionRefusalSchema,
163880
+ message: string()
163881
+ })]);
163882
+ /** Why a link was lost. */
163883
+ var IdentityLinkLostReasonSchema = _enum([
163884
+ "evidence-gone",
163885
+ "device-removed",
163886
+ "operator-unlinked"
163887
+ ]);
163888
+ object({
163889
+ linkId: string(),
163890
+ kind: IdentityLinkKindSchema,
163891
+ aDeviceId: number$1().int(),
163892
+ bDeviceId: number$1().int(),
163893
+ origin: IdentityLinkOriginSchema,
163894
+ reason: IdentityLinkLostReasonSchema.optional()
163895
+ });
163430
163896
  var DeviceSearchRequiresSchema = object({
163431
163897
  /** Capability names the field wants a value of. Absent when the field wants actions only. */
163432
163898
  caps: array(string()).readonly().optional(),
@@ -163993,6 +164459,11 @@ var DeviceInfoSchema = object({
163993
164459
  * the owning provider via `setIdentifiers`; read-only for the operator.
163994
164460
  * Absent ⇒ the provider declared none. */
163995
164461
  identifiers: DeviceIdentifiersSchema.optional(),
164462
+ /** The identity of the device at the far end of this device's physical
164463
+ * link (D1059 amended by D1063) — a PoE port's wired client. Written only by
164464
+ * the owning provider via `setAttachedIdentifiers`; it never makes the two
164465
+ * devices the same device. Absent ⇒ none declared. */
164466
+ attachedIdentifiers: DeviceIdentifiersSchema.optional(),
163996
164467
  /** Optional upstream-system identity + rendering envelope. See
163997
164468
  * `SourceInfo` in `packages/types/src/device/source-info.ts`. */
163998
164469
  sourceInfo: SourceInfoSchema.optional(),
@@ -164146,6 +164617,8 @@ var DeviceMetaSchema = object({
164146
164617
  metadata: record(string(), unknown()).nullable().optional(),
164147
164618
  /** Provider-declared identifiers (D1059). See `DeviceMeta.identifiers`. */
164148
164619
  identifiers: DeviceIdentifiersSchema.optional(),
164620
+ /** The far end of the device's physical link (D1063). See `DeviceMeta.attachedIdentifiers`. */
164621
+ attachedIdentifiers: DeviceIdentifiersSchema.optional(),
164149
164622
  /** Optional upstream-system identity + rendering envelope. See
164150
164623
  * `SourceInfo`. Present when the device has been persisted with a
164151
164624
  * non-synthetic source identifier (HA entities, vendor MAC, …);
@@ -164470,6 +164943,26 @@ method(object({
164470
164943
  }), method(object({}), IdentityCandidatesSchema, {
164471
164944
  kind: "query",
164472
164945
  auth: "admin"
164946
+ }), method(object({
164947
+ deviceId: number$1(),
164948
+ identifiers: DeviceIdentifiersSchema.nullable(),
164949
+ /** Kinds the provider tried to read and could not: their stored value is kept. */
164950
+ unread: array(DeviceIdentifierKeySchema).optional()
164951
+ }), _void(), {
164952
+ kind: "mutation",
164953
+ auth: "admin"
164954
+ }), method(object({ deviceId: number$1().int().optional() }), IdentityLinksReadSchema, {
164955
+ kind: "query",
164956
+ auth: "admin"
164957
+ }), method(object({ linkId: string().min(1) }), IdentityLinkDecisionSchema, {
164958
+ kind: "mutation",
164959
+ auth: "admin"
164960
+ }), method(object({ linkId: string().min(1) }), IdentityLinkDecisionSchema, {
164961
+ kind: "mutation",
164962
+ auth: "admin"
164963
+ }), method(object({ linkId: string().min(1) }), IdentityLinkDecisionSchema, {
164964
+ kind: "mutation",
164965
+ auth: "admin"
164473
164966
  }), method(_void(), array(string())), method(object({ name: string() }), _void(), {
164474
164967
  kind: "mutation",
164475
164968
  auth: "admin"
@@ -165434,8 +165927,12 @@ var ClaimsListingSchema = discriminatedUnion("state", [object({
165434
165927
  })]);
165435
165928
  method(object({ deviceId: number$1() }), record(string(), record(string(), unknown()))), method(object({
165436
165929
  deviceId: number$1(),
165437
- capName: string()
165438
- }), record(string(), unknown()).nullable()), method(object({}), record(string(), record(string(), record(string(), unknown())))), method(object({
165930
+ capName: string(),
165931
+ /** The slice the device CONFIRMED, without a held command (D1061) — history and automations. */
165932
+ confirmed: boolean().optional()
165933
+ }), record(string(), unknown()).nullable()), method(object({
165934
+ /** The slices the devices CONFIRMED, without held commands (D1061). */
165935
+ confirmed: boolean().optional() }), record(string(), record(string(), record(string(), unknown())))), method(object({
165439
165936
  deviceId: number$1(),
165440
165937
  capName: string(),
165441
165938
  slice: record(string(), unknown())
@@ -165473,6 +165970,88 @@ method(object({ deviceId: number$1() }), record(string(), record(string(), unkno
165473
165970
  slice: record(string(), unknown())
165474
165971
  }));
165475
165972
  /**
165973
+ * Server-driven device state refresh (D1062): the core decides WHEN a device is
165974
+ * re-read, the integration only knows HOW.
165975
+ *
165976
+ * A provider states its policy where it registers the device's
165977
+ * `device-state-refresh` cap (`ctx.registerNativeCap(cap, provider, {
165978
+ * stateRefresh })`). It reaches the hub by the road the command-hold options
165979
+ * take (D1061): written directly in-process, carried on a forked child's cap
165980
+ * descriptors otherwise. Plain data, wire-safe.
165981
+ */
165982
+ /** Why the core asks for a refresh. */
165983
+ var StateRefreshReasonSchema = _enum([
165984
+ "schedule",
165985
+ "command",
165986
+ "burst"
165987
+ ]);
165988
+ /**
165989
+ * What arrives without asking: `none` (everything is read), `partial` (some
165990
+ * fields arrive by push, the rest is read on the schedule), `full` (everything
165991
+ * arrives by push — never read on a schedule).
165992
+ */
165993
+ var StateRefreshPushSchema = _enum([
165994
+ "none",
165995
+ "partial",
165996
+ "full"
165997
+ ]);
165998
+ object({
165999
+ /**
166000
+ * The integration instance the device belongs to. Devices of one instance
166001
+ * share one schedule group: a batching provider is asked once for all of
166002
+ * them, and the heartbeat is judged across them.
166003
+ */
166004
+ integrationId: string().min(1),
166005
+ /** The fastest interval the integration can afford for its devices. The core polls at it by default. */
166006
+ minIntervalMs: number$1().int().min(1e3),
166007
+ /**
166008
+ * The operator's per-integration setting, when there is one. It can only SLOW
166009
+ * the cadence: the core polls at `max(minIntervalMs, intervalMs)`.
166010
+ */
166011
+ intervalMs: number$1().int().positive().optional(),
166012
+ /** One `refresh` call can read every device of the integration at once. */
166013
+ batch: boolean(),
166014
+ push: StateRefreshPushSchema,
166015
+ /** Longest silence a push integration may keep before the core re-reads it and asks it to resubscribe. */
166016
+ heartbeatMs: number$1().int().positive().optional(),
166017
+ /**
166018
+ * Bumped by the provider each time its push subscription reconnected on its
166019
+ * own. A change makes the core re-read every device of the integration
166020
+ * (pushes lost while it was down; events may be dropped, D8).
166021
+ */
166022
+ connectionEpoch: number$1().int().nonnegative().optional()
166023
+ });
166024
+ /**
166025
+ * device-state-refresh — the HOW of a device's state refresh, called by the
166026
+ * core, which owns the WHEN (D1062).
166027
+ *
166028
+ * The provider registers it per device with its policy
166029
+ * (`registerNativeCap(cap, provider, { stateRefresh })`). The hub's scheduler
166030
+ * calls `refresh` on the schedule, after a command and in the burst that
166031
+ * follows it, and `resubscribe` when a push integration fell silent. The
166032
+ * provider re-reads and writes the slices it already writes; nothing is
166033
+ * returned but completion.
166034
+ */
166035
+ var DeviceStateRefreshInputSchema = object({
166036
+ /** The device the call is routed by (one of `deviceIds`). */
166037
+ deviceId: number$1().int().nonnegative(),
166038
+ /** Every device to re-read: one, or the integration's whole set when the provider batches. */
166039
+ deviceIds: array(number$1().int().nonnegative()).min(1),
166040
+ reason: StateRefreshReasonSchema
166041
+ });
166042
+ var DeviceStateResubscribeInputSchema = object({ deviceId: number$1().int().nonnegative() });
166043
+ var DeviceStateRefreshResultSchema = object({ ok: literal(true) });
166044
+ var NOT_OPERATOR_FACING = "the core schedules state refreshes itself; an operator never asks for one";
166045
+ method(DeviceStateRefreshInputSchema, DeviceStateRefreshResultSchema, {
166046
+ kind: "mutation",
166047
+ auth: "admin",
166048
+ notOperatorFacing: NOT_OPERATOR_FACING
166049
+ }), method(DeviceStateResubscribeInputSchema, DeviceStateRefreshResultSchema, {
166050
+ kind: "mutation",
166051
+ auth: "admin",
166052
+ notOperatorFacing: NOT_OPERATOR_FACING
166053
+ });
166054
+ /**
165476
166055
  * Generic device-level status snapshot. Auto-registered by `BaseDevice`
165477
166056
  * for every device, regardless of provider — the kernel needs a uniform
165478
166057
  * cap-keyed slice for the basic device flags every consumer expects to
@@ -167902,7 +168481,15 @@ var fanControlCapability = {
167902
168481
  field: "speed",
167903
168482
  value: 100
167904
168483
  },
167905
- args: { speed: 100 }
168484
+ args: { speed: 100 },
168485
+ sideEffects: [{
168486
+ field: "preset",
168487
+ value: "",
168488
+ when: {
168489
+ field: "preset",
168490
+ notIn: [""]
168491
+ }
168492
+ }]
167906
168493
  },
167907
168494
  {
167908
168495
  id: "fan.speed",
@@ -167913,6 +168500,14 @@ var fanControlCapability = {
167913
168500
  field: "speed",
167914
168501
  fromArg: "speed"
167915
168502
  },
168503
+ sideEffects: [{
168504
+ field: "preset",
168505
+ value: "",
168506
+ when: {
168507
+ field: "preset",
168508
+ notIn: [""]
168509
+ }
168510
+ }],
167916
168511
  openArgs: [{
167917
168512
  key: "speed",
167918
168513
  label: t("Speed", "Velocità"),
@@ -167938,6 +168533,10 @@ var fanControlCapability = {
167938
168533
  label: t("Set preset", "Imposta il preset"),
167939
168534
  phrase: t("Set {device} to preset {preset}", "Imposta {device} sul preset {preset}"),
167940
168535
  icon: "list",
168536
+ effect: {
168537
+ field: "preset",
168538
+ fromArg: "preset"
168539
+ },
167941
168540
  openArgs: [{
167942
168541
  key: "preset",
167943
168542
  label: t("Preset", "Preset"),
@@ -169668,7 +170267,7 @@ var HeroSceneSchema = object({
169668
170267
  level: number$1().min(0).max(1).nullable()
169669
170268
  });
169670
170269
  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;
169671
- 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;
170270
+ 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;
169672
170271
  var HeroRowIdSchema = _enum([
169673
170272
  "progress",
169674
170273
  "run-for",
@@ -170940,6 +171539,16 @@ var IntegrationInstanceStatusSchema = object({
170940
171539
  /** A short human word for the state ("Signed in", "Token expired"); shown instead of `state`. */
170941
171540
  label: string().optional()
170942
171541
  });
171542
+ /**
171543
+ * What "Add device" inside ONE instance offers, decided per instance by its provider. `scan`: the
171544
+ * LAN scan finds devices this instance holds; `children`: only the instance's own children, via
171545
+ * adoption (a scan would offer other hosts, which are new integrations); `none`: manual add only.
171546
+ */
171547
+ var IntegrationInstanceAddDeviceSchema = _enum([
171548
+ "scan",
171549
+ "children",
171550
+ "none"
171551
+ ]);
170943
171552
  var IntegrationInstanceSchema = object({
170944
171553
  id: IntegrationInstanceIdSchema,
170945
171554
  name: string(),
@@ -170957,7 +171566,9 @@ var IntegrationInstanceSchema = object({
170957
171566
  formValues: record(string(), unknown()),
170958
171567
  status: IntegrationInstanceStatusSchema.optional(),
170959
171568
  /** Epoch ms of the last probe of the remote that produced `status`; absent when never checked. */
170960
- lastCheckedAt: number$1().optional()
171569
+ lastCheckedAt: number$1().optional(),
171570
+ /** 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). */
171571
+ addDevice: IntegrationInstanceAddDeviceSchema.optional()
170961
171572
  });
170962
171573
  var IntegrationInstancePatchSchema = object({
170963
171574
  id: IntegrationInstanceIdSchema,
@@ -173108,6 +173719,14 @@ var lockControlCapability = {
173108
173719
  field: "state",
173109
173720
  value: "locked"
173110
173721
  },
173722
+ hold: { effects: [{
173723
+ field: "state",
173724
+ value: "locking",
173725
+ when: {
173726
+ field: "state",
173727
+ notIn: ["locked"]
173728
+ }
173729
+ }] },
173111
173730
  openArgs: [{
173112
173731
  key: "code",
173113
173732
  label: t("PIN code", "Codice PIN"),
@@ -173141,6 +173760,14 @@ var lockControlCapability = {
173141
173760
  field: "state",
173142
173761
  value: "unlocked"
173143
173762
  },
173763
+ hold: { effects: [{
173764
+ field: "state",
173765
+ value: "unlocking",
173766
+ when: {
173767
+ field: "state",
173768
+ notIn: ["unlocked"]
173769
+ }
173770
+ }] },
173144
173771
  openArgs: [{
173145
173772
  key: "code",
173146
173773
  label: t("PIN code", "Codice PIN"),
@@ -177552,6 +178179,16 @@ DeviceType.Camera, method(object({ deviceId: number$1() }), array(TrackSchema).r
177552
178179
  timestamp: number$1()
177553
178180
  }), EventCategory.PipelineAnalyticsDetectionEvent, EventCategory.PipelineAnalyticsPackageDelivered, EventCategory.PipelineAnalyticsPackagePickedUp;
177554
178181
  /**
178182
+ * A rectangle as a fraction of a frame, `[0, 1]` on both axes — the wire shape
178183
+ * of `NormalizedRect` (which is derived from it).
178184
+ */
178185
+ var NormalizedRectSchema = object({
178186
+ x: number$1(),
178187
+ y: number$1(),
178188
+ w: number$1(),
178189
+ h: number$1()
178190
+ });
178191
+ /**
177555
178192
  * A root model's boxes standing in for one crop-kind step's own inference
177556
178193
  * (D730) — see `runPipeline.suppliedRoot`.
177557
178194
  */
@@ -177944,7 +178581,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
177944
178581
  * reader) run on them through their own crop policy. Boxes are in the
177945
178582
  * PIXELS of the image this call carries. Absent ⇒ the root step runs.
177946
178583
  */
177947
- suppliedRoot: SuppliedRootOutputSchema.optional()
178584
+ suppliedRoot: SuppliedRootOutputSchema.optional(),
178585
+ /**
178586
+ * The motion analyzer's merged subjects (D394) for this camera, fresh,
178587
+ * normalised to the frame (0..1). Feeds the motion-guided root crop
178588
+ * (D1060): the executor picks per frame whether the object-detection
178589
+ * root runs on the full frame or on a crop around them. Honoured only
178590
+ * on the live `frame` plane with a `frameRef`. Absent or empty ⇒ no
178591
+ * motion known ⇒ full frame.
178592
+ */
178593
+ motionRegions: array(NormalizedRectSchema).optional()
177948
178594
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
177949
178595
  steps: array(PipelineStepInputSchema).min(1),
177950
178596
  frames: array(FrameInputSchema).min(1).max(255),
@@ -179036,7 +179682,15 @@ var RunnerInferenceDeviceSchema = object({
179036
179682
  * Absent field ⇒ an orchestrator that predates D650: the jumped step keeps
179037
179683
  * the elected device's provisioning, as before.
179038
179684
  */
179039
- steps: record(string(), RunnerJumpStepProvisioningSchema).optional()
179685
+ steps: record(string(), RunnerJumpStepProvisioningSchema).optional(),
179686
+ /**
179687
+ * Steps switched OFF on this device (D1065, `inferenceDevices[key].steps[s]
179688
+ * .enabled === false`). The runner never runs a subtree containing one of
179689
+ * them here: it auto-jumps it to an allowed device, and when none can take
179690
+ * it the subtree is skipped (`disabled-on-device`), never run here anyway.
179691
+ * Absent ⇒ none (an orchestrator that predates D1065).
179692
+ */
179693
+ disabledSteps: array(string()).readonly().optional()
179040
179694
  });
179041
179695
  /**
179042
179696
  * Camera assignment payload sent by `addon-pipeline-orchestrator` to a
@@ -184753,6 +185407,14 @@ method(object({ deviceId: number$1().int() }), object({
184753
185407
  auth: "admin"
184754
185408
  }), NOT_A_DEVICE.PIPELINE;
184755
185409
  /**
185410
+ * Hold limits a cap's vocabulary may declare on an action (D1061).
185411
+ *
185412
+ * A one-shot command (feed, run a script) has no lasting state to confirm; it
185413
+ * holds its in-progress flag just long enough that a second tap, before the
185414
+ * device reports, is seen as "already running" and refused.
185415
+ */
185416
+ var ONE_SHOT_HOLD_MS = 1e4;
185417
+ /**
184756
185418
  * Feeder connectivity / power status — mirrors the HA petkit device-status
184757
185419
  * enum: `normal` (online, mains), `offline` (not reaching PetKit cloud),
184758
185420
  * `on_batteries` (running on battery backup). `null` until first reported.
@@ -184870,6 +185532,13 @@ var petFeederCapability = {
184870
185532
  label: t("Feed", "Dai da mangiare"),
184871
185533
  phrase: t("Dispense {grams} from {device}", "Eroga {grams} da {device}"),
184872
185534
  icon: "paw-print",
185535
+ hold: {
185536
+ effects: [{
185537
+ field: "feeding",
185538
+ value: true
185539
+ }],
185540
+ holdMs: ONE_SHOT_HOLD_MS
185541
+ },
184873
185542
  openArgs: [{
184874
185543
  key: "grams",
184875
185544
  label: t("Grams", "Grammi"),
@@ -184888,6 +185557,13 @@ var petFeederCapability = {
184888
185557
  label: t("Feed from both hoppers", "Eroga da entrambi i serbatoi"),
184889
185558
  phrase: t("Dispense {hopper1} and {hopper2} from {device}", "Eroga {hopper1} e {hopper2} da {device}"),
184890
185559
  icon: "paw-print",
185560
+ hold: {
185561
+ effects: [{
185562
+ field: "feeding",
185563
+ value: true
185564
+ }],
185565
+ holdMs: ONE_SHOT_HOLD_MS
185566
+ },
184891
185567
  openArgs: [{
184892
185568
  key: "hopper1",
184893
185569
  label: t("Hopper 1", "Serbatoio 1"),
@@ -184993,12 +185669,20 @@ var petFeederCapability = {
184993
185669
  auth: "protected",
184994
185670
  actions: [{
184995
185671
  id: "petFeeder.childLockOn",
185672
+ effect: {
185673
+ field: "childLock",
185674
+ value: true
185675
+ },
184996
185676
  label: t("Child lock on", "Blocco bambini attivo"),
184997
185677
  phrase: t("Turn on the child lock of {device}", "Attiva il blocco bambini di {device}"),
184998
185678
  icon: "lock",
184999
185679
  args: { on: true }
185000
185680
  }, {
185001
185681
  id: "petFeeder.childLockOff",
185682
+ effect: {
185683
+ field: "childLock",
185684
+ value: false
185685
+ },
185002
185686
  label: t("Child lock off", "Blocco bambini spento"),
185003
185687
  phrase: t("Turn off the child lock of {device}", "Disattiva il blocco bambini di {device}"),
185004
185688
  icon: "lock-open",
@@ -185014,12 +185698,20 @@ var petFeederCapability = {
185014
185698
  auth: "protected",
185015
185699
  actions: [{
185016
185700
  id: "petFeeder.lightOn",
185701
+ effect: {
185702
+ field: "indicatorLight",
185703
+ value: true
185704
+ },
185017
185705
  label: t("Indicator light on", "Spia accesa"),
185018
185706
  phrase: t("Turn on the indicator light of {device}", "Accendi la spia di {device}"),
185019
185707
  icon: "lightbulb",
185020
185708
  args: { on: true }
185021
185709
  }, {
185022
185710
  id: "petFeeder.lightOff",
185711
+ effect: {
185712
+ field: "indicatorLight",
185713
+ value: false
185714
+ },
185023
185715
  label: t("Indicator light off", "Spia spenta"),
185024
185716
  phrase: t("Turn off the indicator light of {device}", "Spegni la spia di {device}"),
185025
185717
  icon: "lightbulb-off",
@@ -185035,12 +185727,20 @@ var petFeederCapability = {
185035
185727
  auth: "protected",
185036
185728
  actions: [{
185037
185729
  id: "petFeeder.feedSoundOn",
185730
+ effect: {
185731
+ field: "feedSound",
185732
+ value: true
185733
+ },
185038
185734
  label: t("Feeding sound on", "Suono di erogazione attivo"),
185039
185735
  phrase: t("Turn on the feeding sound of {device}", "Attiva il suono di erogazione di {device}"),
185040
185736
  icon: "volume-2",
185041
185737
  args: { on: true }
185042
185738
  }, {
185043
185739
  id: "petFeeder.feedSoundOff",
185740
+ effect: {
185741
+ field: "feedSound",
185742
+ value: false
185743
+ },
185044
185744
  label: t("Feeding sound off", "Suono di erogazione spento"),
185045
185745
  phrase: t("Turn off the feeding sound of {device}", "Disattiva il suono di erogazione di {device}"),
185046
185746
  icon: "volume-x",
@@ -185056,6 +185756,10 @@ var petFeederCapability = {
185056
185756
  auth: "protected",
185057
185757
  actions: [{
185058
185758
  id: "petFeeder.volume",
185759
+ effect: {
185760
+ field: "volume",
185761
+ fromArg: "level"
185762
+ },
185059
185763
  label: t("Set volume", "Imposta il volume"),
185060
185764
  phrase: t("Set the volume of {device} to {level}", "Imposta il volume di {device} a {level}"),
185061
185765
  icon: "volume-2",
@@ -185201,12 +185905,20 @@ setPump: method(object({
185201
185905
  auth: "protected",
185202
185906
  actions: [{
185203
185907
  id: "petFountain.pumpOn",
185908
+ effect: {
185909
+ field: "pumpRunning",
185910
+ value: true
185911
+ },
185204
185912
  label: t("Pump on", "Pompa accesa"),
185205
185913
  phrase: t("Start the pump of {device}", "Avvia la pompa di {device}"),
185206
185914
  icon: "play",
185207
185915
  args: { on: true }
185208
185916
  }, {
185209
185917
  id: "petFountain.pumpOff",
185918
+ effect: {
185919
+ field: "pumpRunning",
185920
+ value: false
185921
+ },
185210
185922
  label: t("Pump off", "Pompa spenta"),
185211
185923
  phrase: t("Stop the pump of {device}", "Ferma la pompa di {device}"),
185212
185924
  icon: "square",
@@ -185753,7 +186465,15 @@ var DeviceStepConfigSchema = object({
185753
186465
  * at a disabled/absent device on that node at save time. Absent ⇒ the runner
185754
186466
  * auto-jumps only when the effective device's format cannot run the step.
185755
186467
  */
185756
- jumpDeviceKey: string().optional()
186468
+ jumpDeviceKey: string().optional(),
186469
+ /**
186470
+ * DEVICE switch for this step (D1065). `false` = the step is never
186471
+ * provisioned on this accelerator: a detail step jumps to another enabled
186472
+ * device of the node where it is allowed, else it is skipped with reason
186473
+ * `disabled-on-device`; a root is skipped. Absent = inherit (on). Written by
186474
+ * `setDeviceStepEnabled`.
186475
+ */
186476
+ enabled: boolean().optional()
185757
186477
  });
185758
186478
  var AgentPipelineSettingsSchema = object({
185759
186479
  maxCameras: number$1().int().nonnegative().nullable().default(null),
@@ -185797,6 +186517,12 @@ var AgentPipelineSettingsSchema = object({
185797
186517
  */
185798
186518
  stepSettings: record(string(), record(string(), unknown()).readonly()).optional(),
185799
186519
  /**
186520
+ * NODE switch per step (D1065): `stepId → enabled`. `false` = the step never
186521
+ * runs on a camera whose pipeline runs on this node (skip reason
186522
+ * `disabled-on-node`). Absent = inherit. Written by `setNodeStepEnabled`.
186523
+ */
186524
+ stepEnabled: record(string(), boolean()).optional(),
186525
+ /**
185800
186526
  * Multi-device inference opt-in (Phase 4). Per-node map deviceKey → {enabled,
185801
186527
  * weight, steps}. Absent / all-disabled ⇒ the node's single default
185802
186528
  * accelerator (safe default); two+ enabled ⇒ the dispatcher balances
@@ -186118,7 +186844,8 @@ var InferenceDeviceExclusionReasonSchema = _enum([
186118
186844
  "disabled",
186119
186845
  "unavailable",
186120
186846
  "cannot-host-camera-root",
186121
- "accelerator-preferred"
186847
+ "accelerator-preferred",
186848
+ "root-switched-off"
186122
186849
  ]);
186123
186850
  var NodeInferenceDeviceSchema = object({
186124
186851
  /** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
@@ -186204,6 +186931,75 @@ var NodeInferenceDevicesSchema = object({
186204
186931
  devices: array(NodeInferenceDeviceSchema).readonly()
186205
186932
  });
186206
186933
  /**
186934
+ * The CLUSTER switch of one pipeline step (D1065):
186935
+ * - `off` — hard off: no camera, node or device can turn it on;
186936
+ * - `on` — on by default; a camera may turn it off (`stepToggles`);
186937
+ * - `opt-in` — off by default; a camera turns it on (`stepToggles`).
186938
+ * Absent = the catalog's `enabledByDefault` (`true` → `on`, `false` → `opt-in`).
186939
+ */
186940
+ var StepClusterModeSchema = _enum([
186941
+ "off",
186942
+ "on",
186943
+ "opt-in"
186944
+ ]);
186945
+ /**
186946
+ * What one step does on one (node, device) — computed by the orchestrator with
186947
+ * the SAME placement function the attach path runs (`pipeline-resolver.ts`),
186948
+ * so a client never re-derives it. Precedence: cluster off > camera toggle
186949
+ * (else the cluster default) > node off > device off / jump.
186950
+ */
186951
+ var StepSwitchCellSchema = discriminatedUnion("kind", [
186952
+ object({ kind: literal("on") }),
186953
+ object({ kind: literal("off-cluster") }),
186954
+ object({ kind: literal("off-node") }),
186955
+ object({ kind: literal("off-device") }),
186956
+ object({
186957
+ kind: literal("jump"),
186958
+ toDeviceKey: string()
186959
+ }),
186960
+ object({
186961
+ kind: literal("skip"),
186962
+ reason: _enum(["no-compatible-model", "root-not-runnable-on-elected-device"])
186963
+ }),
186964
+ object({ kind: literal("zone-driven") }),
186965
+ object({
186966
+ kind: literal("supplied-by-root"),
186967
+ rootModelId: string()
186968
+ }),
186969
+ object({ kind: literal("opt-in-unused") })
186970
+ ]);
186971
+ var StepSwitchDeviceSchema = object({
186972
+ deviceKey: string(),
186973
+ format: _enum(MODEL_FORMATS),
186974
+ /** The device switch as stored (`inferenceDevices[key].steps[step].enabled`); `null` = inherit. */
186975
+ stepEnabled: boolean().nullable(),
186976
+ /** Whether the device is in the node's dispatch roster (enabled, available, not excluded). */
186977
+ eligible: boolean(),
186978
+ cell: StepSwitchCellSchema
186979
+ });
186980
+ var StepSwitchNodeSchema = object({
186981
+ nodeId: string(),
186982
+ /** False when the node's catalog or device probe did not answer — no cells are claimed. */
186983
+ reachable: boolean(),
186984
+ /** The node switch as stored (`stepEnabled[step]`); `null` = inherit. */
186985
+ stepEnabled: boolean().nullable(),
186986
+ devices: array(StepSwitchDeviceSchema).readonly()
186987
+ });
186988
+ var StepSwitchMatrixSchema = object({ steps: array(object({
186989
+ stepId: string(),
186990
+ name: string(),
186991
+ slot: string(),
186992
+ /** The stored cluster mode; `null` = the catalog default applies. */
186993
+ clusterMode: StepClusterModeSchema.nullable(),
186994
+ /** The mode in force (stored, else derived from `enabledByDefault`). */
186995
+ effectiveMode: StepClusterModeSchema,
186996
+ /** Cameras whose `stepToggles[step]` is `true`. */
186997
+ camerasEnabling: number$1().int().nonnegative(),
186998
+ /** Cameras whose `stepToggles[step]` is `false`. */
186999
+ camerasDisabling: number$1().int().nonnegative(),
187000
+ nodes: array(StepSwitchNodeSchema).readonly()
187001
+ })).readonly() });
187002
+ /**
186207
187003
  * Pipeline Orchestrator capability — global load balancer + camera dispatcher.
186208
187004
  *
186209
187005
  * Lives on the hub. Tracks the camera-to-agent assignment map, listens to
@@ -186374,7 +187170,28 @@ method(object({
186374
187170
  }), object({ success: literal(true) }), {
186375
187171
  kind: "mutation",
186376
187172
  auth: "admin"
186377
- }), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({
187173
+ }), method(object({
187174
+ stepId: string(),
187175
+ mode: StepClusterModeSchema.nullable()
187176
+ }), object({ success: literal(true) }), {
187177
+ kind: "mutation",
187178
+ auth: "admin"
187179
+ }), method(object({
187180
+ agentNodeId: string(),
187181
+ stepId: string(),
187182
+ enabled: boolean().nullable()
187183
+ }), object({ success: literal(true) }), {
187184
+ kind: "mutation",
187185
+ auth: "admin"
187186
+ }), method(object({
187187
+ agentNodeId: string(),
187188
+ deviceKey: string(),
187189
+ stepId: string(),
187190
+ enabled: boolean().nullable()
187191
+ }), object({ success: literal(true) }), {
187192
+ kind: "mutation",
187193
+ auth: "admin"
187194
+ }), method(_void(), StepSwitchMatrixSchema), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({
186378
187195
  agentNodeId: string(),
186379
187196
  deviceKey: string()
186380
187197
  }), object({ success: literal(true) }), {
@@ -186789,6 +187606,16 @@ var CoralInfoSchema = object({
186789
187606
  reason: _enum(["driver-missing", "device-not-accessible"])
186790
187607
  })).readonly().optional()
186791
187608
  });
187609
+ var NvidiaInfoBaseSchema = object({
187610
+ type: literal("nvidia"),
187611
+ name: string(),
187612
+ memoryMB: number$1().optional()
187613
+ });
187614
+ /** An NVIDIA GPU: usable ⇔ the CUDA execution provider exists; otherwise the reason. */
187615
+ var NvidiaInfoSchema = discriminatedUnion("usable", [NvidiaInfoBaseSchema.extend({ usable: literal(true) }), NvidiaInfoBaseSchema.extend({
187616
+ usable: literal(false),
187617
+ reason: _enum(["no-cuda-execution-provider"])
187618
+ })]);
186792
187619
  var HardwareInfoSchema = object({
186793
187620
  platform: HardwarePlatformSchema,
186794
187621
  arch: HardwareArchSchema,
@@ -186799,6 +187626,7 @@ var HardwareInfoSchema = object({
186799
187626
  gpu: GpuInfoSchema.nullable(),
186800
187627
  npu: NpuInfoSchema.nullable(),
186801
187628
  coral: CoralInfoSchema.nullable().optional(),
187629
+ nvidia: NvidiaInfoSchema.nullable().optional(),
186802
187630
  /**
186803
187631
  * Per-accelerator compute (D930). Omitted by a node that has not probed it.
186804
187632
  * `null` fields inside an entry are a failed query, never a zero.
@@ -186886,8 +187714,14 @@ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema)
186886
187714
  * in real-world devices.
186887
187715
  */
186888
187716
  var PowerMeterStatusSchema = object({
186889
- /** Instantaneous power draw (watts). */
187717
+ /** Instantaneous TOTAL power draw of the device (watts), when known. */
186890
187718
  power: number$1().optional().meta(readingMeta("power", { label: "Power" })),
187719
+ /**
187720
+ * Power the device passes on to downstream loads (watts), e.g. the PoE a switch delivers to
187721
+ * its ports. When `power` is known it already includes this (the own draw is `netPowerOf`);
187722
+ * a device that reports no total (a UniFi switch) carries this field alone.
187723
+ */
187724
+ deliveredPower: number$1().optional().meta(readingMeta("power", { label: "Delivered" })),
186891
187725
  /** Cumulative energy in kilowatt-hours since the meter was reset. */
186892
187726
  energy: number$1().optional().meta(readingMeta("energy", { label: "Energy" })),
186893
187727
  /** Voltage (volts). */
@@ -186922,7 +187756,8 @@ var POWER_METER_DEVICE_TYPES = [
186922
187756
  DeviceType.Dishwasher,
186923
187757
  DeviceType.Vacuum,
186924
187758
  DeviceType.LawnMower,
186925
- DeviceType.PetFeeder
187759
+ DeviceType.PetFeeder,
187760
+ DeviceType.Workload
186926
187761
  ];
186927
187762
  /** Everything but a bare `Sensor`: a sensor that takes its reading from another sensor adds nothing. */
186928
187763
  var POWER_METER_CUSTOMIZE_DEVICE_TYPES = POWER_METER_DEVICE_TYPES.filter((type) => type !== DeviceType.Sensor);
@@ -188093,12 +188928,20 @@ var pumpCycleCapability = {
188093
188928
  auth: "protected",
188094
188929
  actions: [{
188095
188930
  id: "pumpCycle.on",
188931
+ effect: {
188932
+ field: "enabled",
188933
+ value: true
188934
+ },
188096
188935
  label: t("Pump cycle on", "Ciclo pompa attivo"),
188097
188936
  phrase: t("Run the pump of {device} on its on/off cycle", "Fai lavorare la pompa di {device} a ciclo acceso/spento"),
188098
188937
  icon: "timer",
188099
188938
  args: { on: true }
188100
188939
  }, {
188101
188940
  id: "pumpCycle.off",
188941
+ effect: {
188942
+ field: "enabled",
188943
+ value: false
188944
+ },
188102
188945
  label: t("Pump cycle off", "Ciclo pompa spento"),
188103
188946
  phrase: t("Run the pump of {device} continuously", "Fai lavorare la pompa di {device} in continuo"),
188104
188947
  icon: "timer-off",
@@ -188117,6 +188960,11 @@ var pumpCycleCapability = {
188117
188960
  label: t("Set pump run time", "Imposta il tempo di lavoro della pompa"),
188118
188961
  phrase: t("Set the pump of {device} to run {minutes} minutes per cycle", "Imposta la pompa di {device} a lavorare {minutes} minuti per ciclo"),
188119
188962
  icon: "timer",
188963
+ effect: {
188964
+ field: "onTime",
188965
+ fromArg: "minutes",
188966
+ scale: 60
188967
+ },
188120
188968
  openArgs: [{
188121
188969
  key: "minutes",
188122
188970
  label: t("Minutes", "Minuti"),
@@ -188141,6 +188989,11 @@ var pumpCycleCapability = {
188141
188989
  label: t("Set pump rest time", "Imposta il tempo di riposo della pompa"),
188142
188990
  phrase: t("Set the pump of {device} to rest {minutes} minutes per cycle", "Imposta la pompa di {device} a riposare {minutes} minuti per ciclo"),
188143
188991
  icon: "timer-off",
188992
+ effect: {
188993
+ field: "offTime",
188994
+ fromArg: "minutes",
188995
+ scale: 60
188996
+ },
188144
188997
  openArgs: [{
188145
188998
  key: "minutes",
188146
188999
  label: t("Minutes", "Minuti"),
@@ -192111,7 +192964,14 @@ var scriptRunnerCapability = {
192111
192964
  id: "script.run",
192112
192965
  label: t("Run script", "Esegui lo script"),
192113
192966
  phrase: t("Run {device}", "Esegui {device}"),
192114
- icon: "scroll-text"
192967
+ icon: "scroll-text",
192968
+ hold: {
192969
+ effects: [{
192970
+ field: "isRunning",
192971
+ value: true
192972
+ }],
192973
+ holdMs: ONE_SHOT_HOLD_MS
192974
+ }
192115
192975
  }]
192116
192976
  }),
192117
192977
  /** Cancel a running script. Provider rejects when the script
@@ -192121,6 +192981,10 @@ var scriptRunnerCapability = {
192121
192981
  auth: "admin",
192122
192982
  actions: [{
192123
192983
  id: "script.stop",
192984
+ effect: {
192985
+ field: "isRunning",
192986
+ value: false
192987
+ },
192124
192988
  label: t("Stop script", "Ferma lo script"),
192125
192989
  phrase: t("Stop {device}", "Ferma {device}"),
192126
192990
  icon: "square"
@@ -194087,6 +194951,10 @@ var switchCapability = {
194087
194951
  auth: "protected",
194088
194952
  actions: [{
194089
194953
  id: "switch.toggle",
194954
+ sideEffects: [{
194955
+ field: "on",
194956
+ negate: true
194957
+ }],
194090
194958
  label: t("Toggle", "Commuta"),
194091
194959
  phrase: t("Toggle {device}", "Commuta {device}"),
194092
194960
  icon: "toggle-right",
@@ -200877,6 +201745,20 @@ var BaseDevice = class {
200877
201745
  }, raw, options);
200878
201746
  }
200879
201747
  /**
201748
+ * Declare the identity of the device at the FAR END of this device's physical
201749
+ * link (D1063): a PoE port's wired client. Same normalisation, `unread`
201750
+ * rule and owner check as {@link declareIdentifiers}, written through
201751
+ * `device-manager.setAttachedIdentifiers`. It never makes the two devices the
201752
+ * same device. Best-effort: never throws.
201753
+ */
201754
+ async declareAttachedIdentifiers(raw, options) {
201755
+ return declareDeviceIdentifiers({
201756
+ deviceId: this.id,
201757
+ logger: this.ctx.logger,
201758
+ writer: this.ctx.api.deviceManager?.setAttachedIdentifiers
201759
+ }, raw, options);
201760
+ }
201761
+ /**
200880
201762
  * Re-publish the device's current `features` array to the persisted
200881
201763
  * meta blob. Drivers call this after a probe finishes when the live
200882
201764
  * `features` getter has gained new flags (e.g. `hasIntercom` flips
@@ -202605,23 +203487,56 @@ var fountainContribution = contribution("pet-fountain", PetFountainStatusSchema,
202605
203487
  };
202606
203488
  });
202607
203489
  var minutesOf = (seconds) => Math.max(0, Math.round(seconds / 60));
203490
+ var pumpCycleContribution = contribution("pump-cycle", PumpCycleStatusSchema, (slice) => {
203491
+ const enabled = slice?.enabled ?? null;
203492
+ 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;
203493
+ return { rows: [row$1("pump-cycle", "timer", enabled === null ? unknownText : enabled ? joinText([t("Cycling", "A cicli"), cycle]) : t("Runs continuously", "Sempre attiva"), [{
203494
+ kind: "toggle",
203495
+ id: "pump-cycle.enabled",
203496
+ label: t("Pump cycle", "Ciclo pompa"),
203497
+ on: enabled,
203498
+ turnOn: action("pump-cycle.on", t("Cycle the pump", "Attiva il ciclo"), "timer", "pump-cycle", "setEnabled", { on: true }),
203499
+ turnOff: action("pump-cycle.off", t("Run continuously", "Sempre attiva"), "timer-off", "pump-cycle", "setEnabled", { on: false })
203500
+ }])] };
203501
+ });
203502
+ var WORKLOAD_WORDS = {
203503
+ running: {
203504
+ state: "on",
203505
+ title: t("Running", "In esecuzione")
203506
+ },
203507
+ paused: {
203508
+ state: "standby",
203509
+ title: t("Paused", "In pausa")
203510
+ },
203511
+ stopped: {
203512
+ state: "off",
203513
+ title: t("Stopped", "Fermo")
203514
+ },
203515
+ starting: {
203516
+ state: "running",
203517
+ title: t("Starting", "In avvio")
203518
+ },
203519
+ stopping: {
203520
+ state: "running",
203521
+ title: t("Stopping", "In arresto")
203522
+ },
203523
+ crashed: {
203524
+ state: "alert",
203525
+ title: t("Crashed", "Andato in errore")
203526
+ }
203527
+ };
202608
203528
  var DEVICES_FAMILY_CONTRIBUTIONS = {
202609
203529
  "fan-control": fanContribution,
202610
203530
  "vacuum-control": vacuumContribution,
202611
203531
  "lawn-mower-control": mowerContribution,
202612
203532
  "pet-feeder": feederContribution,
202613
203533
  "pet-fountain": fountainContribution,
202614
- "pump-cycle": contribution("pump-cycle", PumpCycleStatusSchema, (slice) => {
202615
- const enabled = slice?.enabled ?? null;
202616
- 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;
202617
- return { rows: [row$1("pump-cycle", "timer", enabled === null ? unknownText : enabled ? joinText([t("Cycling", "A cicli"), cycle]) : t("Runs continuously", "Sempre attiva"), [{
202618
- kind: "toggle",
202619
- id: "pump-cycle.enabled",
202620
- label: t("Pump cycle", "Ciclo pompa"),
202621
- on: enabled,
202622
- turnOn: action("pump-cycle.on", t("Cycle the pump", "Attiva il ciclo"), "timer", "pump-cycle", "setEnabled", { on: true }),
202623
- turnOff: action("pump-cycle.off", t("Run continuously", "Sempre attiva"), "timer-off", "pump-cycle", "setEnabled", { on: false })
202624
- }])] };
203534
+ "pump-cycle": pumpCycleContribution,
203535
+ workload: contribution("workload", WorkloadStatusSchema, (slice) => {
203536
+ const state = slice?.state ?? null;
203537
+ if (state === null) return { reading: reading("workload", "unknown") };
203538
+ const words = WORKLOAD_WORDS[state];
203539
+ return { reading: reading("workload", words.state, false, words.title) };
202625
203540
  })
202626
203541
  };
202627
203542
  /**
@@ -204636,7 +205551,7 @@ lookOf({
204636
205551
  });
204637
205552
  DeviceType.Climate;
204638
205553
  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;
204639
- 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;
205554
+ 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;
204640
205555
  Object.freeze({
204641
205556
  "accessories.getStatus": {
204642
205557
  capName: "accessories",
@@ -206836,6 +207751,13 @@ Object.freeze({
206836
207751
  access: "create",
206837
207752
  role: "admin"
206838
207753
  },
207754
+ "deviceManager.confirmIdentityLink": {
207755
+ capName: "device-manager",
207756
+ capScope: "system",
207757
+ addonId: null,
207758
+ access: "create",
207759
+ role: "admin"
207760
+ },
206839
207761
  "deviceManager.createDevice": {
206840
207762
  capName: "device-manager",
206841
207763
  capScope: "system",
@@ -206885,6 +207807,13 @@ Object.freeze({
206885
207807
  access: "create",
206886
207808
  role: "admin"
206887
207809
  },
207810
+ "deviceManager.dismissIdentityLink": {
207811
+ capName: "device-manager",
207812
+ capScope: "system",
207813
+ addonId: null,
207814
+ access: "create",
207815
+ role: "admin"
207816
+ },
206888
207817
  "deviceManager.enable": {
206889
207818
  capName: "device-manager",
206890
207819
  capScope: "system",
@@ -207081,6 +208010,13 @@ Object.freeze({
207081
208010
  access: "view",
207082
208011
  role: "admin"
207083
208012
  },
208013
+ "deviceManager.listIdentityLinks": {
208014
+ capName: "device-manager",
208015
+ capScope: "system",
208016
+ addonId: null,
208017
+ access: "view",
208018
+ role: "admin"
208019
+ },
207084
208020
  "deviceManager.listLocationDescriptions": {
207085
208021
  capName: "device-manager",
207086
208022
  capScope: "system",
@@ -207277,6 +208213,13 @@ Object.freeze({
207277
208213
  access: "create",
207278
208214
  role: "admin"
207279
208215
  },
208216
+ "deviceManager.setAttachedIdentifiers": {
208217
+ capName: "device-manager",
208218
+ capScope: "system",
208219
+ addonId: null,
208220
+ access: "create",
208221
+ role: "admin"
208222
+ },
207280
208223
  "deviceManager.setChildLayout": {
207281
208224
  capName: "device-manager",
207282
208225
  capScope: "system",
@@ -207438,6 +208381,13 @@ Object.freeze({
207438
208381
  access: "create",
207439
208382
  role: "admin"
207440
208383
  },
208384
+ "deviceManager.unlinkIdentity": {
208385
+ capName: "device-manager",
208386
+ capScope: "system",
208387
+ addonId: null,
208388
+ access: "delete",
208389
+ role: "admin"
208390
+ },
207441
208391
  "deviceManager.updateConfig": {
207442
208392
  capName: "device-manager",
207443
208393
  capScope: "system",
@@ -207718,6 +208668,20 @@ Object.freeze({
207718
208668
  access: "create",
207719
208669
  role: "admin"
207720
208670
  },
208671
+ "deviceStateRefresh.refresh": {
208672
+ capName: "device-state-refresh",
208673
+ capScope: "device",
208674
+ addonId: null,
208675
+ access: "create",
208676
+ role: "admin"
208677
+ },
208678
+ "deviceStateRefresh.resubscribe": {
208679
+ capName: "device-state-refresh",
208680
+ capScope: "device",
208681
+ addonId: null,
208682
+ access: "create",
208683
+ role: "admin"
208684
+ },
207721
208685
  "deviceStatus.getStatus": {
207722
208686
  capName: "device-status",
207723
208687
  capScope: "device",
@@ -211589,6 +212553,13 @@ Object.freeze({
211589
212553
  access: "view",
211590
212554
  role: "admin"
211591
212555
  },
212556
+ "pipelineOrchestrator.getStepSwitches": {
212557
+ capName: "pipeline-orchestrator",
212558
+ capScope: "system",
212559
+ addonId: null,
212560
+ access: "view",
212561
+ role: "admin"
212562
+ },
211592
212563
  "pipelineOrchestrator.listAgentSettings": {
211593
212564
  capName: "pipeline-orchestrator",
211594
212565
  capScope: "system",
@@ -211743,6 +212714,20 @@ Object.freeze({
211743
212714
  access: "create",
211744
212715
  role: "admin"
211745
212716
  },
212717
+ "pipelineOrchestrator.setClusterStepMode": {
212718
+ capName: "pipeline-orchestrator",
212719
+ capScope: "system",
212720
+ addonId: null,
212721
+ access: "create",
212722
+ role: "admin"
212723
+ },
212724
+ "pipelineOrchestrator.setDeviceStepEnabled": {
212725
+ capName: "pipeline-orchestrator",
212726
+ capScope: "system",
212727
+ addonId: null,
212728
+ access: "create",
212729
+ role: "admin"
212730
+ },
211746
212731
  "pipelineOrchestrator.setLoadBalancingShares": {
211747
212732
  capName: "pipeline-orchestrator",
211748
212733
  capScope: "system",
@@ -211750,6 +212735,13 @@ Object.freeze({
211750
212735
  access: "create",
211751
212736
  role: "admin"
211752
212737
  },
212738
+ "pipelineOrchestrator.setNodeStepEnabled": {
212739
+ capName: "pipeline-orchestrator",
212740
+ capScope: "system",
212741
+ addonId: null,
212742
+ access: "create",
212743
+ role: "admin"
212744
+ },
211753
212745
  "pipelineOrchestrator.setNodeStepSettings": {
211754
212746
  capName: "pipeline-orchestrator",
211755
212747
  capScope: "system",
@@ -215352,7 +216344,7 @@ function offered(received) {
215352
216344
  }
215353
216345
  offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
215354
216346
  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;
215355
- 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;
216347
+ 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;
215356
216348
  new Set(Object.values(DeviceType));
215357
216349
  new Set(Object.values(DeviceRole));
215358
216350
  var LAST_FETCHED_FIELD = "lastFetchedAt";
@@ -216136,6 +217128,11 @@ Object.freeze({
216136
217128
  form: "array",
216137
217129
  optional: true
216138
217130
  }],
217131
+ "deviceManager.listIdentityLinks": [{
217132
+ name: "deviceId",
217133
+ form: "single",
217134
+ optional: true
217135
+ }],
216139
217136
  "deviceManager.loadConfig": [{
216140
217137
  name: "deviceId",
216141
217138
  form: "single",
@@ -216186,6 +217183,11 @@ Object.freeze({
216186
217183
  form: "single",
216187
217184
  optional: false
216188
217185
  }],
217186
+ "deviceManager.setAttachedIdentifiers": [{
217187
+ name: "deviceId",
217188
+ form: "single",
217189
+ optional: false
217190
+ }],
216189
217191
  "deviceManager.setChildLayout": [{
216190
217192
  name: "deviceId",
216191
217193
  form: "single",
@@ -216380,6 +217382,20 @@ Object.freeze({
216380
217382
  form: "single",
216381
217383
  optional: false
216382
217384
  }],
217385
+ "deviceStateRefresh.refresh": [{
217386
+ name: "deviceId",
217387
+ form: "single",
217388
+ optional: false
217389
+ }, {
217390
+ name: "deviceIds",
217391
+ form: "array",
217392
+ optional: false
217393
+ }],
217394
+ "deviceStateRefresh.resubscribe": [{
217395
+ name: "deviceId",
217396
+ form: "single",
217397
+ optional: false
217398
+ }],
216383
217399
  "deviceStatus.getStatus": [{
216384
217400
  name: "deviceId",
216385
217401
  form: "single",
@@ -241730,8 +242746,18 @@ function buildReolinkInstances(records, deps) {
241730
242746
  * NVR / Home Hub one does, and a create wizard (no id yet) sets up a hub.
241731
242747
  */
241732
242748
  function reolinkInstancesProvider(instances, deps) {
242749
+ const base = instances.toProvider();
242750
+ const withAddDevice = async (instance) => ({
242751
+ ...instance,
242752
+ addDevice: await integrationIsHub(instances, deps, instance.id) ? "children" : "scan"
242753
+ });
241733
242754
  return {
241734
- ...instances.toProvider(),
242755
+ ...base,
242756
+ listInstances: async (input) => Promise.all((await base.listInstances(input)).map(withAddDevice)),
242757
+ getInstance: async (input) => {
242758
+ const found = await base.getInstance(input);
242759
+ return found === null ? null : withAddDevice(found);
242760
+ },
241735
242761
  instanceFormSchema: async ({ id }) => {
241736
242762
  if (id === null) return buildHubInstanceSchema();
241737
242763
  const [evidence, body] = await Promise.all([deps.registryEvidenceOf(id), instances.getResolved(id)]);