homematic-manager 3.4.0 → 3.4.2

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.
@@ -506,7 +506,7 @@ export class Backend {
506
506
  case 'paramset.valueStates':
507
507
  return this.#manager instanceof LiteInterfaces ? this.#manager.valueStates(p[0], p[1]) : {};
508
508
  case 'paramset.id':
509
- return this.#paramsetId(p[0], p[1]);
509
+ return this.#paramsetId(p[0], p[1], p[2]);
510
510
  case 'channel.mode':
511
511
  return this.#channelMode(p[0], p[1]);
512
512
  case 'paramset.description':
@@ -1365,17 +1365,18 @@ export class Backend {
1365
1365
  /**
1366
1366
  * Task 64: `getParamsetId(address, MASTER)`, once per address and connection. An interface
1367
1367
  * without the method (CUxD, a custom one) or a refusal is `''`, remembered as well, so the
1368
- * dialog falls back to the channel type without asking again.
1368
+ * dialog falls back to the channel type without asking again. Task 108: the same for `LINK`.
1369
1369
  */
1370
- async #paramsetId(interfaceName, address) {
1371
- const key = `${interfaceName}|${address}`;
1370
+ async #paramsetId(interfaceName, address, paramsetType) {
1371
+ const type = paramsetType === 'LINK' ? 'LINK' : 'MASTER';
1372
+ const key = `${interfaceName}|${address}|${type}`;
1372
1373
  const known = this.#paramsetIds.get(key);
1373
1374
  if (known !== undefined) {
1374
1375
  return known;
1375
1376
  }
1376
1377
  let id;
1377
1378
  try {
1378
- const answer = await this.#read(interfaceName, 'getParamsetId', [address, 'MASTER']);
1379
+ const answer = await this.#read(interfaceName, 'getParamsetId', [address, type]);
1379
1380
  id = typeof answer === 'string' ? answer : '';
1380
1381
  }
1381
1382
  catch (error) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homematic-manager/backend",
3
- "version": "3.4.0",
3
+ "version": "3.4.2",
4
4
  "type": "module",
5
5
  "description": "Homematic Manager backend: XML-RPC/BIN-RPC clients and callback servers, caches, optional ReGa",
6
6
  "license": "AGPL-3.0-or-later",
@@ -1246,10 +1246,12 @@ export interface ApiMethods {
1246
1246
  };
1247
1247
  /**
1248
1248
  * Task 64: what `getParamsetId(address, MASTER)` answers - the key the WebUI picks a MASTER form
1249
- * by. `''` where the interface has no such method or refuses it; cached per address.
1249
+ * by. `''` where the interface has no such method or refuses it; cached per address. Task 108:
1250
+ * `paramsetType` `LINK` asks for the link easy mode's key instead (a BidCos receiver's
1251
+ * `<paramid>.tcl`); `MASTER` when left out.
1250
1252
  */
1251
1253
  'paramset.id': {
1252
- params: [interfaceName: string, address: string];
1254
+ params: [interfaceName: string, address: string, paramsetType?: 'MASTER' | 'LINK'];
1253
1255
  result: string;
1254
1256
  };
1255
1257
  /**
@@ -50,6 +50,12 @@ export interface LinkProfile {
50
50
  * dialog then shows every parameter.
51
51
  */
52
52
  controls?: EasyControl[];
53
+ /**
54
+ * B-98: values an older WebUI wrote for a parameter of this profile (`LONG_PROFILE_ACTION_TYPE` 5
55
+ * of the shutter profiles before June 2026). Detection takes them only where no profile fits the
56
+ * link as the data has it; applying the profile keeps such a value where the link holds it.
57
+ */
58
+ legacy?: Record<string, Array<number | string | boolean>>;
53
59
  }
54
60
  /**
55
61
  * One control of the CCU easy mode's form of a profile (task 62). `requires` lists parameters the
@@ -123,7 +123,8 @@ export declare class EasyModeEngine {
123
123
  /**
124
124
  * The profiles a receiver channel type offers for a given sender channel type, expert first.
125
125
  * Aliases are followed (`OPTICAL_SIGNAL_RECEIVER` -> `DIMMER_VIRTUAL_RECEIVER` -> `DIMMER`),
126
- * and the expert profile is always present even when the data does not carry it.
126
+ * and the expert profile is always present even when the data does not carry it. B-98: where
127
+ * eQ-3 changed a profile, it also takes what the older WebUI wrote ({@link withLegacyValues}).
127
128
  */
128
129
  profilesFor(receiverType: string, senderType: string): Promise<LinkProfile[]>;
129
130
  /**
@@ -153,12 +154,12 @@ export declare class EasyModeEngine {
153
154
  * "Schalter ein" and "Schalter ein / aus" differ in the jump table (`*_JT_ON` 1/3 or 4/6) -
154
155
  * so a toggle link was shown as "switch on", which has more fixed parameters.
155
156
  *
156
- * Order: `UI_HINT` when its profile fits (`0`, the expert view, is taken as it is); otherwise
157
- * the fitting profile the link has the most named parameters of, then the one with more fixed
158
- * parameters (a staircase light is a "switch on" with a fixed time: the more specific one), then
159
- * the one that lacks fewer, then the lower id - the WebUI takes the first fitting one by id, and
160
- * where only one fits, as for B-77's pair, the two agree; last a `UI_HINT` whose profile no
161
- * longer fits, as before.
157
+ * Order: `UI_HINT` when its profile fits (`0`, the expert view, is taken as it is) - the CCU writes
158
+ * it on BidCos, and it names the profile the user chose where two fit; otherwise the first fitting
159
+ * profile by number, as `get_cur_profile2` takes it (task 108: B-77 preferred the profile with the
160
+ * most named, then fixed parameters, which showed a CCU-made "auf / zu & hoch / herunter" link of a
161
+ * wired shutter as "Toggle", where the WebUI shows the former); last a `UI_HINT` whose profile no longer
162
+ * fits, as before.
162
163
  *
163
164
  * `undefined` means "none of them"; the caller then shows the expert view.
164
165
  */
@@ -12,6 +12,7 @@
12
12
  * values for a delay or a level, and rules between parameters.
13
13
  */
14
14
  import { parameterOrder } from '../paramset/description.js';
15
+ import { legacyProfile, withLegacyValues } from './legacyValues.js';
15
16
  /** The parameter the CCU stores the chosen profile in, inside the receiver's LINK paramset. */
16
17
  export const UI_HINT = 'UI_HINT';
17
18
  /** Profile 0 is the expert view: no constraints, every parameter editable. */
@@ -92,13 +93,15 @@ export class EasyModeEngine {
92
93
  /**
93
94
  * The profiles a receiver channel type offers for a given sender channel type, expert first.
94
95
  * Aliases are followed (`OPTICAL_SIGNAL_RECEIVER` -> `DIMMER_VIRTUAL_RECEIVER` -> `DIMMER`),
95
- * and the expert profile is always present even when the data does not carry it.
96
+ * and the expert profile is always present even when the data does not carry it. B-98: where
97
+ * eQ-3 changed a profile, it also takes what the older WebUI wrote ({@link withLegacyValues}).
96
98
  */
97
99
  async profilesFor(receiverType, senderType) {
98
100
  const aliases = await this.#source.receiverTypeAliases();
99
101
  const resolved = resolveAlias(receiverType, aliases);
100
102
  const profiles = await this.#source.receiverProfiles(resolved);
101
- const list = [...(profiles?.senders[senderType] ?? [])];
103
+ // B-98: the values an older WebUI wrote, for detection where nothing else fits
104
+ const list = withLegacyValues(resolved, senderType, profiles?.senders[senderType] ?? []);
102
105
  if (!list.some((profile) => profile.id === EXPERT_PROFILE_ID)) {
103
106
  list.push(EXPERT_PROFILE);
104
107
  }
@@ -127,7 +130,9 @@ export class EasyModeEngine {
127
130
  const keepCurrent = options.keepCurrent ?? true;
128
131
  const values = { ...current };
129
132
  const problems = [];
130
- for (const [param, constraint] of Object.entries(profile.params)) {
133
+ // B-98: a value an older WebUI wrote stays where the link holds it
134
+ const params = keepCurrent ? legacyProfile(profile).params : profile.params;
135
+ for (const [param, constraint] of Object.entries(params)) {
131
136
  if (!(param in description)) {
132
137
  problems.push({
133
138
  param,
@@ -163,12 +168,12 @@ export class EasyModeEngine {
163
168
  * "Schalter ein" and "Schalter ein / aus" differ in the jump table (`*_JT_ON` 1/3 or 4/6) -
164
169
  * so a toggle link was shown as "switch on", which has more fixed parameters.
165
170
  *
166
- * Order: `UI_HINT` when its profile fits (`0`, the expert view, is taken as it is); otherwise
167
- * the fitting profile the link has the most named parameters of, then the one with more fixed
168
- * parameters (a staircase light is a "switch on" with a fixed time: the more specific one), then
169
- * the one that lacks fewer, then the lower id - the WebUI takes the first fitting one by id, and
170
- * where only one fits, as for B-77's pair, the two agree; last a `UI_HINT` whose profile no
171
- * longer fits, as before.
171
+ * Order: `UI_HINT` when its profile fits (`0`, the expert view, is taken as it is) - the CCU writes
172
+ * it on BidCos, and it names the profile the user chose where two fit; otherwise the first fitting
173
+ * profile by number, as `get_cur_profile2` takes it (task 108: B-77 preferred the profile with the
174
+ * most named, then fixed parameters, which showed a CCU-made "auf / zu & hoch / herunter" link of a
175
+ * wired shutter as "Toggle", where the WebUI shows the former); last a `UI_HINT` whose profile no longer
176
+ * fits, as before.
172
177
  *
173
178
  * `undefined` means "none of them"; the caller then shows the expert view.
174
179
  */
@@ -180,16 +185,15 @@ export class EasyModeEngine {
180
185
  if (byHint && (byHint.id === EXPERT_PROFILE_ID || profileFits(byHint, linkParamset) !== undefined)) {
181
186
  return byHint;
182
187
  }
183
- let best;
184
- let bestFit;
185
- for (const profile of [...profiles].sort((a, b) => a.id - b.id)) {
186
- const fit = profileFits(profile, linkParamset);
187
- if (fit !== undefined && betterFit(fit, bestFit)) {
188
- bestFit = fit;
189
- best = profile;
190
- }
191
- }
192
- return best ?? byHint;
188
+ // task 108: the first fitting profile by number, as `get_cur_profile2` breaks on its first match
189
+ const sorted = [...profiles].sort((a, b) => a.id - b.id);
190
+ const first = sorted.find((profile) => profile.id !== EXPERT_PROFILE_ID && profileFits(profile, linkParamset) !== undefined);
191
+ // B-98: only where nothing fits, a link an older WebUI made (`legacy` values)
192
+ const older = first ??
193
+ sorted.find((profile) => profile.id !== EXPERT_PROFILE_ID &&
194
+ profile.legacy !== undefined &&
195
+ profileFits(legacyProfile(profile), linkParamset) !== undefined);
196
+ return older ?? byHint;
193
197
  }
194
198
  /**
195
199
  * The MASTER paramset of a channel type as the dialog should show it: ordered, with the
@@ -274,16 +278,6 @@ function profileFits(profile, linkParamset) {
274
278
  }
275
279
  return present === 0 ? undefined : { present, fixed, missing };
276
280
  }
277
- /** Whether a fit is the better one: more named parameters, then more fixed ones, then fewer lacking. */
278
- function betterFit(fit, best) {
279
- if (best === undefined)
280
- return true;
281
- if (fit.present !== best.present)
282
- return fit.present > best.present;
283
- if (fit.fixed !== best.fixed)
284
- return fit.fixed > best.fixed;
285
- return fit.missing < best.missing;
286
- }
287
281
  function constraintHolds(constraint, value) {
288
282
  switch (constraint.kind) {
289
283
  case 'fixed':
@@ -0,0 +1,28 @@
1
+ /**
2
+ * B-98: what the CCU's WebUI wrote for a profile before eQ-3 changed the profile, so that a link made
3
+ * with the older WebUI is still recognised.
4
+ *
5
+ * On 2026-06-22 eQ-3 changed the long press of the shutter and blind profiles (OpenCCU-Base
6
+ * `src/webui` commit `122e267b`, "Easymode parameter LONG_PROFILE_ACTION_TYPE for blind and jalousie
7
+ * actors changed"): `LONG_PROFILE_ACTION_TYPE` `5` (toggle, last direction) or `{5 1}` became `1`. The
8
+ * profile data follows the new WebUI, so a link a CCU made before - an HmIPW-DRBL4 run as a shutter
9
+ * with "auf / zu & hoch / herunter" holds `5` - fitted none of the profiles and showed as Expert.
10
+ *
11
+ * The profiles of exactly the files eQ-3 changed carry the old values as `legacy`. Detection takes
12
+ * them only where no profile fits the link as the data has it: the current WebUI shows an old
13
+ * "auf / zu & hoch / herunter" link as "Toggle", whose list still takes 5 and whose other presets
14
+ * are the same, and that stays so - but an old "auf / hoch", "zu / herunter" or "Position anfahren"
15
+ * link, which fits nothing, is recognised instead of falling back to Expert. Applying a profile
16
+ * keeps the old value where the link already holds it (nothing to write for a link left as the CCU
17
+ * made it) and writes the new one otherwise, as the current WebUI does.
18
+ */
19
+ import type { LinkProfile } from '../data/types.js';
20
+ type LegacyValues = Readonly<Record<number, Readonly<Record<string, readonly number[]>>>>;
21
+ /** By receiver folder and sender file: the values the WebUI wrote before the change, per profile. */
22
+ export declare const LEGACY_PROFILE_VALUES: Readonly<Record<string, Readonly<Record<string, LegacyValues>>>>;
23
+ /** The profiles of one receiver folder and sender file, with what the older WebUI wrote as `legacy`. */
24
+ export declare function withLegacyValues(receiverFolder: string, senderFile: string, profiles: readonly LinkProfile[]): LinkProfile[];
25
+ /** A profile whose constraints also hold for its `legacy` values; the current value stays the default. */
26
+ export declare function legacyProfile(profile: LinkProfile): LinkProfile;
27
+ export {};
28
+ //# sourceMappingURL=legacyValues.d.ts.map
@@ -0,0 +1,97 @@
1
+ /**
2
+ * B-98: what the CCU's WebUI wrote for a profile before eQ-3 changed the profile, so that a link made
3
+ * with the older WebUI is still recognised.
4
+ *
5
+ * On 2026-06-22 eQ-3 changed the long press of the shutter and blind profiles (OpenCCU-Base
6
+ * `src/webui` commit `122e267b`, "Easymode parameter LONG_PROFILE_ACTION_TYPE for blind and jalousie
7
+ * actors changed"): `LONG_PROFILE_ACTION_TYPE` `5` (toggle, last direction) or `{5 1}` became `1`. The
8
+ * profile data follows the new WebUI, so a link a CCU made before - an HmIPW-DRBL4 run as a shutter
9
+ * with "auf / zu & hoch / herunter" holds `5` - fitted none of the profiles and showed as Expert.
10
+ *
11
+ * The profiles of exactly the files eQ-3 changed carry the old values as `legacy`. Detection takes
12
+ * them only where no profile fits the link as the data has it: the current WebUI shows an old
13
+ * "auf / zu & hoch / herunter" link as "Toggle", whose list still takes 5 and whose other presets
14
+ * are the same, and that stays so - but an old "auf / hoch", "zu / herunter" or "Position anfahren"
15
+ * link, which fits nothing, is recognised instead of falling back to Expert. Applying a profile
16
+ * keeps the old value where the link already holds it (nothing to write for a link left as the CCU
17
+ * made it) and writes the new one otherwise, as the current WebUI does.
18
+ */
19
+ const LONG_PROFILE_ACTION_TYPE = 'LONG_PROFILE_ACTION_TYPE';
20
+ /** SHUTTER_VIRTUAL_RECEIVER: profiles 1, 2, 4 wrote `{5 1}`, profile 3 wrote `5`. */
21
+ const SHUTTER = {
22
+ 1: { [LONG_PROFILE_ACTION_TYPE]: [5, 1] },
23
+ 2: { [LONG_PROFILE_ACTION_TYPE]: [5, 1] },
24
+ 3: { [LONG_PROFILE_ACTION_TYPE]: [5] },
25
+ 4: { [LONG_PROFILE_ACTION_TYPE]: [5, 1] },
26
+ };
27
+ /** BLIND_VIRTUAL_RECEIVER: profile 3 wrote `5` or took `{1 5}` / `{5 1}`. */
28
+ const BLIND = { 3: { [LONG_PROFILE_ACTION_TYPE]: [5, 1] } };
29
+ /** By receiver folder and sender file: the values the WebUI wrote before the change, per profile. */
30
+ export const LEGACY_PROFILE_VALUES = {
31
+ SHUTTER_VIRTUAL_RECEIVER: {
32
+ DISPLAY_INPUT_TRANSMITTER: SHUTTER,
33
+ DISPLAY_LEVEL_INPUT_TRANSMITTER: SHUTTER,
34
+ KEY_TRANSCEIVER: SHUTTER,
35
+ MULTI_MODE_INPUT_TRANSMITTER_1: SHUTTER,
36
+ MULTI_MODE_INPUT_TRANSMITTER_3: SHUTTER,
37
+ MULTI_MODE_INPUT_TRANSMITTER_4: SHUTTER,
38
+ },
39
+ BLIND_VIRTUAL_RECEIVER: {
40
+ DISPLAY_INPUT_TRANSMITTER: BLIND,
41
+ DISPLAY_LEVEL_INPUT_TRANSMITTER: BLIND,
42
+ KEY_TRANSCEIVER: BLIND,
43
+ MULTI_MODE_INPUT_TRANSMITTER_1: BLIND,
44
+ MULTI_MODE_INPUT_TRANSMITTER_3: BLIND,
45
+ MULTI_MODE_INPUT_TRANSMITTER_4: BLIND,
46
+ ROTARY_CONTROL_TRANSCEIVER_2: BLIND,
47
+ ROTARY_CONTROL_TRANSCEIVER_3: BLIND,
48
+ SWITCH_TRANSCEIVER: BLIND,
49
+ },
50
+ };
51
+ /** The profiles of one receiver folder and sender file, with what the older WebUI wrote as `legacy`. */
52
+ export function withLegacyValues(receiverFolder, senderFile, profiles) {
53
+ const table = LEGACY_PROFILE_VALUES[receiverFolder]?.[senderFile];
54
+ if (!table) {
55
+ return [...profiles];
56
+ }
57
+ return profiles.map((profile) => {
58
+ const legacy = table[profile.id];
59
+ if (!legacy) {
60
+ return profile;
61
+ }
62
+ const entries = Object.entries(legacy).filter(([param]) => param in profile.params);
63
+ return entries.length === 0
64
+ ? profile
65
+ : { ...profile, legacy: Object.fromEntries(entries.map(([param, values]) => [param, [...values]])) };
66
+ });
67
+ }
68
+ /** A profile whose constraints also hold for its `legacy` values; the current value stays the default. */
69
+ export function legacyProfile(profile) {
70
+ if (!profile.legacy) {
71
+ return profile;
72
+ }
73
+ const params = { ...profile.params };
74
+ for (const [param, values] of Object.entries(profile.legacy)) {
75
+ const constraint = params[param];
76
+ if (constraint) {
77
+ params[param] = widened(constraint, values);
78
+ }
79
+ }
80
+ return { ...profile, params };
81
+ }
82
+ /** A constraint that also holds for the older WebUI's values; the current value stays the default. */
83
+ function widened(constraint, legacy) {
84
+ switch (constraint.kind) {
85
+ case 'fixed': {
86
+ const values = [constraint.value, ...legacy.filter((value) => value !== constraint.value)];
87
+ return { kind: 'list', values, default: constraint.value };
88
+ }
89
+ case 'list': {
90
+ const extra = legacy.filter((value) => !constraint.values.includes(value));
91
+ return extra.length === 0 ? constraint : { ...constraint, values: [...constraint.values, ...extra] };
92
+ }
93
+ case 'range':
94
+ return constraint;
95
+ }
96
+ }
97
+ //# sourceMappingURL=legacyValues.js.map
@@ -0,0 +1,118 @@
1
+ /**
2
+ * Task 108: which receiver folder and sender file of the easy-mode data a link's profiles come
3
+ * from - the step the CCU's WebUI takes before it shows a single profile.
4
+ *
5
+ * `ic_setprofiles.cgi` does not open `<RECEIVER_TYPE>/<SENDER_TYPE>.tcl` directly. It opens
6
+ * `linkHmIP_<RECEIVER_TYPE>.tcl` for an HmIP receiver, or the `<paramid>.tcl` its LINK paramset id
7
+ * names for a BidCos one, and that file chooses the folder and the sender file; inside the folder,
8
+ * a sender file may again be only a dispatcher that sources another by a value read at run time.
9
+ * Looking the profiles up by the raw channel types, as hmm did up to 3.4.0, gave every link whose
10
+ * WebUI file is chosen that way the expert profile only - HmIPW-DRI16/DRI32 inputs above all,
11
+ * whose channels are `MULTI_MODE_INPUT_TRANSMITTER` - or another device's profiles (a wired blind
12
+ * actuator run as a shutter got the blind profiles).
13
+ *
14
+ * The rules below are those of the WebUI's easymode tree (OpenCCU-Base `www/config/easymodes`);
15
+ * `data/extracted/easymode_links.json` is extracted from it by `data/scripts/easymode-links.mjs`,
16
+ * and `linkTypes.test.ts` fails for every rule of it this module does not follow.
17
+ *
18
+ * Pure: whatever has to be read from the interface (a MASTER paramset, the `channelMode`
19
+ * metadata, a LINK paramset id, whether a link exists) is asked through {@link LinkTypeQueries},
20
+ * and only when a rule needs it.
21
+ */
22
+ import type { ParamsetDescription } from '../paramset/description.js';
23
+ import type { Paramset, ParamsetValue } from '../rpc/values.js';
24
+ /** What the device list says about one end of a link. */
25
+ export interface LinkEnd {
26
+ /** The channel address, `<device>:<n>`. */
27
+ readonly address: string;
28
+ /** The channel type (`TYPE`). */
29
+ readonly type: string;
30
+ /** The device type (`PARENT_TYPE`). */
31
+ readonly parentType: string;
32
+ /** The device's firmware (`FIRMWARE` of the parent). */
33
+ readonly firmware?: string;
34
+ /** The channel's key-pair partner (`GROUP`), BidCos only. */
35
+ readonly group?: string;
36
+ }
37
+ /** A MASTER paramset with its description, so an enum read as a name can be turned into its index. */
38
+ export interface MasterRead {
39
+ readonly values: Paramset;
40
+ readonly description?: ParamsetDescription;
41
+ }
42
+ /** The reads a rule may need; each is asked at most once per resolution, and only where a rule needs it. */
43
+ export interface LinkTypeQueries {
44
+ /** `getParamset(address, MASTER)`. */
45
+ readonly master?: (address: string) => Promise<MasterRead | undefined>;
46
+ /** `getMetadata(address, 'channelMode')`; `''` where unset. */
47
+ readonly channelMode?: (address: string) => Promise<string>;
48
+ /** `getParamsetId(address, LINK)`; `''` where the interface does not answer. */
49
+ readonly linkParamsetId?: (address: string) => Promise<string>;
50
+ /** Whether a link `sender → receiver` exists (`getLinkInfo` answers). */
51
+ readonly linked?: (sender: string, receiver: string) => Promise<boolean>;
52
+ }
53
+ /** The receiver folder and sender file of the profile data, where the WebUI takes them from. */
54
+ export interface LinkProfileTypes {
55
+ readonly receiverType: string;
56
+ readonly senderType: string;
57
+ }
58
+ /**
59
+ * The sender files a `MULTI_MODE_INPUT_TRANSMITTER` / `ROTARY_CONTROL_TRANSCEIVER` dispatcher of a
60
+ * receiver folder sources from, and from which folder (the WebUI's `UNIVERSAL_ACTOR` and
61
+ * `UNIVERSAL_LIGHT_RECEIVER_PWM` take `DIMMER_VIRTUAL_RECEIVER`'s files).
62
+ */
63
+ export interface LinkDispatcher {
64
+ readonly by: 'CHANNEL_OPERATION_MODE' | 'channel';
65
+ readonly folder: string;
66
+ /** HmIP-FDC's key mode has a file of its own (`MULTI_MODE_INPUT_TRANSMITTER_1_FDC`). */
67
+ readonly variant?: {
68
+ readonly deviceType: string;
69
+ readonly mode: number;
70
+ readonly suffix: string;
71
+ };
72
+ }
73
+ /** The dispatcher files of the WebUI's receiver folders, by folder and sender type. */
74
+ export declare const LINK_DISPATCHERS: Readonly<Record<string, Readonly<Record<string, LinkDispatcher>>>>;
75
+ /** What a `linkHmIP_<RECEIVER_TYPE>.tcl` does to the sender type. */
76
+ export interface HmipLinkFile {
77
+ /** It reads an HmIP-MOD-RC8 key channel's `CHANNEL_OPERATION_MODE` (2: switch, 3: shutter contact). */
78
+ readonly modRc8: boolean;
79
+ /** `LEVEL_COMMAND_TRANSMITTER_*` senders it opens another sender file for. */
80
+ readonly levelCommand: Readonly<Record<string, string>>;
81
+ }
82
+ /**
83
+ * The WebUI's `linkHmIP_<RECEIVER_TYPE>.tcl` files. An HmIP receiver type without one has no easy
84
+ * mode in the WebUI (`receiver_paramid` stays empty); hmm still offers what the data has for it.
85
+ */
86
+ export declare const HMIP_LINK_FILES: Readonly<Record<string, HmipLinkFile>>;
87
+ /** What a BidCos `<paramid>.tcl` link dispatcher does beyond `<TYPE>/<SENDER_TYPE>.tcl`. */
88
+ export interface BidcosLinkFile {
89
+ /** `HMW_` + type (wired actors), type + `M` (the MP3 chime/LED), or a fixed folder. */
90
+ readonly receiver?: 'HMW_' | 'M' | 'DIMMER';
91
+ /** `VIRTUAL_DIMMER` channels use the `DIMMER` folder. */
92
+ readonly virtualDimmer?: 'DIMMER';
93
+ /** The sender file is `<TYPE>_<INPUT_TYPE>` (the sender's MASTER; `1` where it has none). */
94
+ readonly inputType?: boolean;
95
+ /** The sender file is `<TYPE>_PAIR` when the sender's key-pair partner is linked to the receiver too. */
96
+ readonly pair?: boolean;
97
+ /** A sender of this device type uses `<TYPE><suffix>`. */
98
+ readonly senderSuffix?: {
99
+ readonly deviceType: string;
100
+ readonly suffix: string;
101
+ };
102
+ }
103
+ /** The BidCos link dispatchers that do more than open `<TYPE>/<SENDER_TYPE>.tcl`, by paramset id. */
104
+ export declare const BIDCOS_LINK_FILES: Readonly<Record<string, BidcosLinkFile>>;
105
+ /** Whether an interface is served by hmipserver, where the WebUI takes the `linkHmIP_*` route. */
106
+ export declare function isHmipInterface(interfaceName: string): boolean;
107
+ /**
108
+ * An enum read from a MASTER paramset as the number the WebUI's Tcl compares: HmIP answers the
109
+ * index, a name is looked up in the description's `VALUE_LIST`. `undefined` when neither works.
110
+ */
111
+ export declare function enumValueIndex(value: ParamsetValue | undefined, values: readonly string[] | undefined): number | undefined;
112
+ /**
113
+ * The receiver folder and sender file the WebUI takes a link's profiles from. Without the reads a
114
+ * rule needs (a query missing, failing or answering nothing), the rule leaves the type as it is,
115
+ * which is what hmm did before.
116
+ */
117
+ export declare function linkProfileTypes(interfaceName: string, receiver: LinkEnd, sender: LinkEnd, queries?: LinkTypeQueries): Promise<LinkProfileTypes>;
118
+ //# sourceMappingURL=linkTypes.d.ts.map