homebridge-openwrt-control 0.0.1-beta.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/CHANGELOG.md +436 -0
- package/LICENSE +21 -0
- package/README.md +2 -0
- package/config.schema.json +463 -0
- package/index.js +143 -0
- package/package.json +53 -0
- package/src/apdevice.js +247 -0
- package/src/constants.js +6 -0
- package/src/functions.js +81 -0
- package/src/impulsegenerator.js +41 -0
- package/src/openwrt.js +173 -0
- package/src/swdevice.js +247 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,436 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## Warning
|
|
9
|
+
|
|
10
|
+
- For plugin < v1.6.0 use Homebridge UI <= v5.5.0
|
|
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)
|
|
435
|
+
|
|
436
|
+
- initial release (WLAN control)
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Grzegorz
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED