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,302 +1,302 @@
1
1
  {
2
2
  "id": "tasmota-steckdose",
3
- "version": 7,
4
- "rang": 20,
3
+ "version": 8,
4
+ "priority": 20,
5
5
  "name": {
6
6
  "de": "Tasmota-Steckdose",
7
7
  "en": "Tasmota socket"
8
8
  },
9
- "geraetetyp": "socket",
10
- "funktion": "socket",
11
- "erkennung": {
12
- "erforderlich": [
9
+ "deviceType": "socket",
10
+ "enumFunction": "socket",
11
+ "detection": {
12
+ "required": [
13
13
  "cmnd.POWER"
14
14
  ],
15
- "inhalt": {
15
+ "content": {
16
16
  "tele.STATE": "POWER"
17
17
  },
18
- "namenshinweis": "steckdose|dose|stecker|plug|socket",
19
- "hinweis": {
18
+ "nameHint": "steckdose|dose|stecker|plug|socket",
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",
28
- "typ": "boolean",
29
- "lesen": "stat.POWER",
30
- "schreiben": "cmnd.POWER",
31
- "schreibformel": "val ? \"ON\" : \"OFF\"",
32
- "hinweis": {
27
+ "role": "switch",
28
+ "type": "boolean",
29
+ "read": "stat.POWER",
30
+ "write": "cmnd.POWER",
31
+ "writeFormula": "val ? \"ON\" : \"OFF\"",
32
+ "note": {
33
33
  "de": "getrennte Quellen: sonst zeigt der Schalter den Befehl statt des Zustands",
34
34
  "en": "separate sources: otherwise the switch shows the command instead of the state"
35
35
  },
36
- "lesenSonst": {
37
- "punkt": "tele.STATE",
38
- "leseformel": "JSON.parse(val)?.POWER === 'ON'"
36
+ "readFallback": {
37
+ "point": "tele.STATE",
38
+ "readFormula": "JSON.parse(val)?.POWER === 'ON'"
39
39
  }
40
40
  },
41
41
  {
42
42
  "name": "ACTUAL",
43
- "rolle": "sensor.switch",
44
- "typ": "boolean",
45
- "lesen": "stat.POWER",
46
- "hinweis": {
43
+ "role": "sensor.switch",
44
+ "type": "boolean",
45
+ "read": "stat.POWER",
46
+ "note": {
47
47
  "de": "type-detector 6 verlangt sensor.switch oder state.active, blankes state passt nicht mehr",
48
48
  "en": "type-detector 6 requires sensor.switch or state.active; a bare state no longer fits"
49
49
  },
50
- "lesenSonst": {
51
- "punkt": "tele.STATE",
52
- "leseformel": "JSON.parse(val)?.POWER === 'ON'"
50
+ "readFallback": {
51
+ "point": "tele.STATE",
52
+ "readFormula": "JSON.parse(val)?.POWER === 'ON'"
53
53
  }
54
54
  },
55
55
  {
56
56
  "name": "ELECTRIC_POWER",
57
- "rolle": "value.power",
58
- "typ": "number",
59
- "einheit": "W",
60
- "lesen": "tele.SENSOR",
61
- "feld": "ENERGY.Power",
57
+ "role": "value.power",
58
+ "type": "number",
59
+ "unit": "W",
60
+ "read": "tele.SENSOR",
61
+ "jsonField": "ENERGY.Power",
62
62
  "optional": true
63
63
  },
64
64
  {
65
65
  "name": "CONSUMPTION",
66
- "rolle": "value.power.consumption",
67
- "_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.",
68
- "typ": "number",
69
- "einheit": "kWh",
70
- "lesen": "tele.SENSOR",
71
- "feld": "ENERGY.Total",
66
+ "role": "value.energy.consumed",
67
+ "_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.",
68
+ "type": "number",
69
+ "unit": "kWh",
70
+ "read": "tele.SENSOR",
71
+ "jsonField": "ENERGY.Total",
72
72
  "optional": true
73
73
  },
74
74
  {
75
75
  "name": "VOLTAGE",
76
- "rolle": "value.voltage",
77
- "typ": "number",
78
- "einheit": "V",
79
- "lesen": "tele.SENSOR",
80
- "feld": "ENERGY.Voltage",
76
+ "role": "value.voltage",
77
+ "type": "number",
78
+ "unit": "V",
79
+ "read": "tele.SENSOR",
80
+ "jsonField": "ENERGY.Voltage",
81
81
  "optional": true
82
82
  },
83
83
  {
84
84
  "name": "CURRENT",
85
- "rolle": "value.current",
86
- "typ": "number",
87
- "einheit": "A",
88
- "lesen": "tele.SENSOR",
89
- "feld": "ENERGY.Current",
85
+ "role": "value.current",
86
+ "type": "number",
87
+ "unit": "A",
88
+ "read": "tele.SENSOR",
89
+ "jsonField": "ENERGY.Current",
90
90
  "optional": true
91
91
  },
92
92
  {
93
93
  "name": "TODAY",
94
- "rolle": "value",
95
- "typ": "number",
96
- "einheit": "kWh",
97
- "lesen": "tele.SENSOR",
98
- "feld": "ENERGY.Today",
94
+ "role": "value",
95
+ "type": "number",
96
+ "unit": "kWh",
97
+ "read": "tele.SENSOR",
98
+ "jsonField": "ENERGY.Today",
99
99
  "optional": true,
100
- "vorgabeAus": true,
101
- "hinweis": {
100
+ "offByDefault": true,
101
+ "note": {
102
102
  "de": "hat in keinem Muster einen Platz und landet im info-Gerät",
103
103
  "en": "has no slot in any pattern and lands in the info device"
104
104
  }
105
105
  },
106
106
  {
107
107
  "name": "YESTERDAY",
108
- "rolle": "value",
109
- "typ": "number",
110
- "einheit": "kWh",
111
- "lesen": "tele.SENSOR",
112
- "feld": "ENERGY.Yesterday",
108
+ "role": "value",
109
+ "type": "number",
110
+ "unit": "kWh",
111
+ "read": "tele.SENSOR",
112
+ "jsonField": "ENERGY.Yesterday",
113
113
  "optional": true,
114
- "vorgabeAus": true
114
+ "offByDefault": true
115
115
  },
116
116
  {
117
117
  "name": "APPARENT_POWER",
118
- "rolle": "value",
119
- "typ": "number",
120
- "einheit": "VA",
121
- "lesen": "tele.SENSOR",
122
- "feld": "ENERGY.ApparentPower",
118
+ "role": "value",
119
+ "type": "number",
120
+ "unit": "VA",
121
+ "read": "tele.SENSOR",
122
+ "jsonField": "ENERGY.ApparentPower",
123
123
  "optional": true,
124
- "vorgabeAus": true,
125
- "hinweis": {
124
+ "offByDefault": true,
125
+ "note": {
126
126
  "de": "Scheinleistung. Kein Platz in socket oder light — landet wie TODAY im info-Geraet.",
127
127
  "en": "Apparent power. No slot in socket or light — lands in the info device, like TODAY."
128
128
  }
129
129
  },
130
130
  {
131
131
  "name": "REACTIVE_POWER",
132
- "rolle": "value",
133
- "typ": "number",
134
- "einheit": "var",
135
- "lesen": "tele.SENSOR",
136
- "feld": "ENERGY.ReactivePower",
132
+ "role": "value",
133
+ "type": "number",
134
+ "unit": "var",
135
+ "read": "tele.SENSOR",
136
+ "jsonField": "ENERGY.ReactivePower",
137
137
  "optional": true,
138
- "vorgabeAus": true,
139
- "hinweis": {
138
+ "offByDefault": true,
139
+ "note": {
140
140
  "de": "Blindleistung.",
141
141
  "en": "Reactive power."
142
142
  }
143
143
  },
144
144
  {
145
145
  "name": "POWER_FACTOR",
146
- "rolle": "value",
147
- "typ": "number",
148
- "lesen": "tele.SENSOR",
149
- "feld": "ENERGY.Factor",
146
+ "role": "value",
147
+ "type": "number",
148
+ "read": "tele.SENSOR",
149
+ "jsonField": "ENERGY.Factor",
150
150
  "optional": true,
151
- "vorgabeAus": true,
152
- "hinweis": {
151
+ "offByDefault": true,
152
+ "note": {
153
153
  "de": "Leistungsfaktor cos phi, 0 bis 1 — ohne Einheit.",
154
154
  "en": "Power factor cos phi, 0 to 1 — no unit."
155
155
  }
156
156
  },
157
157
  {
158
158
  "name": "UNREACH",
159
- "rolle": "indicator.maintenance.unreach",
160
- "typ": "boolean",
161
- "lesen": "tele.LWT",
162
- "leseformel": "val !== \"Online\"",
159
+ "role": "indicator.maintenance.unreach",
160
+ "type": "boolean",
161
+ "read": "tele.LWT",
162
+ "readFormula": "val !== \"Online\"",
163
163
  "optional": true
164
164
  },
165
165
  {
166
166
  "name": "RSSI",
167
- "rolle": "value.rssi",
168
- "typ": "number",
169
- "einheit": "dBm",
170
- "lesen": "tele.STATE",
171
- "feld": "Wifi.Signal",
167
+ "role": "value.rssi",
168
+ "type": "number",
169
+ "unit": "dBm",
170
+ "read": "tele.STATE",
171
+ "jsonField": "Wifi.Signal",
172
172
  "optional": true,
173
- "vorgabeAus": true
173
+ "offByDefault": true
174
174
  },
175
175
  {
176
176
  "name": "UPTIME",
177
- "rolle": "value",
178
- "typ": "number",
179
- "einheit": "s",
180
- "lesen": "tele.STATE",
181
- "feld": "UptimeSec",
177
+ "role": "value",
178
+ "type": "number",
179
+ "unit": "s",
180
+ "read": "tele.STATE",
181
+ "jsonField": "UptimeSec",
182
182
  "optional": true,
183
- "vorgabeAus": true,
184
- "hinweis": {
183
+ "offByDefault": true,
184
+ "note": {
185
185
  "de": "Sekunden seit dem letzten Start. Faellt der Wert staendig zurueck, startet das Geraet neu.",
186
186
  "en": "Seconds since the last start. If the value keeps falling back, the device is restarting."
187
187
  }
188
188
  },
189
189
  {
190
190
  "name": "LAST_REPORT",
191
- "rolle": "text",
192
- "typ": "string",
193
- "lesen": "tele.STATE",
194
- "feld": "Time",
191
+ "role": "text",
192
+ "type": "string",
193
+ "read": "tele.STATE",
194
+ "jsonField": "Time",
195
195
  "optional": true,
196
- "vorgabeAus": true,
197
- "hinweis": {
196
+ "offByDefault": true,
197
+ "note": {
198
198
  "de": "Zeitstempel der letzten Telemetrie des Geraets, nicht der von ioBroker.",
199
199
  "en": "Timestamp of the device's last telemetry, not ioBroker's."
200
200
  }
201
201
  },
202
202
  {
203
203
  "name": "HEAP",
204
- "rolle": "value",
205
- "typ": "number",
206
- "einheit": "kB",
207
- "lesen": "tele.STATE",
208
- "feld": "Heap",
204
+ "role": "value",
205
+ "type": "number",
206
+ "unit": "kB",
207
+ "read": "tele.STATE",
208
+ "jsonField": "Heap",
209
209
  "optional": true,
210
- "vorgabeAus": true,
211
- "hinweis": {
210
+ "offByDefault": true,
211
+ "note": {
212
212
  "de": "Freier Speicher. Wird er klein, wird das Geraet unzuverlaessig.",
213
213
  "en": "Free memory. If it gets small, the device becomes unreliable."
214
214
  }
215
215
  },
216
216
  {
217
217
  "name": "WIFI_QUALITY",
218
- "rolle": "value",
219
- "typ": "number",
220
- "einheit": "%",
221
- "lesen": "tele.STATE",
222
- "feld": "Wifi.RSSI",
218
+ "role": "value",
219
+ "type": "number",
220
+ "unit": "%",
221
+ "read": "tele.STATE",
222
+ "jsonField": "Wifi.RSSI",
223
223
  "optional": true,
224
- "vorgabeAus": true,
225
- "hinweis": {
224
+ "offByDefault": true,
225
+ "note": {
226
226
  "de": "Guete 0 bis 100. RSSI in dBm steht getrennt daneben.",
227
227
  "en": "Quality 0 to 100. RSSI in dBm is listed separately beside it."
228
228
  }
229
229
  },
230
230
  {
231
231
  "name": "WIFI_SSID",
232
- "rolle": "text",
233
- "typ": "string",
234
- "lesen": "tele.STATE",
235
- "feld": "Wifi.SSId",
232
+ "role": "text",
233
+ "type": "string",
234
+ "read": "tele.STATE",
235
+ "jsonField": "Wifi.SSId",
236
236
  "optional": true,
237
- "vorgabeAus": true
237
+ "offByDefault": true
238
238
  },
239
239
  {
240
240
  "name": "WIFI_LINKCOUNT",
241
- "rolle": "value",
242
- "typ": "number",
243
- "lesen": "tele.STATE",
244
- "feld": "Wifi.LinkCount",
241
+ "role": "value",
242
+ "type": "number",
243
+ "read": "tele.STATE",
244
+ "jsonField": "Wifi.LinkCount",
245
245
  "optional": true,
246
- "vorgabeAus": true,
247
- "hinweis": {
246
+ "offByDefault": true,
247
+ "note": {
248
248
  "de": "Wie oft die WLAN-Verbindung seit dem Start neu aufgebaut wurde.",
249
249
  "en": "How often the Wi-Fi connection has been re-established since start."
250
250
  }
251
251
  },
252
252
  {
253
253
  "name": "WIFI_DOWNTIME",
254
- "rolle": "text",
255
- "typ": "string",
256
- "lesen": "tele.STATE",
257
- "feld": "Wifi.Downtime",
254
+ "role": "text",
255
+ "type": "string",
256
+ "read": "tele.STATE",
257
+ "jsonField": "Wifi.Downtime",
258
258
  "optional": true,
259
- "vorgabeAus": true,
260
- "hinweis": {
259
+ "offByDefault": true,
260
+ "note": {
261
261
  "de": "Summe der Ausfallzeit seit dem Start.",
262
262
  "en": "Total downtime since start."
263
263
  }
264
264
  },
265
265
  {
266
266
  "name": "IP",
267
- "rolle": "text",
268
- "typ": "string",
269
- "lesen": "tele.STATE",
270
- "feld": "IPAddress",
267
+ "role": "text",
268
+ "type": "string",
269
+ "read": "tele.STATE",
270
+ "jsonField": "IPAddress",
271
271
  "optional": true,
272
- "vorgabeAus": true,
273
- "hinweis": {
272
+ "offByDefault": true,
273
+ "note": {
274
274
  "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}).",
275
275
  "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})."
276
276
  },
277
- "lesenSonst": [
277
+ "readFallback": [
278
278
  {
279
- "punkt": "tele.INFO2",
280
- "feld": "Info2.IPAddress"
279
+ "point": "tele.INFO2",
280
+ "jsonField": "Info2.IPAddress"
281
281
  },
282
282
  {
283
- "punkt": "tele.INFO2",
284
- "feld": "IPAddress"
283
+ "point": "tele.INFO2",
284
+ "jsonField": "IPAddress"
285
285
  },
286
286
  {
287
- "punkt": "stat.STATUS5",
288
- "feld": "StatusNET.IPAddress"
287
+ "point": "stat.STATUS5",
288
+ "jsonField": "StatusNET.IPAddress"
289
289
  }
290
290
  ]
291
291
  }
292
292
  ],
293
- "nebenwirkungen": [
293
+ "sideEffects": [
294
294
  {
295
- "art": "mqtt-publish",
296
- "punkt": "cmnd.POWER"
295
+ "kind": "mqtt-publish",
296
+ "point": "cmnd.POWER"
297
297
  }
298
298
  ],
299
- "weiterePunkte": {
299
+ "extraPoints": {
300
300
  "tele.LWT": "text",
301
301
  "tele.STATE": "json",
302
302
  "tele.SENSOR": "json",