iobroker.hm-rpc 2.0.2 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2014-2024 bluefox <dogafox@gmail.com>
3
+ Copyright (c) 2014-2025 bluefox <dogafox@gmail.com>
4
4
 
5
5
  Copyright (c) 2014 hobbyquaker
6
6
 
package/README.md CHANGED
@@ -158,6 +158,14 @@ To update all available images execute `npm run update-images`
158
158
  Placeholder for the next version (at the beginning of the line):
159
159
  ### **WORK IN PROGRESS**
160
160
  -->
161
+ ### 3.0.1 (2025-10-22)
162
+ * (bluefox) Renamed role of `STICKY_UNREACH` to `indicator.unreach.sticky` for the better typing detection
163
+
164
+ ### 3.0.0 (2025-10-21)
165
+ * (bluefox) Updated packages and used `@iobroker/eslint-config`
166
+ * (bluefox) Renamed some roles for the better typing detection
167
+ * (bluefox) Removed support of Node.js 18
168
+
161
169
  ### 2.0.2 (2024-08-26)
162
170
  * (bluefox) Updated packages
163
171
 
@@ -168,14 +176,6 @@ To update all available images execute `npm run update-images`
168
176
  ### 1.17.0 (2024-03-18)
169
177
  * (klein0r) Fixed encrypted configuration
170
178
 
171
- ### 1.16.1 (2024-03-05)
172
- * (bluefox) Improved the configuration layout
173
-
174
- ### 1.16.0 (2023-12-25)
175
- * (JeyCee) Added support for the device manager
176
- * (bluefox) Added JSON config
177
- * (foxriver76) port to adapters internal `setTimeout/setInterval` methods
178
-
179
179
  ### Older entries
180
180
  [here](OLD_CHANGELOG.md)
181
181
 
@@ -183,7 +183,7 @@ To update all available images execute `npm run update-images`
183
183
 
184
184
  The MIT License (MIT)
185
185
 
186
- Copyright (c) 2014-2024 bluefox <dogafox@gmail.com>
186
+ Copyright (c) 2014-2025 bluefox <dogafox@gmail.com>
187
187
 
188
188
  Copyright (c) 2014 hobbyquaker
189
189
 
@@ -6,6 +6,7 @@
6
6
  "BIN-RPC does not work with HTTPS. HTTPS has been disabled.": "BIN-RPC ist nicht HTTPS kompatibel. HTTPS wurde deaktiviert.",
7
7
  "Check communication interval": "Verbindungs-Test Intervall",
8
8
  "Daemon": "Dämon",
9
+ "Device manager": "Geräte-Manager",
9
10
  "Don't delete devices": "Geräte bei Adapterstart nicht löschen",
10
11
  "Force objects re-init": "Geräte neu einlesen (einmalig)",
11
12
  "HomeMatic Address": "HomeMatic Adresse",
@@ -18,7 +19,7 @@
18
19
  "Protocol": "Protokoll",
19
20
  "Reconnect interval": "Wiederverbindungs-Intervall",
20
21
  "This IP is unreachable from %s": "Diese IP ist nicht erreichbar von %s",
21
- "Use https": "HTTPS benutzen",
22
+ "Use https": "HTTPS verwenden",
22
23
  "Username": "Benutzername",
23
24
  "in seconds": "in Sekunden"
24
25
  }
@@ -6,6 +6,7 @@
6
6
  "BIN-RPC does not work with HTTPS. HTTPS has been disabled.": "BIN-RPC does not work with HTTPS. HTTPS has been disabled.",
7
7
  "Check communication interval": "Check communication interval",
8
8
  "Daemon": "Daemon",
9
+ "Device manager": "Device manager",
9
10
  "Don't delete devices": "Don't delete devices on adapter start",
10
11
  "Force objects re-init": "Synchronize objects (once)",
11
12
  "HomeMatic Address": "HomeMatic Address",
@@ -6,6 +6,7 @@
6
6
  "BIN-RPC does not work with HTTPS. HTTPS has been disabled.": "BIN-RPC no funciona con HTTPS. HTTPS ha sido desactivado.",
7
7
  "Check communication interval": "Verificar el intervalo de comunicación",
8
8
  "Daemon": "Demonio",
9
+ "Device manager": "Administrador de dispositivos",
9
10
  "Don't delete devices": "No elimine dispositivos al iniciar el adaptador",
10
11
  "Force objects re-init": "Sincronizar objetos (una vez)",
11
12
  "HomeMatic Address": "Dirección HomeMatic",
@@ -6,6 +6,7 @@
6
6
  "BIN-RPC does not work with HTTPS. HTTPS has been disabled.": "BIN-RPC ne fonctionne pas avec HTTPS. HTTPS a été désactivé.",
7
7
  "Check communication interval": "Vérifier l'intervalle de communication",
8
8
  "Daemon": "Démon",
9
+ "Device manager": "Gestionnaire de périphériques",
9
10
  "Don't delete devices": "Ne supprimez pas les périphériques au démarrage de l'adaptateur",
10
11
  "Force objects re-init": "Synchroniser des objets (une fois)",
11
12
  "HomeMatic Address": "Adresse de HomeMatic",
@@ -6,6 +6,7 @@
6
6
  "BIN-RPC does not work with HTTPS. HTTPS has been disabled.": "BIN-RPC non funziona con HTTPS. HTTPS è stato disabilitato.",
7
7
  "Check communication interval": "Controllare l'intervallo di comunicazione",
8
8
  "Daemon": "Demone",
9
+ "Device manager": "Gestore dispositivi",
9
10
  "Don't delete devices": "Non eliminare i dispositivi all'avvio dell'adattatore",
10
11
  "Force objects re-init": "Sincronizza oggetti (una volta)",
11
12
  "HomeMatic Address": "Indirizzo HomeMatic",
@@ -6,6 +6,7 @@
6
6
  "BIN-RPC does not work with HTTPS. HTTPS has been disabled.": "BIN-RPC werkt niet met HTTPS. HTTPS is uitgeschakeld.",
7
7
  "Check communication interval": "Controleer communicatie-interval",
8
8
  "Daemon": "Demon",
9
+ "Device manager": "Apparaatbeheer",
9
10
  "Don't delete devices": "Verwijder geen apparaten bij het starten van de adapter",
10
11
  "Force objects re-init": "Synchroniseer objecten (één keer)",
11
12
  "HomeMatic Address": "HomeMatic-adres",
@@ -6,6 +6,7 @@
6
6
  "BIN-RPC does not work with HTTPS. HTTPS has been disabled.": "BIN-RPC nie działa z HTTPS. HTTPS został wyłączony.",
7
7
  "Check communication interval": "Sprawdź interwał komunikacji",
8
8
  "Daemon": "Daemon",
9
+ "Device manager": "Menedżer urządzeń",
9
10
  "Don't delete devices": "Nie usuwaj urządzeń przy uruchamianiu adaptera",
10
11
  "Force objects re-init": "Synchronizuj obiekty (raz)",
11
12
  "HomeMatic Address": "Adres HomeMatic",
@@ -6,6 +6,7 @@
6
6
  "BIN-RPC does not work with HTTPS. HTTPS has been disabled.": "O BIN-RPC não funciona com HTTPS. HTTPS foi desativado.",
7
7
  "Check communication interval": "Verifique o intervalo de comunicação",
8
8
  "Daemon": "Daemon",
9
+ "Device manager": "Gerenciador de dispositivos",
9
10
  "Don't delete devices": "Não exclua dispositivos na inicialização do adaptador",
10
11
  "Force objects re-init": "Sincronizar objetos (uma vez)",
11
12
  "HomeMatic Address": "Endereço HomeMatic",
@@ -6,6 +6,7 @@
6
6
  "BIN-RPC does not work with HTTPS. HTTPS has been disabled.": "BIN-RPC не работает с HTTPS. HTTPS отключен.",
7
7
  "Check communication interval": "Интервал проверки соединения",
8
8
  "Daemon": "Служба",
9
+ "Device manager": "Диспетчер устройств",
9
10
  "Don't delete devices": "Не удаляйте устройства при старте адаптера",
10
11
  "Force objects re-init": "Синхронизировать объекты (один раз)",
11
12
  "HomeMatic Address": "Адрес HomeMatic",
@@ -6,6 +6,7 @@
6
6
  "BIN-RPC does not work with HTTPS. HTTPS has been disabled.": "BIN-RPC не працює з HTTPS. HTTPS вимкнено.",
7
7
  "Check communication interval": "Перевірте інтервал зв'язку",
8
8
  "Daemon": "Демон",
9
+ "Device manager": "Диспетчер пристроїв",
9
10
  "Don't delete devices": "Не видаляйте пристрої під час запуску адаптера",
10
11
  "Force objects re-init": "Синхронізувати об'єкти (один раз)",
11
12
  "HomeMatic Address": "Адреса HomeMatic",
@@ -6,6 +6,7 @@
6
6
  "BIN-RPC does not work with HTTPS. HTTPS has been disabled.": "BIN-RPC不适用于HTTPS。 HTTPS已被禁用。",
7
7
  "Check communication interval": "检查通信间隔",
8
8
  "Daemon": "守护进程",
9
+ "Device manager": "装置经理",
9
10
  "Don't delete devices": "不要在适配器启动时删除设备",
10
11
  "Force objects re-init": "同步对象(一次)",
11
12
  "HomeMatic Address": "HomeMatic地址",
@@ -1,222 +1,216 @@
1
1
  {
2
- "i18n": true,
3
- "type": "tabs",
4
- "items": {
5
- "_main": {
6
- "type": "panel",
7
- "label": "Main settings",
8
- "items": {
9
- "homematicAddress": {
10
- "type": "text",
11
- "label": "HomeMatic Address",
12
- "xs": 12,
13
- "sm": 10,
14
- "md": 6,
15
- "lg": 4
16
- },
17
- "homematicPort": {
18
- "type": "port",
19
- "label": "HomeMatic Port",
20
- "xs": 12,
21
- "sm": 2,
22
- "md": 2,
23
- "lg": 2,
24
- "onChange": {
25
- "alsoDependsOn": [
26
- "useHttps",
27
- "daemon",
28
- "type"
29
- ],
30
- "calculateFunc": "data.daemon === 'rfd' ? (data.useHttps && data.type !== 'bin' ? 42001 : 2001) : (data.daemon === 'virtual-devices' ? (data.useHttps && data.type !== 'bin' ? 49292 : 9292) : (data.daemon === 'hs485d' ? (data.useHttps && data.type !== 'bin' ? 42000 : 2000) : (data.daemon === 'CUxD' ? 8701 : (data.daemon === 'HMIP' ? (data.useHttps && data.type !== 'bin' ? 42010 : 2010) : data.homematicPort))))",
31
- "ignoreOwnChanges": true
32
- }
33
- },
34
- "adapterAddress": {
35
- "newLine": true,
36
- "type": "ip",
37
- "label": "Adapter Address",
38
- "xs": 12,
39
- "sm": 10,
40
- "md": 6,
41
- "lg": 4
42
- },
43
- "port": {
44
- "type": "number",
45
- "min": 0,
46
- "max": 65535,
47
- "label": "Adapter Port",
48
- "xs": 12,
49
- "sm": 2,
50
- "md": 2,
51
- "lg": 2
2
+ "i18n": true,
3
+ "type": "tabs",
4
+ "items": {
5
+ "_main": {
6
+ "type": "panel",
7
+ "label": "Main settings",
8
+ "items": {
9
+ "homematicAddress": {
10
+ "type": "text",
11
+ "label": "HomeMatic Address",
12
+ "xs": 12,
13
+ "sm": 10,
14
+ "md": 6,
15
+ "lg": 4
16
+ },
17
+ "homematicPort": {
18
+ "type": "port",
19
+ "label": "HomeMatic Port",
20
+ "xs": 12,
21
+ "sm": 2,
22
+ "md": 2,
23
+ "lg": 2,
24
+ "onChange": {
25
+ "alsoDependsOn": ["useHttps", "daemon", "type"],
26
+ "calculateFunc": "data.daemon === 'rfd' ? (data.useHttps && data.type !== 'bin' ? 42001 : 2001) : (data.daemon === 'virtual-devices' ? (data.useHttps && data.type !== 'bin' ? 49292 : 9292) : (data.daemon === 'hs485d' ? (data.useHttps && data.type !== 'bin' ? 42000 : 2000) : (data.daemon === 'CUxD' ? 8701 : (data.daemon === 'HMIP' ? (data.useHttps && data.type !== 'bin' ? 42010 : 2010) : data.homematicPort))))",
27
+ "ignoreOwnChanges": true
28
+ }
29
+ },
30
+ "adapterAddress": {
31
+ "newLine": true,
32
+ "type": "ip",
33
+ "label": "Adapter Address",
34
+ "xs": 12,
35
+ "sm": 10,
36
+ "md": 6,
37
+ "lg": 4
38
+ },
39
+ "port": {
40
+ "type": "number",
41
+ "min": 0,
42
+ "max": 65535,
43
+ "label": "Adapter Port",
44
+ "xs": 12,
45
+ "sm": 2,
46
+ "md": 2,
47
+ "lg": 2
48
+ },
49
+ "daemon": {
50
+ "newLine": true,
51
+ "type": "select",
52
+ "label": "Daemon",
53
+ "options": [
54
+ {
55
+ "label": "HomeMatic IP",
56
+ "value": "HMIP"
57
+ },
58
+ {
59
+ "label": "rfd",
60
+ "value": "rfd"
61
+ },
62
+ {
63
+ "label": "Virtual Devices",
64
+ "value": "virtual-devices"
65
+ },
66
+ {
67
+ "label": "hs485d",
68
+ "value": "hs485d"
69
+ },
70
+ {
71
+ "label": "CUxD",
72
+ "value": "CUxD"
73
+ },
74
+ {
75
+ "label": "Homegear",
76
+ "value": "Homegear"
77
+ }
78
+ ],
79
+ "xs": 12,
80
+ "sm": 10,
81
+ "md": 6,
82
+ "lg": 4
83
+ },
84
+ "type": {
85
+ "type": "select",
86
+ "label": "Protocol",
87
+ "options": [
88
+ {
89
+ "label": "XML-RPC",
90
+ "value": "xml"
91
+ },
92
+ {
93
+ "label": "BIN-RPC",
94
+ "value": "bin"
95
+ }
96
+ ],
97
+ "xs": 12,
98
+ "sm": 12,
99
+ "md": 4,
100
+ "lg": 2
101
+ },
102
+ "forceReInit": {
103
+ "newLine": true,
104
+ "type": "checkbox",
105
+ "label": "Force objects re-init",
106
+ "xs": 12,
107
+ "sm": 10,
108
+ "md": 6,
109
+ "lg": 4
110
+ }
111
+ }
52
112
  },
53
- "daemon": {
54
- "newLine": true,
55
- "type": "select",
56
- "label": "Daemon",
57
- "options": [
58
- {
59
- "label": "HomeMatic IP",
60
- "value": "HMIP"
61
- },
62
- {
63
- "label": "rfd",
64
- "value": "rfd"
65
- },
66
- {
67
- "label": "Virtual Devices",
68
- "value": "virtual-devices"
69
- },
70
- {
71
- "label": "hs485d",
72
- "value": "hs485d"
73
- },
74
- {
75
- "label": "CUxD",
76
- "value": "CUxD"
77
- },
78
- {
79
- "label": "Homegear",
80
- "value": "Homegear"
113
+ "_advanced": {
114
+ "type": "panel",
115
+ "label": "Additional settings",
116
+ "items": {
117
+ "callbackAddress": {
118
+ "type": "text",
119
+ "label": "Adapter Callback Address",
120
+ "xs": 12,
121
+ "sm": 10,
122
+ "md": 6,
123
+ "lg": 4
124
+ },
125
+ "checkInitInterval": {
126
+ "newLine": true,
127
+ "type": "number",
128
+ "label": "Check communication interval",
129
+ "xs": 12,
130
+ "help": "in seconds",
131
+ "sm": 10,
132
+ "md": 4,
133
+ "lg": 2
134
+ },
135
+ "reconnectInterval": {
136
+ "type": "number",
137
+ "label": "Reconnect interval",
138
+ "help": "in seconds",
139
+ "xs": 12,
140
+ "sm": 10,
141
+ "md": 4,
142
+ "lg": 2
143
+ },
144
+ "dontDelete": {
145
+ "newLine": true,
146
+ "type": "checkbox",
147
+ "label": "Don't delete devices",
148
+ "xs": 12,
149
+ "sm": 10,
150
+ "md": 6,
151
+ "lg": 4
152
+ },
153
+ "useHttps": {
154
+ "newLine": true,
155
+ "type": "checkbox",
156
+ "label": "Use https",
157
+ "xs": 12,
158
+ "sm": 10,
159
+ "md": 6,
160
+ "lg": 4,
161
+ "disabled": "data.type === 'bin'",
162
+ "onChange": {
163
+ "alsoDependsOn": ["type"],
164
+ "calculateFunc": "data.type === 'bin' ? false : data.useHttps"
165
+ }
166
+ },
167
+ "username": {
168
+ "newLine": true,
169
+ "type": "text",
170
+ "label": "Username",
171
+ "xs": 12,
172
+ "sm": 12,
173
+ "md": 4,
174
+ "lg": 4,
175
+ "hidden": "data.type === 'bin'"
176
+ },
177
+ "password": {
178
+ "repeat": true,
179
+ "type": "password",
180
+ "label": "Password",
181
+ "hidden": "data.type === 'bin'",
182
+ "xs": 12,
183
+ "sm": 6,
184
+ "md": 4,
185
+ "lg": 4
186
+ }
81
187
  }
82
- ],
83
- "xs": 12,
84
- "sm": 10,
85
- "md": 6,
86
- "lg": 4
87
188
  },
88
- "type": {
89
- "type": "select",
90
- "label": "Protocol",
91
- "options": [
92
- {
93
- "label": "XML-RPC",
94
- "value": "xml"
189
+ "_deviceManager": {
190
+ "type": "panel",
191
+ "label": "Device manager",
192
+ "items": {
193
+ "_dm": {
194
+ "type": "deviceManager",
195
+ "xs": 12,
196
+ "sm": 12,
197
+ "style": {
198
+ "width": "100%",
199
+ "height": "100%",
200
+ "overflow": "hidden"
201
+ }
202
+ }
203
+ },
204
+ "style": {
205
+ "width": "100%",
206
+ "height": "100%",
207
+ "overflow": "hidden"
95
208
  },
96
- {
97
- "label": "BIN-RPC",
98
- "value": "bin"
209
+ "innerStyle": {
210
+ "width": "100%",
211
+ "height": "100%",
212
+ "overflow": "hidden"
99
213
  }
100
- ],
101
- "xs": 12,
102
- "sm": 12,
103
- "md": 4,
104
- "lg": 2
105
- },
106
- "forceReInit": {
107
- "newLine": true,
108
- "type": "checkbox",
109
- "label": "Force objects re-init",
110
- "xs": 12,
111
- "sm": 10,
112
- "md": 6,
113
- "lg": 4
114
- }
115
- }
116
- },
117
- "_advanced": {
118
- "type": "panel",
119
- "label": "Additional settings",
120
- "items": {
121
- "callbackAddress": {
122
- "type": "text",
123
- "label": "Adapter Callback Address",
124
- "xs": 12,
125
- "sm": 10,
126
- "md": 6,
127
- "lg": 4
128
- },
129
- "checkInitInterval": {
130
- "newLine": true,
131
- "type": "number",
132
- "label": "Check communication interval",
133
- "xs": 12,
134
- "help": "in seconds",
135
- "sm": 10,
136
- "md": 4,
137
- "lg": 2
138
- },
139
- "reconnectInterval": {
140
- "type": "number",
141
- "label": "Reconnect interval",
142
- "help": "in seconds",
143
- "xs": 12,
144
- "sm": 10,
145
- "md": 4,
146
- "lg": 2
147
- },
148
- "dontDelete": {
149
- "newLine": true,
150
- "type": "checkbox",
151
- "label": "Don't delete devices",
152
- "xs": 12,
153
- "sm": 10,
154
- "md": 6,
155
- "lg": 4
156
- },
157
- "useHttps": {
158
- "newLine": true,
159
- "type": "checkbox",
160
- "label": "Use https",
161
- "xs": 12,
162
- "sm": 10,
163
- "md": 6,
164
- "lg": 4,
165
- "disabled": "data.type === 'bin'",
166
- "onChange": {
167
- "alsoDependsOn": [
168
- "type"
169
- ],
170
- "calculateFunc": "data.type === 'bin' ? false : data.useHttps"
171
- }
172
- },
173
- "username": {
174
- "newLine": true,
175
- "type": "text",
176
- "label": "Username",
177
- "xs": 12,
178
- "sm": 12,
179
- "md": 4,
180
- "lg": 4,
181
- "hidden": "data.type === 'bin'"
182
- },
183
- "password": {
184
- "repeat": true,
185
- "type": "password",
186
- "label": "Password",
187
- "hidden": "data.type === 'bin'",
188
- "xs": 12,
189
- "sm": 6,
190
- "md": 4,
191
- "lg": 4
192
- }
193
- }
194
- },
195
- "_deviceManager": {
196
- "type": "panel",
197
- "label": "Device manager",
198
- "items": {
199
- "_dm": {
200
- "type": "deviceManager",
201
- "xs": 12,
202
- "sm": 12,
203
- "style": {
204
- "width": "100%",
205
- "height": "100%",
206
- "overflow": "hidden"
207
- }
208
214
  }
209
- },
210
- "style": {
211
- "width": "100%",
212
- "height": "100%",
213
- "overflow": "hidden"
214
- },
215
- "innerStyle": {
216
- "width": "100%",
217
- "height": "100%",
218
- "overflow": "hidden"
219
- }
220
215
  }
221
- }
222
216
  }
@@ -1,5 +1,5 @@
1
- import { ActionContext, DeviceDetails, DeviceManagement, DeviceRefresh, type DeviceInfo } from '@iobroker/dm-utils';
2
- import { HomematicRpc } from '../main';
1
+ import { type ActionContext, type DeviceDetails, DeviceManagement, type DeviceRefresh, type DeviceInfo } from '@iobroker/dm-utils';
2
+ import type { HomematicRpc } from '../main';
3
3
  export declare class dmHmRpc extends DeviceManagement<HomematicRpc> {
4
4
  private typeDetector;
5
5
  private language;