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
@@ -1,294 +1,294 @@
1
1
  {
2
2
  "id": "tasmota-lampe",
3
- "version": 7,
4
- "rang": 10,
3
+ "version": 8,
4
+ "priority": 10,
5
5
  "name": {
6
6
  "de": "Tasmota-Lampe",
7
7
  "en": "Tasmota light"
8
8
  },
9
- "geraetetyp": "light",
10
- "funktion": "light",
11
- "erkennung": {
12
- "erforderlich": [
9
+ "deviceType": "light",
10
+ "enumFunction": "light",
11
+ "detection": {
12
+ "required": [
13
13
  "cmnd.POWER"
14
14
  ],
15
- "inhalt": {
15
+ "content": {
16
16
  "tele.STATE": "POWER"
17
17
  },
18
- "namenshinweis": "licht|lampe|light|led|leuchte|strahler",
19
- "hinweis": {
18
+ "nameHint": "licht|lampe|light|led|leuchte|strahler",
19
+ "note": {
20
20
  "de": "stat.POWER steht bewusst nicht in der Pflichtliste: den Punkt legt der mqtt-Adapter erst an, wenn das Geraet zum ersten Mal geschaltet hat. Vorher haette die Vorlage nie gegriffen, obwohl der Schaltzustand die ganze Zeit in tele.STATE steht - von dort liest sie ersatzweise. cmnd.POWER bleibt dagegen Pflicht: es ist der Beleg dafuer, dass hier ueberhaupt etwas zu schalten ist. Ohne ihn wuerde jeder blosse Messpunkt mit Relaismeldung als Steckdose durchgehen.",
21
21
  "en": "stat.POWER is deliberately not in the required list: the mqtt adapter only creates the point once the device has been switched for the first time. Before that the template would never have matched, even though the switch state has been in tele.STATE the whole time — that is where it reads from instead. cmnd.POWER stays required: it is the evidence that there is anything to switch here at all. Without it every bare measuring point with a relay report would pass as a socket."
22
22
  }
23
23
  },
24
- "zustaende": [
24
+ "points": [
25
25
  {
26
26
  "name": "SET",
27
- "rolle": "switch.light",
28
- "typ": "boolean",
29
- "lesen": "stat.POWER",
30
- "schreiben": "cmnd.POWER",
31
- "schreibformel": "val ? \"ON\" : \"OFF\"",
32
- "lesenSonst": {
33
- "punkt": "tele.STATE",
34
- "leseformel": "JSON.parse(val)?.POWER === 'ON'"
27
+ "role": "switch.light",
28
+ "type": "boolean",
29
+ "read": "stat.POWER",
30
+ "write": "cmnd.POWER",
31
+ "writeFormula": "val ? \"ON\" : \"OFF\"",
32
+ "readFallback": {
33
+ "point": "tele.STATE",
34
+ "readFormula": "JSON.parse(val)?.POWER === 'ON'"
35
35
  }
36
36
  },
37
37
  {
38
38
  "name": "ON_ACTUAL",
39
- "rolle": "sensor.light",
40
- "typ": "boolean",
41
- "lesen": "stat.POWER",
42
- "hinweis": {
39
+ "role": "sensor.light",
40
+ "type": "boolean",
41
+ "read": "stat.POWER",
42
+ "note": {
43
43
  "de": "beim light heisst die Rueckmeldung ON_ACTUAL, nicht ACTUAL",
44
44
  "en": "on light the feedback is called ON_ACTUAL, not ACTUAL"
45
45
  },
46
- "lesenSonst": {
47
- "punkt": "tele.STATE",
48
- "leseformel": "JSON.parse(val)?.POWER === 'ON'"
46
+ "readFallback": {
47
+ "point": "tele.STATE",
48
+ "readFormula": "JSON.parse(val)?.POWER === 'ON'"
49
49
  }
50
50
  },
51
51
  {
52
52
  "name": "ELECTRIC_POWER",
53
- "rolle": "value.power",
54
- "typ": "number",
55
- "einheit": "W",
56
- "lesen": "tele.SENSOR",
57
- "feld": "ENERGY.Power",
53
+ "role": "value.power",
54
+ "type": "number",
55
+ "unit": "W",
56
+ "read": "tele.SENSOR",
57
+ "jsonField": "ENERGY.Power",
58
58
  "optional": true
59
59
  },
60
60
  {
61
61
  "name": "CONSUMPTION",
62
- "rolle": "value.power.consumption",
63
- "_rolle": "value.power.consumption is struck through in the ioBroker state roles list, but @iobroker/type-detector 6.0.x recognises CONSUMPTION only with exactly this role (typePatterns.js, pattern 'consumption', defaultRole 'value.power.consumption'). With value.energy.consumed the point would drop out of the detected device, and vis, Alexa and the device manager would no longer show the consumption. Kept on purpose until the type-detector moves to the new role.",
64
- "typ": "number",
65
- "einheit": "kWh",
66
- "lesen": "tele.SENSOR",
67
- "feld": "ENERGY.Total",
62
+ "role": "value.energy.consumed",
63
+ "_role": "value.energy.consumed is the current role for a consumed amount of energy: the unit is Wh, which is energy and not power, so it belongs under value.energy.* rather than under value.power.* (that one holds W and kW). The ioBroker state roles list strikes value.power.consumption through for exactly that reason. @iobroker/type-detector accepts both roles at the CONSUMPTION place since 6.0.3 (typePatterns.js, pattern 'consumption', issue 334, PR 339) and has value.energy.consumed as its defaultRole. Note for anyone reading such an alias with a detector older than 6.0.3: there the place accepts the struck-through role only, so the point drops out of the detected device - update the reading adapter.",
64
+ "type": "number",
65
+ "unit": "kWh",
66
+ "read": "tele.SENSOR",
67
+ "jsonField": "ENERGY.Total",
68
68
  "optional": true
69
69
  },
70
70
  {
71
71
  "name": "VOLTAGE",
72
- "rolle": "value.voltage",
73
- "typ": "number",
74
- "einheit": "V",
75
- "lesen": "tele.SENSOR",
76
- "feld": "ENERGY.Voltage",
72
+ "role": "value.voltage",
73
+ "type": "number",
74
+ "unit": "V",
75
+ "read": "tele.SENSOR",
76
+ "jsonField": "ENERGY.Voltage",
77
77
  "optional": true
78
78
  },
79
79
  {
80
80
  "name": "CURRENT",
81
- "rolle": "value.current",
82
- "typ": "number",
83
- "einheit": "A",
84
- "lesen": "tele.SENSOR",
85
- "feld": "ENERGY.Current",
81
+ "role": "value.current",
82
+ "type": "number",
83
+ "unit": "A",
84
+ "read": "tele.SENSOR",
85
+ "jsonField": "ENERGY.Current",
86
86
  "optional": true
87
87
  },
88
88
  {
89
89
  "name": "TODAY",
90
- "rolle": "value",
91
- "typ": "number",
92
- "einheit": "kWh",
93
- "lesen": "tele.SENSOR",
94
- "feld": "ENERGY.Today",
90
+ "role": "value",
91
+ "type": "number",
92
+ "unit": "kWh",
93
+ "read": "tele.SENSOR",
94
+ "jsonField": "ENERGY.Today",
95
95
  "optional": true,
96
- "vorgabeAus": true
96
+ "offByDefault": true
97
97
  },
98
98
  {
99
99
  "name": "YESTERDAY",
100
- "rolle": "value",
101
- "typ": "number",
102
- "einheit": "kWh",
103
- "lesen": "tele.SENSOR",
104
- "feld": "ENERGY.Yesterday",
100
+ "role": "value",
101
+ "type": "number",
102
+ "unit": "kWh",
103
+ "read": "tele.SENSOR",
104
+ "jsonField": "ENERGY.Yesterday",
105
105
  "optional": true,
106
- "vorgabeAus": true
106
+ "offByDefault": true
107
107
  },
108
108
  {
109
109
  "name": "APPARENT_POWER",
110
- "rolle": "value",
111
- "typ": "number",
112
- "einheit": "VA",
113
- "lesen": "tele.SENSOR",
114
- "feld": "ENERGY.ApparentPower",
110
+ "role": "value",
111
+ "type": "number",
112
+ "unit": "VA",
113
+ "read": "tele.SENSOR",
114
+ "jsonField": "ENERGY.ApparentPower",
115
115
  "optional": true,
116
- "vorgabeAus": true,
117
- "hinweis": {
116
+ "offByDefault": true,
117
+ "note": {
118
118
  "de": "Scheinleistung. Kein Platz in socket oder light — landet wie TODAY im info-Geraet.",
119
119
  "en": "Apparent power. No slot in socket or light — lands in the info device, like TODAY."
120
120
  }
121
121
  },
122
122
  {
123
123
  "name": "REACTIVE_POWER",
124
- "rolle": "value",
125
- "typ": "number",
126
- "einheit": "var",
127
- "lesen": "tele.SENSOR",
128
- "feld": "ENERGY.ReactivePower",
124
+ "role": "value",
125
+ "type": "number",
126
+ "unit": "var",
127
+ "read": "tele.SENSOR",
128
+ "jsonField": "ENERGY.ReactivePower",
129
129
  "optional": true,
130
- "vorgabeAus": true,
131
- "hinweis": {
130
+ "offByDefault": true,
131
+ "note": {
132
132
  "de": "Blindleistung.",
133
133
  "en": "Reactive power."
134
134
  }
135
135
  },
136
136
  {
137
137
  "name": "POWER_FACTOR",
138
- "rolle": "value",
139
- "typ": "number",
140
- "lesen": "tele.SENSOR",
141
- "feld": "ENERGY.Factor",
138
+ "role": "value",
139
+ "type": "number",
140
+ "read": "tele.SENSOR",
141
+ "jsonField": "ENERGY.Factor",
142
142
  "optional": true,
143
- "vorgabeAus": true,
144
- "hinweis": {
143
+ "offByDefault": true,
144
+ "note": {
145
145
  "de": "Leistungsfaktor cos phi, 0 bis 1 — ohne Einheit.",
146
146
  "en": "Power factor cos phi, 0 to 1 — no unit."
147
147
  }
148
148
  },
149
149
  {
150
150
  "name": "UNREACH",
151
- "rolle": "indicator.maintenance.unreach",
152
- "typ": "boolean",
153
- "lesen": "tele.LWT",
154
- "leseformel": "val !== \"Online\"",
151
+ "role": "indicator.maintenance.unreach",
152
+ "type": "boolean",
153
+ "read": "tele.LWT",
154
+ "readFormula": "val !== \"Online\"",
155
155
  "optional": true
156
156
  },
157
157
  {
158
158
  "name": "RSSI",
159
- "rolle": "value.rssi",
160
- "typ": "number",
161
- "einheit": "dBm",
162
- "lesen": "tele.STATE",
163
- "feld": "Wifi.Signal",
159
+ "role": "value.rssi",
160
+ "type": "number",
161
+ "unit": "dBm",
162
+ "read": "tele.STATE",
163
+ "jsonField": "Wifi.Signal",
164
164
  "optional": true,
165
- "vorgabeAus": true
165
+ "offByDefault": true
166
166
  },
167
167
  {
168
168
  "name": "UPTIME",
169
- "rolle": "value",
170
- "typ": "number",
171
- "einheit": "s",
172
- "lesen": "tele.STATE",
173
- "feld": "UptimeSec",
169
+ "role": "value",
170
+ "type": "number",
171
+ "unit": "s",
172
+ "read": "tele.STATE",
173
+ "jsonField": "UptimeSec",
174
174
  "optional": true,
175
- "vorgabeAus": true,
176
- "hinweis": {
175
+ "offByDefault": true,
176
+ "note": {
177
177
  "de": "Sekunden seit dem letzten Start. Faellt der Wert staendig zurueck, startet das Geraet neu.",
178
178
  "en": "Seconds since the last start. If the value keeps falling back, the device is restarting."
179
179
  }
180
180
  },
181
181
  {
182
182
  "name": "LAST_REPORT",
183
- "rolle": "text",
184
- "typ": "string",
185
- "lesen": "tele.STATE",
186
- "feld": "Time",
183
+ "role": "text",
184
+ "type": "string",
185
+ "read": "tele.STATE",
186
+ "jsonField": "Time",
187
187
  "optional": true,
188
- "vorgabeAus": true,
189
- "hinweis": {
188
+ "offByDefault": true,
189
+ "note": {
190
190
  "de": "Zeitstempel der letzten Telemetrie des Geraets, nicht der von ioBroker.",
191
191
  "en": "Timestamp of the device's last telemetry, not ioBroker's."
192
192
  }
193
193
  },
194
194
  {
195
195
  "name": "HEAP",
196
- "rolle": "value",
197
- "typ": "number",
198
- "einheit": "kB",
199
- "lesen": "tele.STATE",
200
- "feld": "Heap",
196
+ "role": "value",
197
+ "type": "number",
198
+ "unit": "kB",
199
+ "read": "tele.STATE",
200
+ "jsonField": "Heap",
201
201
  "optional": true,
202
- "vorgabeAus": true,
203
- "hinweis": {
202
+ "offByDefault": true,
203
+ "note": {
204
204
  "de": "Freier Speicher. Wird er klein, wird das Geraet unzuverlaessig.",
205
205
  "en": "Free memory. If it gets small, the device becomes unreliable."
206
206
  }
207
207
  },
208
208
  {
209
209
  "name": "WIFI_QUALITY",
210
- "rolle": "value",
211
- "typ": "number",
212
- "einheit": "%",
213
- "lesen": "tele.STATE",
214
- "feld": "Wifi.RSSI",
210
+ "role": "value",
211
+ "type": "number",
212
+ "unit": "%",
213
+ "read": "tele.STATE",
214
+ "jsonField": "Wifi.RSSI",
215
215
  "optional": true,
216
- "vorgabeAus": true,
217
- "hinweis": {
216
+ "offByDefault": true,
217
+ "note": {
218
218
  "de": "Guete 0 bis 100. RSSI in dBm steht getrennt daneben.",
219
219
  "en": "Quality 0 to 100. RSSI in dBm is listed separately beside it."
220
220
  }
221
221
  },
222
222
  {
223
223
  "name": "WIFI_SSID",
224
- "rolle": "text",
225
- "typ": "string",
226
- "lesen": "tele.STATE",
227
- "feld": "Wifi.SSId",
224
+ "role": "text",
225
+ "type": "string",
226
+ "read": "tele.STATE",
227
+ "jsonField": "Wifi.SSId",
228
228
  "optional": true,
229
- "vorgabeAus": true
229
+ "offByDefault": true
230
230
  },
231
231
  {
232
232
  "name": "WIFI_LINKCOUNT",
233
- "rolle": "value",
234
- "typ": "number",
235
- "lesen": "tele.STATE",
236
- "feld": "Wifi.LinkCount",
233
+ "role": "value",
234
+ "type": "number",
235
+ "read": "tele.STATE",
236
+ "jsonField": "Wifi.LinkCount",
237
237
  "optional": true,
238
- "vorgabeAus": true,
239
- "hinweis": {
238
+ "offByDefault": true,
239
+ "note": {
240
240
  "de": "Wie oft die WLAN-Verbindung seit dem Start neu aufgebaut wurde.",
241
241
  "en": "How often the Wi-Fi connection has been re-established since start."
242
242
  }
243
243
  },
244
244
  {
245
245
  "name": "WIFI_DOWNTIME",
246
- "rolle": "text",
247
- "typ": "string",
248
- "lesen": "tele.STATE",
249
- "feld": "Wifi.Downtime",
246
+ "role": "text",
247
+ "type": "string",
248
+ "read": "tele.STATE",
249
+ "jsonField": "Wifi.Downtime",
250
250
  "optional": true,
251
- "vorgabeAus": true,
252
- "hinweis": {
251
+ "offByDefault": true,
252
+ "note": {
253
253
  "de": "Summe der Ausfallzeit seit dem Start.",
254
254
  "en": "Total downtime since start."
255
255
  }
256
256
  },
257
257
  {
258
258
  "name": "IP",
259
- "rolle": "text",
260
- "typ": "string",
261
- "lesen": "tele.STATE",
262
- "feld": "IPAddress",
259
+ "role": "text",
260
+ "type": "string",
261
+ "read": "tele.STATE",
262
+ "jsonField": "IPAddress",
263
263
  "optional": true,
264
- "vorgabeAus": true,
265
- "hinweis": {
264
+ "offByDefault": true,
265
+ "note": {
266
266
  "de": "Drei Wege, weil keiner allein reicht. tele.STATE steht zuerst, weil es alle paar Minuten frisch kommt und einem Adresswechsel folgt - allerdings fuehrt es die IP erst ab neuerer Firmware mit (gemessen: 12.5.0 nein, 15.5.0 ja). tele.INFO2 schickt eine Tasmota beim Start und laesst es retained stehen; das steht auch bei alter Firmware da, ist aber ein Standbild vom letzten Boot. stat.STATUS5 entsteht, wenn jemand den Status abfragt. Aeltere Firmware schreibt die Felder in tele.INFO2 ohne die Huelle Info2 - deshalb derselbe Punkt zweimal, einmal mit und einmal ohne (gemessen 20.09.2026 am Badlicht: {WebServerMode, Hostname, IPAddress}).",
267
267
  "en": "Three paths, because none of them is enough on its own. tele.STATE comes first, because it arrives fresh every few minutes and follows an address change — though it only carries the IP from newer firmware on (measured: 12.5.0 no, 15.5.0 yes). tele.INFO2 is sent by a Tasmota at start and left retained; it is there on old firmware too, but it is a snapshot from the last boot. stat.STATUS5 appears when someone queries the status. Older firmware writes the fields into tele.INFO2 without the Info2 wrapper — hence the same point twice, once with and once without (measured 20.09.2026 on Badlicht: {WebServerMode, Hostname, IPAddress})."
268
268
  },
269
- "lesenSonst": [
269
+ "readFallback": [
270
270
  {
271
- "punkt": "tele.INFO2",
272
- "feld": "Info2.IPAddress"
271
+ "point": "tele.INFO2",
272
+ "jsonField": "Info2.IPAddress"
273
273
  },
274
274
  {
275
- "punkt": "tele.INFO2",
276
- "feld": "IPAddress"
275
+ "point": "tele.INFO2",
276
+ "jsonField": "IPAddress"
277
277
  },
278
278
  {
279
- "punkt": "stat.STATUS5",
280
- "feld": "StatusNET.IPAddress"
279
+ "point": "stat.STATUS5",
280
+ "jsonField": "StatusNET.IPAddress"
281
281
  }
282
282
  ]
283
283
  }
284
284
  ],
285
- "nebenwirkungen": [
285
+ "sideEffects": [
286
286
  {
287
- "art": "mqtt-publish",
288
- "punkt": "cmnd.POWER"
287
+ "kind": "mqtt-publish",
288
+ "point": "cmnd.POWER"
289
289
  }
290
290
  ],
291
- "weiterePunkte": {
291
+ "extraPoints": {
292
292
  "tele.LWT": "text",
293
293
  "tele.STATE": "json",
294
294
  "tele.SENSOR": "json",