iobroker.zigbee 1.9.3 → 1.9.5

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 (58) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +437 -430
  3. package/admin/adapter-settings.js +244 -244
  4. package/admin/admin.js +2991 -2991
  5. package/admin/i18n/de/translations.json +108 -108
  6. package/admin/i18n/en/translations.json +108 -108
  7. package/admin/i18n/es/translations.json +102 -102
  8. package/admin/i18n/fr/translations.json +108 -108
  9. package/admin/i18n/it/translations.json +102 -102
  10. package/admin/i18n/nl/translations.json +108 -108
  11. package/admin/i18n/pl/translations.json +108 -108
  12. package/admin/i18n/pt/translations.json +102 -102
  13. package/admin/i18n/ru/translations.json +108 -108
  14. package/admin/i18n/uk/translations.json +108 -108
  15. package/admin/i18n/zh-cn/translations.json +102 -102
  16. package/admin/img/philips_hue_lom001.png +0 -0
  17. package/admin/index.html +163 -163
  18. package/admin/index_m.html +1360 -1360
  19. package/admin/moment.min.js +1 -1
  20. package/admin/shuffle.min.js +2 -2
  21. package/admin/tab_m.html +1021 -1021
  22. package/admin/vis-network.min.css +1 -1
  23. package/admin/vis-network.min.js +26 -26
  24. package/admin/words.js +110 -110
  25. package/docs/de/basedocu.md +19 -19
  26. package/docs/de/readme.md +126 -126
  27. package/docs/en/readme.md +128 -128
  28. package/docs/flashing_via_arduino_(en).md +110 -110
  29. package/docs/ru/readme.md +28 -28
  30. package/docs/tutorial/groups-1.png +0 -0
  31. package/docs/tutorial/groups-2.png +0 -0
  32. package/docs/tutorial/tab-dev-1.png +0 -0
  33. package/io-package.json +27 -27
  34. package/lib/backup.js +171 -171
  35. package/lib/binding.js +319 -319
  36. package/lib/colors.js +465 -465
  37. package/lib/developer.js +151 -151
  38. package/lib/devicemgmt.js +374 -374
  39. package/lib/devices.js +3139 -3139
  40. package/lib/exclude.js +162 -162
  41. package/lib/groups.js +345 -345
  42. package/lib/json.js +59 -59
  43. package/lib/networkmap.js +55 -55
  44. package/lib/ota.js +198 -198
  45. package/lib/rgb.js +297 -297
  46. package/lib/seriallist.js +48 -48
  47. package/lib/states.js +6420 -6420
  48. package/lib/tools.js +54 -54
  49. package/lib/utils.js +165 -165
  50. package/lib/zbBaseExtension.js +36 -36
  51. package/lib/zbDelayedAction.js +144 -144
  52. package/lib/zbDeviceAvailability.js +319 -319
  53. package/lib/zbDeviceConfigure.js +148 -148
  54. package/lib/zbDeviceEvent.js +48 -48
  55. package/lib/zigbeecontroller.js +1014 -1014
  56. package/main.js +1 -1
  57. package/package.json +2 -2
  58. package/support/docgen.js +93 -93
package/lib/seriallist.js CHANGED
@@ -1,48 +1,48 @@
1
- 'use strict';
2
-
3
- let SerialPort = null;
4
-
5
- class SerialList {
6
- constructor(adapter) {
7
- this.adapter = adapter;
8
- this.adapter.on('message', obj => this.onMessage(obj));
9
- }
10
-
11
- /**
12
- * @param {ioBroker.Message} obj
13
- */
14
- onMessage(obj) {
15
- if (typeof obj === 'object' && obj.command) {
16
- switch (obj.command) {
17
- case 'listUart':
18
- if (obj.callback) {
19
- SerialPort = SerialPort || require('serialport').SerialPort;
20
- if (SerialPort) {
21
- // read all found serial ports
22
- SerialPort.list()
23
- .then(ports => {
24
- this.adapter.log.info(`List of port: ${JSON.stringify(ports)}`);
25
- this.adapter.sendTo(obj.from, obj.command, ports.map(item => ({
26
- label: item.friendlyName || item.pnpId || item.manufacturer,
27
- comName: item.path
28
- })), obj.callback);
29
- })
30
- .catch(e => {
31
- this.adapter.sendTo(obj.from, obj.command, [], obj.callback);
32
- this.adapter.log.error(e);
33
- });
34
- } else {
35
- this.adapter.log.warn('Module serialport is not available');
36
- this.adapter.sendTo(obj.from, obj.command, [{
37
- label: 'Not available',
38
- comName: ''
39
- }], obj.callback);
40
- }
41
- }
42
- break;
43
- }
44
- }
45
- }
46
- }
47
-
48
- module.exports = SerialList;
1
+ 'use strict';
2
+
3
+ let SerialPort = null;
4
+
5
+ class SerialList {
6
+ constructor(adapter) {
7
+ this.adapter = adapter;
8
+ this.adapter.on('message', obj => this.onMessage(obj));
9
+ }
10
+
11
+ /**
12
+ * @param {ioBroker.Message} obj
13
+ */
14
+ onMessage(obj) {
15
+ if (typeof obj === 'object' && obj.command) {
16
+ switch (obj.command) {
17
+ case 'listUart':
18
+ if (obj.callback) {
19
+ SerialPort = SerialPort || require('serialport').SerialPort;
20
+ if (SerialPort) {
21
+ // read all found serial ports
22
+ SerialPort.list()
23
+ .then(ports => {
24
+ this.adapter.log.info(`List of port: ${JSON.stringify(ports)}`);
25
+ this.adapter.sendTo(obj.from, obj.command, ports.map(item => ({
26
+ label: item.friendlyName || item.pnpId || item.manufacturer,
27
+ comName: item.path
28
+ })), obj.callback);
29
+ })
30
+ .catch(e => {
31
+ this.adapter.sendTo(obj.from, obj.command, [], obj.callback);
32
+ this.adapter.log.error(e);
33
+ });
34
+ } else {
35
+ this.adapter.log.warn('Module serialport is not available');
36
+ this.adapter.sendTo(obj.from, obj.command, [{
37
+ label: 'Not available',
38
+ comName: ''
39
+ }], obj.callback);
40
+ }
41
+ }
42
+ break;
43
+ }
44
+ }
45
+ }
46
+ }
47
+
48
+ module.exports = SerialList;