homebridge-openwrt-control 0.0.1-beta.2 → 0.0.1-beta.4
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/CHANGELOG.md +1 -425
- package/README.md +78 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,430 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## Warning
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
- For plugin >= v1.6.0 use Homebridge UI >= v5.13.0
|
|
12
|
-
- After update to v1.0.0 and above all automations and scenes will not work and the accessory must be added to the HomeKit again
|
|
13
|
-
|
|
14
|
-
## [1.6.0] - (03.01.2026)
|
|
15
|
-
|
|
16
|
-
## Changes
|
|
17
|
-
|
|
18
|
-
- added support for Homebridge UI >= v5.13.0
|
|
19
|
-
- config schema updated
|
|
20
|
-
- readme updated
|
|
21
|
-
|
|
22
|
-
## [1.5.0] - (25.05.2025)
|
|
23
|
-
|
|
24
|
-
## Changes
|
|
25
|
-
|
|
26
|
-
- refactor mr and ms
|
|
27
|
-
- stability improvements
|
|
28
|
-
- cleanup
|
|
29
|
-
|
|
30
|
-
## [1.4.0] - (13.03.2025)
|
|
31
|
-
|
|
32
|
-
## Changes
|
|
33
|
-
|
|
34
|
-
- added possibility to disable indyvidual accessory
|
|
35
|
-
- bump dependencies
|
|
36
|
-
- config schema updated
|
|
37
|
-
- redme updated
|
|
38
|
-
- cleanup
|
|
39
|
-
|
|
40
|
-
## [1.3.2] - (10.02.2025)
|
|
41
|
-
|
|
42
|
-
## Changes
|
|
43
|
-
|
|
44
|
-
- add missing refresh interval in plugin config
|
|
45
|
-
|
|
46
|
-
## [1.3.1] - (07.02.2025)
|
|
47
|
-
|
|
48
|
-
## Changes
|
|
49
|
-
|
|
50
|
-
- stability and improvements
|
|
51
|
-
|
|
52
|
-
## [1.3.0] - (31.01.2025)
|
|
53
|
-
|
|
54
|
-
## Changes
|
|
55
|
-
|
|
56
|
-
- added possibility to disable/enable log success, info, warn, error
|
|
57
|
-
- refactor cnnect code
|
|
58
|
-
- bump dependencies
|
|
59
|
-
- config schema updated
|
|
60
|
-
- redme updated
|
|
61
|
-
- cleanup
|
|
62
|
-
|
|
63
|
-
## [1.2.0] - (01.12.2024)
|
|
64
|
-
|
|
65
|
-
## Changes
|
|
66
|
-
|
|
67
|
-
- move from commonJS to esm module
|
|
68
|
-
- moved constants.json to constants.js
|
|
69
|
-
- cleanup
|
|
70
|
-
|
|
71
|
-
## [1.1.20] - (14.08.2024)
|
|
72
|
-
|
|
73
|
-
## Changes
|
|
74
|
-
|
|
75
|
-
- remove sensitive data from debug log
|
|
76
|
-
- hide api key by typing and display in Config UI
|
|
77
|
-
|
|
78
|
-
## [1.0.0] - (04.11.2023)
|
|
79
|
-
|
|
80
|
-
## Changes
|
|
81
|
-
|
|
82
|
-
- publish Dashboard, Access Points, Switches as a separate dynamic accessory in HomeKit
|
|
83
|
-
- code refactor
|
|
84
|
-
- bump dependencies
|
|
85
|
-
- config.schema updated
|
|
86
|
-
- cleanup
|
|
87
|
-
|
|
88
|
-
## [0.18.0] - (31.10.2023)
|
|
89
|
-
|
|
90
|
-
## Changes
|
|
91
|
-
|
|
92
|
-
- added POE ports control paralle with port
|
|
93
|
-
- config.schema updated
|
|
94
|
-
- cleanup
|
|
95
|
-
|
|
96
|
-
## [0.15.0] - (08.02.2023)
|
|
97
|
-
|
|
98
|
-
## Changes
|
|
99
|
-
|
|
100
|
-
- added support for multi switch
|
|
101
|
-
- config.schema updated
|
|
102
|
-
- cleanup
|
|
103
|
-
|
|
104
|
-
## [0.14.0] - (07.02.2023)
|
|
105
|
-
|
|
106
|
-
## Changes
|
|
107
|
-
|
|
108
|
-
- added possibility expose Contact Sensor in HomeKit app for Ports and SSIDs to use with automations
|
|
109
|
-
- config.schema updated
|
|
110
|
-
- bump dependencies
|
|
111
|
-
- cleanup
|
|
112
|
-
|
|
113
|
-
## [0.13.10] - (31.12.2022)
|
|
114
|
-
|
|
115
|
-
## Changes
|
|
116
|
-
|
|
117
|
-
- bump dependencies
|
|
118
|
-
|
|
119
|
-
## [0.13.9] - (06.12.2022)
|
|
120
|
-
|
|
121
|
-
## Changes
|
|
122
|
-
|
|
123
|
-
- update dependencies
|
|
124
|
-
|
|
125
|
-
## [0.13.8] - (04.11.2022)
|
|
126
|
-
|
|
127
|
-
## Changes
|
|
128
|
-
|
|
129
|
-
- fix TypeError: Cannot read properties of undefined (reading 'updateCharacteristic')
|
|
130
|
-
|
|
131
|
-
## [0.13.7] - (02.11.2022)
|
|
132
|
-
|
|
133
|
-
## Changes
|
|
134
|
-
|
|
135
|
-
- fix status update
|
|
136
|
-
|
|
137
|
-
## [0.13.5] - (10.09.2022)
|
|
138
|
-
|
|
139
|
-
## Changes
|
|
140
|
-
|
|
141
|
-
- reconfigured update and reconnect function
|
|
142
|
-
- config schema updated
|
|
143
|
-
- increased reconnect time to 15s
|
|
144
|
-
|
|
145
|
-
## [0.13.4] - (30.08.2022)
|
|
146
|
-
|
|
147
|
-
## Changes
|
|
148
|
-
|
|
149
|
-
- fix reading 0 of undefined
|
|
150
|
-
|
|
151
|
-
## [0.13.0] - (29.08.2022)
|
|
152
|
-
|
|
153
|
-
## Changes
|
|
154
|
-
|
|
155
|
-
- added suport to controll more as 1 switch
|
|
156
|
-
- cleanup
|
|
157
|
-
|
|
158
|
-
## [0.12.2] - (29.08.2022)
|
|
159
|
-
|
|
160
|
-
## Changes
|
|
161
|
-
|
|
162
|
-
- fix swPortId reference error
|
|
163
|
-
|
|
164
|
-
## [0.12.0] - (20.08.2022)
|
|
165
|
-
|
|
166
|
-
## Changes
|
|
167
|
-
|
|
168
|
-
- added possiblity hide switch ports by port name
|
|
169
|
-
- code cleanup
|
|
170
|
-
- config schema update
|
|
171
|
-
|
|
172
|
-
## [0.11.1] - (19.08.2022)
|
|
173
|
-
|
|
174
|
-
## Changes
|
|
175
|
-
|
|
176
|
-
- fix ssid hide by name
|
|
177
|
-
|
|
178
|
-
## [0.11.0] - (19.08.2022)
|
|
179
|
-
|
|
180
|
-
## Changes
|
|
181
|
-
|
|
182
|
-
- refactor logs
|
|
183
|
-
- added possibility enable debug mode in plugin settings
|
|
184
|
-
- added possibility disable log device info on plugin start
|
|
185
|
-
- added possiblity hide uplinks ports of switches
|
|
186
|
-
- update config schema
|
|
187
|
-
- rebuild data refresh and network reconnect if error
|
|
188
|
-
|
|
189
|
-
## [0.10.23] - (23.07.2022)
|
|
190
|
-
|
|
191
|
-
## Changes
|
|
192
|
-
|
|
193
|
-
- refactor information service
|
|
194
|
-
|
|
195
|
-
## [0.10.21] - (25.04.2022)
|
|
196
|
-
|
|
197
|
-
## Changes
|
|
198
|
-
|
|
199
|
-
- update dependencies
|
|
200
|
-
|
|
201
|
-
## [0.10.20] - (24.04.2022)
|
|
202
|
-
|
|
203
|
-
## Changes
|
|
204
|
-
|
|
205
|
-
- update dependencies
|
|
206
|
-
|
|
207
|
-
## [0.10.18] - (18.01.2022)
|
|
208
|
-
|
|
209
|
-
## Changes
|
|
210
|
-
|
|
211
|
-
- update dependencies
|
|
212
|
-
|
|
213
|
-
## [0.10.17] - (17.01.2022)
|
|
214
|
-
|
|
215
|
-
## Changes
|
|
216
|
-
|
|
217
|
-
- update dependencies
|
|
218
|
-
|
|
219
|
-
## [0.10.16] - (29.12.2021)
|
|
220
|
-
|
|
221
|
-
- prepare directory and files synchronously
|
|
222
|
-
|
|
223
|
-
## [0.10.15] - (28.12.2021)
|
|
224
|
-
|
|
225
|
-
- update node minimum requirements
|
|
226
|
-
|
|
227
|
-
## [0.10.4] - (26.09.2021)
|
|
228
|
-
|
|
229
|
-
## Changes
|
|
230
|
-
|
|
231
|
-
- code cleanup and refactor
|
|
232
|
-
|
|
233
|
-
## [0.10.3] - (26.09.2021)
|
|
234
|
-
|
|
235
|
-
## Changes
|
|
236
|
-
|
|
237
|
-
- config.schema update
|
|
238
|
-
- switch ports names display improvements
|
|
239
|
-
|
|
240
|
-
## [0.10.2] - (26.09.2021)
|
|
241
|
-
|
|
242
|
-
## Changes
|
|
243
|
-
|
|
244
|
-
- config.schema update
|
|
245
|
-
- readme.md update
|
|
246
|
-
- other small fixes
|
|
247
|
-
|
|
248
|
-
## [0.10.1] - (25.09.2021)
|
|
249
|
-
|
|
250
|
-
## Changes
|
|
251
|
-
|
|
252
|
-
- added possibility to disable/enable control for indyvidual switch
|
|
253
|
-
|
|
254
|
-
## [0.10.0] - (25.09.2021)
|
|
255
|
-
|
|
256
|
-
## Changes
|
|
257
|
-
|
|
258
|
-
### WARNING!! - after this update needs to be configured plugin again
|
|
259
|
-
|
|
260
|
-
- added switch ports control ON/OFF
|
|
261
|
-
|
|
262
|
-
## [0.9.1] - (25.09.2021)
|
|
263
|
-
|
|
264
|
-
## Changes
|
|
265
|
-
|
|
266
|
-
- added possibility set policy type for configured clients
|
|
267
|
-
|
|
268
|
-
## [0.9.0] - (25.09.2021)
|
|
269
|
-
|
|
270
|
-
## Changes
|
|
271
|
-
|
|
272
|
-
### WARNING!! - after this update needs to be configured Clients again
|
|
273
|
-
|
|
274
|
-
- config.schema update
|
|
275
|
-
- removed possibility to display clients policy by Meraki Description, please use only MAC Address
|
|
276
|
-
- added mode ON/OFF for configured clients
|
|
277
|
-
- code cleanup
|
|
278
|
-
|
|
279
|
-
## [0.8.21] - (20.09.2021)
|
|
280
|
-
|
|
281
|
-
## Changes
|
|
282
|
-
|
|
283
|
-
- config.schema update
|
|
284
|
-
- prevent use of empty SSID to be hidden
|
|
285
|
-
|
|
286
|
-
## [0.8.20] - (19.09.2021)
|
|
287
|
-
|
|
288
|
-
## Changes
|
|
289
|
-
|
|
290
|
-
- code cleanup
|
|
291
|
-
- fix timeout
|
|
292
|
-
|
|
293
|
-
## [0.8.17] - (08.09.2021)
|
|
294
|
-
|
|
295
|
-
## Changes
|
|
296
|
-
|
|
297
|
-
- bump dependencies
|
|
298
|
-
- fixed socket hangup in some sceneri
|
|
299
|
-
- revert host properties in config
|
|
300
|
-
- stability improvements
|
|
301
|
-
|
|
302
|
-
## [0.8.16] - (05.09.2021)
|
|
303
|
-
|
|
304
|
-
## Changes
|
|
305
|
-
|
|
306
|
-
- bump dependencies
|
|
307
|
-
|
|
308
|
-
## [0.8.15] - (04.09.2021)
|
|
309
|
-
|
|
310
|
-
## Changes
|
|
311
|
-
|
|
312
|
-
- bump dependencies
|
|
313
|
-
|
|
314
|
-
## [0.8.9] - (30.08.2021)
|
|
315
|
-
|
|
316
|
-
## Changes
|
|
317
|
-
|
|
318
|
-
- fixed Client that is not on the network tand exist in plugin config hrows 404 error.
|
|
319
|
-
|
|
320
|
-
## [0.8.8] - (29.08.2021)
|
|
321
|
-
|
|
322
|
-
## Changes
|
|
323
|
-
|
|
324
|
-
- added ON/OFF function for filtered SSIDs
|
|
325
|
-
|
|
326
|
-
## [0.8.7] - (29.08.2021)
|
|
327
|
-
|
|
328
|
-
## Changes
|
|
329
|
-
|
|
330
|
-
- fixed anomaly of switch policy behaviour
|
|
331
|
-
|
|
332
|
-
## [0.8.6] - (29.08.2021)
|
|
333
|
-
|
|
334
|
-
## Changes
|
|
335
|
-
|
|
336
|
-
- removed host properties from config, no nedded anymore
|
|
337
|
-
- code cleanup and some improvements
|
|
338
|
-
- update readme
|
|
339
|
-
|
|
340
|
-
## [0.8.5] - (29.08.2021)
|
|
341
|
-
|
|
342
|
-
## Changes
|
|
343
|
-
|
|
344
|
-
- added possibility to chose between Name or Mac Adress for clients to be exposed with its poplicy state.
|
|
345
|
-
- added possibility to set custom Name to be exposed for client policy.
|
|
346
|
-
- code cleanup
|
|
347
|
-
|
|
348
|
-
## [0.8.2] - (28.08.2021)
|
|
349
|
-
|
|
350
|
-
## Changes
|
|
351
|
-
|
|
352
|
-
- added possibility to expose clients and change its policy.
|
|
353
|
-
|
|
354
|
-
## [0.8.2] - (27.08.2021)
|
|
355
|
-
|
|
356
|
-
## Changes
|
|
357
|
-
|
|
358
|
-
- added possibility to hidden SSIDSs by custom configured name.
|
|
359
|
-
|
|
360
|
-
## [0.8.0] - (26.08.2021)
|
|
361
|
-
|
|
362
|
-
## Changes
|
|
363
|
-
|
|
364
|
-
- added possibility to hidde all unconfigured SSIDs
|
|
365
|
-
|
|
366
|
-
## [0.6.0] - (23.02.2021)
|
|
367
|
-
|
|
368
|
-
## Changes
|
|
369
|
-
|
|
370
|
-
- code rebuild, use Characteristic.onSet, Characteristic.onGet
|
|
371
|
-
- require Homebridge 1.3.x or above
|
|
372
|
-
|
|
373
|
-
## [0.5.9] - (15.02.2021)
|
|
374
|
-
|
|
375
|
-
## Changes
|
|
376
|
-
|
|
377
|
-
- added possibility disable log info, options available in config
|
|
378
|
-
|
|
379
|
-
## [0.5.0] - (04.02.2021)
|
|
380
|
-
|
|
381
|
-
## Changs
|
|
382
|
-
|
|
383
|
-
- code rebuild
|
|
384
|
-
- automatically detect all possible SSIDs
|
|
385
|
-
|
|
386
|
-
## [0.4.42] - (01.01.2021)
|
|
387
|
-
|
|
388
|
-
## Changs
|
|
389
|
-
|
|
390
|
-
- bump dependiencies
|
|
391
|
-
|
|
392
|
-
## [0.4.0] - (09.09.2020)
|
|
393
|
-
|
|
394
|
-
## Changs
|
|
395
|
-
|
|
396
|
-
- added await/async function
|
|
397
|
-
|
|
398
|
-
## [0.3.1] - (07.09.2020)
|
|
399
|
-
|
|
400
|
-
## Changs
|
|
401
|
-
|
|
402
|
-
- added device info log
|
|
403
|
-
- fixed wlan state update
|
|
404
|
-
|
|
405
|
-
## [0.2.0] - (06.09.2020)
|
|
406
|
-
|
|
407
|
-
## Changs
|
|
408
|
-
|
|
409
|
-
- completly reconfigured layout of config schema
|
|
410
|
-
|
|
411
|
-
## [0.1.11] - (25.08.2020)
|
|
412
|
-
|
|
413
|
-
### Changes
|
|
414
|
-
|
|
415
|
-
- performance improvements
|
|
416
|
-
- other small fixes
|
|
417
|
-
|
|
418
|
-
## [0.1.8] - (04.08.2020)
|
|
419
|
-
|
|
420
|
-
- performance changes
|
|
421
|
-
|
|
422
|
-
## [0.1.4] - (03.08.2020)
|
|
423
|
-
|
|
424
|
-
- preparing for future update
|
|
425
|
-
|
|
426
|
-
## [0.1.3] - (03.08.2020)
|
|
427
|
-
|
|
428
|
-
- code cleanup
|
|
429
|
-
|
|
430
|
-
## [0.1.0] - (03.08.2020)
|
|
431
|
-
|
|
432
|
-
- working version
|
|
433
|
-
|
|
434
|
-
## [0.0.1] - (02.08.2020)
|
|
10
|
+
## [0.0.1] - (16.1.2025)
|
|
435
11
|
|
|
436
12
|
- initial release (WLAN control)
|
package/README.md
CHANGED
|
@@ -1,2 +1,79 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://github.com/grzegorz914/homebridge-openwrt-control"><img src="https://raw.githubusercontent.com/grzegorz914/homebridge-openwrt-control/main/graphics/openwrt.png" width="640"></a>
|
|
3
|
+
</p>
|
|
2
4
|
|
|
5
|
+
<span align="center">
|
|
6
|
+
|
|
7
|
+
# Homebridge OpenWrt Control
|
|
8
|
+
|
|
9
|
+
[](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)
|
|
10
|
+
[](https://www.npmjs.com/package/homebridge-openwrt-control)
|
|
11
|
+
[](https://www.npmjs.com/package/homebridge-openwrt-control)
|
|
12
|
+
[](https://www.npmjs.com/package/homebridge-openwrt-control)
|
|
13
|
+
[](https://github.com/grzegorz914/homebridge-openwrt-control/pulls)
|
|
14
|
+
[](https://github.com/grzegorz914/homebridge-openwrt-control/issues)
|
|
15
|
+
|
|
16
|
+
Homebridge plugin for OpenWrt flashed devices.
|
|
17
|
+
|
|
18
|
+
</span>
|
|
19
|
+
|
|
20
|
+
## Package Requirements
|
|
21
|
+
|
|
22
|
+
| Package | Installation | Role | Required |
|
|
23
|
+
| --- | --- | --- | --- |
|
|
24
|
+
| [Homebridge](https://github.com/homebridge/homebridge) | [Homebridge Wiki](https://github.com/homebridge/homebridge/wiki) | HomeKit Bridge | Required |
|
|
25
|
+
| [Homebridge UI](https://github.com/homebridge/homebridge-config-ui-x) | [Homebridge UI Wiki](https://github.com/homebridge/homebridge-config-ui-x/wiki) | Homebridge User Interface | Recommended |
|
|
26
|
+
| [OpenWrt Control](https://www.npmjs.com/package/homebridge-openwrt-control) | [Plug-In Wiki](https://github.com/grzegorz914/homebridge-openwrt-control/wiki) | Homebridge Plug-In | Required |
|
|
27
|
+
|
|
28
|
+
## About The Plugin
|
|
29
|
+
|
|
30
|
+
* Access Points:
|
|
31
|
+
* Control `ON/OFF` every SSID.
|
|
32
|
+
* Monitor with Sensors for every `SSIDs`.
|
|
33
|
+
* Siri can be used to switch ON/OFF SSIDs, Policy, Ports.
|
|
34
|
+
* Home automations and shortcuts can be used for all functions.
|
|
35
|
+
|
|
36
|
+
## Configuration
|
|
37
|
+
|
|
38
|
+
* Run this plugin as a [Child Bridge](https://github.com/homebridge/homebridge/wiki/Child-Bridges) (Highly Recommended), this prevent crash Homebridge if plugin crashes.
|
|
39
|
+
* Install and use [Homebridge UI](https://github.com/homebridge/homebridge-config-ui-x/wiki) to configure this plugin.
|
|
40
|
+
* The `sample-config.json` can be edited and used as an alternative.
|
|
41
|
+
|
|
42
|
+
<p align="center">
|
|
43
|
+
<a href="https://github.com/grzegorz914/homebridge-openwrt-control"><img src="https://raw.githubusercontent.com/grzegorz914/homebridge-openwrt-control/main/graphics/ustawienia.png" width="840"></a>
|
|
44
|
+
</p>
|
|
45
|
+
|
|
46
|
+
| Key | Description |
|
|
47
|
+
| --- | --- |
|
|
48
|
+
| `name` | Here set the accessory `Name` to be displayed in `Homebridge/HomeKit`. |
|
|
49
|
+
| `host` | Here set the `Hsostname or Address IP` of Sat Receiver.|
|
|
50
|
+
| `displayType` | Accessory type to be displayed in Home app: `0 - Disable`, `1 - Enable`. |
|
|
51
|
+
| `auth{}` | Authorization object. |
|
|
52
|
+
| `auth.enable` | If enabled, authorizatins credentials will be used for login. |
|
|
53
|
+
| `auth.user` | Here set the authorization `Username`. |
|
|
54
|
+
| `auth.passwd` | Here set the authorization `Password`. |
|
|
55
|
+
| `accessPoint{}` | Volume object. |
|
|
56
|
+
| `accessPoint.enable` | Here enable access point `SSIDs` control. |
|
|
57
|
+
| `accessPoint.name` | Here set Your own volume/mute control name or leave empty. |
|
|
58
|
+
| `accessPoint.namePrefix` | Here enable accessory name as a prefix for volume control name. |
|
|
59
|
+
| `accessPoint.sensor` | Here enable access point `SSIDs` sensors. |
|
|
60
|
+
| `refreshInterval` | Here set the data refresh time in seconds. |
|
|
61
|
+
| `log.deviceInfo` | If enabled, log device info will be displayed by every connections device to the network. |
|
|
62
|
+
| `log.success` | If enabled, success log will be displayed in console. |
|
|
63
|
+
| `log.info` | If enabled, info log will be displayed in console. |
|
|
64
|
+
| `log.warn` | If enabled, warn log will be displayed in console. |
|
|
65
|
+
| `log.error` | If enabled, error log will be displayed in console. |
|
|
66
|
+
| `log.debug` | If enabled, debug log will be displayed in console. |
|
|
67
|
+
| `restFul{}` | RESTFul object. |
|
|
68
|
+
| `restFul.enable` | If enabled, RESTful server will start automatically and respond to any path request. |
|
|
69
|
+
| `restFul.port` | Here set the listening `Port` for RESTful server. |
|
|
70
|
+
| `mqtt{}` | MQTT object. |
|
|
71
|
+
| `mqtt.enable` | If enabled, MQTT Broker will start automatically and publish all awailable data. |
|
|
72
|
+
| `mqtt.host` | Here set the `IP Address` or `Hostname` for MQTT Broker. |
|
|
73
|
+
| `mqtt.port` | Here set the `Port` for MQTT Broker, default 1883. |
|
|
74
|
+
| `mqtt.clientId` | Here optional set the `Client Id` of MQTT Broker. |
|
|
75
|
+
| `mqtt.prefix` | Here set the `Prefix` for `Topic` or leave empty. |
|
|
76
|
+
| `mqtt.auth{}` | MQTT authorization object. |
|
|
77
|
+
| `mqtt.auth.enable` | Here enable authorization for MQTT Broker. |
|
|
78
|
+
| `mqtt.auth.user` | Here set the MQTT Broker user. |
|
|
79
|
+
| `mqtt.auth.passwd` | Here set the MQTT Broker password. |
|
package/package.json
CHANGED