@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.mjs CHANGED
@@ -100690,7 +100690,7 @@ function parseBaichuanWebhookObject(mess) {
100690
100690
  return parsed;
100691
100691
  }
100692
100692
  //#endregion
100693
- //#region ../types/dist/event-category-CY27-fF0.mjs
100693
+ //#region ../types/dist/event-category-7P4A3bYA.mjs
100694
100694
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
100695
100695
  EventCategory["SystemBoot"] = "system.boot";
100696
100696
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -100921,6 +100921,20 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
100921
100921
  * dropped) — consumers MUST also gate on the device record's `probed` flag.
100922
100922
  */
100923
100923
  EventCategory["DeviceReady"] = "device.ready";
100924
+ /**
100925
+ * An identity link (D1063) became `linked` — auto on strong evidence or
100926
+ * confirmed by the operator — or a confirmed link's evidence came back. Telemetry: the `identity-links` record is the
100927
+ * truth, and core-blocks reconciles its contributions from it as well.
100928
+ * Payload: `IdentityLinkEventPayload`.
100929
+ */
100930
+ EventCategory["IdentityLinkCreated"] = "identity-link.created";
100931
+ /**
100932
+ * A `linked` identity link stopped acting: its evidence is gone (an auto link
100933
+ * is deleted; an operator-confirmed one stays `linked`, flagged
100934
+ * `evidenceGone`, and no longer acts), a side was removed, or the operator
100935
+ * unlinked it. Payload: `IdentityLinkEventPayload` with `reason`.
100936
+ */
100937
+ EventCategory["IdentityLinkLost"] = "identity-link.lost";
100924
100938
  EventCategory["IntegrationEnabled"] = "integration.enabled";
100925
100939
  EventCategory["IntegrationDisabled"] = "integration.disabled";
100926
100940
  EventCategory["IntegrationDeleted"] = "integration.deleted";
@@ -101522,7 +101536,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
101522
101536
  return EventCategory;
101523
101537
  }({});
101524
101538
  //#endregion
101525
- //#region ../types/dist/composed-stable-id-BNTaDZEh.mjs
101539
+ //#region ../types/dist/composed-stable-id-DIeNz933.mjs
101526
101540
  /**
101527
101541
  import { errMsg } from '@camstack/types'
101528
101542
  * Extract a human-readable message from an unknown error value.
@@ -101970,6 +101984,9 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
101970
101984
  /** A machine that runs workloads or is an appliance with its own OS: a
101971
101985
  * server, a hypervisor, a gateway console, a CCU. */
101972
101986
  DeviceRole["Host"] = "host";
101987
+ /** An uninterruptible power supply: battery charge, mains status and load. A
101988
+ * `DeviceType.Sensor` device. */
101989
+ DeviceRole["Ups"] = "ups";
101973
101990
  return DeviceRole;
101974
101991
  }({});
101975
101992
  /**
@@ -106796,7 +106813,7 @@ var ZodIssueCode = {
106796
106813
  var ZodFirstPartyTypeKind;
106797
106814
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
106798
106815
  //#endregion
106799
- //#region ../types/dist/sleep-BT1bLgPq.mjs
106816
+ //#region ../types/dist/runtime-capabilities-qX7BpOYT.mjs
106800
106817
  /**
106801
106818
  * The audio chunk plane's byte format, and the ONE expansion from a coded
106802
106819
  * window to float samples (D455).
@@ -108012,6 +108029,18 @@ function isInstanceEnabled(body) {
108012
108029
  }
108013
108030
  /** The body key of the switch; only {@link RecordIntegrationInstances.setInstanceEnabled} writes it. */
108014
108031
  var SWITCH_KEY = "enabled";
108032
+ /**
108033
+ * The "Add device" mode an instance gets when its provider states none, from how the provider's
108034
+ * devices are found: `lan` scans, `account` adopts the account's children, anything else is manual.
108035
+ * The one place this default lives.
108036
+ */
108037
+ function defaultAddDeviceMode(description) {
108038
+ switch (description.discovery?.mode) {
108039
+ case "lan": return "scan";
108040
+ case "account": return "children";
108041
+ default: return "none";
108042
+ }
108043
+ }
108015
108044
  /** The keys of the kind's secret fields that sit at the top level of the body. */
108016
108045
  function topLevelSecretKeys(paths) {
108017
108046
  return new Set(paths.filter((p) => !p.includes(".") && !p.includes("[") && !p.includes("{")));
@@ -108114,6 +108143,7 @@ var RecordIntegrationInstances = class {
108114
108143
  enabled: isInstanceEnabled(record.data),
108115
108144
  formValues: shown,
108116
108145
  kind,
108146
+ addDevice: this.hooks.addDevice?.(record.data) ?? defaultAddDeviceMode(this.hooks.description),
108117
108147
  ...health?.status !== void 0 ? { status: health.status } : {},
108118
108148
  ...health?.lastCheckedAt !== void 0 ? { lastCheckedAt: health.lastCheckedAt } : {}
108119
108149
  };
@@ -111634,6 +111664,10 @@ var CAP_VOCABULARY_BY_NAME = {
111634
111664
  it: "Commuta {device}"
111635
111665
  },
111636
111666
  icon: "toggle-right",
111667
+ sideEffects: [{
111668
+ field: "on",
111669
+ negate: true
111670
+ }],
111637
111671
  offeredWhen: {
111638
111672
  method: "getOptions",
111639
111673
  field: "supportsSetState"
@@ -112748,7 +112782,15 @@ var CAP_VOCABULARY_BY_NAME = {
112748
112782
  effect: {
112749
112783
  field: "state",
112750
112784
  value: "locked"
112751
- }
112785
+ },
112786
+ hold: { effects: [{
112787
+ field: "state",
112788
+ value: "locking",
112789
+ when: {
112790
+ field: "state",
112791
+ notIn: ["locked"]
112792
+ }
112793
+ }] }
112752
112794
  },
112753
112795
  {
112754
112796
  id: "lock.unlock",
@@ -112777,7 +112819,15 @@ var CAP_VOCABULARY_BY_NAME = {
112777
112819
  effect: {
112778
112820
  field: "state",
112779
112821
  value: "unlocked"
112780
- }
112822
+ },
112823
+ hold: { effects: [{
112824
+ field: "state",
112825
+ value: "unlocking",
112826
+ when: {
112827
+ field: "state",
112828
+ notIn: ["unlocked"]
112829
+ }
112830
+ }] }
112781
112831
  },
112782
112832
  {
112783
112833
  id: "lock.open",
@@ -113091,6 +113141,14 @@ var CAP_VOCABULARY_BY_NAME = {
113091
113141
  step: .5,
113092
113142
  unit: "°C"
113093
113143
  }
113144
+ }],
113145
+ effect: {
113146
+ field: "targetLow",
113147
+ fromArg: "targetLow"
113148
+ },
113149
+ sideEffects: [{
113150
+ field: "targetHigh",
113151
+ fromArg: "targetHigh"
113094
113152
  }]
113095
113153
  },
113096
113154
  {
@@ -113147,7 +113205,11 @@ var CAP_VOCABULARY_BY_NAME = {
113147
113205
  from: "status",
113148
113206
  field: "availableFanModes"
113149
113207
  }
113150
- }]
113208
+ }],
113209
+ effect: {
113210
+ field: "fanMode",
113211
+ fromArg: "fanMode"
113212
+ }
113151
113213
  },
113152
113214
  {
113153
113215
  id: "climate.preset",
@@ -113172,7 +113234,11 @@ var CAP_VOCABULARY_BY_NAME = {
113172
113234
  from: "status",
113173
113235
  field: "availablePresets"
113174
113236
  }
113175
- }]
113237
+ }],
113238
+ effect: {
113239
+ field: "preset",
113240
+ fromArg: "preset"
113241
+ }
113176
113242
  },
113177
113243
  {
113178
113244
  id: "climate.swingVerticalOn",
@@ -113405,7 +113471,15 @@ var CAP_VOCABULARY_BY_NAME = {
113405
113471
  effect: {
113406
113472
  field: "speed",
113407
113473
  value: 100
113408
- }
113474
+ },
113475
+ sideEffects: [{
113476
+ field: "preset",
113477
+ value: "",
113478
+ when: {
113479
+ field: "preset",
113480
+ notIn: [""]
113481
+ }
113482
+ }]
113409
113483
  },
113410
113484
  {
113411
113485
  id: "fan.speed",
@@ -113436,7 +113510,15 @@ var CAP_VOCABULARY_BY_NAME = {
113436
113510
  effect: {
113437
113511
  field: "speed",
113438
113512
  fromArg: "speed"
113439
- }
113513
+ },
113514
+ sideEffects: [{
113515
+ field: "preset",
113516
+ value: "",
113517
+ when: {
113518
+ field: "preset",
113519
+ notIn: [""]
113520
+ }
113521
+ }]
113440
113522
  },
113441
113523
  {
113442
113524
  id: "fan.preset",
@@ -113461,7 +113543,11 @@ var CAP_VOCABULARY_BY_NAME = {
113461
113543
  from: "status",
113462
113544
  field: "availablePresets"
113463
113545
  }
113464
- }]
113546
+ }],
113547
+ effect: {
113548
+ field: "preset",
113549
+ fromArg: "preset"
113550
+ }
113465
113551
  },
113466
113552
  {
113467
113553
  id: "fan.forward",
@@ -114006,7 +114092,15 @@ var CAP_VOCABULARY_BY_NAME = {
114006
114092
  effect: {
114007
114093
  field: "state",
114008
114094
  value: "disarmed"
114009
- }
114095
+ },
114096
+ hold: { effects: [{
114097
+ field: "state",
114098
+ value: "disarming",
114099
+ when: {
114100
+ field: "state",
114101
+ notIn: ["disarmed"]
114102
+ }
114103
+ }] }
114010
114104
  },
114011
114105
  {
114012
114106
  id: "alarm.arm.home",
@@ -114036,7 +114130,15 @@ var CAP_VOCABULARY_BY_NAME = {
114036
114130
  effect: {
114037
114131
  field: "state",
114038
114132
  value: "armed_home"
114039
- }
114133
+ },
114134
+ hold: { effects: [{
114135
+ field: "state",
114136
+ value: "arming",
114137
+ when: {
114138
+ field: "state",
114139
+ notIn: ["armed_home"]
114140
+ }
114141
+ }] }
114040
114142
  },
114041
114143
  {
114042
114144
  id: "alarm.arm.away",
@@ -114066,7 +114168,15 @@ var CAP_VOCABULARY_BY_NAME = {
114066
114168
  effect: {
114067
114169
  field: "state",
114068
114170
  value: "armed_away"
114069
- }
114171
+ },
114172
+ hold: { effects: [{
114173
+ field: "state",
114174
+ value: "arming",
114175
+ when: {
114176
+ field: "state",
114177
+ notIn: ["armed_away"]
114178
+ }
114179
+ }] }
114070
114180
  },
114071
114181
  {
114072
114182
  id: "alarm.arm.night",
@@ -114096,7 +114206,15 @@ var CAP_VOCABULARY_BY_NAME = {
114096
114206
  effect: {
114097
114207
  field: "state",
114098
114208
  value: "armed_night"
114099
- }
114209
+ },
114210
+ hold: { effects: [{
114211
+ field: "state",
114212
+ value: "arming",
114213
+ when: {
114214
+ field: "state",
114215
+ notIn: ["armed_night"]
114216
+ }
114217
+ }] }
114100
114218
  },
114101
114219
  {
114102
114220
  id: "alarm.arm.vacation",
@@ -114126,7 +114244,15 @@ var CAP_VOCABULARY_BY_NAME = {
114126
114244
  effect: {
114127
114245
  field: "state",
114128
114246
  value: "armed_vacation"
114129
- }
114247
+ },
114248
+ hold: { effects: [{
114249
+ field: "state",
114250
+ value: "arming",
114251
+ when: {
114252
+ field: "state",
114253
+ notIn: ["armed_vacation"]
114254
+ }
114255
+ }] }
114130
114256
  },
114131
114257
  {
114132
114258
  id: "alarm.arm.custom_bypass",
@@ -114156,7 +114282,15 @@ var CAP_VOCABULARY_BY_NAME = {
114156
114282
  effect: {
114157
114283
  field: "state",
114158
114284
  value: "armed_custom_bypass"
114159
- }
114285
+ },
114286
+ hold: { effects: [{
114287
+ field: "state",
114288
+ value: "arming",
114289
+ when: {
114290
+ field: "state",
114291
+ notIn: ["armed_custom_bypass"]
114292
+ }
114293
+ }] }
114160
114294
  }
114161
114295
  ],
114162
114296
  state: [{
@@ -115298,7 +115432,14 @@ var CAP_VOCABULARY_BY_NAME = {
115298
115432
  quantity: "mass"
115299
115433
  },
115300
115434
  optional: true
115301
- }]
115435
+ }],
115436
+ hold: {
115437
+ effects: [{
115438
+ field: "feeding",
115439
+ value: true
115440
+ }],
115441
+ holdMs: 1e4
115442
+ }
115302
115443
  },
115303
115444
  {
115304
115445
  id: "petFeeder.feedHoppers",
@@ -115342,7 +115483,14 @@ var CAP_VOCABULARY_BY_NAME = {
115342
115483
  quantity: "mass"
115343
115484
  },
115344
115485
  optional: true
115345
- }]
115486
+ }],
115487
+ hold: {
115488
+ effects: [{
115489
+ field: "feeding",
115490
+ value: true
115491
+ }],
115492
+ holdMs: 1e4
115493
+ }
115346
115494
  },
115347
115495
  {
115348
115496
  id: "petFeeder.cancelFeed",
@@ -115433,7 +115581,11 @@ var CAP_VOCABULARY_BY_NAME = {
115433
115581
  it: "Attiva il blocco bambini di {device}"
115434
115582
  },
115435
115583
  icon: "lock",
115436
- args: { on: true }
115584
+ args: { on: true },
115585
+ effect: {
115586
+ field: "childLock",
115587
+ value: true
115588
+ }
115437
115589
  },
115438
115590
  {
115439
115591
  id: "petFeeder.childLockOff",
@@ -115447,7 +115599,11 @@ var CAP_VOCABULARY_BY_NAME = {
115447
115599
  it: "Disattiva il blocco bambini di {device}"
115448
115600
  },
115449
115601
  icon: "lock-open",
115450
- args: { on: false }
115602
+ args: { on: false },
115603
+ effect: {
115604
+ field: "childLock",
115605
+ value: false
115606
+ }
115451
115607
  },
115452
115608
  {
115453
115609
  id: "petFeeder.lightOn",
@@ -115461,7 +115617,11 @@ var CAP_VOCABULARY_BY_NAME = {
115461
115617
  it: "Accendi la spia di {device}"
115462
115618
  },
115463
115619
  icon: "lightbulb",
115464
- args: { on: true }
115620
+ args: { on: true },
115621
+ effect: {
115622
+ field: "indicatorLight",
115623
+ value: true
115624
+ }
115465
115625
  },
115466
115626
  {
115467
115627
  id: "petFeeder.lightOff",
@@ -115475,7 +115635,11 @@ var CAP_VOCABULARY_BY_NAME = {
115475
115635
  it: "Spegni la spia di {device}"
115476
115636
  },
115477
115637
  icon: "lightbulb-off",
115478
- args: { on: false }
115638
+ args: { on: false },
115639
+ effect: {
115640
+ field: "indicatorLight",
115641
+ value: false
115642
+ }
115479
115643
  },
115480
115644
  {
115481
115645
  id: "petFeeder.feedSoundOn",
@@ -115489,7 +115653,11 @@ var CAP_VOCABULARY_BY_NAME = {
115489
115653
  it: "Attiva il suono di erogazione di {device}"
115490
115654
  },
115491
115655
  icon: "volume-2",
115492
- args: { on: true }
115656
+ args: { on: true },
115657
+ effect: {
115658
+ field: "feedSound",
115659
+ value: true
115660
+ }
115493
115661
  },
115494
115662
  {
115495
115663
  id: "petFeeder.feedSoundOff",
@@ -115503,7 +115671,11 @@ var CAP_VOCABULARY_BY_NAME = {
115503
115671
  it: "Disattiva il suono di erogazione di {device}"
115504
115672
  },
115505
115673
  icon: "volume-x",
115506
- args: { on: false }
115674
+ args: { on: false },
115675
+ effect: {
115676
+ field: "feedSound",
115677
+ value: false
115678
+ }
115507
115679
  },
115508
115680
  {
115509
115681
  id: "petFeeder.volume",
@@ -115528,7 +115700,11 @@ var CAP_VOCABULARY_BY_NAME = {
115528
115700
  min: 0,
115529
115701
  step: 1
115530
115702
  }
115531
- }]
115703
+ }],
115704
+ effect: {
115705
+ field: "volume",
115706
+ fromArg: "level"
115707
+ }
115532
115708
  }
115533
115709
  ],
115534
115710
  state: [
@@ -115600,7 +115776,11 @@ var CAP_VOCABULARY_BY_NAME = {
115600
115776
  it: "Avvia la pompa di {device}"
115601
115777
  },
115602
115778
  icon: "play",
115603
- args: { on: true }
115779
+ args: { on: true },
115780
+ effect: {
115781
+ field: "pumpRunning",
115782
+ value: true
115783
+ }
115604
115784
  }, {
115605
115785
  id: "petFountain.pumpOff",
115606
115786
  method: "setPump",
@@ -115613,7 +115793,11 @@ var CAP_VOCABULARY_BY_NAME = {
115613
115793
  it: "Ferma la pompa di {device}"
115614
115794
  },
115615
115795
  icon: "square",
115616
- args: { on: false }
115796
+ args: { on: false },
115797
+ effect: {
115798
+ field: "pumpRunning",
115799
+ value: false
115800
+ }
115617
115801
  }],
115618
115802
  state: [{
115619
115803
  kind: "boolean",
@@ -115665,7 +115849,11 @@ var CAP_VOCABULARY_BY_NAME = {
115665
115849
  it: "Fai lavorare la pompa di {device} a ciclo acceso/spento"
115666
115850
  },
115667
115851
  icon: "timer",
115668
- args: { on: true }
115852
+ args: { on: true },
115853
+ effect: {
115854
+ field: "enabled",
115855
+ value: true
115856
+ }
115669
115857
  },
115670
115858
  {
115671
115859
  id: "pumpCycle.off",
@@ -115679,7 +115867,11 @@ var CAP_VOCABULARY_BY_NAME = {
115679
115867
  it: "Fai lavorare la pompa di {device} in continuo"
115680
115868
  },
115681
115869
  icon: "timer-off",
115682
- args: { on: false }
115870
+ args: { on: false },
115871
+ effect: {
115872
+ field: "enabled",
115873
+ value: false
115874
+ }
115683
115875
  },
115684
115876
  {
115685
115877
  id: "pumpCycle.onMinutes",
@@ -115705,7 +115897,12 @@ var CAP_VOCABULARY_BY_NAME = {
115705
115897
  step: 1,
115706
115898
  unit: "min"
115707
115899
  }
115708
- }]
115900
+ }],
115901
+ effect: {
115902
+ field: "onTime",
115903
+ fromArg: "minutes",
115904
+ scale: 60
115905
+ }
115709
115906
  },
115710
115907
  {
115711
115908
  id: "pumpCycle.offMinutes",
@@ -115731,7 +115928,12 @@ var CAP_VOCABULARY_BY_NAME = {
115731
115928
  step: 1,
115732
115929
  unit: "min"
115733
115930
  }
115734
- }]
115931
+ }],
115932
+ effect: {
115933
+ field: "offTime",
115934
+ fromArg: "minutes",
115935
+ scale: 60
115936
+ }
115735
115937
  }
115736
115938
  ],
115737
115939
  state: [{
@@ -115848,7 +116050,11 @@ var CAP_VOCABULARY_BY_NAME = {
115848
116050
  en: "Play on {device}",
115849
116051
  it: "Avvia la riproduzione su {device}"
115850
116052
  },
115851
- icon: "play"
116053
+ icon: "play",
116054
+ effect: {
116055
+ field: "state",
116056
+ value: "playing"
116057
+ }
115852
116058
  },
115853
116059
  {
115854
116060
  id: "media.pause",
@@ -115861,7 +116067,11 @@ var CAP_VOCABULARY_BY_NAME = {
115861
116067
  en: "Pause {device}",
115862
116068
  it: "Metti in pausa {device}"
115863
116069
  },
115864
- icon: "pause"
116070
+ icon: "pause",
116071
+ effect: {
116072
+ field: "state",
116073
+ value: "paused"
116074
+ }
115865
116075
  },
115866
116076
  {
115867
116077
  id: "media.stop",
@@ -115927,7 +116137,11 @@ var CAP_VOCABULARY_BY_NAME = {
115927
116137
  step: 1,
115928
116138
  unit: "%"
115929
116139
  }
115930
- }]
116140
+ }],
116141
+ effect: {
116142
+ field: "volumeLevel",
116143
+ fromArg: "volumeLevel"
116144
+ }
115931
116145
  },
115932
116146
  {
115933
116147
  id: "media.mute",
@@ -115941,7 +116155,11 @@ var CAP_VOCABULARY_BY_NAME = {
115941
116155
  it: "Silenzia {device}"
115942
116156
  },
115943
116157
  icon: "volume-x",
115944
- args: { muted: true }
116158
+ args: { muted: true },
116159
+ effect: {
116160
+ field: "isMuted",
116161
+ value: true
116162
+ }
115945
116163
  },
115946
116164
  {
115947
116165
  id: "media.unmute",
@@ -115955,7 +116173,11 @@ var CAP_VOCABULARY_BY_NAME = {
115955
116173
  it: "Riattiva l’audio di {device}"
115956
116174
  },
115957
116175
  icon: "volume-2",
115958
- args: { muted: false }
116176
+ args: { muted: false },
116177
+ effect: {
116178
+ field: "isMuted",
116179
+ value: false
116180
+ }
115959
116181
  },
115960
116182
  {
115961
116183
  id: "media.shuffleOn",
@@ -115969,7 +116191,11 @@ var CAP_VOCABULARY_BY_NAME = {
115969
116191
  it: "Attiva la riproduzione casuale su {device}"
115970
116192
  },
115971
116193
  icon: "shuffle",
115972
- args: { shuffle: true }
116194
+ args: { shuffle: true },
116195
+ effect: {
116196
+ field: "shuffle",
116197
+ value: true
116198
+ }
115973
116199
  },
115974
116200
  {
115975
116201
  id: "media.shuffleOff",
@@ -115983,7 +116209,11 @@ var CAP_VOCABULARY_BY_NAME = {
115983
116209
  it: "Disattiva la riproduzione casuale su {device}"
115984
116210
  },
115985
116211
  icon: "shuffle",
115986
- args: { shuffle: false }
116212
+ args: { shuffle: false },
116213
+ effect: {
116214
+ field: "shuffle",
116215
+ value: false
116216
+ }
115987
116217
  },
115988
116218
  {
115989
116219
  id: "media.repeat",
@@ -116029,7 +116259,11 @@ var CAP_VOCABULARY_BY_NAME = {
116029
116259
  }
116030
116260
  ]
116031
116261
  }
116032
- }]
116262
+ }],
116263
+ effect: {
116264
+ field: "repeat",
116265
+ fromArg: "repeat"
116266
+ }
116033
116267
  },
116034
116268
  {
116035
116269
  id: "media.source",
@@ -116054,7 +116288,11 @@ var CAP_VOCABULARY_BY_NAME = {
116054
116288
  from: "status",
116055
116289
  field: "availableSources"
116056
116290
  }
116057
- }]
116291
+ }],
116292
+ effect: {
116293
+ field: "source",
116294
+ fromArg: "source"
116295
+ }
116058
116296
  },
116059
116297
  {
116060
116298
  id: "media.seek",
@@ -116594,7 +116832,14 @@ var CAP_VOCABULARY_BY_NAME = {
116594
116832
  en: "Run {device}",
116595
116833
  it: "Esegui {device}"
116596
116834
  },
116597
- icon: "scroll-text"
116835
+ icon: "scroll-text",
116836
+ hold: {
116837
+ effects: [{
116838
+ field: "isRunning",
116839
+ value: true
116840
+ }],
116841
+ holdMs: 1e4
116842
+ }
116598
116843
  }, {
116599
116844
  id: "script.stop",
116600
116845
  method: "stop",
@@ -116606,7 +116851,11 @@ var CAP_VOCABULARY_BY_NAME = {
116606
116851
  en: "Stop {device}",
116607
116852
  it: "Ferma {device}"
116608
116853
  },
116609
- icon: "square"
116854
+ icon: "square",
116855
+ effect: {
116856
+ field: "isRunning",
116857
+ value: false
116858
+ }
116610
116859
  }],
116611
116860
  state: [{
116612
116861
  kind: "boolean",
@@ -116644,7 +116893,11 @@ var CAP_VOCABULARY_BY_NAME = {
116644
116893
  en: "Enable {device}",
116645
116894
  it: "Abilita {device}"
116646
116895
  },
116647
- icon: "toggle-right"
116896
+ icon: "toggle-right",
116897
+ effect: {
116898
+ field: "enabled",
116899
+ value: true
116900
+ }
116648
116901
  },
116649
116902
  {
116650
116903
  id: "haAutomation.disable",
@@ -116657,7 +116910,11 @@ var CAP_VOCABULARY_BY_NAME = {
116657
116910
  en: "Disable {device}",
116658
116911
  it: "Disabilita {device}"
116659
116912
  },
116660
- icon: "toggle-left"
116913
+ icon: "toggle-left",
116914
+ effect: {
116915
+ field: "enabled",
116916
+ value: false
116917
+ }
116661
116918
  },
116662
116919
  {
116663
116920
  id: "haAutomation.trigger",
@@ -118259,6 +118516,17 @@ var CAP_VOCABULARY_BY_NAME = {
118259
118516
  },
118260
118517
  notOperatorFacing: { resync: "device adoption — re-aligning a device with its source is an onboarding step, not an automation action" }
118261
118518
  },
118519
+ "device-state-refresh": {
118520
+ scope: "device",
118521
+ noun: {
118522
+ en: "State refresh",
118523
+ it: "Aggiornamento dello stato"
118524
+ },
118525
+ notOperatorFacing: {
118526
+ refresh: "the core schedules state refreshes itself; an operator never asks for one",
118527
+ resubscribe: "the core schedules state refreshes itself; an operator never asks for one"
118528
+ }
118529
+ },
118262
118530
  "recording": {
118263
118531
  scope: "device",
118264
118532
  noun: {
@@ -121247,6 +121515,7 @@ var CAP_NAMES = Object.freeze([
121247
121515
  "device-removal-hook",
121248
121516
  "device-runs",
121249
121517
  "device-state",
121518
+ "device-state-refresh",
121250
121519
  "device-status",
121251
121520
  "device-transitions",
121252
121521
  "dishwasher",
@@ -122887,6 +123156,10 @@ Object.freeze({
122887
123156
  "path": "power",
122888
123157
  "valueType": "number"
122889
123158
  },
123159
+ {
123160
+ "path": "deliveredPower",
123161
+ "valueType": "number"
123162
+ },
122890
123163
  {
122891
123164
  "path": "energy",
122892
123165
  "valueType": "number"
@@ -123729,7 +124002,7 @@ function sleep(ms) {
123729
124002
  return new Promise((resolve) => setTimeout(resolve, Math.max(0, ms)));
123730
124003
  }
123731
124004
  //#endregion
123732
- //#region ../types/dist/implemented-methods-k3KProJd.mjs
124005
+ //#region ../types/dist/implemented-methods-wFScvZ40.mjs
123733
124006
  /**
123734
124007
  * The ffmpeg build every CamStack node downloads, per platform and arch.
123735
124008
  *
@@ -124889,6 +125162,8 @@ var CompositionItemEntrySchema = object({
124889
125162
  */
124890
125163
  reset: CompositionForwardCommandSchema.optional()
124891
125164
  });
125165
+ /** Which identity link added a feature (D1063). */
125166
+ var CompositionContributedBySchema = object({ linkId: string().min(1) });
124892
125167
  var CompositionFeatureSchema = discriminatedUnion("kind", [object({
124893
125168
  kind: literal("fields"),
124894
125169
  cap: string().min(1),
@@ -124900,7 +125175,14 @@ var CompositionFeatureSchema = discriminatedUnion("kind", [object({
124900
125175
  */
124901
125176
  items: record(string().regex(COMPOSITION_ITEM_KEY_RE), CompositionItemEntrySchema).refine((items) => Object.keys(items).length <= 16, { message: `at most 16 items` }).optional(),
124902
125177
  /** Method name → what serves it. Only a BUILT capability takes commands (D967). */
124903
- commands: record(string().min(1), CompositionCommandTargetSchema).optional()
125178
+ commands: record(string().min(1), CompositionCommandTargetSchema).optional(),
125179
+ /**
125180
+ * Provenance only (D1063): the identity link that added this feature. The
125181
+ * source ref stays in `fields`; `enabled` stays the operator's switch. An
125182
+ * operator edit of the source drops the stamp and the feature becomes the
125183
+ * operator's; a lost link removes only stamped features.
125184
+ */
125185
+ contributedBy: CompositionContributedBySchema.optional()
124904
125186
  }), object({
124905
125187
  kind: literal("passthrough"),
124906
125188
  cap: string().min(1),
@@ -127589,7 +127871,7 @@ function ordinalOf(id) {
127589
127871
  function defaultIntegrationOf(integrations, eligible) {
127590
127872
  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;
127591
127873
  }
127592
- function unstamped(device) {
127874
+ function unstamped$1(device) {
127593
127875
  return device.integrationId === void 0 || device.integrationId === null || device.integrationId === "";
127594
127876
  }
127595
127877
  /**
@@ -127606,8 +127888,8 @@ async function claimDevicesToDefaultIntegration(ports, spec) {
127606
127888
  const all = await ports.listDevices(spec.addonId);
127607
127889
  const byId = new Map(all.map((d) => [d.id, d]));
127608
127890
  const reservations = /* @__PURE__ */ new Set();
127609
- for (const device of all) if (unstamped(device) && await isReservation(ports, device)) reservations.add(device.id);
127610
- const orphans = all.filter((d) => unstamped(d) && !reservations.has(d.id));
127891
+ for (const device of all) if (unstamped$1(device) && await isReservation(ports, device)) reservations.add(device.id);
127892
+ const orphans = all.filter((d) => unstamped$1(d) && !reservations.has(d.id));
127611
127893
  const summaryBase = { reservations: reservations.size };
127612
127894
  if (orphans.length === 0) return {
127613
127895
  outcome: "already-done",
@@ -127622,7 +127904,7 @@ async function claimDevicesToDefaultIntegration(ports, spec) {
127622
127904
  const unresolved = /* @__PURE__ */ new Set();
127623
127905
  const failed = /* @__PURE__ */ new Set();
127624
127906
  const resolve = (device, seen) => {
127625
- if (!unstamped(device)) return device.integrationId ?? null;
127907
+ if (!unstamped$1(device)) return device.integrationId ?? null;
127626
127908
  const planned = plan.get(device.id);
127627
127909
  if (planned !== void 0) return planned;
127628
127910
  if (failed.has(device.id)) return null;
@@ -154814,6 +155096,14 @@ var alarmPanelCapability = {
154814
155096
  field: "state",
154815
155097
  value: "disarmed"
154816
155098
  },
155099
+ hold: { effects: [{
155100
+ field: "state",
155101
+ value: "disarming",
155102
+ when: {
155103
+ field: "state",
155104
+ notIn: ["disarmed"]
155105
+ }
155106
+ }] },
154817
155107
  openArgs: [{
154818
155108
  key: "code",
154819
155109
  label: t("PIN code", "Codice PIN"),
@@ -154844,6 +155134,14 @@ var alarmPanelCapability = {
154844
155134
  field: "state",
154845
155135
  value: "armed_home"
154846
155136
  },
155137
+ hold: { effects: [{
155138
+ field: "state",
155139
+ value: "arming",
155140
+ when: {
155141
+ field: "state",
155142
+ notIn: ["armed_home"]
155143
+ }
155144
+ }] },
154847
155145
  args: { mode: "home" },
154848
155146
  openArgs: [{
154849
155147
  key: "code",
@@ -154864,6 +155162,14 @@ var alarmPanelCapability = {
154864
155162
  field: "state",
154865
155163
  value: "armed_away"
154866
155164
  },
155165
+ hold: { effects: [{
155166
+ field: "state",
155167
+ value: "arming",
155168
+ when: {
155169
+ field: "state",
155170
+ notIn: ["armed_away"]
155171
+ }
155172
+ }] },
154867
155173
  args: { mode: "away" },
154868
155174
  openArgs: [{
154869
155175
  key: "code",
@@ -154884,6 +155190,14 @@ var alarmPanelCapability = {
154884
155190
  field: "state",
154885
155191
  value: "armed_night"
154886
155192
  },
155193
+ hold: { effects: [{
155194
+ field: "state",
155195
+ value: "arming",
155196
+ when: {
155197
+ field: "state",
155198
+ notIn: ["armed_night"]
155199
+ }
155200
+ }] },
154887
155201
  args: { mode: "night" },
154888
155202
  openArgs: [{
154889
155203
  key: "code",
@@ -154904,6 +155218,14 @@ var alarmPanelCapability = {
154904
155218
  field: "state",
154905
155219
  value: "armed_vacation"
154906
155220
  },
155221
+ hold: { effects: [{
155222
+ field: "state",
155223
+ value: "arming",
155224
+ when: {
155225
+ field: "state",
155226
+ notIn: ["armed_vacation"]
155227
+ }
155228
+ }] },
154907
155229
  args: { mode: "vacation" },
154908
155230
  openArgs: [{
154909
155231
  key: "code",
@@ -154924,6 +155246,14 @@ var alarmPanelCapability = {
154924
155246
  field: "state",
154925
155247
  value: "armed_custom_bypass"
154926
155248
  },
155249
+ hold: { effects: [{
155250
+ field: "state",
155251
+ value: "arming",
155252
+ when: {
155253
+ field: "state",
155254
+ notIn: ["armed_custom_bypass"]
155255
+ }
155256
+ }] },
154927
155257
  args: { mode: "custom_bypass" },
154928
155258
  openArgs: [{
154929
155259
  key: "code",
@@ -155607,6 +155937,10 @@ var automationControlCapability = {
155607
155937
  auth: "admin",
155608
155938
  actions: [{
155609
155939
  id: "haAutomation.enable",
155940
+ effect: {
155941
+ field: "enabled",
155942
+ value: true
155943
+ },
155610
155944
  label: t("Enable automation", "Abilita l’automazione"),
155611
155945
  phrase: t("Enable {device}", "Abilita {device}"),
155612
155946
  icon: "toggle-right"
@@ -155617,6 +155951,10 @@ var automationControlCapability = {
155617
155951
  auth: "admin",
155618
155952
  actions: [{
155619
155953
  id: "haAutomation.disable",
155954
+ effect: {
155955
+ field: "enabled",
155956
+ value: false
155957
+ },
155620
155958
  label: t("Disable automation", "Disabilita l’automazione"),
155621
155959
  phrase: t("Disable {device}", "Disabilita {device}"),
155622
155960
  icon: "toggle-left"
@@ -158427,6 +158765,14 @@ var climateControlCapability = {
158427
158765
  label: t("Set temperature range", "Imposta l’intervallo di temperatura"),
158428
158766
  phrase: t("Keep {device} between {targetLow} and {targetHigh}", "Mantieni {device} tra {targetLow} e {targetHigh}"),
158429
158767
  icon: "thermometer",
158768
+ effect: {
158769
+ field: "targetLow",
158770
+ fromArg: "targetLow"
158771
+ },
158772
+ sideEffects: [{
158773
+ field: "targetHigh",
158774
+ fromArg: "targetHigh"
158775
+ }],
158430
158776
  openArgs: [{
158431
158777
  key: "targetLow",
158432
158778
  label: t("Lowest", "Minima"),
@@ -158485,6 +158831,10 @@ var climateControlCapability = {
158485
158831
  label: t("Set fan mode", "Imposta la ventilazione"),
158486
158832
  phrase: t("Set the fan of {device} to {fanMode}", "Imposta la ventilazione di {device} su {fanMode}"),
158487
158833
  icon: "fan",
158834
+ effect: {
158835
+ field: "fanMode",
158836
+ fromArg: "fanMode"
158837
+ },
158488
158838
  openArgs: [{
158489
158839
  key: "fanMode",
158490
158840
  label: t("Fan mode", "Ventilazione"),
@@ -158507,6 +158857,10 @@ var climateControlCapability = {
158507
158857
  label: t("Set preset", "Imposta il preset"),
158508
158858
  phrase: t("Set {device} to preset {preset}", "Imposta {device} sul preset {preset}"),
158509
158859
  icon: "list",
158860
+ effect: {
158861
+ field: "preset",
158862
+ fromArg: "preset"
158863
+ },
158510
158864
  openArgs: [{
158511
158865
  key: "preset",
158512
158866
  label: t("Preset", "Preset"),
@@ -159094,7 +159448,8 @@ var CompositionProblemSchema = object({
159094
159448
  "command-source-unknown",
159095
159449
  "command-input-unknown",
159096
159450
  "command-input-missing",
159097
- "power-source-is-actuator"
159451
+ "power-source-is-actuator",
159452
+ "link-contribution-removed"
159098
159453
  ]),
159099
159454
  path: string(),
159100
159455
  message: string()
@@ -160521,6 +160876,10 @@ var mediaPlayerCapability = {
160521
160876
  auth: "protected",
160522
160877
  actions: [{
160523
160878
  id: "media.play",
160879
+ effect: {
160880
+ field: "state",
160881
+ value: "playing"
160882
+ },
160524
160883
  label: t("Play", "Riproduci"),
160525
160884
  phrase: t("Play on {device}", "Avvia la riproduzione su {device}"),
160526
160885
  icon: "play"
@@ -160531,6 +160890,10 @@ var mediaPlayerCapability = {
160531
160890
  auth: "protected",
160532
160891
  actions: [{
160533
160892
  id: "media.pause",
160893
+ effect: {
160894
+ field: "state",
160895
+ value: "paused"
160896
+ },
160534
160897
  label: t("Pause media", "Metti in pausa"),
160535
160898
  phrase: t("Pause {device}", "Metti in pausa {device}"),
160536
160899
  icon: "pause"
@@ -160574,6 +160937,10 @@ var mediaPlayerCapability = {
160574
160937
  auth: "protected",
160575
160938
  actions: [{
160576
160939
  id: "media.volume",
160940
+ effect: {
160941
+ field: "volumeLevel",
160942
+ fromArg: "volumeLevel"
160943
+ },
160577
160944
  label: t("Set volume", "Imposta il volume"),
160578
160945
  phrase: t("Set the volume of {device} to {volumeLevel}", "Imposta il volume di {device} al {volumeLevel}"),
160579
160946
  icon: "volume-2",
@@ -160598,12 +160965,20 @@ var mediaPlayerCapability = {
160598
160965
  auth: "protected",
160599
160966
  actions: [{
160600
160967
  id: "media.mute",
160968
+ effect: {
160969
+ field: "isMuted",
160970
+ value: true
160971
+ },
160601
160972
  label: t("Mute", "Silenzia"),
160602
160973
  phrase: t("Mute {device}", "Silenzia {device}"),
160603
160974
  icon: "volume-x",
160604
160975
  args: { muted: true }
160605
160976
  }, {
160606
160977
  id: "media.unmute",
160978
+ effect: {
160979
+ field: "isMuted",
160980
+ value: false
160981
+ },
160607
160982
  label: t("Unmute", "Riattiva l’audio"),
160608
160983
  phrase: t("Unmute {device}", "Riattiva l’audio di {device}"),
160609
160984
  icon: "volume-2",
@@ -160618,12 +160993,20 @@ var mediaPlayerCapability = {
160618
160993
  auth: "protected",
160619
160994
  actions: [{
160620
160995
  id: "media.shuffleOn",
160996
+ effect: {
160997
+ field: "shuffle",
160998
+ value: true
160999
+ },
160621
161000
  label: t("Shuffle on", "Riproduzione casuale attiva"),
160622
161001
  phrase: t("Turn on shuffle on {device}", "Attiva la riproduzione casuale su {device}"),
160623
161002
  icon: "shuffle",
160624
161003
  args: { shuffle: true }
160625
161004
  }, {
160626
161005
  id: "media.shuffleOff",
161006
+ effect: {
161007
+ field: "shuffle",
161008
+ value: false
161009
+ },
160627
161010
  label: t("Shuffle off", "Riproduzione casuale spenta"),
160628
161011
  phrase: t("Turn off shuffle on {device}", "Disattiva la riproduzione casuale su {device}"),
160629
161012
  icon: "shuffle",
@@ -160638,6 +161021,10 @@ var mediaPlayerCapability = {
160638
161021
  auth: "protected",
160639
161022
  actions: [{
160640
161023
  id: "media.repeat",
161024
+ effect: {
161025
+ field: "repeat",
161026
+ fromArg: "repeat"
161027
+ },
160641
161028
  label: t("Set repeat", "Imposta la ripetizione"),
160642
161029
  phrase: t("Set repeat on {device} to {repeat}", "Imposta la ripetizione di {device} su {repeat}"),
160643
161030
  icon: "repeat",
@@ -160672,6 +161059,10 @@ var mediaPlayerCapability = {
160672
161059
  auth: "protected",
160673
161060
  actions: [{
160674
161061
  id: "media.source",
161062
+ effect: {
161063
+ field: "source",
161064
+ fromArg: "source"
161065
+ },
160675
161066
  label: t("Select source", "Scegli la sorgente"),
160676
161067
  phrase: t("Switch {device} to {source}", "Passa {device} alla sorgente {source}"),
160677
161068
  icon: "cast",
@@ -160840,7 +161231,7 @@ var mediaPlayerCapability = {
160840
161231
  ]
160841
161232
  }
160842
161233
  };
160843
- 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;
161234
+ 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;
160844
161235
  var NUMBER = {
160845
161236
  kind: "fixed",
160846
161237
  result: ["number"]
@@ -161332,7 +161723,9 @@ var PowerSourceRefusalReasonSchema = _enum([
161332
161723
  "switch-call-failed",
161333
161724
  "switch-options-unreadable",
161334
161725
  "not-settable",
161335
- "switch-is-actuator"
161726
+ "switch-is-actuator",
161727
+ "link-lost",
161728
+ "link-unknown"
161336
161729
  ]);
161337
161730
  var PowerSourceActionResultSchema = discriminatedUnion("accepted", [object({ accepted: literal(true) }), object({
161338
161731
  accepted: literal(false),
@@ -163419,6 +163812,79 @@ var IdentityCandidatesSchema = discriminatedUnion("status", [object({
163419
163812
  pairs: array(IdentityCandidatePairSchema).readonly(),
163420
163813
  undeclaredDeviceIds: array(number$1().int()).readonly()
163421
163814
  })]);
163815
+ var IdentityLinkKindSchema = _enum(["same-device", "poe-power"]);
163816
+ /**
163817
+ * - `proposed` — one strong key matched: waits for the operator;
163818
+ * - `linked` — confirmed by the operator, or auto-linked on strong evidence;
163819
+ * - `dismissed` — the operator said no (or unlinked): sticky, never re-proposed.
163820
+ */
163821
+ var IdentityLinkStateSchema = _enum([
163822
+ "proposed",
163823
+ "linked",
163824
+ "dismissed"
163825
+ ]);
163826
+ /** Who decided the current state: the matcher (`auto`) or the operator. */
163827
+ var IdentityLinkOriginSchema = _enum(["auto", "operator"]);
163828
+ /** One side: the device ref that survives re-registration, plus its current numeric id. */
163829
+ var IdentityLinkSideSchema = object({
163830
+ addonId: string().min(1),
163831
+ stableId: string().min(1),
163832
+ deviceId: number$1().int()
163833
+ });
163834
+ var IdentityLinkSchema = object({
163835
+ kind: IdentityLinkKindSchema,
163836
+ a: IdentityLinkSideSchema,
163837
+ b: IdentityLinkSideSchema,
163838
+ state: IdentityLinkStateSchema,
163839
+ origin: IdentityLinkOriginSchema,
163840
+ /** The identifiers that matched when the link was last evaluated, ordered by key then value. */
163841
+ evidence: array(IdentityMatchedKeySchema).readonly(),
163842
+ /** An operator-confirmed link whose evidence no longer matches: kept, flagged. */
163843
+ evidenceGone: literal(true).optional(),
163844
+ createdAt: number$1().int().nonnegative(),
163845
+ decidedAt: number$1().int().nonnegative().optional()
163846
+ }).extend({ id: string().min(1) });
163847
+ DeviceRole.PoePort;
163848
+ /**
163849
+ * The answer of `device-manager.listIdentityLinks`. `not-loaded` until the
163850
+ * links have been read — never an empty list (D315).
163851
+ */
163852
+ var IdentityLinksReadSchema = discriminatedUnion("status", [object({
163853
+ status: literal("not-loaded"),
163854
+ reason: string()
163855
+ }), object({
163856
+ status: literal("answered"),
163857
+ links: array(IdentityLinkSchema).readonly()
163858
+ })]);
163859
+ /** Why an operator decision on a link was refused. */
163860
+ var IdentityLinkDecisionRefusalSchema = _enum([
163861
+ "not-loaded",
163862
+ "unknown-link",
163863
+ "wrong-state"
163864
+ ]);
163865
+ /** The answer of `confirmIdentityLink` / `dismissIdentityLink` / `unlinkIdentity`. */
163866
+ var IdentityLinkDecisionSchema = discriminatedUnion("ok", [object({
163867
+ ok: literal(true),
163868
+ link: IdentityLinkSchema
163869
+ }), object({
163870
+ ok: literal(false),
163871
+ reason: IdentityLinkDecisionRefusalSchema,
163872
+ message: string()
163873
+ })]);
163874
+ /** Why a link was lost. */
163875
+ var IdentityLinkLostReasonSchema = _enum([
163876
+ "evidence-gone",
163877
+ "device-removed",
163878
+ "operator-unlinked"
163879
+ ]);
163880
+ object({
163881
+ linkId: string(),
163882
+ kind: IdentityLinkKindSchema,
163883
+ aDeviceId: number$1().int(),
163884
+ bDeviceId: number$1().int(),
163885
+ origin: IdentityLinkOriginSchema,
163886
+ reason: IdentityLinkLostReasonSchema.optional()
163887
+ });
163422
163888
  var DeviceSearchRequiresSchema = object({
163423
163889
  /** Capability names the field wants a value of. Absent when the field wants actions only. */
163424
163890
  caps: array(string()).readonly().optional(),
@@ -163985,6 +164451,11 @@ var DeviceInfoSchema = object({
163985
164451
  * the owning provider via `setIdentifiers`; read-only for the operator.
163986
164452
  * Absent ⇒ the provider declared none. */
163987
164453
  identifiers: DeviceIdentifiersSchema.optional(),
164454
+ /** The identity of the device at the far end of this device's physical
164455
+ * link (D1059 amended by D1063) — a PoE port's wired client. Written only by
164456
+ * the owning provider via `setAttachedIdentifiers`; it never makes the two
164457
+ * devices the same device. Absent ⇒ none declared. */
164458
+ attachedIdentifiers: DeviceIdentifiersSchema.optional(),
163988
164459
  /** Optional upstream-system identity + rendering envelope. See
163989
164460
  * `SourceInfo` in `packages/types/src/device/source-info.ts`. */
163990
164461
  sourceInfo: SourceInfoSchema.optional(),
@@ -164138,6 +164609,8 @@ var DeviceMetaSchema = object({
164138
164609
  metadata: record(string(), unknown()).nullable().optional(),
164139
164610
  /** Provider-declared identifiers (D1059). See `DeviceMeta.identifiers`. */
164140
164611
  identifiers: DeviceIdentifiersSchema.optional(),
164612
+ /** The far end of the device's physical link (D1063). See `DeviceMeta.attachedIdentifiers`. */
164613
+ attachedIdentifiers: DeviceIdentifiersSchema.optional(),
164141
164614
  /** Optional upstream-system identity + rendering envelope. See
164142
164615
  * `SourceInfo`. Present when the device has been persisted with a
164143
164616
  * non-synthetic source identifier (HA entities, vendor MAC, …);
@@ -164462,6 +164935,26 @@ method(object({
164462
164935
  }), method(object({}), IdentityCandidatesSchema, {
164463
164936
  kind: "query",
164464
164937
  auth: "admin"
164938
+ }), method(object({
164939
+ deviceId: number$1(),
164940
+ identifiers: DeviceIdentifiersSchema.nullable(),
164941
+ /** Kinds the provider tried to read and could not: their stored value is kept. */
164942
+ unread: array(DeviceIdentifierKeySchema).optional()
164943
+ }), _void(), {
164944
+ kind: "mutation",
164945
+ auth: "admin"
164946
+ }), method(object({ deviceId: number$1().int().optional() }), IdentityLinksReadSchema, {
164947
+ kind: "query",
164948
+ auth: "admin"
164949
+ }), method(object({ linkId: string().min(1) }), IdentityLinkDecisionSchema, {
164950
+ kind: "mutation",
164951
+ auth: "admin"
164952
+ }), method(object({ linkId: string().min(1) }), IdentityLinkDecisionSchema, {
164953
+ kind: "mutation",
164954
+ auth: "admin"
164955
+ }), method(object({ linkId: string().min(1) }), IdentityLinkDecisionSchema, {
164956
+ kind: "mutation",
164957
+ auth: "admin"
164465
164958
  }), method(_void(), array(string())), method(object({ name: string() }), _void(), {
164466
164959
  kind: "mutation",
164467
164960
  auth: "admin"
@@ -165426,8 +165919,12 @@ var ClaimsListingSchema = discriminatedUnion("state", [object({
165426
165919
  })]);
165427
165920
  method(object({ deviceId: number$1() }), record(string(), record(string(), unknown()))), method(object({
165428
165921
  deviceId: number$1(),
165429
- capName: string()
165430
- }), record(string(), unknown()).nullable()), method(object({}), record(string(), record(string(), record(string(), unknown())))), method(object({
165922
+ capName: string(),
165923
+ /** The slice the device CONFIRMED, without a held command (D1061) — history and automations. */
165924
+ confirmed: boolean().optional()
165925
+ }), record(string(), unknown()).nullable()), method(object({
165926
+ /** The slices the devices CONFIRMED, without held commands (D1061). */
165927
+ confirmed: boolean().optional() }), record(string(), record(string(), record(string(), unknown())))), method(object({
165431
165928
  deviceId: number$1(),
165432
165929
  capName: string(),
165433
165930
  slice: record(string(), unknown())
@@ -165465,6 +165962,88 @@ method(object({ deviceId: number$1() }), record(string(), record(string(), unkno
165465
165962
  slice: record(string(), unknown())
165466
165963
  }));
165467
165964
  /**
165965
+ * Server-driven device state refresh (D1062): the core decides WHEN a device is
165966
+ * re-read, the integration only knows HOW.
165967
+ *
165968
+ * A provider states its policy where it registers the device's
165969
+ * `device-state-refresh` cap (`ctx.registerNativeCap(cap, provider, {
165970
+ * stateRefresh })`). It reaches the hub by the road the command-hold options
165971
+ * take (D1061): written directly in-process, carried on a forked child's cap
165972
+ * descriptors otherwise. Plain data, wire-safe.
165973
+ */
165974
+ /** Why the core asks for a refresh. */
165975
+ var StateRefreshReasonSchema = _enum([
165976
+ "schedule",
165977
+ "command",
165978
+ "burst"
165979
+ ]);
165980
+ /**
165981
+ * What arrives without asking: `none` (everything is read), `partial` (some
165982
+ * fields arrive by push, the rest is read on the schedule), `full` (everything
165983
+ * arrives by push — never read on a schedule).
165984
+ */
165985
+ var StateRefreshPushSchema = _enum([
165986
+ "none",
165987
+ "partial",
165988
+ "full"
165989
+ ]);
165990
+ object({
165991
+ /**
165992
+ * The integration instance the device belongs to. Devices of one instance
165993
+ * share one schedule group: a batching provider is asked once for all of
165994
+ * them, and the heartbeat is judged across them.
165995
+ */
165996
+ integrationId: string().min(1),
165997
+ /** The fastest interval the integration can afford for its devices. The core polls at it by default. */
165998
+ minIntervalMs: number$1().int().min(1e3),
165999
+ /**
166000
+ * The operator's per-integration setting, when there is one. It can only SLOW
166001
+ * the cadence: the core polls at `max(minIntervalMs, intervalMs)`.
166002
+ */
166003
+ intervalMs: number$1().int().positive().optional(),
166004
+ /** One `refresh` call can read every device of the integration at once. */
166005
+ batch: boolean(),
166006
+ push: StateRefreshPushSchema,
166007
+ /** Longest silence a push integration may keep before the core re-reads it and asks it to resubscribe. */
166008
+ heartbeatMs: number$1().int().positive().optional(),
166009
+ /**
166010
+ * Bumped by the provider each time its push subscription reconnected on its
166011
+ * own. A change makes the core re-read every device of the integration
166012
+ * (pushes lost while it was down; events may be dropped, D8).
166013
+ */
166014
+ connectionEpoch: number$1().int().nonnegative().optional()
166015
+ });
166016
+ /**
166017
+ * device-state-refresh — the HOW of a device's state refresh, called by the
166018
+ * core, which owns the WHEN (D1062).
166019
+ *
166020
+ * The provider registers it per device with its policy
166021
+ * (`registerNativeCap(cap, provider, { stateRefresh })`). The hub's scheduler
166022
+ * calls `refresh` on the schedule, after a command and in the burst that
166023
+ * follows it, and `resubscribe` when a push integration fell silent. The
166024
+ * provider re-reads and writes the slices it already writes; nothing is
166025
+ * returned but completion.
166026
+ */
166027
+ var DeviceStateRefreshInputSchema = object({
166028
+ /** The device the call is routed by (one of `deviceIds`). */
166029
+ deviceId: number$1().int().nonnegative(),
166030
+ /** Every device to re-read: one, or the integration's whole set when the provider batches. */
166031
+ deviceIds: array(number$1().int().nonnegative()).min(1),
166032
+ reason: StateRefreshReasonSchema
166033
+ });
166034
+ var DeviceStateResubscribeInputSchema = object({ deviceId: number$1().int().nonnegative() });
166035
+ var DeviceStateRefreshResultSchema = object({ ok: literal(true) });
166036
+ var NOT_OPERATOR_FACING = "the core schedules state refreshes itself; an operator never asks for one";
166037
+ method(DeviceStateRefreshInputSchema, DeviceStateRefreshResultSchema, {
166038
+ kind: "mutation",
166039
+ auth: "admin",
166040
+ notOperatorFacing: NOT_OPERATOR_FACING
166041
+ }), method(DeviceStateResubscribeInputSchema, DeviceStateRefreshResultSchema, {
166042
+ kind: "mutation",
166043
+ auth: "admin",
166044
+ notOperatorFacing: NOT_OPERATOR_FACING
166045
+ });
166046
+ /**
165468
166047
  * Generic device-level status snapshot. Auto-registered by `BaseDevice`
165469
166048
  * for every device, regardless of provider — the kernel needs a uniform
165470
166049
  * cap-keyed slice for the basic device flags every consumer expects to
@@ -167894,7 +168473,15 @@ var fanControlCapability = {
167894
168473
  field: "speed",
167895
168474
  value: 100
167896
168475
  },
167897
- args: { speed: 100 }
168476
+ args: { speed: 100 },
168477
+ sideEffects: [{
168478
+ field: "preset",
168479
+ value: "",
168480
+ when: {
168481
+ field: "preset",
168482
+ notIn: [""]
168483
+ }
168484
+ }]
167898
168485
  },
167899
168486
  {
167900
168487
  id: "fan.speed",
@@ -167905,6 +168492,14 @@ var fanControlCapability = {
167905
168492
  field: "speed",
167906
168493
  fromArg: "speed"
167907
168494
  },
168495
+ sideEffects: [{
168496
+ field: "preset",
168497
+ value: "",
168498
+ when: {
168499
+ field: "preset",
168500
+ notIn: [""]
168501
+ }
168502
+ }],
167908
168503
  openArgs: [{
167909
168504
  key: "speed",
167910
168505
  label: t("Speed", "Velocità"),
@@ -167930,6 +168525,10 @@ var fanControlCapability = {
167930
168525
  label: t("Set preset", "Imposta il preset"),
167931
168526
  phrase: t("Set {device} to preset {preset}", "Imposta {device} sul preset {preset}"),
167932
168527
  icon: "list",
168528
+ effect: {
168529
+ field: "preset",
168530
+ fromArg: "preset"
168531
+ },
167933
168532
  openArgs: [{
167934
168533
  key: "preset",
167935
168534
  label: t("Preset", "Preset"),
@@ -169660,7 +170259,7 @@ var HeroSceneSchema = object({
169660
170259
  level: number$1().min(0).max(1).nullable()
169661
170260
  });
169662
170261
  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;
169663
- 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;
170262
+ 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;
169664
170263
  var HeroRowIdSchema = _enum([
169665
170264
  "progress",
169666
170265
  "run-for",
@@ -170932,6 +171531,16 @@ var IntegrationInstanceStatusSchema = object({
170932
171531
  /** A short human word for the state ("Signed in", "Token expired"); shown instead of `state`. */
170933
171532
  label: string().optional()
170934
171533
  });
171534
+ /**
171535
+ * What "Add device" inside ONE instance offers, decided per instance by its provider. `scan`: the
171536
+ * LAN scan finds devices this instance holds; `children`: only the instance's own children, via
171537
+ * adoption (a scan would offer other hosts, which are new integrations); `none`: manual add only.
171538
+ */
171539
+ var IntegrationInstanceAddDeviceSchema = _enum([
171540
+ "scan",
171541
+ "children",
171542
+ "none"
171543
+ ]);
170935
171544
  var IntegrationInstanceSchema = object({
170936
171545
  id: IntegrationInstanceIdSchema,
170937
171546
  name: string(),
@@ -170949,7 +171558,9 @@ var IntegrationInstanceSchema = object({
170949
171558
  formValues: record(string(), unknown()),
170950
171559
  status: IntegrationInstanceStatusSchema.optional(),
170951
171560
  /** Epoch ms of the last probe of the remote that produced `status`; absent when never checked. */
170952
- lastCheckedAt: number$1().optional()
171561
+ lastCheckedAt: number$1().optional(),
171562
+ /** 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). */
171563
+ addDevice: IntegrationInstanceAddDeviceSchema.optional()
170953
171564
  });
170954
171565
  var IntegrationInstancePatchSchema = object({
170955
171566
  id: IntegrationInstanceIdSchema,
@@ -173100,6 +173711,14 @@ var lockControlCapability = {
173100
173711
  field: "state",
173101
173712
  value: "locked"
173102
173713
  },
173714
+ hold: { effects: [{
173715
+ field: "state",
173716
+ value: "locking",
173717
+ when: {
173718
+ field: "state",
173719
+ notIn: ["locked"]
173720
+ }
173721
+ }] },
173103
173722
  openArgs: [{
173104
173723
  key: "code",
173105
173724
  label: t("PIN code", "Codice PIN"),
@@ -173133,6 +173752,14 @@ var lockControlCapability = {
173133
173752
  field: "state",
173134
173753
  value: "unlocked"
173135
173754
  },
173755
+ hold: { effects: [{
173756
+ field: "state",
173757
+ value: "unlocking",
173758
+ when: {
173759
+ field: "state",
173760
+ notIn: ["unlocked"]
173761
+ }
173762
+ }] },
173136
173763
  openArgs: [{
173137
173764
  key: "code",
173138
173765
  label: t("PIN code", "Codice PIN"),
@@ -177544,6 +178171,16 @@ DeviceType.Camera, method(object({ deviceId: number$1() }), array(TrackSchema).r
177544
178171
  timestamp: number$1()
177545
178172
  }), EventCategory.PipelineAnalyticsDetectionEvent, EventCategory.PipelineAnalyticsPackageDelivered, EventCategory.PipelineAnalyticsPackagePickedUp;
177546
178173
  /**
178174
+ * A rectangle as a fraction of a frame, `[0, 1]` on both axes — the wire shape
178175
+ * of `NormalizedRect` (which is derived from it).
178176
+ */
178177
+ var NormalizedRectSchema = object({
178178
+ x: number$1(),
178179
+ y: number$1(),
178180
+ w: number$1(),
178181
+ h: number$1()
178182
+ });
178183
+ /**
177547
178184
  * A root model's boxes standing in for one crop-kind step's own inference
177548
178185
  * (D730) — see `runPipeline.suppliedRoot`.
177549
178186
  */
@@ -177936,7 +178573,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
177936
178573
  * reader) run on them through their own crop policy. Boxes are in the
177937
178574
  * PIXELS of the image this call carries. Absent ⇒ the root step runs.
177938
178575
  */
177939
- suppliedRoot: SuppliedRootOutputSchema.optional()
178576
+ suppliedRoot: SuppliedRootOutputSchema.optional(),
178577
+ /**
178578
+ * The motion analyzer's merged subjects (D394) for this camera, fresh,
178579
+ * normalised to the frame (0..1). Feeds the motion-guided root crop
178580
+ * (D1060): the executor picks per frame whether the object-detection
178581
+ * root runs on the full frame or on a crop around them. Honoured only
178582
+ * on the live `frame` plane with a `frameRef`. Absent or empty ⇒ no
178583
+ * motion known ⇒ full frame.
178584
+ */
178585
+ motionRegions: array(NormalizedRectSchema).optional()
177940
178586
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
177941
178587
  steps: array(PipelineStepInputSchema).min(1),
177942
178588
  frames: array(FrameInputSchema).min(1).max(255),
@@ -179028,7 +179674,15 @@ var RunnerInferenceDeviceSchema = object({
179028
179674
  * Absent field ⇒ an orchestrator that predates D650: the jumped step keeps
179029
179675
  * the elected device's provisioning, as before.
179030
179676
  */
179031
- steps: record(string(), RunnerJumpStepProvisioningSchema).optional()
179677
+ steps: record(string(), RunnerJumpStepProvisioningSchema).optional(),
179678
+ /**
179679
+ * Steps switched OFF on this device (D1065, `inferenceDevices[key].steps[s]
179680
+ * .enabled === false`). The runner never runs a subtree containing one of
179681
+ * them here: it auto-jumps it to an allowed device, and when none can take
179682
+ * it the subtree is skipped (`disabled-on-device`), never run here anyway.
179683
+ * Absent ⇒ none (an orchestrator that predates D1065).
179684
+ */
179685
+ disabledSteps: array(string()).readonly().optional()
179032
179686
  });
179033
179687
  /**
179034
179688
  * Camera assignment payload sent by `addon-pipeline-orchestrator` to a
@@ -184745,6 +185399,14 @@ method(object({ deviceId: number$1().int() }), object({
184745
185399
  auth: "admin"
184746
185400
  }), NOT_A_DEVICE.PIPELINE;
184747
185401
  /**
185402
+ * Hold limits a cap's vocabulary may declare on an action (D1061).
185403
+ *
185404
+ * A one-shot command (feed, run a script) has no lasting state to confirm; it
185405
+ * holds its in-progress flag just long enough that a second tap, before the
185406
+ * device reports, is seen as "already running" and refused.
185407
+ */
185408
+ var ONE_SHOT_HOLD_MS = 1e4;
185409
+ /**
184748
185410
  * Feeder connectivity / power status — mirrors the HA petkit device-status
184749
185411
  * enum: `normal` (online, mains), `offline` (not reaching PetKit cloud),
184750
185412
  * `on_batteries` (running on battery backup). `null` until first reported.
@@ -184862,6 +185524,13 @@ var petFeederCapability = {
184862
185524
  label: t("Feed", "Dai da mangiare"),
184863
185525
  phrase: t("Dispense {grams} from {device}", "Eroga {grams} da {device}"),
184864
185526
  icon: "paw-print",
185527
+ hold: {
185528
+ effects: [{
185529
+ field: "feeding",
185530
+ value: true
185531
+ }],
185532
+ holdMs: ONE_SHOT_HOLD_MS
185533
+ },
184865
185534
  openArgs: [{
184866
185535
  key: "grams",
184867
185536
  label: t("Grams", "Grammi"),
@@ -184880,6 +185549,13 @@ var petFeederCapability = {
184880
185549
  label: t("Feed from both hoppers", "Eroga da entrambi i serbatoi"),
184881
185550
  phrase: t("Dispense {hopper1} and {hopper2} from {device}", "Eroga {hopper1} e {hopper2} da {device}"),
184882
185551
  icon: "paw-print",
185552
+ hold: {
185553
+ effects: [{
185554
+ field: "feeding",
185555
+ value: true
185556
+ }],
185557
+ holdMs: ONE_SHOT_HOLD_MS
185558
+ },
184883
185559
  openArgs: [{
184884
185560
  key: "hopper1",
184885
185561
  label: t("Hopper 1", "Serbatoio 1"),
@@ -184985,12 +185661,20 @@ var petFeederCapability = {
184985
185661
  auth: "protected",
184986
185662
  actions: [{
184987
185663
  id: "petFeeder.childLockOn",
185664
+ effect: {
185665
+ field: "childLock",
185666
+ value: true
185667
+ },
184988
185668
  label: t("Child lock on", "Blocco bambini attivo"),
184989
185669
  phrase: t("Turn on the child lock of {device}", "Attiva il blocco bambini di {device}"),
184990
185670
  icon: "lock",
184991
185671
  args: { on: true }
184992
185672
  }, {
184993
185673
  id: "petFeeder.childLockOff",
185674
+ effect: {
185675
+ field: "childLock",
185676
+ value: false
185677
+ },
184994
185678
  label: t("Child lock off", "Blocco bambini spento"),
184995
185679
  phrase: t("Turn off the child lock of {device}", "Disattiva il blocco bambini di {device}"),
184996
185680
  icon: "lock-open",
@@ -185006,12 +185690,20 @@ var petFeederCapability = {
185006
185690
  auth: "protected",
185007
185691
  actions: [{
185008
185692
  id: "petFeeder.lightOn",
185693
+ effect: {
185694
+ field: "indicatorLight",
185695
+ value: true
185696
+ },
185009
185697
  label: t("Indicator light on", "Spia accesa"),
185010
185698
  phrase: t("Turn on the indicator light of {device}", "Accendi la spia di {device}"),
185011
185699
  icon: "lightbulb",
185012
185700
  args: { on: true }
185013
185701
  }, {
185014
185702
  id: "petFeeder.lightOff",
185703
+ effect: {
185704
+ field: "indicatorLight",
185705
+ value: false
185706
+ },
185015
185707
  label: t("Indicator light off", "Spia spenta"),
185016
185708
  phrase: t("Turn off the indicator light of {device}", "Spegni la spia di {device}"),
185017
185709
  icon: "lightbulb-off",
@@ -185027,12 +185719,20 @@ var petFeederCapability = {
185027
185719
  auth: "protected",
185028
185720
  actions: [{
185029
185721
  id: "petFeeder.feedSoundOn",
185722
+ effect: {
185723
+ field: "feedSound",
185724
+ value: true
185725
+ },
185030
185726
  label: t("Feeding sound on", "Suono di erogazione attivo"),
185031
185727
  phrase: t("Turn on the feeding sound of {device}", "Attiva il suono di erogazione di {device}"),
185032
185728
  icon: "volume-2",
185033
185729
  args: { on: true }
185034
185730
  }, {
185035
185731
  id: "petFeeder.feedSoundOff",
185732
+ effect: {
185733
+ field: "feedSound",
185734
+ value: false
185735
+ },
185036
185736
  label: t("Feeding sound off", "Suono di erogazione spento"),
185037
185737
  phrase: t("Turn off the feeding sound of {device}", "Disattiva il suono di erogazione di {device}"),
185038
185738
  icon: "volume-x",
@@ -185048,6 +185748,10 @@ var petFeederCapability = {
185048
185748
  auth: "protected",
185049
185749
  actions: [{
185050
185750
  id: "petFeeder.volume",
185751
+ effect: {
185752
+ field: "volume",
185753
+ fromArg: "level"
185754
+ },
185051
185755
  label: t("Set volume", "Imposta il volume"),
185052
185756
  phrase: t("Set the volume of {device} to {level}", "Imposta il volume di {device} a {level}"),
185053
185757
  icon: "volume-2",
@@ -185193,12 +185897,20 @@ setPump: method(object({
185193
185897
  auth: "protected",
185194
185898
  actions: [{
185195
185899
  id: "petFountain.pumpOn",
185900
+ effect: {
185901
+ field: "pumpRunning",
185902
+ value: true
185903
+ },
185196
185904
  label: t("Pump on", "Pompa accesa"),
185197
185905
  phrase: t("Start the pump of {device}", "Avvia la pompa di {device}"),
185198
185906
  icon: "play",
185199
185907
  args: { on: true }
185200
185908
  }, {
185201
185909
  id: "petFountain.pumpOff",
185910
+ effect: {
185911
+ field: "pumpRunning",
185912
+ value: false
185913
+ },
185202
185914
  label: t("Pump off", "Pompa spenta"),
185203
185915
  phrase: t("Stop the pump of {device}", "Ferma la pompa di {device}"),
185204
185916
  icon: "square",
@@ -185745,7 +186457,15 @@ var DeviceStepConfigSchema = object({
185745
186457
  * at a disabled/absent device on that node at save time. Absent ⇒ the runner
185746
186458
  * auto-jumps only when the effective device's format cannot run the step.
185747
186459
  */
185748
- jumpDeviceKey: string().optional()
186460
+ jumpDeviceKey: string().optional(),
186461
+ /**
186462
+ * DEVICE switch for this step (D1065). `false` = the step is never
186463
+ * provisioned on this accelerator: a detail step jumps to another enabled
186464
+ * device of the node where it is allowed, else it is skipped with reason
186465
+ * `disabled-on-device`; a root is skipped. Absent = inherit (on). Written by
186466
+ * `setDeviceStepEnabled`.
186467
+ */
186468
+ enabled: boolean().optional()
185749
186469
  });
185750
186470
  var AgentPipelineSettingsSchema = object({
185751
186471
  maxCameras: number$1().int().nonnegative().nullable().default(null),
@@ -185789,6 +186509,12 @@ var AgentPipelineSettingsSchema = object({
185789
186509
  */
185790
186510
  stepSettings: record(string(), record(string(), unknown()).readonly()).optional(),
185791
186511
  /**
186512
+ * NODE switch per step (D1065): `stepId → enabled`. `false` = the step never
186513
+ * runs on a camera whose pipeline runs on this node (skip reason
186514
+ * `disabled-on-node`). Absent = inherit. Written by `setNodeStepEnabled`.
186515
+ */
186516
+ stepEnabled: record(string(), boolean()).optional(),
186517
+ /**
185792
186518
  * Multi-device inference opt-in (Phase 4). Per-node map deviceKey → {enabled,
185793
186519
  * weight, steps}. Absent / all-disabled ⇒ the node's single default
185794
186520
  * accelerator (safe default); two+ enabled ⇒ the dispatcher balances
@@ -186110,7 +186836,8 @@ var InferenceDeviceExclusionReasonSchema = _enum([
186110
186836
  "disabled",
186111
186837
  "unavailable",
186112
186838
  "cannot-host-camera-root",
186113
- "accelerator-preferred"
186839
+ "accelerator-preferred",
186840
+ "root-switched-off"
186114
186841
  ]);
186115
186842
  var NodeInferenceDeviceSchema = object({
186116
186843
  /** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
@@ -186196,6 +186923,75 @@ var NodeInferenceDevicesSchema = object({
186196
186923
  devices: array(NodeInferenceDeviceSchema).readonly()
186197
186924
  });
186198
186925
  /**
186926
+ * The CLUSTER switch of one pipeline step (D1065):
186927
+ * - `off` — hard off: no camera, node or device can turn it on;
186928
+ * - `on` — on by default; a camera may turn it off (`stepToggles`);
186929
+ * - `opt-in` — off by default; a camera turns it on (`stepToggles`).
186930
+ * Absent = the catalog's `enabledByDefault` (`true` → `on`, `false` → `opt-in`).
186931
+ */
186932
+ var StepClusterModeSchema = _enum([
186933
+ "off",
186934
+ "on",
186935
+ "opt-in"
186936
+ ]);
186937
+ /**
186938
+ * What one step does on one (node, device) — computed by the orchestrator with
186939
+ * the SAME placement function the attach path runs (`pipeline-resolver.ts`),
186940
+ * so a client never re-derives it. Precedence: cluster off > camera toggle
186941
+ * (else the cluster default) > node off > device off / jump.
186942
+ */
186943
+ var StepSwitchCellSchema = discriminatedUnion("kind", [
186944
+ object({ kind: literal("on") }),
186945
+ object({ kind: literal("off-cluster") }),
186946
+ object({ kind: literal("off-node") }),
186947
+ object({ kind: literal("off-device") }),
186948
+ object({
186949
+ kind: literal("jump"),
186950
+ toDeviceKey: string()
186951
+ }),
186952
+ object({
186953
+ kind: literal("skip"),
186954
+ reason: _enum(["no-compatible-model", "root-not-runnable-on-elected-device"])
186955
+ }),
186956
+ object({ kind: literal("zone-driven") }),
186957
+ object({
186958
+ kind: literal("supplied-by-root"),
186959
+ rootModelId: string()
186960
+ }),
186961
+ object({ kind: literal("opt-in-unused") })
186962
+ ]);
186963
+ var StepSwitchDeviceSchema = object({
186964
+ deviceKey: string(),
186965
+ format: _enum(MODEL_FORMATS),
186966
+ /** The device switch as stored (`inferenceDevices[key].steps[step].enabled`); `null` = inherit. */
186967
+ stepEnabled: boolean().nullable(),
186968
+ /** Whether the device is in the node's dispatch roster (enabled, available, not excluded). */
186969
+ eligible: boolean(),
186970
+ cell: StepSwitchCellSchema
186971
+ });
186972
+ var StepSwitchNodeSchema = object({
186973
+ nodeId: string(),
186974
+ /** False when the node's catalog or device probe did not answer — no cells are claimed. */
186975
+ reachable: boolean(),
186976
+ /** The node switch as stored (`stepEnabled[step]`); `null` = inherit. */
186977
+ stepEnabled: boolean().nullable(),
186978
+ devices: array(StepSwitchDeviceSchema).readonly()
186979
+ });
186980
+ var StepSwitchMatrixSchema = object({ steps: array(object({
186981
+ stepId: string(),
186982
+ name: string(),
186983
+ slot: string(),
186984
+ /** The stored cluster mode; `null` = the catalog default applies. */
186985
+ clusterMode: StepClusterModeSchema.nullable(),
186986
+ /** The mode in force (stored, else derived from `enabledByDefault`). */
186987
+ effectiveMode: StepClusterModeSchema,
186988
+ /** Cameras whose `stepToggles[step]` is `true`. */
186989
+ camerasEnabling: number$1().int().nonnegative(),
186990
+ /** Cameras whose `stepToggles[step]` is `false`. */
186991
+ camerasDisabling: number$1().int().nonnegative(),
186992
+ nodes: array(StepSwitchNodeSchema).readonly()
186993
+ })).readonly() });
186994
+ /**
186199
186995
  * Pipeline Orchestrator capability — global load balancer + camera dispatcher.
186200
186996
  *
186201
186997
  * Lives on the hub. Tracks the camera-to-agent assignment map, listens to
@@ -186366,7 +187162,28 @@ method(object({
186366
187162
  }), object({ success: literal(true) }), {
186367
187163
  kind: "mutation",
186368
187164
  auth: "admin"
186369
- }), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({
187165
+ }), method(object({
187166
+ stepId: string(),
187167
+ mode: StepClusterModeSchema.nullable()
187168
+ }), object({ success: literal(true) }), {
187169
+ kind: "mutation",
187170
+ auth: "admin"
187171
+ }), method(object({
187172
+ agentNodeId: string(),
187173
+ stepId: string(),
187174
+ enabled: boolean().nullable()
187175
+ }), object({ success: literal(true) }), {
187176
+ kind: "mutation",
187177
+ auth: "admin"
187178
+ }), method(object({
187179
+ agentNodeId: string(),
187180
+ deviceKey: string(),
187181
+ stepId: string(),
187182
+ enabled: boolean().nullable()
187183
+ }), object({ success: literal(true) }), {
187184
+ kind: "mutation",
187185
+ auth: "admin"
187186
+ }), method(_void(), StepSwitchMatrixSchema), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({
186370
187187
  agentNodeId: string(),
186371
187188
  deviceKey: string()
186372
187189
  }), object({ success: literal(true) }), {
@@ -186781,6 +187598,16 @@ var CoralInfoSchema = object({
186781
187598
  reason: _enum(["driver-missing", "device-not-accessible"])
186782
187599
  })).readonly().optional()
186783
187600
  });
187601
+ var NvidiaInfoBaseSchema = object({
187602
+ type: literal("nvidia"),
187603
+ name: string(),
187604
+ memoryMB: number$1().optional()
187605
+ });
187606
+ /** An NVIDIA GPU: usable ⇔ the CUDA execution provider exists; otherwise the reason. */
187607
+ var NvidiaInfoSchema = discriminatedUnion("usable", [NvidiaInfoBaseSchema.extend({ usable: literal(true) }), NvidiaInfoBaseSchema.extend({
187608
+ usable: literal(false),
187609
+ reason: _enum(["no-cuda-execution-provider"])
187610
+ })]);
186784
187611
  var HardwareInfoSchema = object({
186785
187612
  platform: HardwarePlatformSchema,
186786
187613
  arch: HardwareArchSchema,
@@ -186791,6 +187618,7 @@ var HardwareInfoSchema = object({
186791
187618
  gpu: GpuInfoSchema.nullable(),
186792
187619
  npu: NpuInfoSchema.nullable(),
186793
187620
  coral: CoralInfoSchema.nullable().optional(),
187621
+ nvidia: NvidiaInfoSchema.nullable().optional(),
186794
187622
  /**
186795
187623
  * Per-accelerator compute (D930). Omitted by a node that has not probed it.
186796
187624
  * `null` fields inside an entry are a failed query, never a zero.
@@ -186878,8 +187706,14 @@ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema)
186878
187706
  * in real-world devices.
186879
187707
  */
186880
187708
  var PowerMeterStatusSchema = object({
186881
- /** Instantaneous power draw (watts). */
187709
+ /** Instantaneous TOTAL power draw of the device (watts), when known. */
186882
187710
  power: number$1().optional().meta(readingMeta("power", { label: "Power" })),
187711
+ /**
187712
+ * Power the device passes on to downstream loads (watts), e.g. the PoE a switch delivers to
187713
+ * its ports. When `power` is known it already includes this (the own draw is `netPowerOf`);
187714
+ * a device that reports no total (a UniFi switch) carries this field alone.
187715
+ */
187716
+ deliveredPower: number$1().optional().meta(readingMeta("power", { label: "Delivered" })),
186883
187717
  /** Cumulative energy in kilowatt-hours since the meter was reset. */
186884
187718
  energy: number$1().optional().meta(readingMeta("energy", { label: "Energy" })),
186885
187719
  /** Voltage (volts). */
@@ -186914,7 +187748,8 @@ var POWER_METER_DEVICE_TYPES = [
186914
187748
  DeviceType.Dishwasher,
186915
187749
  DeviceType.Vacuum,
186916
187750
  DeviceType.LawnMower,
186917
- DeviceType.PetFeeder
187751
+ DeviceType.PetFeeder,
187752
+ DeviceType.Workload
186918
187753
  ];
186919
187754
  /** Everything but a bare `Sensor`: a sensor that takes its reading from another sensor adds nothing. */
186920
187755
  var POWER_METER_CUSTOMIZE_DEVICE_TYPES = POWER_METER_DEVICE_TYPES.filter((type) => type !== DeviceType.Sensor);
@@ -188085,12 +188920,20 @@ var pumpCycleCapability = {
188085
188920
  auth: "protected",
188086
188921
  actions: [{
188087
188922
  id: "pumpCycle.on",
188923
+ effect: {
188924
+ field: "enabled",
188925
+ value: true
188926
+ },
188088
188927
  label: t("Pump cycle on", "Ciclo pompa attivo"),
188089
188928
  phrase: t("Run the pump of {device} on its on/off cycle", "Fai lavorare la pompa di {device} a ciclo acceso/spento"),
188090
188929
  icon: "timer",
188091
188930
  args: { on: true }
188092
188931
  }, {
188093
188932
  id: "pumpCycle.off",
188933
+ effect: {
188934
+ field: "enabled",
188935
+ value: false
188936
+ },
188094
188937
  label: t("Pump cycle off", "Ciclo pompa spento"),
188095
188938
  phrase: t("Run the pump of {device} continuously", "Fai lavorare la pompa di {device} in continuo"),
188096
188939
  icon: "timer-off",
@@ -188109,6 +188952,11 @@ var pumpCycleCapability = {
188109
188952
  label: t("Set pump run time", "Imposta il tempo di lavoro della pompa"),
188110
188953
  phrase: t("Set the pump of {device} to run {minutes} minutes per cycle", "Imposta la pompa di {device} a lavorare {minutes} minuti per ciclo"),
188111
188954
  icon: "timer",
188955
+ effect: {
188956
+ field: "onTime",
188957
+ fromArg: "minutes",
188958
+ scale: 60
188959
+ },
188112
188960
  openArgs: [{
188113
188961
  key: "minutes",
188114
188962
  label: t("Minutes", "Minuti"),
@@ -188133,6 +188981,11 @@ var pumpCycleCapability = {
188133
188981
  label: t("Set pump rest time", "Imposta il tempo di riposo della pompa"),
188134
188982
  phrase: t("Set the pump of {device} to rest {minutes} minutes per cycle", "Imposta la pompa di {device} a riposare {minutes} minuti per ciclo"),
188135
188983
  icon: "timer-off",
188984
+ effect: {
188985
+ field: "offTime",
188986
+ fromArg: "minutes",
188987
+ scale: 60
188988
+ },
188136
188989
  openArgs: [{
188137
188990
  key: "minutes",
188138
188991
  label: t("Minutes", "Minuti"),
@@ -192103,7 +192956,14 @@ var scriptRunnerCapability = {
192103
192956
  id: "script.run",
192104
192957
  label: t("Run script", "Esegui lo script"),
192105
192958
  phrase: t("Run {device}", "Esegui {device}"),
192106
- icon: "scroll-text"
192959
+ icon: "scroll-text",
192960
+ hold: {
192961
+ effects: [{
192962
+ field: "isRunning",
192963
+ value: true
192964
+ }],
192965
+ holdMs: ONE_SHOT_HOLD_MS
192966
+ }
192107
192967
  }]
192108
192968
  }),
192109
192969
  /** Cancel a running script. Provider rejects when the script
@@ -192113,6 +192973,10 @@ var scriptRunnerCapability = {
192113
192973
  auth: "admin",
192114
192974
  actions: [{
192115
192975
  id: "script.stop",
192976
+ effect: {
192977
+ field: "isRunning",
192978
+ value: false
192979
+ },
192116
192980
  label: t("Stop script", "Ferma lo script"),
192117
192981
  phrase: t("Stop {device}", "Ferma {device}"),
192118
192982
  icon: "square"
@@ -194079,6 +194943,10 @@ var switchCapability = {
194079
194943
  auth: "protected",
194080
194944
  actions: [{
194081
194945
  id: "switch.toggle",
194946
+ sideEffects: [{
194947
+ field: "on",
194948
+ negate: true
194949
+ }],
194082
194950
  label: t("Toggle", "Commuta"),
194083
194951
  phrase: t("Toggle {device}", "Commuta {device}"),
194084
194952
  icon: "toggle-right",
@@ -200869,6 +201737,20 @@ var BaseDevice = class {
200869
201737
  }, raw, options);
200870
201738
  }
200871
201739
  /**
201740
+ * Declare the identity of the device at the FAR END of this device's physical
201741
+ * link (D1063): a PoE port's wired client. Same normalisation, `unread`
201742
+ * rule and owner check as {@link declareIdentifiers}, written through
201743
+ * `device-manager.setAttachedIdentifiers`. It never makes the two devices the
201744
+ * same device. Best-effort: never throws.
201745
+ */
201746
+ async declareAttachedIdentifiers(raw, options) {
201747
+ return declareDeviceIdentifiers({
201748
+ deviceId: this.id,
201749
+ logger: this.ctx.logger,
201750
+ writer: this.ctx.api.deviceManager?.setAttachedIdentifiers
201751
+ }, raw, options);
201752
+ }
201753
+ /**
200872
201754
  * Re-publish the device's current `features` array to the persisted
200873
201755
  * meta blob. Drivers call this after a probe finishes when the live
200874
201756
  * `features` getter has gained new flags (e.g. `hasIntercom` flips
@@ -202597,23 +203479,56 @@ var fountainContribution = contribution("pet-fountain", PetFountainStatusSchema,
202597
203479
  };
202598
203480
  });
202599
203481
  var minutesOf = (seconds) => Math.max(0, Math.round(seconds / 60));
203482
+ var pumpCycleContribution = contribution("pump-cycle", PumpCycleStatusSchema, (slice) => {
203483
+ const enabled = slice?.enabled ?? null;
203484
+ 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;
203485
+ return { rows: [row$1("pump-cycle", "timer", enabled === null ? unknownText : enabled ? joinText([t("Cycling", "A cicli"), cycle]) : t("Runs continuously", "Sempre attiva"), [{
203486
+ kind: "toggle",
203487
+ id: "pump-cycle.enabled",
203488
+ label: t("Pump cycle", "Ciclo pompa"),
203489
+ on: enabled,
203490
+ turnOn: action("pump-cycle.on", t("Cycle the pump", "Attiva il ciclo"), "timer", "pump-cycle", "setEnabled", { on: true }),
203491
+ turnOff: action("pump-cycle.off", t("Run continuously", "Sempre attiva"), "timer-off", "pump-cycle", "setEnabled", { on: false })
203492
+ }])] };
203493
+ });
203494
+ var WORKLOAD_WORDS = {
203495
+ running: {
203496
+ state: "on",
203497
+ title: t("Running", "In esecuzione")
203498
+ },
203499
+ paused: {
203500
+ state: "standby",
203501
+ title: t("Paused", "In pausa")
203502
+ },
203503
+ stopped: {
203504
+ state: "off",
203505
+ title: t("Stopped", "Fermo")
203506
+ },
203507
+ starting: {
203508
+ state: "running",
203509
+ title: t("Starting", "In avvio")
203510
+ },
203511
+ stopping: {
203512
+ state: "running",
203513
+ title: t("Stopping", "In arresto")
203514
+ },
203515
+ crashed: {
203516
+ state: "alert",
203517
+ title: t("Crashed", "Andato in errore")
203518
+ }
203519
+ };
202600
203520
  var DEVICES_FAMILY_CONTRIBUTIONS = {
202601
203521
  "fan-control": fanContribution,
202602
203522
  "vacuum-control": vacuumContribution,
202603
203523
  "lawn-mower-control": mowerContribution,
202604
203524
  "pet-feeder": feederContribution,
202605
203525
  "pet-fountain": fountainContribution,
202606
- "pump-cycle": contribution("pump-cycle", PumpCycleStatusSchema, (slice) => {
202607
- const enabled = slice?.enabled ?? null;
202608
- 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;
202609
- return { rows: [row$1("pump-cycle", "timer", enabled === null ? unknownText : enabled ? joinText([t("Cycling", "A cicli"), cycle]) : t("Runs continuously", "Sempre attiva"), [{
202610
- kind: "toggle",
202611
- id: "pump-cycle.enabled",
202612
- label: t("Pump cycle", "Ciclo pompa"),
202613
- on: enabled,
202614
- turnOn: action("pump-cycle.on", t("Cycle the pump", "Attiva il ciclo"), "timer", "pump-cycle", "setEnabled", { on: true }),
202615
- turnOff: action("pump-cycle.off", t("Run continuously", "Sempre attiva"), "timer-off", "pump-cycle", "setEnabled", { on: false })
202616
- }])] };
203526
+ "pump-cycle": pumpCycleContribution,
203527
+ workload: contribution("workload", WorkloadStatusSchema, (slice) => {
203528
+ const state = slice?.state ?? null;
203529
+ if (state === null) return { reading: reading("workload", "unknown") };
203530
+ const words = WORKLOAD_WORDS[state];
203531
+ return { reading: reading("workload", words.state, false, words.title) };
202617
203532
  })
202618
203533
  };
202619
203534
  /**
@@ -204628,7 +205543,7 @@ lookOf({
204628
205543
  });
204629
205544
  DeviceType.Climate;
204630
205545
  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;
204631
- 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;
205546
+ 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;
204632
205547
  Object.freeze({
204633
205548
  "accessories.getStatus": {
204634
205549
  capName: "accessories",
@@ -206828,6 +207743,13 @@ Object.freeze({
206828
207743
  access: "create",
206829
207744
  role: "admin"
206830
207745
  },
207746
+ "deviceManager.confirmIdentityLink": {
207747
+ capName: "device-manager",
207748
+ capScope: "system",
207749
+ addonId: null,
207750
+ access: "create",
207751
+ role: "admin"
207752
+ },
206831
207753
  "deviceManager.createDevice": {
206832
207754
  capName: "device-manager",
206833
207755
  capScope: "system",
@@ -206877,6 +207799,13 @@ Object.freeze({
206877
207799
  access: "create",
206878
207800
  role: "admin"
206879
207801
  },
207802
+ "deviceManager.dismissIdentityLink": {
207803
+ capName: "device-manager",
207804
+ capScope: "system",
207805
+ addonId: null,
207806
+ access: "create",
207807
+ role: "admin"
207808
+ },
206880
207809
  "deviceManager.enable": {
206881
207810
  capName: "device-manager",
206882
207811
  capScope: "system",
@@ -207073,6 +208002,13 @@ Object.freeze({
207073
208002
  access: "view",
207074
208003
  role: "admin"
207075
208004
  },
208005
+ "deviceManager.listIdentityLinks": {
208006
+ capName: "device-manager",
208007
+ capScope: "system",
208008
+ addonId: null,
208009
+ access: "view",
208010
+ role: "admin"
208011
+ },
207076
208012
  "deviceManager.listLocationDescriptions": {
207077
208013
  capName: "device-manager",
207078
208014
  capScope: "system",
@@ -207269,6 +208205,13 @@ Object.freeze({
207269
208205
  access: "create",
207270
208206
  role: "admin"
207271
208207
  },
208208
+ "deviceManager.setAttachedIdentifiers": {
208209
+ capName: "device-manager",
208210
+ capScope: "system",
208211
+ addonId: null,
208212
+ access: "create",
208213
+ role: "admin"
208214
+ },
207272
208215
  "deviceManager.setChildLayout": {
207273
208216
  capName: "device-manager",
207274
208217
  capScope: "system",
@@ -207430,6 +208373,13 @@ Object.freeze({
207430
208373
  access: "create",
207431
208374
  role: "admin"
207432
208375
  },
208376
+ "deviceManager.unlinkIdentity": {
208377
+ capName: "device-manager",
208378
+ capScope: "system",
208379
+ addonId: null,
208380
+ access: "delete",
208381
+ role: "admin"
208382
+ },
207433
208383
  "deviceManager.updateConfig": {
207434
208384
  capName: "device-manager",
207435
208385
  capScope: "system",
@@ -207710,6 +208660,20 @@ Object.freeze({
207710
208660
  access: "create",
207711
208661
  role: "admin"
207712
208662
  },
208663
+ "deviceStateRefresh.refresh": {
208664
+ capName: "device-state-refresh",
208665
+ capScope: "device",
208666
+ addonId: null,
208667
+ access: "create",
208668
+ role: "admin"
208669
+ },
208670
+ "deviceStateRefresh.resubscribe": {
208671
+ capName: "device-state-refresh",
208672
+ capScope: "device",
208673
+ addonId: null,
208674
+ access: "create",
208675
+ role: "admin"
208676
+ },
207713
208677
  "deviceStatus.getStatus": {
207714
208678
  capName: "device-status",
207715
208679
  capScope: "device",
@@ -211581,6 +212545,13 @@ Object.freeze({
211581
212545
  access: "view",
211582
212546
  role: "admin"
211583
212547
  },
212548
+ "pipelineOrchestrator.getStepSwitches": {
212549
+ capName: "pipeline-orchestrator",
212550
+ capScope: "system",
212551
+ addonId: null,
212552
+ access: "view",
212553
+ role: "admin"
212554
+ },
211584
212555
  "pipelineOrchestrator.listAgentSettings": {
211585
212556
  capName: "pipeline-orchestrator",
211586
212557
  capScope: "system",
@@ -211735,6 +212706,20 @@ Object.freeze({
211735
212706
  access: "create",
211736
212707
  role: "admin"
211737
212708
  },
212709
+ "pipelineOrchestrator.setClusterStepMode": {
212710
+ capName: "pipeline-orchestrator",
212711
+ capScope: "system",
212712
+ addonId: null,
212713
+ access: "create",
212714
+ role: "admin"
212715
+ },
212716
+ "pipelineOrchestrator.setDeviceStepEnabled": {
212717
+ capName: "pipeline-orchestrator",
212718
+ capScope: "system",
212719
+ addonId: null,
212720
+ access: "create",
212721
+ role: "admin"
212722
+ },
211738
212723
  "pipelineOrchestrator.setLoadBalancingShares": {
211739
212724
  capName: "pipeline-orchestrator",
211740
212725
  capScope: "system",
@@ -211742,6 +212727,13 @@ Object.freeze({
211742
212727
  access: "create",
211743
212728
  role: "admin"
211744
212729
  },
212730
+ "pipelineOrchestrator.setNodeStepEnabled": {
212731
+ capName: "pipeline-orchestrator",
212732
+ capScope: "system",
212733
+ addonId: null,
212734
+ access: "create",
212735
+ role: "admin"
212736
+ },
211745
212737
  "pipelineOrchestrator.setNodeStepSettings": {
211746
212738
  capName: "pipeline-orchestrator",
211747
212739
  capScope: "system",
@@ -215344,7 +216336,7 @@ function offered(received) {
215344
216336
  }
215345
216337
  offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
215346
216338
  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;
215347
- 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;
216339
+ 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;
215348
216340
  new Set(Object.values(DeviceType));
215349
216341
  new Set(Object.values(DeviceRole));
215350
216342
  var LAST_FETCHED_FIELD = "lastFetchedAt";
@@ -216128,6 +217120,11 @@ Object.freeze({
216128
217120
  form: "array",
216129
217121
  optional: true
216130
217122
  }],
217123
+ "deviceManager.listIdentityLinks": [{
217124
+ name: "deviceId",
217125
+ form: "single",
217126
+ optional: true
217127
+ }],
216131
217128
  "deviceManager.loadConfig": [{
216132
217129
  name: "deviceId",
216133
217130
  form: "single",
@@ -216178,6 +217175,11 @@ Object.freeze({
216178
217175
  form: "single",
216179
217176
  optional: false
216180
217177
  }],
217178
+ "deviceManager.setAttachedIdentifiers": [{
217179
+ name: "deviceId",
217180
+ form: "single",
217181
+ optional: false
217182
+ }],
216181
217183
  "deviceManager.setChildLayout": [{
216182
217184
  name: "deviceId",
216183
217185
  form: "single",
@@ -216372,6 +217374,20 @@ Object.freeze({
216372
217374
  form: "single",
216373
217375
  optional: false
216374
217376
  }],
217377
+ "deviceStateRefresh.refresh": [{
217378
+ name: "deviceId",
217379
+ form: "single",
217380
+ optional: false
217381
+ }, {
217382
+ name: "deviceIds",
217383
+ form: "array",
217384
+ optional: false
217385
+ }],
217386
+ "deviceStateRefresh.resubscribe": [{
217387
+ name: "deviceId",
217388
+ form: "single",
217389
+ optional: false
217390
+ }],
216375
217391
  "deviceStatus.getStatus": [{
216376
217392
  name: "deviceId",
216377
217393
  form: "single",
@@ -241722,8 +242738,18 @@ function buildReolinkInstances(records, deps) {
241722
242738
  * NVR / Home Hub one does, and a create wizard (no id yet) sets up a hub.
241723
242739
  */
241724
242740
  function reolinkInstancesProvider(instances, deps) {
242741
+ const base = instances.toProvider();
242742
+ const withAddDevice = async (instance) => ({
242743
+ ...instance,
242744
+ addDevice: await integrationIsHub(instances, deps, instance.id) ? "children" : "scan"
242745
+ });
241725
242746
  return {
241726
- ...instances.toProvider(),
242747
+ ...base,
242748
+ listInstances: async (input) => Promise.all((await base.listInstances(input)).map(withAddDevice)),
242749
+ getInstance: async (input) => {
242750
+ const found = await base.getInstance(input);
242751
+ return found === null ? null : withAddDevice(found);
242752
+ },
241727
242753
  instanceFormSchema: async ({ id }) => {
241728
242754
  if (id === null) return buildHubInstanceSchema();
241729
242755
  const [evidence, body] = await Promise.all([deps.registryEvidenceOf(id), instances.getResolved(id)]);