iobroker.zigbee2mqtt 0.1.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 +21 -0
- package/README.md +55 -0
- package/admin/i18n/de/translations.json +5 -0
- package/admin/i18n/en/translations.json +5 -0
- package/admin/i18n/es/translations.json +5 -0
- package/admin/i18n/fr/translations.json +5 -0
- package/admin/i18n/it/translations.json +5 -0
- package/admin/i18n/nl/translations.json +5 -0
- package/admin/i18n/pl/translations.json +5 -0
- package/admin/i18n/pt/translations.json +5 -0
- package/admin/i18n/ru/translations.json +5 -0
- package/admin/i18n/zh-cn/translations.json +5 -0
- package/admin/jsonConfig.json +26 -0
- package/admin/zigbee2mqtt.png +0 -0
- package/io-package.json +138 -0
- package/lib/adapter-config.d.ts +19 -0
- package/lib/colors.js +458 -0
- package/lib/exposes.js +801 -0
- package/lib/groups.js +45 -0
- package/lib/rgb.js +263 -0
- package/lib/states.js +6397 -0
- package/lib/utils.js +131 -0
- package/main.js +504 -0
- package/package.json +75 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Dennis Rathjen <dennis.rathjen@outlook.de>
|
|
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
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<img src="admin/zigbee2mqtt.png" width="200" />
|
|
2
|
+
|
|
3
|
+
# ioBroker.zigbee2mqtt
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/iobroker.zigbee2mqtt)
|
|
6
|
+
[](https://www.npmjs.com/package/iobroker.zigbee2mqtt)
|
|
7
|
+

|
|
8
|
+

|
|
9
|
+
|
|
10
|
+
[](https://nodei.co/npm/iobroker.zigbee2mqtt/)
|
|
11
|
+
|
|
12
|
+
**Tests:** 
|
|
13
|
+
|
|
14
|
+
## zigbee2mqtt adapter for ioBroker
|
|
15
|
+
|
|
16
|
+
Zigbee2MQTT adapter for ioBroker
|
|
17
|
+
|
|
18
|
+
## Changelog
|
|
19
|
+
|
|
20
|
+
<!--
|
|
21
|
+
https://github.com/AlCalzone/release-script#usage
|
|
22
|
+
npm run release major -- -p iobroker license --all 0.9.8 -> 1.0.0
|
|
23
|
+
npm run release minor -- -p iobroker license --all 0.9.8 -> 0.10.0
|
|
24
|
+
npm run release patch -- -p iobroker license --all 0.9.8 -> 0.9.9
|
|
25
|
+
npm run release prerelease beta -- -p iobroker license --all v0.2.1 -> v0.2.2-beta.0
|
|
26
|
+
Placeholder for the next version (at the beginning of the line):
|
|
27
|
+
### **WORK IN PROGRESS**
|
|
28
|
+
-->
|
|
29
|
+
### 0.1.0 (2022-09-29)
|
|
30
|
+
|
|
31
|
+
- (o0shojo0o) first release
|
|
32
|
+
|
|
33
|
+
## License
|
|
34
|
+
|
|
35
|
+
MIT License
|
|
36
|
+
|
|
37
|
+
Copyright (c) 2022 Dennis Rathjen <dennis.rathjen@outlook.de>
|
|
38
|
+
|
|
39
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
40
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
41
|
+
in the Software without restriction, including without limitation the rights
|
|
42
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
43
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
44
|
+
furnished to do so, subject to the following conditions:
|
|
45
|
+
|
|
46
|
+
The above copyright notice and this permission notice shall be included in all
|
|
47
|
+
copies or substantial portions of the Software.
|
|
48
|
+
|
|
49
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
50
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
51
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
52
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
53
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
54
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
55
|
+
SOFTWARE.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"i18n": true,
|
|
3
|
+
"type": "panel",
|
|
4
|
+
"items": {
|
|
5
|
+
"server": {
|
|
6
|
+
"type": "text",
|
|
7
|
+
"label": "Server",
|
|
8
|
+
"newLine": true
|
|
9
|
+
},
|
|
10
|
+
"port": {
|
|
11
|
+
"type": "number",
|
|
12
|
+
"label": "Port",
|
|
13
|
+
"newLine": false
|
|
14
|
+
},
|
|
15
|
+
"debugLogEnabled": {
|
|
16
|
+
"type": "checkbox",
|
|
17
|
+
"label": "Debug Log Enabled",
|
|
18
|
+
"newLine": true
|
|
19
|
+
},
|
|
20
|
+
"proxyZ2MLogs": {
|
|
21
|
+
"type": "checkbox",
|
|
22
|
+
"label": "Proxy Zigbee2MQTT logs to ioBroker logs",
|
|
23
|
+
"newLine": false
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
Binary file
|
package/io-package.json
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
{
|
|
2
|
+
"common": {
|
|
3
|
+
"name": "zigbee2mqtt",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"news": {
|
|
6
|
+
"0.1.0": {
|
|
7
|
+
"en": "first release",
|
|
8
|
+
"de": "erste veröffentlichung",
|
|
9
|
+
"ru": "первый релиз",
|
|
10
|
+
"pt": "primeiro lançamento",
|
|
11
|
+
"nl": "eerste vrijlating",
|
|
12
|
+
"fr": "première version",
|
|
13
|
+
"it": "primo rilascio",
|
|
14
|
+
"es": "primera liberación",
|
|
15
|
+
"pl": "pierwsze wydanie",
|
|
16
|
+
"zh-cn": "首次释放"
|
|
17
|
+
},
|
|
18
|
+
"0.0.1": {
|
|
19
|
+
"en": "initial release",
|
|
20
|
+
"de": "Erstveröffentlichung",
|
|
21
|
+
"ru": "Начальная версия",
|
|
22
|
+
"pt": "lançamento inicial",
|
|
23
|
+
"nl": "Eerste uitgave",
|
|
24
|
+
"fr": "Première version",
|
|
25
|
+
"it": "Versione iniziale",
|
|
26
|
+
"es": "Versión inicial",
|
|
27
|
+
"pl": "Pierwsze wydanie",
|
|
28
|
+
"zh-cn": "首次出版"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"title": "zigbee2mqtt",
|
|
32
|
+
"titleLang": {
|
|
33
|
+
"en": "zigbee2mqtt",
|
|
34
|
+
"de": "zigbee2mqtt",
|
|
35
|
+
"ru": "зигби2мктт",
|
|
36
|
+
"pt": "zigbee2mqtt",
|
|
37
|
+
"nl": "zigbee2mqtt",
|
|
38
|
+
"fr": "zigbee2mqtt",
|
|
39
|
+
"it": "zigbee2mqtt",
|
|
40
|
+
"es": "zigbee2mqtt",
|
|
41
|
+
"pl": "zigbee2mqtt",
|
|
42
|
+
"zh-cn": "zigbee2mqtt"
|
|
43
|
+
},
|
|
44
|
+
"desc": {
|
|
45
|
+
"en": "Zigbee2MQTT adapter for ioBroker",
|
|
46
|
+
"de": "Zigbee2MQTT-Adapter für ioBroker",
|
|
47
|
+
"ru": "Адаптер Zigbee2MQTT для ioBroker",
|
|
48
|
+
"pt": "Adaptador Zigbee2MQTT para ioBroker",
|
|
49
|
+
"nl": "Zigbee2MQTT-adapter voor ioBroker",
|
|
50
|
+
"fr": "Adaptateur Zigbee2MQTT pour ioBroker",
|
|
51
|
+
"it": "Adattatore Zigbee2MQTT per ioBroker",
|
|
52
|
+
"es": "Adaptador Zigbee2MQTT para ioBroker",
|
|
53
|
+
"pl": "Adapter Zigbee2MQTT do ioBroker",
|
|
54
|
+
"zh-cn": "用于 ioBroker 的 Zigbee2MQTT 适配器"
|
|
55
|
+
},
|
|
56
|
+
"authors": [
|
|
57
|
+
"Dennis Rathjen <dennis.rathjen@outlook.de>"
|
|
58
|
+
],
|
|
59
|
+
"keywords": [
|
|
60
|
+
"ioBroker",
|
|
61
|
+
"template",
|
|
62
|
+
"Smart Home",
|
|
63
|
+
"home automation"
|
|
64
|
+
],
|
|
65
|
+
"license": "MIT",
|
|
66
|
+
"platform": "Javascript/Node.js",
|
|
67
|
+
"main": "main.js",
|
|
68
|
+
"icon": "zigbee2mqtt.png",
|
|
69
|
+
"enabled": false,
|
|
70
|
+
"extIcon": "https://raw.githubusercontent.com/o0shojo0o/ioBroker.zigbee2mqtt/main/admin/zigbee2mqtt.png",
|
|
71
|
+
"readme": "https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/blob/main/README.md",
|
|
72
|
+
"loglevel": "info",
|
|
73
|
+
"mode": "daemon",
|
|
74
|
+
"type": "lighting",
|
|
75
|
+
"compact": true,
|
|
76
|
+
"connectionType": "local",
|
|
77
|
+
"dataSource": "push",
|
|
78
|
+
"adminUI": {
|
|
79
|
+
"config": "json"
|
|
80
|
+
},
|
|
81
|
+
"adminTab": {
|
|
82
|
+
"name": {
|
|
83
|
+
"en": "Zigbee2MQTT",
|
|
84
|
+
"de": "Zigbee2MQTT",
|
|
85
|
+
"ru": "Zigbee2MQTT",
|
|
86
|
+
"pt": "Zigbee2MQTT",
|
|
87
|
+
"nl": "Zigbee2MQTT",
|
|
88
|
+
"fr": "Zigbee2MQTT",
|
|
89
|
+
"it": "Zigbee2MQTT",
|
|
90
|
+
"es": "Zigbee2MQTT",
|
|
91
|
+
"pl": "Zigbee2MQTT",
|
|
92
|
+
"zh-cn": "Zigbee2MQTT"
|
|
93
|
+
},
|
|
94
|
+
"link": "http://%server%:%port%",
|
|
95
|
+
"fa-icon": "</i><img style='width:24px;margin-bottom:-6px;' src='/adapter/zigbee2mqtt/zigbee2mqtt.png'><i>"
|
|
96
|
+
},
|
|
97
|
+
"dependencies": [
|
|
98
|
+
{
|
|
99
|
+
"js-controller": ">=3.3.22"
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"globalDependencies": [
|
|
103
|
+
{
|
|
104
|
+
"admin": ">=5.1.13"
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
"native": {
|
|
109
|
+
"server": "",
|
|
110
|
+
"port": "8080",
|
|
111
|
+
"debugLogEnabled": false,
|
|
112
|
+
"proxyZ2MLogs": true
|
|
113
|
+
},
|
|
114
|
+
"objects": [],
|
|
115
|
+
"instanceObjects": [
|
|
116
|
+
{
|
|
117
|
+
"_id": "info",
|
|
118
|
+
"type": "channel",
|
|
119
|
+
"common": {
|
|
120
|
+
"name": "Information"
|
|
121
|
+
},
|
|
122
|
+
"native": {}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"_id": "info.connection",
|
|
126
|
+
"type": "state",
|
|
127
|
+
"common": {
|
|
128
|
+
"role": "indicator.connected",
|
|
129
|
+
"name": "Device or service connected",
|
|
130
|
+
"type": "boolean",
|
|
131
|
+
"read": true,
|
|
132
|
+
"write": false,
|
|
133
|
+
"def": false
|
|
134
|
+
},
|
|
135
|
+
"native": {}
|
|
136
|
+
}
|
|
137
|
+
]
|
|
138
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// This file extends the AdapterConfig type from "@types/iobroker"
|
|
2
|
+
// using the actual properties present in io-package.json
|
|
3
|
+
// in order to provide typings for adapter.config properties
|
|
4
|
+
|
|
5
|
+
import { native } from '../io-package.json';
|
|
6
|
+
|
|
7
|
+
type _AdapterConfig = typeof native;
|
|
8
|
+
|
|
9
|
+
// Augment the globally declared type ioBroker.AdapterConfig
|
|
10
|
+
declare global {
|
|
11
|
+
namespace ioBroker {
|
|
12
|
+
interface AdapterConfig extends _AdapterConfig {
|
|
13
|
+
// Do not enter anything here!
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// this is required so the above AdapterConfig is found by TypeScript / type checking
|
|
19
|
+
export {};
|