@camstack/addon-provider-homematic 1.2.200 → 1.2.201

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.
Files changed (17) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/_stub.js +2 -2
  3. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_page-qmc1Dkr5.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_page-BxV59wdC.mjs} +4 -4
  4. package/dist/_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-skuvsVHe.mjs +26 -0
  5. package/dist/addon.js +410 -23
  6. package/dist/addon.mjs +410 -23
  7. package/dist/{hostInit-DD3ofn9q.mjs → hostInit-CNluvxTs.mjs} +3 -3
  8. package/dist/remoteEntry.js +1 -1
  9. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_provider_homematic_page__remoteEntry_js-C1yOQF9B.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_provider_homematic_page__remoteEntry_js-6snx-90f.mjs} +1 -1
  10. package/dist/widgets/_stub.js +1 -1
  11. package/dist/widgets/{_virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_widgets-BIJK_-Yo.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_widgets-DHK12kT3.mjs} +2 -2
  12. package/dist/widgets/_virtual_mf___mfe_internal__addon_provider_homematic_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DGJJvlsA.mjs +26 -0
  13. package/dist/widgets/{hostInit-B6-zj1pa.mjs → hostInit-DTRrkNyS.mjs} +2 -2
  14. package/dist/widgets/remoteEntry.js +1 -1
  15. package/package.json +3 -3
  16. package/dist/_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DELdD34C.mjs +0 -26
  17. package/dist/widgets/_virtual_mf___mfe_internal__addon_provider_homematic_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-CcB6r27y.mjs +0 -26
package/dist/addon.mjs CHANGED
@@ -9,7 +9,7 @@ import { networkInterfaces } from "node:os";
9
9
  var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
10
10
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
11
11
  //#endregion
12
- //#region ../types/dist/event-category-Dv-Gcv1f.mjs
12
+ //#region ../types/dist/event-category-Dhcd0TRH.mjs
13
13
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
14
14
  EventCategory["SystemBoot"] = "system.boot";
15
15
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -283,6 +283,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
283
283
  EventCategory["StorageLocationCritical"] = "storage.location.critical";
284
284
  /** Recovery from low/critical on a storage location. */
285
285
  EventCategory["StorageLocationOk"] = "storage.location.ok";
286
+ /**
287
+ * A `drain` location's regular progress ping (#538) — location id + name,
288
+ * bytes remaining, the observed cede rate and the estimated empty date, or
289
+ * `null` fields when the occupancy read that sweep failed (D393: never
290
+ * folded to 0). Cadence is the named constant
291
+ * `DRAIN_PROGRESS_EVENT_INTERVAL_MS` (15 min) plus once on drain start — no
292
+ * operator knob. Telemetry (D8): a lost tick is a stale progress bar the
293
+ * next sweep corrects.
294
+ */
295
+ EventCategory["StorageDrainProgress"] = "storage.drain.progress";
296
+ /** Fires once when a draining location reaches zero evictable bytes. */
297
+ EventCategory["StorageDrainComplete"] = "storage.drain.complete";
286
298
  EventCategory["RecordingSegmentWritten"] = "recording.segment.written";
287
299
  EventCategory["RecordingPolicyFallback"] = "recording.policy.fallback";
288
300
  EventCategory["RecordingRetentionCompleted"] = "recording.retention.completed";
@@ -6070,7 +6082,7 @@ var ZodIssueCode = {
6070
6082
  var ZodFirstPartyTypeKind;
6071
6083
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6072
6084
  //#endregion
6073
- //#region ../types/dist/sleep-B5XPl2YP.mjs
6085
+ //#region ../types/dist/sleep-DEd_klYQ.mjs
6074
6086
  /**
6075
6087
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6076
6088
  * window to float samples (D455).
@@ -13392,6 +13404,76 @@ var CAP_VOCABULARY_BY_NAME = {
13392
13404
  en: "Control",
13393
13405
  it: "Controllo"
13394
13406
  },
13407
+ actions: [
13408
+ {
13409
+ id: "select.next",
13410
+ method: "next",
13411
+ label: {
13412
+ en: "Next option",
13413
+ it: "Opzione successiva"
13414
+ },
13415
+ phrase: {
13416
+ en: "Select the next option on {device}",
13417
+ it: "Seleziona l’opzione successiva su {device}"
13418
+ },
13419
+ icon: "skip-forward",
13420
+ openArgs: [{
13421
+ key: "cycle",
13422
+ label: {
13423
+ en: "Wrap to the first option",
13424
+ it: "Ricomincia dalla prima opzione"
13425
+ },
13426
+ offer: { kind: "boolean" }
13427
+ }]
13428
+ },
13429
+ {
13430
+ id: "select.previous",
13431
+ method: "previous",
13432
+ label: {
13433
+ en: "Previous option",
13434
+ it: "Opzione precedente"
13435
+ },
13436
+ phrase: {
13437
+ en: "Select the previous option on {device}",
13438
+ it: "Seleziona l’opzione precedente su {device}"
13439
+ },
13440
+ icon: "skip-back",
13441
+ openArgs: [{
13442
+ key: "cycle",
13443
+ label: {
13444
+ en: "Wrap to the last option",
13445
+ it: "Ricomincia dall’ultima opzione"
13446
+ },
13447
+ offer: { kind: "boolean" }
13448
+ }]
13449
+ },
13450
+ {
13451
+ id: "select.first",
13452
+ method: "first",
13453
+ label: {
13454
+ en: "First option",
13455
+ it: "Prima opzione"
13456
+ },
13457
+ phrase: {
13458
+ en: "Select the first option on {device}",
13459
+ it: "Seleziona la prima opzione su {device}"
13460
+ },
13461
+ icon: "chevron-first"
13462
+ },
13463
+ {
13464
+ id: "select.last",
13465
+ method: "last",
13466
+ label: {
13467
+ en: "Last option",
13468
+ it: "Ultima opzione"
13469
+ },
13470
+ phrase: {
13471
+ en: "Select the last option on {device}",
13472
+ it: "Seleziona l’ultima opzione su {device}"
13473
+ },
13474
+ icon: "chevron-last"
13475
+ }
13476
+ ],
13395
13477
  notOperatorFacing: { setValue: "the value shape depends on the control kind (numeric / select / text / datetime) read from status; a typed picker for it is a follow-up of the automations rework" },
13396
13478
  state: [{
13397
13479
  kind: "value",
@@ -19901,6 +19983,18 @@ Object.freeze({
19901
19983
  "dry"
19902
19984
  ]
19903
19985
  },
19986
+ {
19987
+ "path": "action",
19988
+ "valueType": "enum",
19989
+ "enumValues": [
19990
+ "heating",
19991
+ "cooling",
19992
+ "drying",
19993
+ "fan",
19994
+ "idle",
19995
+ "off"
19996
+ ]
19997
+ },
19904
19998
  {
19905
19999
  "path": "fanMode",
19906
20000
  "valueType": "string"
@@ -55012,6 +55106,16 @@ var HvacModeSchema = _enum([
55012
55106
  var ClimateControlStatusSchema = object({
55013
55107
  /** Active HVAC mode. */
55014
55108
  mode: HvacModeSchema,
55109
+ /** What the device is doing now (`heating` while the valve is open, `idle`
55110
+ * at setpoint). Absent or null = the device does not say; never a guess (D393). */
55111
+ action: _enum([
55112
+ "heating",
55113
+ "cooling",
55114
+ "drying",
55115
+ "fan",
55116
+ "idle",
55117
+ "off"
55118
+ ]).nullable().optional(),
55015
55119
  /** Available HVAC modes the device accepts. Subset of HvacMode. */
55016
55120
  availableModes: array(HvacModeSchema),
55017
55121
  /** Active fan mode (`auto` / `low` / `medium` / `high` / `on` / `off`
@@ -55065,6 +55169,40 @@ var ClimateControlStatusSchema = object({
55065
55169
  /** Ms epoch when the slice was last updated (push or command). */
55066
55170
  lastFetchedAt: number$1()
55067
55171
  });
55172
+ /**
55173
+ * Linked room sensor (Customize): the OPERATOR may replace the thermostat's own
55174
+ * `currentTemp` / `currentHumidity` with a sensor in the room. Never linked on
55175
+ * its own (D356). Once linked it ALWAYS replaces the native value, a null
55176
+ * native included — the operator chose the better reading.
55177
+ */
55178
+ var CLIMATE_CUSTOMIZE_DEVICE_TYPES = [DeviceType.Climate];
55179
+ function roomSensorTarget(id, path) {
55180
+ return {
55181
+ id,
55182
+ cardinality: "scalar",
55183
+ vocabulary: {
55184
+ cap: "climate-control",
55185
+ stateField: path
55186
+ },
55187
+ deviceTypes: CLIMATE_CUSTOMIZE_DEVICE_TYPES,
55188
+ apply: "replace",
55189
+ path,
55190
+ sources: [{
55191
+ kind: "numeric",
55192
+ transforms: [{ kind: "identity" }]
55193
+ }],
55194
+ sourceReport: { status: "assignment-status" }
55195
+ };
55196
+ }
55197
+ var CLIMATE_CONTROL_TARGETS = [roomSensorTarget("room-temperature", "currentTemp"), roomSensorTarget("room-humidity", "currentHumidity")];
55198
+ var climateControlCustomize = {
55199
+ version: 1,
55200
+ overridable: CLIMATE_CONTROL_TARGETS.map((target) => ({
55201
+ path: target.path,
55202
+ by: target.id
55203
+ })),
55204
+ targets: CLIMATE_CONTROL_TARGETS
55205
+ };
55068
55206
  var climateControlCapability = {
55069
55207
  name: "climate-control",
55070
55208
  scope: "device",
@@ -55375,6 +55513,7 @@ var climateControlCapability = {
55375
55513
  * on every push without re-querying the provider.
55376
55514
  */
55377
55515
  runtimeState: ClimateControlStatusSchema,
55516
+ customize: climateControlCustomize,
55378
55517
  /**
55379
55518
  * Runtime-state durability: **session** — as `brightness`; `currentTemp` moves continuously and is re-published on connect.
55380
55519
  *
@@ -56563,20 +56702,95 @@ var ControlSetValueInputSchema = discriminatedUnion("kind", [
56563
56702
  value: string().min(1)
56564
56703
  })
56565
56704
  ]);
56705
+ /**
56706
+ * `next` / `previous` input (#544, operator scripts driving a selector).
56707
+ * `cycle` is a TOP-LEVEL default so a direct `ctx.api.control.next` call
56708
+ * (which skips the tRPC router's Zod parse) still gets `true` via
56709
+ * `CAP_INPUT_DEFAULTS` — matching HA's own `select_next` / `select_previous`
56710
+ * default.
56711
+ */
56712
+ var ControlStepInputSchema = object({
56713
+ deviceId: number$1().int().nonnegative(),
56714
+ cycle: boolean().default(true)
56715
+ });
56716
+ /** `first` / `last` input — no `cycle`, there is no boundary to stop at. */
56717
+ var ControlBoundaryInputSchema = object({ deviceId: number$1().int().nonnegative() });
56566
56718
  var controlCapability = {
56567
56719
  name: "control",
56568
56720
  scope: "device",
56569
56721
  deviceNative: true,
56570
56722
  mode: "singleton",
56571
56723
  deviceTypes: [DeviceType.Control],
56572
- methods: { setValue: method(object({
56573
- deviceId: number$1().int().nonnegative(),
56574
- control: ControlSetValueInputSchema
56575
- }), _void(), {
56576
- kind: "mutation",
56577
- auth: "protected",
56578
- notOperatorFacing: "the value shape depends on the control kind (numeric / select / text / datetime) read from status; a typed picker for it is a follow-up of the automations rework"
56579
- }) },
56724
+ methods: {
56725
+ setValue: method(object({
56726
+ deviceId: number$1().int().nonnegative(),
56727
+ control: ControlSetValueInputSchema
56728
+ }), _void(), {
56729
+ kind: "mutation",
56730
+ auth: "protected",
56731
+ notOperatorFacing: "the value shape depends on the control kind (numeric / select / text / datetime) read from status; a typed picker for it is a follow-up of the automations rework"
56732
+ }),
56733
+ /**
56734
+ * Select one step forward through `options` (#544). `providerOptional`
56735
+ * (hence `optionalMethod`): only a `kind: 'select'` provider implements
56736
+ * it — the stepping math is NOT re-derived per provider, it is the one
56737
+ * shared helper `selectNavigationMethods` (`control-select-navigation.ts`)
56738
+ * every select-kind driver spreads in.
56739
+ */
56740
+ next: optionalMethod(ControlStepInputSchema, _void(), {
56741
+ kind: "mutation",
56742
+ auth: "protected",
56743
+ actions: [{
56744
+ id: "select.next",
56745
+ label: t("Next option", "Opzione successiva"),
56746
+ phrase: t("Select the next option on {device}", "Seleziona l’opzione successiva su {device}"),
56747
+ icon: "skip-forward",
56748
+ openArgs: [{
56749
+ key: "cycle",
56750
+ label: t("Wrap to the first option", "Ricomincia dalla prima opzione"),
56751
+ offer: { kind: "boolean" }
56752
+ }]
56753
+ }]
56754
+ }),
56755
+ /** Select one step backward through `options` (#544) — mirrors `next`. */
56756
+ previous: optionalMethod(ControlStepInputSchema, _void(), {
56757
+ kind: "mutation",
56758
+ auth: "protected",
56759
+ actions: [{
56760
+ id: "select.previous",
56761
+ label: t("Previous option", "Opzione precedente"),
56762
+ phrase: t("Select the previous option on {device}", "Seleziona l’opzione precedente su {device}"),
56763
+ icon: "skip-back",
56764
+ openArgs: [{
56765
+ key: "cycle",
56766
+ label: t("Wrap to the last option", "Ricomincia dall’ultima opzione"),
56767
+ offer: { kind: "boolean" }
56768
+ }]
56769
+ }]
56770
+ }),
56771
+ /** Select the first entry of `options` (#544). */
56772
+ first: optionalMethod(ControlBoundaryInputSchema, _void(), {
56773
+ kind: "mutation",
56774
+ auth: "protected",
56775
+ actions: [{
56776
+ id: "select.first",
56777
+ label: t("First option", "Prima opzione"),
56778
+ phrase: t("Select the first option on {device}", "Seleziona la prima opzione su {device}"),
56779
+ icon: "chevron-first"
56780
+ }]
56781
+ }),
56782
+ /** Select the last entry of `options` (#544). */
56783
+ last: optionalMethod(ControlBoundaryInputSchema, _void(), {
56784
+ kind: "mutation",
56785
+ auth: "protected",
56786
+ actions: [{
56787
+ id: "select.last",
56788
+ label: t("Last option", "Ultima opzione"),
56789
+ phrase: t("Select the last option on {device}", "Seleziona l’ultima opzione su {device}"),
56790
+ icon: "chevron-last"
56791
+ }]
56792
+ })
56793
+ },
56580
56794
  status: {
56581
56795
  schema: ControlStatusSchema,
56582
56796
  kind: "push"
@@ -57553,7 +57767,7 @@ var mediaPlayerCapability = {
57553
57767
  ]
57554
57768
  }
57555
57769
  };
57556
- DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Climate, DeviceType.EventEmitter, 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.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway, DeviceType.HeatPump, DeviceType.EnergySystem, 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;
57770
+ 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.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway, DeviceType.HeatPump, DeviceType.EnergySystem, 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;
57557
57771
  var NUMBER = {
57558
57772
  kind: "fixed",
57559
57773
  result: ["number"]
@@ -77852,6 +78066,8 @@ var NcSystemEventKindSchema = _enum([
77852
78066
  "storage-location-low",
77853
78067
  "storage-location-critical",
77854
78068
  "storage-location-ok",
78069
+ "storage-drain-progress",
78070
+ "storage-drain-complete",
77855
78071
  "addon-crash-loop",
77856
78072
  "addon-update-available",
77857
78073
  "server-update-available",
@@ -99180,6 +99396,13 @@ Object.freeze({
99180
99396
  access: "view",
99181
99397
  role: "viewer"
99182
99398
  },
99399
+ "control.first": {
99400
+ capName: "control",
99401
+ capScope: "device",
99402
+ addonId: null,
99403
+ access: "create",
99404
+ role: "viewer"
99405
+ },
99183
99406
  "control.getStatus": {
99184
99407
  capName: "control",
99185
99408
  capScope: "device",
@@ -99187,6 +99410,27 @@ Object.freeze({
99187
99410
  access: "view",
99188
99411
  role: "viewer"
99189
99412
  },
99413
+ "control.last": {
99414
+ capName: "control",
99415
+ capScope: "device",
99416
+ addonId: null,
99417
+ access: "create",
99418
+ role: "viewer"
99419
+ },
99420
+ "control.next": {
99421
+ capName: "control",
99422
+ capScope: "device",
99423
+ addonId: null,
99424
+ access: "create",
99425
+ role: "viewer"
99426
+ },
99427
+ "control.previous": {
99428
+ capName: "control",
99429
+ capScope: "device",
99430
+ addonId: null,
99431
+ access: "create",
99432
+ role: "viewer"
99433
+ },
99190
99434
  "control.setValue": {
99191
99435
  capName: "control",
99192
99436
  capScope: "device",
@@ -108828,11 +109072,31 @@ Object.freeze({
108828
109072
  form: "single",
108829
109073
  optional: false
108830
109074
  }],
109075
+ "control.first": [{
109076
+ name: "deviceId",
109077
+ form: "single",
109078
+ optional: false
109079
+ }],
108831
109080
  "control.getStatus": [{
108832
109081
  name: "deviceId",
108833
109082
  form: "single",
108834
109083
  optional: false
108835
109084
  }],
109085
+ "control.last": [{
109086
+ name: "deviceId",
109087
+ form: "single",
109088
+ optional: false
109089
+ }],
109090
+ "control.next": [{
109091
+ name: "deviceId",
109092
+ form: "single",
109093
+ optional: false
109094
+ }],
109095
+ "control.previous": [{
109096
+ name: "deviceId",
109097
+ form: "single",
109098
+ optional: false
109099
+ }],
108836
109100
  "control.setValue": [{
108837
109101
  name: "deviceId",
108838
109102
  form: "single",
@@ -111734,6 +111998,8 @@ new Map(Object.entries({
111734
111998
  "storage-location-low": "system",
111735
111999
  "storage-location-critical": "system",
111736
112000
  "storage-location-ok": "system",
112001
+ "storage-drain-progress": "system",
112002
+ "storage-drain-complete": "system",
111737
112003
  "alarm-triggered": "alarm",
111738
112004
  "alarm-armed": "alarm",
111739
112005
  "alarm-disarmed": "alarm",
@@ -111869,6 +112135,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
111869
112135
  "storage-location-ok"
111870
112136
  ]
111871
112137
  },
112138
+ {
112139
+ id: "storage-drain",
112140
+ family: "system",
112141
+ label: "Storage drain progress",
112142
+ kinds: ["storage-drain-progress", "storage-drain-complete"]
112143
+ },
111872
112144
  {
111873
112145
  id: "alerts",
111874
112146
  family: "system",
@@ -112063,6 +112335,7 @@ var ALERT_EPISODE = [
112063
112335
  "alert-error",
112064
112336
  "alert-critical-resolved"
112065
112337
  ];
112338
+ var STORAGE_DRAIN = ["storage-drain-progress", "storage-drain-complete"];
112066
112339
  var DEVICE_ATTENTION = ["device-attention-required", "device-attention-resolved"];
112067
112340
  var UPDATES = [
112068
112341
  "addon-update-available",
@@ -112286,8 +112559,16 @@ var STATE_SUMMARY_VARS = [
112286
112559
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
112287
112560
  ([...RULE_TEXT], [...CONSUMABLE]),
112288
112561
  [...RULE_TEXT],
112289
- ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
112290
- ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
112562
+ ([...RULE_TEXT], [
112563
+ ...UPDATES,
112564
+ ...STORAGE_DRAIN,
112565
+ ...ALERT_EPISODE
112566
+ ]),
112567
+ ([...RULE_TEXT], [
112568
+ ...UPDATES,
112569
+ ...STORAGE_DRAIN,
112570
+ ...ALERT_EPISODE
112571
+ ]),
112291
112572
  [...RULE_TEXT],
112292
112573
  [...RULE_TEXT],
112293
112574
  [...RULE_TEXT],
@@ -112301,6 +112582,9 @@ var STATE_SUMMARY_VARS = [
112301
112582
  [...RULE_TEXT],
112302
112583
  [...RULE_TEXT],
112303
112584
  [...RULE_TEXT],
112585
+ ([...RULE_TEXT], [...STORAGE_DRAIN]),
112586
+ ([...RULE_TEXT], [...STORAGE_DRAIN]),
112587
+ [...RULE_TEXT],
112304
112588
  [...RULE_TEXT],
112305
112589
  [...RULE_TEXT],
112306
112590
  [...RULE_TEXT],
@@ -140564,12 +140848,26 @@ var HmChildDevice = class extends BaseDevice {
140564
140848
  }
140565
140849
  });
140566
140850
  }
140851
+ /**
140852
+ * A (channel, parameter) outside the entity's channels that this child still
140853
+ * reads. Default: none. A climate child reads the `STATE` of the device's
140854
+ * floor-heating relay channel (the heat demand); every other parameter of
140855
+ * that channel stays foreign.
140856
+ */
140857
+ readsForeignDatapoint(_channel, _parameter) {
140858
+ return false;
140859
+ }
140860
+ readsForeignEvent(event) {
140861
+ const channel = this.resolveHmDevice()?.channels.find((c) => c.address === event.channel);
140862
+ return channel !== void 0 && this.readsForeignDatapoint(channel, event.parameter);
140863
+ }
140567
140864
  ownsEventChannel(event) {
140568
140865
  const owned = this.channel;
140569
140866
  if (owned === void 0) return true;
140570
140867
  const channel = event.channel;
140571
140868
  if (typeof channel === "string" && channel.length > 0) {
140572
140869
  if (!this.ownedChannels().includes(channel)) {
140870
+ if (this.readsForeignEvent(event)) return true;
140573
140871
  this.logValueDropped(event, "foreign-channel");
140574
140872
  return false;
140575
140873
  }
@@ -140613,8 +140911,9 @@ var HmChildDevice = class extends BaseDevice {
140613
140911
  const now = Date.now();
140614
140912
  const accepted = this.ownedChannels();
140615
140913
  for (const channel of device.channels) {
140616
- if (!accepted.includes(channel.address)) continue;
140914
+ const ownedChannel = accepted.includes(channel.address);
140617
140915
  for (const dp of channel.dataPoints ?? []) {
140916
+ if (!ownedChannel && !this.readsForeignDatapoint(channel, dp.parameter)) continue;
140618
140917
  if (dp.value === null || dp.value === void 0) continue;
140619
140918
  if (!this.isPreferredSource({
140620
140919
  dpId: dp.id,
@@ -140666,12 +140965,13 @@ function isHmOffSetpoint(target, offSetpointC = HM_OFF_SETPOINT_C) {
140666
140965
  * Observed 2026-11-13 via `getParamsetDescription` on `INT0000001:1`: the
140667
140966
  * datapoint is `TYPE INTEGER`, `MIN 0`, `MAX 3`, with no value list. The
140668
140967
  * live CCU therefore delivers the index, not a name.
140669
- * 0 auto, 1 manual heat, 2 party (a timed override — still auto).
140968
+ * 0 auto, 1 manual heat, 2 party (a timed override: mode auto, preset `party`).
140670
140969
  * 3 is absent: unknown, so {@link fromHmSetPointMode} returns null and the
140671
140970
  * caller keeps the previous mode.
140672
140971
  * `CONTROL_MODE` is write-only on HmIP heating groups and always reads `0`;
140673
140972
  * mode is read from here.
140674
140973
  */
140974
+ var HM_SET_POINT_MODE_PARTY = 2;
140675
140975
  var HM_SET_POINT_MODE_BY_INDEX = {
140676
140976
  0: "auto",
140677
140977
  1: "heat",
@@ -140716,6 +141016,19 @@ function fromHmSetPointMode(value) {
140716
141016
  if (mode === void 0) return null;
140717
141017
  return mode === "auto" ? "auto" : "heat";
140718
141018
  }
141019
+ /**
141020
+ * Like {@link fromHmSetPointMode}, but it also says whether the timed override
141021
+ * (index 2 / `PARTY`) is running. The mode stays `auto` under a party; the
141022
+ * override is the `party` preset, as `boost` is.
141023
+ */
141024
+ function readHmSetPointMode(value) {
141025
+ const mode = fromHmSetPointMode(value);
141026
+ if (mode === null) return null;
141027
+ return {
141028
+ mode,
141029
+ party: typeof value === "string" ? value.toUpperCase() === "PARTY" : value === HM_SET_POINT_MODE_PARTY
141030
+ };
141031
+ }
140719
141032
  /** Convert a 0..1 HmIP LEVEL into a 0..100 CamStack position (rounded). */
140720
141033
  function levelToPercent(level) {
140721
141034
  return Math.round(Math.max(0, Math.min(1, level)) * 100);
@@ -140866,13 +141179,51 @@ function modeWithHmOffTarget(previous, target, offSetpointC) {
140866
141179
  if (previous.mode === "off") return previous.lastActiveMode ?? "heat";
140867
141180
  return previous.mode;
140868
141181
  }
141182
+ /** The action a device with a known heat demand reports, or `off` when it is switched off. */
141183
+ function actionFor(mode, demand) {
141184
+ if (mode === "off") return "off";
141185
+ if (demand === null) return null;
141186
+ return demand ? "heating" : "idle";
141187
+ }
141188
+ /** The demand the previous slice recorded in its `action`; unknown when it said `off` or nothing. */
141189
+ function demandOf(previous) {
141190
+ if (previous.action === "heating") return true;
141191
+ if (previous.action === "idle") return false;
141192
+ return null;
141193
+ }
141194
+ /**
141195
+ * A mode change settles the action: off is `off`; LEAVING off forgets the
141196
+ * demand (the valve was shut by the off setpoint and the device has not said
141197
+ * yet, D393); otherwise the last demand stands.
141198
+ */
141199
+ function withModeAction(previous, next) {
141200
+ if (next.mode === previous.mode) return next;
141201
+ const demand = previous.mode === "off" ? null : demandOf(previous);
141202
+ return {
141203
+ ...next,
141204
+ action: actionFor(next.mode, demand)
141205
+ };
141206
+ }
141207
+ /**
141208
+ * Decode a heat-demand report: a floor-heating relay's `STATE` (BWTH `:8`) or a
141209
+ * radiator valve's `LEVEL` (0..1). Switched off wins over any demand.
141210
+ */
141211
+ function decodeClimateDemand(previous, source, value, now) {
141212
+ const demand = source === "floor-direct-state" ? typeof value === "boolean" ? value : null : typeof value === "number" ? value > 0 : null;
141213
+ if (demand === null) return null;
141214
+ return {
141215
+ ...previous,
141216
+ action: actionFor(previous.mode, demand),
141217
+ lastFetchedAt: now
141218
+ };
141219
+ }
140869
141220
  function decodeClimate(previous, parameter, value, now, offSetpointC = HM_OFF_SETPOINT_C) {
140870
- if (parameter === "SET_POINT_TEMPERATURE" && typeof value === "number") return {
141221
+ if (parameter === "SET_POINT_TEMPERATURE" && typeof value === "number") return withModeAction(previous, {
140871
141222
  ...previous,
140872
141223
  target: value,
140873
141224
  mode: modeWithHmOffTarget(previous, value, offSetpointC),
140874
141225
  lastFetchedAt: now
140875
- };
141226
+ });
140876
141227
  if (parameter === "ACTUAL_TEMPERATURE" && typeof value === "number") return {
140877
141228
  ...previous,
140878
141229
  currentTemp: value,
@@ -140884,14 +141235,17 @@ function decodeClimate(previous, parameter, value, now, offSetpointC = HM_OFF_SE
140884
141235
  lastFetchedAt: now
140885
141236
  };
140886
141237
  if (parameter === "SET_POINT_MODE") {
140887
- const mode = fromHmSetPointMode(value);
140888
- if (mode === null) return null;
141238
+ const reading = readHmSetPointMode(value);
141239
+ if (reading === null) return null;
141240
+ const { mode, party } = reading;
140889
141241
  const resolved = mode === "heat" && isHmOffSetpoint(previous.target, offSetpointC) ? "off" : mode;
140890
- return {
141242
+ const preset = party ? "party" : previous.preset === "party" ? "" : previous.preset;
141243
+ return withModeAction(previous, {
140891
141244
  ...previous,
140892
141245
  mode: resolved,
141246
+ preset,
140893
141247
  lastFetchedAt: now
140894
- };
141248
+ });
140895
141249
  }
140896
141250
  if (parameter === "BOOST_MODE" && typeof value === "boolean") return {
140897
141251
  ...previous,
@@ -140944,7 +141298,7 @@ var hmActuatorSchema = hmChildSchema.extend({
140944
141298
  * Status flows back via the facade `valueChanged` stream, decoded by the
140945
141299
  * existing pure decoders (`decodeCover` / `decodeLock` / `decodeClimate`).
140946
141300
  */
140947
- var HmActuatorDevice = class extends HmChildDevice {
141301
+ var HmActuatorDevice = class HmActuatorDevice extends HmChildDevice {
140948
141302
  /** A cover's `stop` drives the channel's real STOP (`coverStop`). */
140949
141303
  features = this.config.values.kind === "cover" ? [DeviceFeature.CoverStoppable] : [];
140950
141304
  kind;
@@ -141071,6 +141425,28 @@ var HmActuatorDevice = class extends HmChildDevice {
141071
141425
  const entity = this.facade?.customEntities().find((e) => e.device === this.address && e.channel === this.actuatorChannel);
141072
141426
  return entity?.kind === "climate" ? entity.minTemp : HM_OFF_SETPOINT_C;
141073
141427
  }
141428
+ /** The channel type of a floor-heating relay's demand report (HmIP-BWTH `:8`). */
141429
+ static FLOOR_DIRECT_CHANNEL_TYPE = "CLIMATECONTROL_FLOOR_DIRECT_TRANSMITTER";
141430
+ static isFloorDirect(channel) {
141431
+ return channel.type === HmActuatorDevice.FLOOR_DIRECT_CHANNEL_TYPE;
141432
+ }
141433
+ /**
141434
+ * A climate child reads the `STATE` of the device's floor-direct transmitter
141435
+ * as its heat demand. It is the ONLY foreign datapoint it takes: the other
141436
+ * parameters of that channel and every other channel (`:9`, `:10`) stay dropped.
141437
+ */
141438
+ readsForeignDatapoint(channel, parameter) {
141439
+ return this.registeredCap === "climate-control" && parameter === "STATE" && HmActuatorDevice.isFloorDirect(channel);
141440
+ }
141441
+ hasFloorDirectChannel() {
141442
+ return this.resolveHmDevice()?.channels.some(HmActuatorDevice.isFloorDirect) === true;
141443
+ }
141444
+ /** Is this event the floor-direct `STATE`, as opposed to the owned channel's own? */
141445
+ isFloorDirectState(event) {
141446
+ if (event.parameter !== "STATE") return false;
141447
+ const channel = this.resolveHmDevice()?.channels.find((c) => c.address === event.channel);
141448
+ return channel !== void 0 && HmActuatorDevice.isFloorDirect(channel);
141449
+ }
141074
141450
  handleValueChanged(event, origin) {
141075
141451
  const now = event.ts || Date.now();
141076
141452
  const { parameter, value } = event;
@@ -141089,7 +141465,7 @@ var HmActuatorDevice = class extends HmChildDevice {
141089
141465
  if (cap === "climate-control") {
141090
141466
  const prev = this.runtimeState.getCapState("climate-control") ?? COLD_CLIMATE;
141091
141467
  const offC = this.climateOffSetpointC();
141092
- const next = decodeClimate(prev, parameter, value, now, offC);
141468
+ const next = this.decodeClimateEvent(prev, event, now, offC);
141093
141469
  if (next === null && parameter === "SET_POINT_MODE") this.ctx.logger.debug("Homematic climate: SET_POINT_MODE unknown — mode unchanged", {
141094
141470
  tags: { deviceId: this.id },
141095
141471
  meta: {
@@ -141103,6 +141479,17 @@ var HmActuatorDevice = class extends HmChildDevice {
141103
141479
  }
141104
141480
  }
141105
141481
  }
141482
+ /**
141483
+ * Heat demand has two sources: the floor relay's `STATE` (BWTH `:8`) and a
141484
+ * radiator valve's `LEVEL`. A device with a floor relay takes its demand from
141485
+ * there only, so a `LEVEL` it also carries cannot contradict it.
141486
+ */
141487
+ decodeClimateEvent(prev, event, now, offC) {
141488
+ const { parameter, value } = event;
141489
+ if (this.isFloorDirectState(event)) return decodeClimateDemand(prev, "floor-direct-state", value, now);
141490
+ if (parameter === "LEVEL" && !this.hasFloorDirectChannel()) return decodeClimateDemand(prev, "valve-level", value, now);
141491
+ return decodeClimate(prev, parameter, value, now, offC);
141492
+ }
141106
141493
  applyCover(parameter, value, now, origin) {
141107
141494
  const prev = this.runtimeState.getCapState("cover") ?? COLD_COVER;
141108
141495
  const next = decodeCover(prev, parameter, value, now);
@@ -45,7 +45,7 @@ async function r() {
45
45
  }
46
46
  },
47
47
  "@camstack/types": {
48
- version: "1.2.567",
48
+ version: "1.2.568",
49
49
  scope: "default",
50
50
  shareConfig: {
51
51
  singleton: !0,
@@ -81,11 +81,11 @@ async function r() {
81
81
  }
82
82
  },
83
83
  "@camstack/ui-library": {
84
- version: "1.2.444",
84
+ version: "1.2.445",
85
85
  scope: "default",
86
86
  shareConfig: {
87
87
  singleton: !0,
88
- requiredVersion: ">=1.2.444",
88
+ requiredVersion: ">=1.2.445",
89
89
  import: !1
90
90
  }
91
91
  },