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