@camstack/addon-provider-homematic 1.2.207 → 1.2.208
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 +7 -0
- package/dist/_stub.js +2 -2
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_page-6DzqqZ3i.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_page-CWWYk9PV.mjs} +4 -4
- package/dist/{_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DR952fPS.mjs → _virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-O65jH-mE.mjs} +1 -1
- package/dist/addon.js +215 -21
- package/dist/addon.mjs +215 -21
- package/dist/{hostInit-CZgDBnHg.mjs → hostInit-D_zf6ohM.mjs} +3 -3
- package/dist/remoteEntry.js +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_provider_homematic_page__remoteEntry_js-ZgMsVU2w.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_provider_homematic_page__remoteEntry_js-Bgts9bVd.mjs} +1 -1
- package/dist/widgets/_stub.js +1 -1
- package/dist/widgets/{_virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_widgets-CtPGHIKn.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_widgets-Dlfyrtfr.mjs} +2 -2
- package/dist/widgets/{_virtual_mf___mfe_internal__addon_provider_homematic_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-7hqlX2gW.mjs → _virtual_mf___mfe_internal__addon_provider_homematic_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DPAzT3m6.mjs} +1 -1
- package/dist/widgets/{hostInit-Cy3RS8VW.mjs → hostInit-Yhkl--bk.mjs} +2 -2
- package/dist/widgets/remoteEntry.js +1 -1
- package/package.json +4 -4
package/dist/addon.mjs
CHANGED
|
@@ -6132,7 +6132,7 @@ var ZodIssueCode = {
|
|
|
6132
6132
|
var ZodFirstPartyTypeKind;
|
|
6133
6133
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6134
6134
|
//#endregion
|
|
6135
|
-
//#region ../types/dist/runtime-capabilities-
|
|
6135
|
+
//#region ../types/dist/runtime-capabilities-B36VcCR6.mjs
|
|
6136
6136
|
/**
|
|
6137
6137
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6138
6138
|
* window to float samples (D455).
|
|
@@ -10725,14 +10725,104 @@ var SubscribeAudioChunksInputSchema = object({
|
|
|
10725
10725
|
var SubscribeAudioChunksResultSchema = object({
|
|
10726
10726
|
/** Opaque id passed to `pullAudioChunks` / `unsubscribeAudioChunks`. */
|
|
10727
10727
|
subscriptionId: string() });
|
|
10728
|
-
var
|
|
10729
|
-
|
|
10730
|
-
|
|
10731
|
-
|
|
10732
|
-
|
|
10733
|
-
|
|
10734
|
-
|
|
10728
|
+
var BrokerStatusSchema = _enum([
|
|
10729
|
+
"idle",
|
|
10730
|
+
"connecting",
|
|
10731
|
+
"streaming",
|
|
10732
|
+
"error",
|
|
10733
|
+
"stopped"
|
|
10734
|
+
]);
|
|
10735
|
+
/**
|
|
10736
|
+
* The encode a derived stream's feeder was last spawned with — the read-only
|
|
10737
|
+
* "effective encode". Read off the ffmpeg argv that runs, so it cannot drift
|
|
10738
|
+
* from what the operator's profile and the carrier's rules resolved to.
|
|
10739
|
+
*/
|
|
10740
|
+
var DerivedEffectiveEncodeSchema = object({
|
|
10741
|
+
/** `-c:v` of the argv (`libx264`, a hardware encoder, `copy`); null when absent. */
|
|
10742
|
+
encoder: string().nullable(),
|
|
10743
|
+
/** Output frame rate; null when the source cadence passes through unmeasured. */
|
|
10744
|
+
fps: number$1().nullable(),
|
|
10745
|
+
gopFrames: number$1(),
|
|
10746
|
+
/** ABR target (`-b:v`), kbps. */
|
|
10747
|
+
targetKbps: number$1().nullable(),
|
|
10748
|
+
/** Ceiling (`-maxrate`), kbps. */
|
|
10749
|
+
capKbps: number$1().nullable(),
|
|
10750
|
+
bufsizeKbps: number$1().nullable(),
|
|
10751
|
+
/**
|
|
10752
|
+
* `copy` = source audio untouched, `aac` = re-encoded, `profile` = operator's
|
|
10753
|
+
* encode, `none` = the operator dropped the track.
|
|
10754
|
+
*/
|
|
10755
|
+
audio: _enum([
|
|
10756
|
+
"copy",
|
|
10757
|
+
"aac",
|
|
10758
|
+
"profile",
|
|
10759
|
+
"none"
|
|
10760
|
+
])
|
|
10761
|
+
});
|
|
10762
|
+
/**
|
|
10763
|
+
* A derived stream's source: a **profile** slot (follows whatever physical
|
|
10764
|
+
* stream that profile is assigned to) or a **camStream** (pinned to one
|
|
10765
|
+
* physical stream regardless of assignment).
|
|
10766
|
+
*/
|
|
10767
|
+
var DerivedSourceRefSchema = union([object({
|
|
10768
|
+
kind: literal("profile"),
|
|
10769
|
+
profile: _enum([
|
|
10770
|
+
"high",
|
|
10771
|
+
"mid",
|
|
10772
|
+
"low"
|
|
10773
|
+
])
|
|
10774
|
+
}), object({
|
|
10775
|
+
kind: literal("camStream"),
|
|
10776
|
+
camStreamId: string()
|
|
10777
|
+
})]);
|
|
10778
|
+
object({
|
|
10779
|
+
width: number$1().nullable(),
|
|
10780
|
+
height: number$1().nullable(),
|
|
10781
|
+
fps: number$1().nullable(),
|
|
10782
|
+
idrIntervalMs: number$1().nullable(),
|
|
10783
|
+
/** `h264` / `h265` when observed. */
|
|
10784
|
+
videoCodec: _enum(["h264", "h265"]).nullable(),
|
|
10785
|
+
/** Upper-cased SDP name (`AAC`, `PCMU`) when the source has an audio track. */
|
|
10786
|
+
audioCodec: string().nullable()
|
|
10787
|
+
});
|
|
10788
|
+
/**
|
|
10789
|
+
* The full effective encode of a derived-stream profile: the stats the broker
|
|
10790
|
+
* publishes in `getBrokerStats.derivedEncode` plus the resolved geometry, the
|
|
10791
|
+
* flags that say WHY a number differs from the request, and the ffmpeg output
|
|
10792
|
+
* argv. One function (`computeDerivedEncode`) produces it for both the
|
|
10793
|
+
* broker's start path and `previewDerivedEncode`.
|
|
10794
|
+
*/
|
|
10795
|
+
var DerivedEncodePreviewSchema = DerivedEffectiveEncodeSchema.extend({
|
|
10796
|
+
/** Final picture size; `null` when neither the profile nor the source names it. */
|
|
10797
|
+
width: number$1().nullable(),
|
|
10798
|
+
height: number$1().nullable(),
|
|
10799
|
+
/** `h264` / `h265` re-encode, `copy` remux; `null` is never returned (the encoder always resolves). */
|
|
10800
|
+
videoCodec: _enum([
|
|
10801
|
+
"h264",
|
|
10802
|
+
"h265",
|
|
10803
|
+
"copy"
|
|
10735
10804
|
]),
|
|
10805
|
+
requestedFps: number$1().nullable(),
|
|
10806
|
+
/** The requested fps exceeded the source and the source cadence won. */
|
|
10807
|
+
fpsClampedToSource: boolean(),
|
|
10808
|
+
/** Lowest bitrate accepted for this geometry x fps; `null` when unknown. */
|
|
10809
|
+
floorKbps: number$1().nullable(),
|
|
10810
|
+
/** The explicit bitrate was below the floor and was raised to it. */
|
|
10811
|
+
raisedToFloor: boolean(),
|
|
10812
|
+
/** What the profile asked for when it was raised; `null` otherwise. */
|
|
10813
|
+
requestedKbps: number$1().nullable(),
|
|
10814
|
+
/** Seconds between keyframes; `null` when the output cadence is unknown. */
|
|
10815
|
+
keyframeIntervalSec: number$1().nullable(),
|
|
10816
|
+
/** The ffmpeg argv, with the source loopback URL in `-i`. */
|
|
10817
|
+
args: array(string())
|
|
10818
|
+
});
|
|
10819
|
+
/** Result of `previewDerivedEncode`: a plan, or the reason there is none. */
|
|
10820
|
+
var PreviewDerivedEncodeResultSchema = discriminatedUnion("kind", [object({
|
|
10821
|
+
kind: literal("preview"),
|
|
10822
|
+
preview: DerivedEncodePreviewSchema
|
|
10823
|
+
}), object({ kind: literal("no-source") })]);
|
|
10824
|
+
var BrokerStatsSchema = object({
|
|
10825
|
+
status: BrokerStatusSchema,
|
|
10736
10826
|
inputFps: number$1(),
|
|
10737
10827
|
encodedSubscribers: number$1(),
|
|
10738
10828
|
uptimeMs: number$1(),
|
|
@@ -10772,7 +10862,9 @@ var BrokerStatsSchema = object({
|
|
|
10772
10862
|
* alone that the mute is on the packet path and not merely persisted.
|
|
10773
10863
|
*/
|
|
10774
10864
|
audioMuted: boolean().optional(),
|
|
10775
|
-
audioMutedDropped: number$1().optional()
|
|
10865
|
+
audioMutedDropped: number$1().optional(),
|
|
10866
|
+
/** Present for a derived broker once its feeder has spawned at least once. */
|
|
10867
|
+
derivedEncode: DerivedEffectiveEncodeSchema.optional()
|
|
10776
10868
|
});
|
|
10777
10869
|
/**
|
|
10778
10870
|
* Exporter-facing "profile restream" entry. Returned by
|
|
@@ -23207,7 +23299,7 @@ Object.freeze({
|
|
|
23207
23299
|
}
|
|
23208
23300
|
});
|
|
23209
23301
|
//#endregion
|
|
23210
|
-
//#region ../types/dist/implemented-methods-
|
|
23302
|
+
//#region ../types/dist/implemented-methods-BUBqZ2a0.mjs
|
|
23211
23303
|
/**
|
|
23212
23304
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
23213
23305
|
*
|
|
@@ -25815,10 +25907,16 @@ looseObject({
|
|
|
25815
25907
|
TargetSchema.omit({ id: true });
|
|
25816
25908
|
var EncodeProfileSchema = object({
|
|
25817
25909
|
video: object({
|
|
25910
|
+
/**
|
|
25911
|
+
* `h264` / `h265` re-encode into that codec; `source` re-encodes in whatever
|
|
25912
|
+
* codec the source speaks (a resize that keeps the codec); `copy` remuxes
|
|
25913
|
+
* with no encode at all (so no resize either).
|
|
25914
|
+
*/
|
|
25818
25915
|
codec: _enum([
|
|
25819
25916
|
"h264",
|
|
25820
25917
|
"h265",
|
|
25821
|
-
"copy"
|
|
25918
|
+
"copy",
|
|
25919
|
+
"source"
|
|
25822
25920
|
]),
|
|
25823
25921
|
profile: _enum([
|
|
25824
25922
|
"baseline",
|
|
@@ -25870,12 +25968,14 @@ var EncodeProfileSchema = object({
|
|
|
25870
25968
|
singleSlicePerFrame: boolean().optional()
|
|
25871
25969
|
}),
|
|
25872
25970
|
audio: union([literal("passthrough"), object({
|
|
25971
|
+
/** `none` drops the audio track (`-an`); `copy` carries the source's. */
|
|
25873
25972
|
codec: _enum([
|
|
25874
25973
|
"opus",
|
|
25875
25974
|
"aac",
|
|
25876
25975
|
"pcmu",
|
|
25877
25976
|
"pcma",
|
|
25878
|
-
"copy"
|
|
25977
|
+
"copy",
|
|
25978
|
+
"none"
|
|
25879
25979
|
]),
|
|
25880
25980
|
bitrateKbps: number$1().int().positive().optional(),
|
|
25881
25981
|
sampleRateHz: number$1().int().positive().optional(),
|
|
@@ -56597,7 +56697,11 @@ method(object({
|
|
|
56597
56697
|
}).nullable(), {
|
|
56598
56698
|
kind: "mutation",
|
|
56599
56699
|
auth: "admin"
|
|
56600
|
-
}), method(_void(), array(CameraStreamSchema).readonly()), method(_void(), array(ProfileSlotSchema).readonly()), method(object({ brokerId: string() }), BrokerStatsSchema), method(object({
|
|
56700
|
+
}), method(_void(), array(CameraStreamSchema).readonly()), method(_void(), array(ProfileSlotSchema).readonly()), method(object({ brokerId: string() }), BrokerStatsSchema), method(object({
|
|
56701
|
+
deviceId: number$1().int().nonnegative(),
|
|
56702
|
+
profile: EncodeProfileSchema,
|
|
56703
|
+
source: DerivedSourceRefSchema.optional()
|
|
56704
|
+
}), PreviewDerivedEncodeResultSchema), method(object({ brokerId: string() }), object({
|
|
56601
56705
|
probed: boolean(),
|
|
56602
56706
|
summary: string()
|
|
56603
56707
|
}), {
|
|
@@ -76989,7 +77093,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
76989
77093
|
/** Pool deaths inside the current window. */
|
|
76990
77094
|
deaths: number$1(),
|
|
76991
77095
|
/** The last death's message. */
|
|
76992
|
-
lastError: string()
|
|
77096
|
+
lastError: string(),
|
|
77097
|
+
/**
|
|
77098
|
+
* Present when the device is ABSENT rather than dead: the runtime
|
|
77099
|
+
* itself enumerates no such device (`no-gpu-device` — OpenVINO sees
|
|
77100
|
+
* no supported GPU; driver/runtime does not support this iGPU).
|
|
77101
|
+
*/
|
|
77102
|
+
absentReason: _enum(["no-gpu-device"]).optional()
|
|
76993
77103
|
})).readonly() })), method(object({
|
|
76994
77104
|
nodeId: string(),
|
|
76995
77105
|
deviceKey: string()
|
|
@@ -77883,7 +77993,8 @@ var StatelessStepRefusalSchema = _enum([
|
|
|
77883
77993
|
"unknown-step",
|
|
77884
77994
|
"model-not-servable",
|
|
77885
77995
|
"unreadable-frame",
|
|
77886
|
-
"execution-failed"
|
|
77996
|
+
"execution-failed",
|
|
77997
|
+
"no-eligible-device"
|
|
77887
77998
|
]);
|
|
77888
77999
|
/**
|
|
77889
78000
|
* Answer to `runStatelessStep` — a discriminated union rather than a nullable
|
|
@@ -85272,7 +85383,8 @@ var InferenceDeviceExclusionReasonSchema = _enum([
|
|
|
85272
85383
|
"unavailable",
|
|
85273
85384
|
"cannot-host-camera-root",
|
|
85274
85385
|
"accelerator-preferred",
|
|
85275
|
-
"root-switched-off"
|
|
85386
|
+
"root-switched-off",
|
|
85387
|
+
"no-gpu-device"
|
|
85276
85388
|
]);
|
|
85277
85389
|
var NodeInferenceDeviceSchema = object({
|
|
85278
85390
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
@@ -85305,7 +85417,13 @@ var NodeInferenceDeviceSchema = object({
|
|
|
85305
85417
|
enabled: boolean(),
|
|
85306
85418
|
/** Relative balancer weight for the enabled device (default 1). */
|
|
85307
85419
|
weight: number$1(),
|
|
85308
|
-
/**
|
|
85420
|
+
/**
|
|
85421
|
+
* Per-device concurrent-session cap; null = unlimited (multi-device C4). A
|
|
85422
|
+
* limit: a camera no device can take within its cap stays on the node's
|
|
85423
|
+
* default pool — EXCEPT when that default pool is an excluded device
|
|
85424
|
+
* (`defaultPoolExcluded`), where it goes over the cap on the least-loaded
|
|
85425
|
+
* eligible device instead (#610).
|
|
85426
|
+
*/
|
|
85309
85427
|
maxSessions: number$1().nullable(),
|
|
85310
85428
|
/** Object-detection model the executor defaults to for this deviceKey. */
|
|
85311
85429
|
defaultModelId: string(),
|
|
@@ -85355,7 +85473,15 @@ var NodeInferenceDevicesSchema = object({
|
|
|
85355
85473
|
nodeId: string(),
|
|
85356
85474
|
/** False when the node's platform-probe was unreachable (no live device set). */
|
|
85357
85475
|
reachable: boolean(),
|
|
85358
|
-
devices: array(NodeInferenceDeviceSchema).readonly()
|
|
85476
|
+
devices: array(NodeInferenceDeviceSchema).readonly(),
|
|
85477
|
+
/**
|
|
85478
|
+
* The election left NO device and one was excluded because the operator
|
|
85479
|
+
* turned it off or it is not functional (#610): the runner's default pool is
|
|
85480
|
+
* that device, so work with no explicit device (a stateless step, a bench with
|
|
85481
|
+
* no `deviceKey`) is refused rather than run there. Absent = an orchestrator
|
|
85482
|
+
* older than the field, or an unreachable node: nothing is claimed (D315).
|
|
85483
|
+
*/
|
|
85484
|
+
defaultPoolExcluded: boolean().optional()
|
|
85359
85485
|
});
|
|
85360
85486
|
/**
|
|
85361
85487
|
* The CLUSTER switch of one pipeline step (D1065):
|
|
@@ -112056,6 +112182,13 @@ Object.freeze({
|
|
|
112056
112182
|
access: "view",
|
|
112057
112183
|
role: "admin"
|
|
112058
112184
|
},
|
|
112185
|
+
"streamBroker.previewDerivedEncode": {
|
|
112186
|
+
capName: "stream-broker",
|
|
112187
|
+
capScope: "system",
|
|
112188
|
+
addonId: null,
|
|
112189
|
+
access: "view",
|
|
112190
|
+
role: "admin"
|
|
112191
|
+
},
|
|
112059
112192
|
"streamBroker.probeStream": {
|
|
112060
112193
|
capName: "stream-broker",
|
|
112061
112194
|
capScope: "system",
|
|
@@ -116502,6 +116635,11 @@ Object.freeze({
|
|
|
116502
116635
|
form: "single",
|
|
116503
116636
|
optional: false
|
|
116504
116637
|
}],
|
|
116638
|
+
"streamBroker.previewDerivedEncode": [{
|
|
116639
|
+
name: "deviceId",
|
|
116640
|
+
form: "single",
|
|
116641
|
+
optional: false
|
|
116642
|
+
}],
|
|
116505
116643
|
"streamBroker.produceEventMedia": [{
|
|
116506
116644
|
name: "deviceId",
|
|
116507
116645
|
form: "single",
|
|
@@ -119477,12 +119615,38 @@ function toCcuDeviceRow(device) {
|
|
|
119477
119615
|
}))
|
|
119478
119616
|
};
|
|
119479
119617
|
}
|
|
119618
|
+
/** Per live facade: a reconnect builds a new facade, whose names were just read. */
|
|
119619
|
+
var states = /* @__PURE__ */ new WeakMap();
|
|
119620
|
+
/**
|
|
119621
|
+
* Serve-and-revalidate for the CCU names a page shows: the caller answers from
|
|
119622
|
+
* the names the facade holds now, and when they are older than the window one
|
|
119623
|
+
* background re-read starts, so the next read shows the new names. No timer:
|
|
119624
|
+
* only a read starts it, and a read never waits for it.
|
|
119625
|
+
*/
|
|
119626
|
+
function revalidateCcuNames(deps, integrationId, facade, now = Date.now()) {
|
|
119627
|
+
const state = states.get(facade);
|
|
119628
|
+
if (state !== void 0 && (state.inFlight || now - state.startedAt < 6e4)) return;
|
|
119629
|
+
const next = {
|
|
119630
|
+
startedAt: now,
|
|
119631
|
+
inFlight: true
|
|
119632
|
+
};
|
|
119633
|
+
states.set(facade, next);
|
|
119634
|
+
facade.refreshNames().catch((err) => {
|
|
119635
|
+
deps.logger.warn("Homematic: CCU names could not be re-read, keeping the ones shown", { meta: {
|
|
119636
|
+
integrationId,
|
|
119637
|
+
error: errorText(err)
|
|
119638
|
+
} });
|
|
119639
|
+
}).finally(() => {
|
|
119640
|
+
next.inFlight = false;
|
|
119641
|
+
});
|
|
119642
|
+
}
|
|
119480
119643
|
//#endregion
|
|
119481
119644
|
//#region src/ccu/ccu-devices-actions.ts
|
|
119482
119645
|
/** The CCU device list: every device the CCU knows, with its radio and maintenance health. */
|
|
119483
119646
|
function buildCcuDevicesHandlers(deps) {
|
|
119484
119647
|
return { listCcuDevices: async (input) => {
|
|
119485
119648
|
const facade = requireFacade(deps, input.integrationId);
|
|
119649
|
+
revalidateCcuNames(deps, input.integrationId, facade);
|
|
119486
119650
|
const adopted = await deps.adoptedAddresses(input.integrationId);
|
|
119487
119651
|
return { devices: await Promise.all(facade.devices().map(async (device) => {
|
|
119488
119652
|
const links = await keyChannelsForDevice(deps, input.integrationId, device, adopted);
|
|
@@ -119962,8 +120126,15 @@ var SetValueInputSchema = IntegrationRefSchema.extend({
|
|
|
119962
120126
|
});
|
|
119963
120127
|
//#endregion
|
|
119964
120128
|
//#region src/ccu/ccu-heating-actions.ts
|
|
119965
|
-
/**
|
|
119966
|
-
|
|
120129
|
+
/**
|
|
120130
|
+
* Channel types the CCU accepts as heating-group members: the climate channel
|
|
120131
|
+
* that both reports and is commanded (`*_TRANSCEIVER`: HmIP thermostats and
|
|
120132
|
+
* radiator valves `:1`, floor-heating actuators, the HomeMatic RT thermostat),
|
|
120133
|
+
* and the classic wall thermostat's `THERMALCONTROL_TRANSMIT`. The device's other
|
|
120134
|
+
* climate channels (`*_RECEIVER`, `*_TRANSMITTER`: link endpoints for the
|
|
120135
|
+
* shutter contact, key, floor sensor, boiler demand) are not members.
|
|
120136
|
+
*/
|
|
120137
|
+
var HEATING_GROUP_MEMBER = /^(?:HEATING_)?CLIMATECONTROL_(?:RT_|FLOOR_)?TRANSCEIVER$|^THERMALCONTROL_TRANSMIT$/;
|
|
119967
120138
|
function deviceAddressOf$1(channelAddress) {
|
|
119968
120139
|
const colon = channelAddress.indexOf(":");
|
|
119969
120140
|
return colon === -1 ? channelAddress : channelAddress.slice(0, colon);
|
|
@@ -119985,7 +120156,7 @@ function toGroup$1(group, names) {
|
|
|
119985
120156
|
}
|
|
119986
120157
|
function candidatesOf(devices) {
|
|
119987
120158
|
const out = [];
|
|
119988
|
-
for (const device of devices) for (const channel of device.channels) if (channel.type !== void 0 &&
|
|
120159
|
+
for (const device of devices) for (const channel of device.channels) if (channel.type !== void 0 && HEATING_GROUP_MEMBER.test(channel.type)) out.push({
|
|
119989
120160
|
address: channel.address,
|
|
119990
120161
|
type: channel.type,
|
|
119991
120162
|
deviceName: device.name ?? null
|
|
@@ -120006,6 +120177,7 @@ function buildCcuHeatingHandlers(deps) {
|
|
|
120006
120177
|
return {
|
|
120007
120178
|
listHeatingGroups: async (input) => {
|
|
120008
120179
|
const facade = requireFacade(deps, input.integrationId);
|
|
120180
|
+
revalidateCcuNames(deps, input.integrationId, facade);
|
|
120009
120181
|
const devices = facade.devices();
|
|
120010
120182
|
const names = new Map(devices.map((device) => [device.address, device.name ?? null]));
|
|
120011
120183
|
let groups = [];
|
|
@@ -142441,6 +142613,16 @@ var CentralUnit = class {
|
|
|
142441
142613
|
}
|
|
142442
142614
|
}
|
|
142443
142615
|
/**
|
|
142616
|
+
* Re-read the WebUI names, rooms and functions and keep them for later
|
|
142617
|
+
* discoveries. Resolves `undefined` (and keeps the previous snapshot) when
|
|
142618
|
+
* there is no WebUI login or the read failed.
|
|
142619
|
+
*/
|
|
142620
|
+
async refreshDetails() {
|
|
142621
|
+
const fresh = await this.fetchDetails();
|
|
142622
|
+
if (fresh !== void 0) this.details = fresh;
|
|
142623
|
+
return fresh;
|
|
142624
|
+
}
|
|
142625
|
+
/**
|
|
142444
142626
|
* Incrementally (re-)discover a set of device addresses on an interface. Used
|
|
142445
142627
|
* by `newDevices` / `replaceDevice` / `readdedDevice`. Re-runs the full
|
|
142446
142628
|
* interface discovery (idempotent: the caches dedup) and re-emits the touched
|
|
@@ -142449,6 +142631,7 @@ var CentralUnit = class {
|
|
|
142449
142631
|
async discoverAddresses(interfaceId2, addresses, publish) {
|
|
142450
142632
|
const runtime = this.runtimes.get(interfaceId2);
|
|
142451
142633
|
if (runtime === void 0) return;
|
|
142634
|
+
if (publish) await this.refreshDetails();
|
|
142452
142635
|
const nodes = await discoverInterface({
|
|
142453
142636
|
source: runtime.client,
|
|
142454
142637
|
deviceCache: this.deviceCache,
|
|
@@ -144198,6 +144381,17 @@ var Homematic = class {
|
|
|
144198
144381
|
devices() {
|
|
144199
144382
|
return [...this.#devicesByAddress.values()].map((device) => toHmDevice(device, this.#roomsByDevice.get(device.address), this.#functionsByDevice.get(device.address), this.#renamedNames));
|
|
144200
144383
|
}
|
|
144384
|
+
/**
|
|
144385
|
+
* Re-read device and channel names from the CCU WebUI, so a rename made on
|
|
144386
|
+
* the CCU (or a name given after pairing) shows in `devices()`. Keeps the
|
|
144387
|
+
* names it has when there are no WebUI credentials or the read fails.
|
|
144388
|
+
*/
|
|
144389
|
+
async refreshNames() {
|
|
144390
|
+
const details = await this.#central.refreshDetails();
|
|
144391
|
+
if (details === void 0) return;
|
|
144392
|
+
this.#renamedNames.clear();
|
|
144393
|
+
for (const [address, name2] of details.nameByAddress) this.#renamedNames.set(address, name2);
|
|
144394
|
+
}
|
|
144201
144395
|
/** Current value of a data point (resolving the ref). */
|
|
144202
144396
|
getValue(ref) {
|
|
144203
144397
|
return this.#resolveDataPoint(ref).value;
|
|
@@ -45,7 +45,7 @@ async function r() {
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"@camstack/types": {
|
|
48
|
-
version: "1.2.
|
|
48
|
+
version: "1.2.600",
|
|
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.
|
|
84
|
+
version: "1.2.474",
|
|
85
85
|
scope: "default",
|
|
86
86
|
shareConfig: {
|
|
87
87
|
singleton: !0,
|
|
88
|
-
requiredVersion: ">=1.2.
|
|
88
|
+
requiredVersion: ">=1.2.474",
|
|
89
89
|
import: !1
|
|
90
90
|
}
|
|
91
91
|
},
|
package/dist/remoteEntry.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_provider_homematic_page__remoteEntry_js-
|
|
1
|
+
import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_provider_homematic_page__remoteEntry_js-Bgts9bVd.mjs";
|
|
2
2
|
export { t as get, e as init };
|
|
@@ -2753,7 +2753,7 @@ async function rr(e) {
|
|
|
2753
2753
|
}
|
|
2754
2754
|
}
|
|
2755
2755
|
async function ir() {
|
|
2756
|
-
return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_page-
|
|
2756
|
+
return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_page-CWWYk9PV.mjs")).catch((e) => {
|
|
2757
2757
|
throw tr = void 0, e;
|
|
2758
2758
|
}), tr;
|
|
2759
2759
|
}
|
package/dist/widgets/_stub.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "./_virtual_mf___mfe_internal__addon_provider_homematic_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "./_virtual_mf___mfe_internal__addon_provider_homematic_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DPAzT3m6.mjs";
|
|
2
2
|
import { a as p, i as m, n as h, o as ee, r as g, s as _, t as v } from "./_virtual_mf___mfe_internal__addon_provider_homematic_widgets__loadShare__react__loadShare__.js-Cz6ebdBh.mjs";
|
|
3
3
|
import { n as y, t as b } from "./_virtual_mf___mfe_internal__addon_provider_homematic_widgets__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-B8RWlLTT.mjs";
|
|
4
4
|
//#region ../../node_modules/zod/v4/core/core.js
|
|
@@ -18,7 +18,7 @@ var e = {
|
|
|
18
18
|
},
|
|
19
19
|
"@camstack/types": {
|
|
20
20
|
name: "@camstack/types",
|
|
21
|
-
version: "1.2.
|
|
21
|
+
version: "1.2.600",
|
|
22
22
|
scope: ["default"],
|
|
23
23
|
loaded: !1,
|
|
24
24
|
from: "addon_provider_homematic_widgets",
|
|
@@ -33,7 +33,7 @@ var e = {
|
|
|
33
33
|
},
|
|
34
34
|
"@camstack/ui-library": {
|
|
35
35
|
name: "@camstack/ui-library",
|
|
36
|
-
version: "1.2.
|
|
36
|
+
version: "1.2.474",
|
|
37
37
|
scope: ["default"],
|
|
38
38
|
loaded: !1,
|
|
39
39
|
from: "addon_provider_homematic_widgets",
|