iobroker.hm-rpc 2.0.0 → 3.0.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.
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
@@ -46,7 +46,7 @@ In this case, switch the protocol to XML.
46
46
 
47
47
  ### Synchronize objects (once)
48
48
  After very first start the instance read *all* devices from CCU/Homematic.
49
- If you changed the configuration (renamed devices, added or removed devices) you can synchronise the configuration in ioBroker by enabling this option.
49
+ If you changed the configuration (renamed devices, added or removed devices), you can synchronise the configuration in ioBroker by enabling this option.
50
50
 
51
51
  The instance will be restarted immediately, synchronize all devices anew and deactivate this option itself.
52
52
 
@@ -71,7 +71,7 @@ Used if ioBroker runs in Docker.
71
71
  Send pings to CCU/Homematic with such intervall.
72
72
 
73
73
  ### Reconnect interval (sec)
74
- How many seconds will be waited before connect attempts.
74
+ So many seconds will be waited before connect attempts.
75
75
 
76
76
  ### Don't delete devices on adapter start
77
77
  If this flag is not activated, the ioBroker will remove devices from configuration if a device is not found at adapter start in CCU/Homematic.
@@ -93,8 +93,8 @@ It is possible to send custom commands, e.g., to read and control the master are
93
93
  to configure heating week programs and more.
94
94
 
95
95
  This is done by sending a message to the adapter, which contains the method as first parameter, followed by an object which
96
- has to contain the ``ID`` of the target device as well as optional the ``paramType``, which specifies e.g. the MASTER area.
97
- Additional parameters have to be sent in the ``params`` object.
96
+ has to contain the `ID` of the target device as well as optional the `paramType`, which specifies e.g. the MASTER area.
97
+ Additional parameters have to be sent in the `params` object.
98
98
 
99
99
  **Examples:**
100
100
 
@@ -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.0 (2025-10-21)
162
+ * (bluefox) Updated packages and used `@iobroker/eslint-config`
163
+ * (bluefox) Renamed some roles for the better typing detection
164
+ * (bluefox) Removed support of Node.js 18
165
+
166
+ ### 2.0.2 (2024-08-26)
167
+ * (bluefox) Updated packages
168
+
161
169
  ### 2.0.0 (2024-07-18)
162
170
  * (bluefox) Updated packages
163
171
  * (bluefox) Removed support of Node.js 16
@@ -168,14 +176,6 @@ To update all available images execute `npm run update-images`
168
176
  ### 1.16.1 (2024-03-05)
169
177
  * (bluefox) Improved the configuration layout
170
178
 
171
- ### 1.16.0 (2023-12-25)
172
- * (JeyCee) Added support for the device manager
173
- * (bluefox) Added JSON config
174
- * (foxriver76) port to adapters internal `setTimeout/setInterval` methods
175
-
176
- ### 1.15.19 (2023-08-08)
177
- * (bluefox) Updated packages
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,207 +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
- "sm": 10,
13
- "md": 6,
14
- "lg": 4
15
- },
16
- "homematicPort": {
17
- "type": "port",
18
- "label": "HomeMatic Port",
19
- "sm": 2,
20
- "md": 2,
21
- "lg": 2,
22
- "onChange": {
23
- "alsoDependsOn": [
24
- "useHttps",
25
- "daemon",
26
- "type"
27
- ],
28
- "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))))",
29
- "ignoreOwnChanges": true
30
- }
31
- },
32
- "adapterAddress": {
33
- "newLine": true,
34
- "type": "ip",
35
- "label": "Adapter Address",
36
- "sm": 10,
37
- "md": 6,
38
- "lg": 4
39
- },
40
- "port": {
41
- "type": "number",
42
- "min": 0,
43
- "max": 65535,
44
- "label": "Adapter Port",
45
- "sm": 2,
46
- "md": 2,
47
- "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
+ }
48
112
  },
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"
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
+ }
77
187
  }
78
- ],
79
- "sm": 10,
80
- "md": 6,
81
- "lg": 4
82
188
  },
83
- "type": {
84
- "type": "select",
85
- "label": "Protocol",
86
- "options": [
87
- {
88
- "label": "XML-RPC",
89
- "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"
90
208
  },
91
- {
92
- "label": "BIN-RPC",
93
- "value": "bin"
209
+ "innerStyle": {
210
+ "width": "100%",
211
+ "height": "100%",
212
+ "overflow": "hidden"
94
213
  }
95
- ],
96
- "sm": 12,
97
- "md": 4,
98
- "lg": 2
99
- },
100
- "forceReInit": {
101
- "newLine": true,
102
- "type": "checkbox",
103
- "label": "Force objects re-init",
104
- "sm": 10,
105
- "md": 6,
106
- "lg": 4
107
- }
108
- }
109
- },
110
- "_advanced": {
111
- "type": "panel",
112
- "label": "Additional settings",
113
- "items": {
114
- "callbackAddress": {
115
- "type": "text",
116
- "label": "Adapter Callback Address",
117
- "sm": 10,
118
- "md": 6,
119
- "lg": 4
120
- },
121
- "checkInitInterval": {
122
- "newLine": true,
123
- "type": "number",
124
- "label": "Check communication interval",
125
- "help": "in seconds",
126
- "sm": 10,
127
- "md": 4,
128
- "lg": 2
129
- },
130
- "reconnectInterval": {
131
- "type": "number",
132
- "label": "Reconnect interval",
133
- "help": "in seconds",
134
- "sm": 10,
135
- "md": 4,
136
- "lg": 2
137
- },
138
- "dontDelete": {
139
- "newLine": true,
140
- "type": "checkbox",
141
- "label": "Don't delete devices",
142
- "sm": 10,
143
- "md": 6,
144
- "lg": 4
145
- },
146
- "useHttps": {
147
- "newLine": true,
148
- "type": "checkbox",
149
- "label": "Use https",
150
- "sm": 10,
151
- "md": 6,
152
- "lg": 4,
153
- "disabled": "data.type === 'bin'",
154
- "onChange": {
155
- "alsoDependsOn": [
156
- "type"
157
- ],
158
- "calculateFunc": "data.type === 'bin' ? false : data.useHttps"
159
- }
160
- },
161
- "username": {
162
- "newLine": true,
163
- "type": "text",
164
- "label": "Username",
165
- "sm": 12,
166
- "md": 4,
167
- "lg": 4,
168
- "hidden": "data.type === 'bin'"
169
- },
170
- "password": {
171
- "repeat": true,
172
- "type": "password",
173
- "label": "Password",
174
- "hidden": "data.type === 'bin'",
175
- "sm": 6,
176
- "md": 4,
177
- "lg": 4
178
- }
179
- }
180
- },
181
- "_deviceManager": {
182
- "type": "panel",
183
- "label": "Device manager",
184
- "items": {
185
- "_dm": {
186
- "type": "deviceManager",
187
- "sm": 12,
188
- "style": {
189
- "width": "100%",
190
- "height": "100%",
191
- "overflow": "hidden"
192
- }
193
214
  }
194
- },
195
- "style": {
196
- "width": "100%",
197
- "height": "100%",
198
- "overflow": "hidden"
199
- },
200
- "innerStyle": {
201
- "width": "100%",
202
- "height": "100%",
203
- "overflow": "hidden"
204
- }
205
215
  }
206
- }
207
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;