iobroker.alias-workbench 0.12.0 → 0.14.0

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 (54) hide show
  1. package/README.md +94 -58
  2. package/admin/css/werkbank.css +13 -2
  3. package/admin/detector.js +1 -1
  4. package/admin/i18n/de.json +41 -14
  5. package/admin/i18n/en.json +41 -14
  6. package/admin/i18n/es.json +41 -14
  7. package/admin/i18n/fr.json +41 -14
  8. package/admin/i18n/it.json +41 -14
  9. package/admin/i18n/nl.json +41 -14
  10. package/admin/i18n/pl.json +41 -14
  11. package/admin/i18n/pt.json +41 -14
  12. package/admin/i18n/ru.json +41 -14
  13. package/admin/i18n/uk.json +41 -14
  14. package/admin/i18n/zh-cn.json +41 -14
  15. package/admin/js/attrappe.js +55 -47
  16. package/admin/js/aufzaehlungen.js +3 -3
  17. package/admin/js/detail.js +23 -10
  18. package/admin/js/einstellungen.js +44 -4
  19. package/admin/js/entwurf.js +90 -24
  20. package/admin/js/ergebnis.js +12 -4
  21. package/admin/js/erkennung.js +12 -6
  22. package/admin/js/katalog.js +3 -3
  23. package/admin/js/migration.js +478 -0
  24. package/admin/js/mqtt.js +142 -37
  25. package/admin/js/musterwahl.js +21 -3
  26. package/admin/js/quellentausch.js +25 -25
  27. package/admin/js/schreiben.js +20 -14
  28. package/admin/js/sprache.js +5 -0
  29. package/admin/js/start.js +2 -0
  30. package/admin/js/vorlagen.js +133 -100
  31. package/admin/js/vorlagenblatt.js +483 -471
  32. package/admin/js/zuordnung.js +35 -8
  33. package/admin/js/zustandsliste.js +35 -4
  34. package/admin/jsonConfig.json +42 -4
  35. package/admin/tab.html +18 -0
  36. package/admin/vorlagen/hm-dimmer.json +59 -59
  37. package/admin/vorlagen/hm-fensterkontakt-hm.json +40 -40
  38. package/admin/vorlagen/hm-fensterkontakt-hmip.json +48 -48
  39. package/admin/vorlagen/hm-heizgruppe.json +60 -60
  40. package/admin/vorlagen/hm-heizkoerper.json +72 -72
  41. package/admin/vorlagen/hm-rollladen.json +50 -50
  42. package/admin/vorlagen/hm-schaltaktor-lampe.json +53 -53
  43. package/admin/vorlagen/hm-schaltaktor-mehrfach.json +57 -57
  44. package/admin/vorlagen/hm-schaltaktor-steckdose.json +53 -53
  45. package/admin/vorlagen/hm-temperatur-feuchte.json +34 -34
  46. package/admin/vorlagen/hm-wandthermostat.json +68 -68
  47. package/admin/vorlagen/index.json +2 -2
  48. package/admin/vorlagen/messpunkt.json +123 -123
  49. package/admin/vorlagen/tasmota-lampe.json +149 -149
  50. package/admin/vorlagen/tasmota-mehrfach.json +113 -113
  51. package/admin/vorlagen/tasmota-rgb.json +130 -130
  52. package/admin/vorlagen/tasmota-steckdose.json +151 -151
  53. package/io-package.json +32 -31
  54. package/package.json +3 -3
package/README.md CHANGED
@@ -143,6 +143,11 @@ device:
143
143
  the device (Status 11). A plain query that switches nothing and changes
144
144
  nothing.
145
145
 
146
+ Creating, enabling, querying and SetOption59 write into the MQTT adapter's
147
+ area. That is **off by default** and is allowed in the instance settings
148
+ (*Allow creating and changing data points in the MQTT adapter*); without it
149
+ the workbench shows what would need doing and writes nothing.
150
+
146
151
  Bind your Tasmota devices this way and you need no separate adapter for the
147
152
  device structure: MQTT delivers the data, the workbench turns it into devices.
148
153
 
@@ -157,8 +162,8 @@ order, so a failure leaves you with two aliases rather than none. Swapping the
157
162
  source keeps the alias untouched and only re-points it, which is what you want
158
163
  when a device dies. See [Swapping a source](#swapping-a-source).
159
164
 
160
- **Filling free slots.** A device that matches no pattern is often not an unknown
161
- device — a role is simply missing. **Suggest free slots** sets roles in the
165
+ **Guessing missing places.** A device that matches no pattern is often not an unknown
166
+ device — a role is simply missing. **Guess missing places** sets roles in the
162
167
  draft and lets the detector decide again. It only ever runs on that button, never
163
168
  during normal detection, every guessed row is marked, and while any guess is
164
169
  undecided the write buttons stay locked. Not deciding is no longer a silent yes.
@@ -270,7 +275,7 @@ outside that namespace is ever touched.
270
275
 
271
276
  The proposal comes from, in order: the room already on the source or one of its
272
277
  channels, the device name (`FK_Max_Spielzimmer` → `Max_Spielzimmer`), the
273
- target folder. The function comes from the template's `funktion` field, or from
278
+ target folder. The function comes from the template's `enumFunction` field, or from
274
279
  the detected type when the template has none.
275
280
 
276
281
  The admin ships 62 function and 58 room templates, each with a picture. The
@@ -324,21 +329,45 @@ nothing on purpose. Fifty bare `LEVEL` channels are not a device.
324
329
  When a template is rejected, the picker says why: *"1.LEVEL missing"*, not
325
330
  *"does not fit"*. A reason you cannot act on is not a reason.
326
331
 
327
- **About the role `value.power.consumption`.** Four templates (`messpunkt`,
328
- `tasmota-lampe`, `tasmota-mehrfach`, `tasmota-steckdose`) give the row
329
- `CONSUMPTION` the role `value.power.consumption`, which is struck through in
330
- the ioBroker [state roles list](https://github.com/ioBroker/ioBroker.docs/blob/master/docs/en/dev/stateroles.md).
331
- It stays on purpose: `@iobroker/type-detector` 6.0.x recognises `CONSUMPTION`
332
- only with exactly this role (`typePatterns.js`, pattern `consumption`,
333
- `defaultRole: 'value.power.consumption'`). With `value.energy.consumed` the
334
- point would drop out of the detected device, and vis, Alexa and the device
335
- manager would no longer show any consumption. Each of the four rows carries
336
- this reason in a field `_rolle`. The role will change once the type-detector
337
- does.
332
+ **About the consumption role.** Four templates (`messpunkt`, `tasmota-lampe`,
333
+ `tasmota-mehrfach`, `tasmota-steckdose`) give the row `CONSUMPTION` the role
334
+ `value.energy.consumed`. That is the correct one: the unit is Wh, which is
335
+ **energy** and not power, so it belongs under `value.energy.*` rather than with
336
+ the watts in `value.power.*`. That is exactly why `value.power.consumption` is
337
+ struck through in the ioBroker
338
+ [state roles list](https://github.com/ioBroker/ioBroker.docs/blob/master/docs/en/dev/stateroles.md).
339
+
340
+ Up to `@iobroker/type-detector` 6.0.2 there was no choice anyway: the pattern
341
+ `consumption` recognised `CONSUMPTION` only with the struck-through role, and a
342
+ point carrying the correct one dropped out of the detected device without a
343
+ word. Reported as
344
+ [issue 334](https://github.com/ioBroker/ioBroker.type-detector/issues/334),
345
+ fixed in PR 339, and since 6.0.3 the place accepts both
346
+ (`/^value\.(energy\.consumed|power\.consumption)$/`).
347
+
348
+ **Reading such an alias with an older detector loses the point.** What is
349
+ affected is not the workbench but every adapter that reads the alias — and each
350
+ brings its **own** detector version, some over npm, some baked into its
351
+ frontend where no `package.json` reveals it. Measured on a live system on
352
+ 2026-10-14:
353
+
354
+ | Reader | Version | accepts `value.energy.consumed`? |
355
+ |---|---|---|
356
+ | `iobroker.admin`, device manager | baked into a frontend asset | no — the bundle holds `value\.power\.consumption` only |
357
+ | `iobroker.devices` | baked into a frontend asset | no, likewise |
358
+ | `iobroker.matter` | 5.0.15 over npm | no, `/^value\.power\.consumption$/` |
359
+ | `@iobroker/mcp-server` | 6.0.1 over npm | no, same line |
360
+ | `iobroker.hm-rpc` | 4.6.4, top level | no — but it does not read aliases |
361
+
362
+ This was measured on the pattern itself rather than on a version number: in
363
+ both baked bundles `energy.consumed` appears nowhere. So the consumption is
364
+ missing there until the reading adapter catches up. Existing aliases with the
365
+ old role stay recognised everywhere, the expression still accepts them. Each of
366
+ the four rows carries the reason in a field `_role`.
338
367
 
339
368
  ### Role knowledge beside the rows
340
369
 
341
- A template can carry `weiterePunkte`: roles for datapoints that get no row of
370
+ A template can carry `extraPoints`: roles for datapoints that get no row of
342
371
  their own. Without it, "all datapoints of the device" showed *no role* on most
343
372
  lines, because hm-rpc simply leaves the field empty. A `*.NAME` wildcard applies
344
373
  per channel, so `2.LEVEL` and `3.RAMP_TIME` are covered without listing every
@@ -349,7 +378,7 @@ enriched.
349
378
 
350
379
  The **Save as template …** button turns the device you are looking at back into
351
380
  a template. Paths become relative to the device, `JSON.parse(val).ENERGY.Power`
352
- becomes `feld: "ENERGY.Power"` again, and roles, units and formulas are kept.
381
+ becomes `jsonField: "ENERGY.Power"` again, and roles, units and formulas are kept.
353
382
 
354
383
  What a template cannot know by itself is **which datapoints make a device this
355
384
  kind of device**. That is a statement about all future devices, so the dialog
@@ -408,16 +437,16 @@ When several templates fit, the winner is decided in this order:
408
437
  output for multi-output devices, plus content checks that came out true
409
438
  2. **the name hint**, if it matches
410
439
  3. **your own template** over a shipped one
411
- 4. **`rang`**, so the same device is always detected the same way
440
+ 4. **`priority`**, so the same device is always detected the same way
412
441
 
413
442
  Order matters. Counting evidence first is what keeps a template you built on
414
443
  purpose from losing to a shipped one whose word happens to appear in the device
415
444
  name.
416
445
 
417
446
  Note what step 3 means for updates: a template of yours **cannot be outranked by
418
- a shipped one on `rang`** — that step sits above `rang` in the order, so no
447
+ a shipped one on `priority`** — that step sits above `priority` in the order, so no
419
448
  future version of this adapter can quietly take a device away from a template
420
- you built. `rang` only ever breaks ties between templates of the same origin,
449
+ you built. `priority` only ever breaks ties between templates of the same origin,
421
450
  which is also why a new template of yours is numbered from your own templates
422
451
  and ignores the shipped numbers entirely.
423
452
 
@@ -467,7 +496,7 @@ Two things override that:
467
496
  feedback value — `1.STATE` is both — so their `ON_ACTUAL` stays off.
468
497
  - Where the purpose says tick but the pattern has **no slot**, weigh it: the
469
498
  point lands in an info device next to the real one. For a single value that
470
- is rarely worth it, and the template's `hinweis` has to say so. And check
499
+ is rarely worth it, and the template's `note` has to say so. And check
471
500
  what a slot **means** before using it — a matching name is not a matching
472
501
  purpose, as the voltage case above shows.
473
502
 
@@ -511,21 +540,21 @@ One JSON file per template under `admin/vorlagen/`. Example:
511
540
 
512
541
  | Key | Meaning |
513
542
  |---|---|
514
- | `erkennung.erforderlich` | these datapoints must exist, otherwise the template does not match |
515
- | `erkennung.inhalt` | the named datapoint must contain this field in its JSON |
516
- | `erkennung.verboten` | these datapoints must **not** exist, otherwise the template does not match |
517
- | `erkennung.namenshinweis` | only breaks ties between templates that fit equally well |
518
- | `rang` | last tie-breaker, so the same device is always detected the same way |
543
+ | `detection.required` | these datapoints must exist, otherwise the template does not match |
544
+ | `detection.content` | the named datapoint must contain this field in its JSON |
545
+ | `detection.forbidden` | these datapoints must **not** exist, otherwise the template does not match |
546
+ | `detection.nameHint` | only breaks ties between templates that fit equally well |
547
+ | `priority` | last tie-breaker, so the same device is always detected the same way |
519
548
  | `optional` | the state is skipped when its source or JSON field is missing |
520
- | `vorgabeAus` | proposed but unchecked — see **What a template ticks by default** below |
521
- | `feld` | builds the read function `JSON.parse(val).<field>` |
522
- | `mehrfach` + `%N%` | one device per output; the numbers are read from what exists |
523
- | `werteliste` | value list for the datapoint — slots like EFFECT are not detected without one |
524
- | `absolut` | `lesen` is a full object id, not relative to the device — the same object for every device |
525
- | `beschriftung` | the datapoint's display name, if it should differ from its slot name |
526
- | `nachkommastellen` | decimals for the value display |
527
-
528
- `verboten` is what genuinely separates a single socket from a multi-output one:
549
+ | `offByDefault` | proposed but unchecked — see **What a template ticks by default** below |
550
+ | `jsonField` | builds the read function `JSON.parse(val).<field>` |
551
+ | `multiple` + `%N%` | one device per output; the numbers are read from what exists |
552
+ | `valueList` | value list for the datapoint — slots like EFFECT are not detected without one |
553
+ | `absolute` | `read` is a full object id, not relative to the device — the same object for every device |
554
+ | `caption` | the datapoint's display name, if it should differ from its slot name |
555
+ | `decimals` | decimals for the value display |
556
+
557
+ `forbidden` is what genuinely separates a single socket from a multi-output one:
529
558
  the single one has no `stat.POWER2`. An absent datapoint deliberately does **not**
530
559
  count as evidence — otherwise a list of invented exclusions could inflate a
531
560
  template's score.
@@ -591,6 +620,36 @@ imported, and that all eleven language files carry the same keys.
591
620
 
592
621
  ## Changelog
593
622
 
623
+ ### 0.14.0 (2026-11-22)
624
+ * **Creating data points in the MQTT adapter is now a setting, and it is off by default.** The Tasmota helpers need `cmnd` points under `mqtt-client.0.…` — to query a device (`Status`, `TelePeriod`), to switch on SetOption59, and as the send point of an alias. That is outside the workbench's own area (`alias.*`, `enum.*`); the review of the repository request flagged it, and it was accepted as an exception. Now it is a decision for whoever runs the workbench: *Allow creating and changing data points in the MQTT adapter* in the instance settings. With it off, the MQTT card says so at the top, and every button that would write there opens a dialog naming the data points it would create, with a button straight into the settings — nothing is written. Reading, detection and aliases on existing points work as before. The setting is read fresh before each of these writes, so switching it on takes effect without reloading the workbench. **If you used these helpers before: switch it on once after the update.**
625
+ * **The four settings now carry English names.** `ikonRaeume`, `ikonFunktionen`, `ikonErsetzen` and `vorlagenVomAdmin` became `iconRooms`, `iconFunctions`, `iconReplace` and `templatesFromAdmin`. The ioBroker checklist asks for English object ids where they are the adapter's own, and these are — they were German because that is how the workbench was built, not because anything required it.
626
+ * **A conversion runs once at startup, and it is not optional.** Renaming alone would have been silent damage: `einst()` reads the settings out of the instance object, would no longer find the old keys and would fall back to the defaults — and all four default to **on**. Anyone who had switched one off would have had it back on without a word. So an instance still carrying old names opens a modal dialog at startup that names the count and says there is no way back. "Not now" does not close it; the workbench does not work until the conversion has run. Afterwards the old keys are gone, the values are kept — a setting that was off stays off — and your own templates in the same object are untouched. A second run finds nothing.
627
+ * **One place knows the old names, and only one.** `admin/js/migration.js` is it; every other file in the adapter knows the English names only. The alternative — reading both spellings everywhere — would have meant 92 places in the adapter, each a second truth, and none of them ever going away again. The module stays: not every installation updates next week, and it costs nothing when nothing matches.
628
+ * **And a trap that only showed up on deployment.** `iobroker upload` carries the defaults from `io-package.json` into existing instances. After a deployment the four English keys are therefore already present — with their default **on**, not with the user's value — while the old ones still sit beside them. The first draft would have given the new value precedence and so made exactly the silent jump the conversion is meant to prevent. Now the old value wins, and the result no longer depends on the order of the keys in the object. Found on the live system, reproduced and recorded on the test system.
629
+ * **And the same conversion for the aliases themselves.** The fields the workbench writes on its aliases were German: `quelle`, `vorlage`, `vorlageVersion`, `ausZustand`, `geraetetyp`, `musterVonHand`, `vonHand`, `angelegtVon`, `attrappeAus`. Now `source`, `template`, `templateVersion`, `templateState`, `deviceType`, `deviceTypeManual`, `manual`, `createdBy`, `mockedFrom`. The same dialog does it at startup and names the number of affected objects — only those carrying one of our fields are counted, so an alias built by hand in the admin is left alone. Only `native` is touched: no `common.alias`, no role, no formula, no unit. No value moves and nothing switches. Checked against 109 objects — `common` stayed identical on **all** of them, `native` changed on exactly the 100 affected. If the run is cut short because the tab is closed, the dialog names exactly the remaining ones next time.
630
+ * **The conversion no longer hangs on an object that has gone in the meantime.** If an alias named in the dialog was deleted before "Convert" was clicked, the button stayed on "Converting…" for good: the object was missing, a step threw, and the run never finished. Now every object is read fresh from the database before it is written; one that has gone is skipped and not counted, and is never created again. A step that throws or gets no answer within 15 seconds ends up in the error list, and the rest still run.
631
+ * **A half-built alias no longer fills the log.** When an alias was selected that has a point without `common.alias.id`, the workbench subscribed to `alias.….*`; the controller rejects such a pattern as a whole, and the admin wrote `Error on "subscribeForeignStates": Alias … has no target` into the ioBroker log on every selection. Now the points with a target are subscribed individually and the one without is left out — it has no value that could change.
632
+ * **Your own templates now live under `templates`.** The key in the instance configuration used to be `vorlagen`. Only the key is renamed — the template underneath stays identical character for character. Its **field names** (`zustaende`, `rolle`, `typ` …) are deliberately left for later: they cannot be caught by a pattern, because the same words mean other things elsewhere in the code — `z.typ` is a template field while the `typ:` right beside it is a draft field, both on the same line. That will be a step of its own.
633
+ * **The template format is English — and better named, not just translated.** Every field of a template has a new name: `points` instead of `zustaende`, `detection` with `required`, `forbidden`, `content` and `nameHint`, per point `role`, `type`, `unit`, `read`, `write`, `readFormula`, `writeFormula`, `readFallback`, `offByDefault` and so on. Where a translation fell short there is a better name: `priority` says what the number is for (which template wins); `points` rather than "states", which gets confused with the value list `common.states` and with the detector's slots; `jsonField`, because the field is a path **inside a JSON**; `enumFunction`, because `function` is a keyword and the ioBroker enumeration is meant. The 16 shipped templates are converted, **your own templates are converted by the same startup dialog**, content and all. An old exported file is **refused** on import — with a sentence saying it comes from an older version, instead of a puzzling "no rows". The field-name table in this README has been updated.
634
+ * **The mock file is English too.** "Export as mock" now writes `root`, `createdAt`, `createdBy`, `source`, `nativeIncluded`, `objects` and per entry `path`, `virtual`, `value` (format 2). An older file (format 1) is refused on import with a note to export it again.
635
+ * **“SET hat schon SET” now says what it means.** When another row holds the place a role points to, the hint read “{place} already holds {row}” — with both named the same it read like nonsense. Now the sentence says what triggers it, what blocks it and what follows: “The role “state” makes ACTUAL the place SET in the socket pattern, but the row SET already holds it. So ACTUAL does not count towards the device.” Then either the advice to pick another place or — when both rows read the same data point — “Both read stat.POWER, so ACTUAL only shows the same thing again.”
636
+ * **No more regular expression under “Role”.** It read “matches /^switch(\.active)?$|^state$/ → slot SET in the socket pattern, expects boolean” — the type-detector's matching pattern. Now: “With the role “state” the row belongs on the place SET in the socket pattern. The place requires the type boolean.” On the device and in the template sheet. If the place is already taken, the line is left out, because the yellow sentence below says the same.
637
+ * **An existing alias point is matched to the right template row again.** When two template rows read the same source — `hm-schaltaktor-lampe` has SET (switches) and ON_ACTUAL (only reports) both on `1.STATE` — the last one used to win. A switching alias point `STATE` was taken for ON_ACTUAL, showed “differs from the template”, and “Apply template values” turned the switch into a read-only sensor without a write target: after updating, the light could no longer be switched. Now the write direction decides: a writing alias point takes the writing row, a reading one the reading row.
638
+ * **Changing the pattern no longer renames rows blindly.** Switching an existing alias from socket to light turned its point `STATE` into `SET` (updating would have deleted `STATE` and created `SET`), turned the unticked switch lock `INHIBIT` into a second `SET` with role `switch.light`, and left three rows named `SET`. Now unticked rows stay as they are, a row that already exists in the alias gets the new role but keeps its name, and no name is given twice.
639
+ * **“Apply template values” takes the template's pattern along.** An alias whose switch had the role `switch` opens as a socket. Applying a light template turned the point into `switch.light` but left the pattern on socket — whose SET only takes `switch` — so the pattern showed “not detected”. Now the button sets the pattern to the template's device type as well, and the header no longer claims it was chosen by hand.
640
+ * **The pattern says when the template means another one.** An existing alias keeps the pattern its roles say — that is the truth about it — but the pattern header now adds “the template is built for Light, the existing alias is set up as Socket”.
641
+ * **The blue button no longer turns white under the mouse**, and an empty line between the pattern note and the buttons below it is gone.
642
+ * **Two buttons say what they do.** “Take template values” is now **“Reset to template”** — whatever differs from the template on the alias goes back to the template, the pattern included. “Suggest free slots” is now **“Guess missing places”**, because it is a guess, not knowledge. Found along the way: in five languages the guess button read “free slot machines” (Spanish, French, Dutch, Polish, Chinese), in four “free-of-charge slots” — all retranslated.
643
+ * **“Reset to template” also ticks what the template would tick.** An existing alias with only `STATE` gets `WORKING`, `LOWBAT` and `UNREACH` ticked, as the template intends; nothing is unticked, so no point of the alias disappears through this button. The number on the button counts these rows too.
644
+ * **The list shows what will be added to the alias and what will be removed.** A newly ticked row looked exactly like one already in the alias; only the change card on updating said “new”. Under an existing alias, a ticked row whose point does not exist yet now carries a green “will be added”, an unticked row whose point exists a red “will be removed” — the same rule the change card uses.
645
+ * **The row marks answer one question: what happens to the point on writing.** Under an existing alias: “will be added”, “will be changed” (formerly “differs from the saved alias”; the tooltip names the fields, now including the caption), “will be removed” — no mark means it stays as it is. The mark “changed” is gone: it only said “something was clicked here”, stood twice next to “differs from the saved alias”, and stayed after a value was set back. For a new alias the rows carry no such mark, since everything is new; “differs from the template” now works there too, because the template values are kept from the start.
646
+ * **The orange bar no longer offers a row the template switched off.** It read “INHIBIT fits on SET, but is not ticked — tick it”: the switch lock of a Homematic actuator has the role `switch`, and ticking it would have made the lock the socket's switch. A row the template leaves off by default is no substitute for a required place. Its claim “would work with ‘Suggest free places’” was also computed on the roles from before “Apply template values”; the forecast is now dropped when the rows change.
647
+
648
+ ### 0.13.0 (2026-11-02)
649
+ * **The type detector is now 6.2.0, and that adds a device type: `tv`.** The workbench therefore offers 52 patterns instead of 51, with twenty places for a television — `POWER`, `KEY`, `VOLUME`, `INPUT`, `APP`, `ART_MODE` and the rest. 6.1.0 brought an ES module build along the way, which is what makes the shipped bundle smaller (66 KB instead of 70). The consumption role is unchanged from 6.0.3: both roles are recognised, the current one is suggested. Measured on 2026-11-02 over all patterns: 752 places instead of 732, and the role derivation is untouched — the same eight places take their role from the expression, the same nineteen have none.
650
+ * **The consumption point now carries the role it should: `value.energy.consumed`.** The unit is Wh, which is energy and not power, so it belongs under `value.energy.*` and not with the watts in `value.power.*` — which is why the ioBroker roles list strikes `value.power.consumption` through. Up to `@iobroker/type-detector` 6.0.2 there was no choice anyway: the pattern `consumption` matched the struck-through role alone, and a point carrying the correct one dropped out of the detected device without a word — the socket was still recognised, just without its consumption, and that is how it reached vis, Alexa and the device manager. Reported as [issue 334](https://github.com/ioBroker/ioBroker.type-detector/issues/334) with the finding, fixed in PR 339, released as 6.0.3 on 2026-10-14. The detector now accepts both roles, and the four shipped templates (`messpunkt`, `tasmota-lampe`, `tasmota-mehrfach`, `tasmota-steckdose`) write the correct one.
651
+ * **What that costs, said plainly — and who has caught up by now.** An alias is read not by the workbench but by every adapter that reads it, and each carries its own detector version — some over npm, some baked into its frontend where no `package.json` reveals it. One older than 6.0.3 accepts the struck-through role only. That is why the change was held back for three weeks and measured again on 2026-11-02 on the pattern itself rather than on a version number: the admin's **device manager** (from 8.3.6, 2026-10-29) and **iobroker.devices** (from 4.2.7, 2026-10-25) now carry the new role in their baked bundle. **iobroker.matter** is still at 1.3.1 from 2026-07-23 and therefore on type-detector 5.0.15 — but its main branch already requires `^6.0.1`, so its next release gets it by itself. Anyone using an older reader will find a consumption point newly built from one of the four templates missing there. Existing aliases are untouched: the expression still accepts the old role, so they stay recognised either way.
652
+
594
653
  ### 0.12.0 (2026-10-14)
595
654
  **Swapping the source**
596
655
  * **Swapping now asks the same recognition as the tree.** The existing stages all started from the **old** source — path, remembered template, names, roles. Yet swapping asks the same question the workbench answers anyway when you click a device: which point **there** is the `ELECTRIC_POWER`? Now, before guessing, the draft of the **new** source is computed and mapped through its pattern slots — template first, otherwise the detector. That carries in **both** directions, which was the point: to a device that labels its points (Matter: `role: value.power`, `unit: W`) the detector answers; to one that labels nothing, the template does. Measured at `mqtt-client.0.SmartHome.PC_Jonas`: all ten points without `common.role`, type `mixed`, the type detector makes `info` of it — but the Tasmota template knows that `stat.POWER` is the status point and the power sits in `tele.SENSOR` under `ENERGY.Power`. Swapping from Matter back to MQTT previously found **0 of 7** points; now 6 of 7, with separate read and write sources.
@@ -692,7 +751,7 @@ imported, and that all eleven language files carry the same keys.
692
751
  * A button reads along and stays a button; the misleading “never changes” badge is gone.
693
752
  * JSON fields with a dot in their name can be selected.
694
753
 
695
- All changes in detail, with cause and measurement: [docs/aenderungen-ausfuehrlich.md](docs/aenderungen-ausfuehrlich.md).
754
+ All changes in detail, with cause and measurement: [docs/changes-detailed.md](docs/changes-detailed.md).
696
755
 
697
756
  ### 0.9.12 (2026-09-18)
698
757
  * The small **type badges in the tree** (DEV, CHA, FOL …) now all have the same width. A node without an object of its own shows just a dot there, and its badge was narrower — its name fell out of line.
@@ -728,29 +787,6 @@ All changes in detail, with cause and measurement: [docs/aenderungen-ausfuehrlic
728
787
  * New: **"Referenced in"** on an existing alias. The box below the change comparison searches on click for whatever else mentions the ID — the **scripts** of the javascript adapter with folder, name, state and line numbers, the **files** of the instance folders (that is, the vis and vis-2 views), every loaded **object** (where the matter bridges keep their members, for instance), the **enumerations** and the entries on the point itself (`SET → influxdb.0`) — and the same again for the **source**, including further aliases on it. That answers the question of what was left behind when moving to the alias. Measured on the production system with 24,706 objects and 66 files: the first look takes 1.3 seconds, every further alias after that 0.17. The web interfaces of the adapters are not searched — 160 of the 177 MB of text in the file tree, identical on every ioBroker, and they carry examples like `alias.0.Floor.Room.MotionSensor`; without that boundary the workbench would find its own source files as users of itself. Deliberately without a verdict: a source that is still mentioned is not a fault — a script that feeds it belongs exactly there (of 376 aliases with a source, 61 still had the source mentioned directly, a good share of them rightly so). **And the delete dialog now searches the scripts too** — that only existed when moving, although deleting is the irreversible one
729
788
  * The field picker on a JSON point now copes with every key. Until now the workbench glued the field name onto the access with dots — which only works as long as every part is a valid JavaScript name. `gpu_usages.amd-vaapi.gpu` turned into an arithmetic expression (`?.amd - vaapi?.gpu`), `service.storage./dev/shm.free` and `cpu_usages.1111740.mem` into a syntax error. Measured on a Frigate telegram: of 233 offered fields **27** were usable, the other 206 ended in the red "formula broken" message. `feldFormel` now uses brackets where the key is not a name — `JSON.parse(val)?.gpu_usages?.['amd-vaapi']?.gpu ?? null` — and reads them back again, so the picker stays on the chosen field instead of falling back to "own formula". For ordinary names **not a single character** changes, so the shipped templates are untouched. A dot inside the key itself (`frigate.full_system`) remains unresolvable and still shows "own formula"
730
789
 
731
- ### 0.9.10 (2026-09-13)
732
- * Four things from the full test run. **A channel identifier** was not sanitised in the multi-output path: from the channel name “Licht, Bar” the js-controller quietly made `Licht_ Bar`, while the workbench displayed “Licht, Bar” and wrote it into the enumerations — an identifier that never existed, and after deleting the alias it stayed there as a leftover. `ausgangName` now sanitises itself, and where two channels produce the same name the second gets a `_2`. **The caption** differed between the two views: where the point's name equals the row name, “Edit alias” showed it and “Create alias” an empty field. **The row list** now counts like the tree — `POWER2` before `POWER10`. And **an enumeration the workbench created itself** now also disappears when it becomes empty through a change of function, not only when the alias is deleted
733
- * Tidying: "turn an alias object into a draft row" was written out five times — each with the same write-source rule and slightly different surroundings. Four bugs in this version came from exactly that: the lost write source on the roller shutter, a switching point that became a read-only one, the missing caption on `alias.0.Solar.Netz`, and a deviation the workbench had produced itself. The reading now lives in one place; what the four callers do with it — compare, create, overwrite — stays with them. Behaviour is unchanged
734
- * Three small things spotted during the run. **RSSI** was pre-ticked in the five Tasmota and measuring-point templates but not in the eleven Homematic ones — the same device property, two answers depending on the vendor; it is now unticked everywhere, like the rest of the diagnostics. **The `MAP_URL` slot** in the vacuum pattern got no role because its expression starts without `^` and the derivation demanded both anchors; a missing start anchor no longer counts against a slot. **And the "guessed" tag** in the swap dialog looked like text stuck to the point name — its styling hung on three parent levels that do not exist there. It is now a pill like in the state list and says in its tooltip whether the guess came from the point name or from the role
735
- * The save button in the template dialog now also checks when pressed, not only when drawn. It is re-evaluated when a field is left — typing an open bracket into the name hint and clicking "Save template" without leaving the field left you with a blue button and saved a template with a broken expression. The five lock reasons now live in one place that drawing and saving share
736
- * Three places now say why they cannot. **The save button in the template dialog** was greyed out and silent — five reasons can lock it and none of them was shown; every applicable one now appears on the button and as a box in the dialog. **The error dialog when deleting** only gave a count ("1 operations failed") and not which id is stuck; writing has had that list all along. **And the reason a send point could not be created** hung on a button that the same callback threw away 120 ms later — it now sits at the top of the dry run and survives the rebuild
737
- * If a point's type does not match its pattern slot, all three places now say so — not just the expanded row. If the slot was **required**, the pattern stops applying altogether, and the whole list showed up tinted: on the Bastelzimmer_Licht, switching SET from `boolean` to `mixed` was enough for eight of eight rows to count as "no slot", while the pattern field reported "✕ SET missing" — SET was right there. It now reads "✕ SET: type mixed instead of boolean", and above the list: "The light pattern does not apply right now: SET requires boolean, but mixed is set. That is why no row has a slot." Only the row that causes it is tinted now — the whole list used to light up, which showed the consequence instead of the cause.
738
- * A late answer to `system.config` now really does carry the expert mode over. The tab gives up after 2.5 seconds and continues with the browser language; if the answer arrives later, the language stays as it is (switching after the labels are drawn would be worse), the expert mode is adopted and the tree is redrawn once. That had long been built — but above it sat a guard from the time before, which bailed out in exactly this case. Without the mode, every node under `system.*` and `enum.*` was missing, with nothing saying why
739
- * The swap dialog notices when one level up fits better. The picker lets you choose any node with data points underneath — it has to, because on a flat adapter the channel is the device. With MQTT, though, `stat`, `tele` and `cmnd` are topic folders: landing there finds fewer points, and the lock would ask you to remove some. The workbench now also computes the parent level and says so — "One level up (…) finds a target for 7 of 7 points, here only 5" — with a button that switches the selection. Nothing is forbidden
740
- * The device list in the swap dialog keeps its position. Scrolling down a long list and picking a device used to jump back to the top, with the freshly picked entry out of sight — picking rebuilds the dialog, and the tree is a different element afterwards. If the selected row still ends up outside, it is brought into view. A new search and a freshly opened dialog still start at the top
741
- * When swapping the source, a write target no longer counts if it coincides with the read source. The search tries the bare point name as its last form, so `cmnd.POWER` found a status point that also ends in `POWER` — the alias would then have written to its own read source. Guessing already caught this, matching by path did not; it showed when the new source was picked as a sub-node instead of the device
742
- * When swapping the source, a point that cannot come along now stops the swap instead of letting it fail halfway. A point with separate sources — reads from `stat.POWER`, writes to `cmnd.POWER` — needs both at the new source. If the write target is missing, ioBroker has **no** form that means "reads, writes nowhere": a plain id means "write to the status point", `{read: X}` without `write` is rejected by the js-controller, and `common.write: false` does not protect the source (measured: writing to such an alias overwrote the read source). So the user decides — the checkbox "remove this point when swapping" now appears in this case as well, and "Swap now" stays disabled until someone has decided; the reason shows on the button and as a line in the dialog. Before, the swap started, failed at the controller and left the alias half on the old and half on the new source
743
- * If a write fails during the swap, **nothing** is deleted. The deletions used to run anyway, so an alias that was already half migrated lost points on top of it. Moving an alias has followed that rule for a long time
744
- * "All data points of the device" no longer moves the storage location. For a device with several outputs the workbench creates a folder with one channel per output. The button rebuilds the draft and passed on only the **finished target**; `setzeZiel` reads its last segment as the device name — with several outputs that segment is the output, and it ended up in the folder as well. Every press pushed the location one level deeper, and that is where it was written, too: three clicks produced four folders instead of one (`…Garten-Ventilinsel.POWER2.POWER2.POWER2.POWER2`). The button now passes folder and name separately, the way the output selector next to it has always done. A single-output device was never affected
745
-
746
- ### 0.9.9
747
- * The build source moved from `src/` to `src-admin/`. ioBroker reserves that name for frontend sources that are bundled into `admin/` and never reach the user, and the adapter checker skips such directories when it looks for missing dependencies. `@iobroker/type-detector` therefore stays in `devDependencies`, which is where it belongs: esbuild bakes it into `admin/detector.js` at build time and nothing loads it at runtime. Users receive the finished 71 KB file, not the 548 KB package (W5042)
748
- * The settings page now takes its translations from `admin/i18n/` — the dictionary ioBroker reads itself (`"i18n": true`) and that Weblate can work with. The eleven languages it already carried moved there unchanged; not a word was retranslated. The tab keeps its own dictionary, now at `admin/sprachen/`: 588 keys in German and English, with an unknown language falling back to English. Two dictionaries, two jobs — the name `i18n` is the one the adapter checker inspects, and it expects all eleven languages there (W5603, W5614, W5015)
749
- * The changelog entries for 0.9.7 and 0.9.8 are now complete in all eleven languages. Nine of them carried only a short summary — the English text for 0.9.7 ran to 3,000 characters with five headings and 22 items, the Russian one to 480 without any structure. A test now checks every entry for length, headings and item count against the English original (W1145)
750
- * Two developer-side additions, invisible in the adapter itself: `.vscode/settings.json` wires up the JSON schemas, so mistakes in `io-package.json` or `jsonConfig.json` show up while typing instead of in the adapter checker (S4036). And the GitHub Actions updates no longer run `monthly` — that would ask on the first of every month, at the same moment as everyone else; a cron schedule spreads the load while keeping the monthly rhythm (S8906)
751
- * The data type now follows the role. A pattern slot prescribes not only the role but also the type, and both sit in the same type-detector record — so picking a role sets the matching type as well. Where a slot allows several types nothing is set, and where it prescribes none any choice stays right. If the type does not fit the slot after all, the workbench says so instead of staying quiet: in the row ("expects number"), as a warning underneath, and in the pattern field, which now gives the reason — "✕ CONSUMPTION: type mixed instead of number" — rather than a bare "does not fit". Before, a state with the right role and the wrong type dropped out of the pattern silently, and the whole device was recognised as something lesser Where a role matches several slots that differ in type — the blind's travel direction sits on DIRECTION as a boolean and on DIRECTION_ENUM as a number — the workbench picks the slot whose type fits, and both forms count as right.
752
- * Saving a template no longer loses the write targets. Every actuator that keeps its own state writes to the same point it reads - a blind, a dimmer and a thermostat all use 1.LEVEL for both. Saving dropped the write path in exactly that case, and the resulting alias showed the position but could no longer be moved. Rows that only write, like the blind's STOP, disappeared altogether. With Tasmota it never showed, because there tele.STATE is read and cmnd.POWER is written. The device type in the template sheet was affected by a second slip: three patterns are named differently from their type (blinds/blind, mediaPlayer/media, levelSlider/slider), so a blind always claimed to have no type at all
753
-
754
790
  Older entries: [CHANGELOG_OLD.md](CHANGELOG_OLD.md).
755
791
 
756
792
  ## License
@@ -467,6 +467,10 @@
467
467
  border-bottom:1px solid var(--line);
468
468
  }
469
469
  .erow .geae.tplabw { color:var(--ink-3); background:var(--surface-2); }
470
+ /* Neu in den Alias / faellt heraus - gruen und rot wie in der
471
+ Aenderungskarte, damit beide dasselbe sagen (21.11.2026). */
472
+ .erow .geae.kommt { color:var(--ok, #2e7d32); border-color:currentColor; background:transparent; }
473
+ .erow .geae.geht { color:var(--bad, #c62828); border-color:currentColor; background:transparent; }
470
474
  .leerhilfe .lh2 { margin-top:11px; font-size:12px; color:var(--ink-3); }
471
475
 
472
476
  .footbar {
@@ -924,7 +928,11 @@
924
928
  die Felder darunter auch - und Marken, die unter dem Musterfeld
925
929
  dazukommen, wachsen nach unten, ohne die Zeile zu verschieben.
926
930
  (Unterkanten-Ausrichtung schob genau dann das Feld nach oben.) */
927
- .suggestbox .acts { display:flex; gap:18px; align-items:flex-start; flex-wrap:wrap; width:100%; }
931
+ /* Zeilenabstand 2px: rutschen die Knoepfe unter die Felder, bringen sie
932
+ ihre 16px fuer die fehlende Beschriftung schon mit. Mit 18px dazu
933
+ stand eine leere Zeile zwischen gelbem Satz und Knoepfen (Ricardo,
934
+ 21.11.2026). Nebeneinander bleibt es bei 18px. */
935
+ .suggestbox .acts { display:flex; gap:2px 18px; align-items:flex-start; flex-wrap:wrap; width:100%; }
928
936
  /* Ein Feld ohne Beschriftung (der Knopf) startet um deren Hoehe tiefer,
929
937
  damit es auf der Feldlinie liegt. */
930
938
  .suggestbox .acts .knoepfe { margin-top:16px; }
@@ -988,7 +996,10 @@
988
996
  .btn.mini.wichtig {
989
997
  background:var(--accent); border-color:var(--accent); color:#fff; font-weight:600;
990
998
  }
991
- .btn.mini.wichtig:hover { filter:brightness(1.08); }
999
+ /* `button.btn:hover:not(:disabled)` ist spezifischer und setzte den
1000
+ hellen Grund - weisse Schrift auf Weiss, der Knopf verschwand unter
1001
+ der Maus (Ricardo, 21.11.2026). Also mit derselben Spezifitaet. */
1002
+ button.btn.mini.wichtig:hover:not(:disabled) { background:var(--accent); filter:brightness(1.08); }
992
1003
  /* Leise Fassung: mit passender Vorlage ist Raten nur ein Nebenweg.
993
1004
  Der Rahmen bleibt (schwache Linienfarbe) - ganz ohne laese sich der
994
1005
  Knopf wie eine Beschriftung (Ricardo, 25.08.2026). */