homebridge-tasmota-control 0.4.13 → 0.4.15
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/index.js +3 -3
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -165,8 +165,8 @@ class tasmotaDevice {
|
|
|
165
165
|
const deviceState = await this.axiosInstance(API_COMMANDS.PowerStatus);
|
|
166
166
|
const debug = this.enableDebugMode ? this.log(`Device: ${this.host} ${this.name}, debug state: ${JSON.stringify(deviceState.data, null, 2)}`) : false;
|
|
167
167
|
|
|
168
|
-
this.powerState =
|
|
169
|
-
this.names =
|
|
168
|
+
this.powerState = [];
|
|
169
|
+
this.names = [];
|
|
170
170
|
for (let i = 0; i < channelsCount; i++) {
|
|
171
171
|
const power = channelsCount == 1 ? 'POWER' : 'POWER' + (i + 1);
|
|
172
172
|
const power1 = channelsCount == 1 ? 'POWER1' : 'POWER' + (i + 1);
|
|
@@ -217,7 +217,7 @@ class tasmotaDevice {
|
|
|
217
217
|
|
|
218
218
|
//Prepare service
|
|
219
219
|
this.log.debug('prepareTasmotaService');
|
|
220
|
-
this.tasmotaServices =
|
|
220
|
+
this.tasmotaServices = [];
|
|
221
221
|
const channelsName = this.names;
|
|
222
222
|
const channelsCount = this.channelsCount;;
|
|
223
223
|
for (let i = 0; i < channelsCount; i++) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "Tasmota Control",
|
|
3
3
|
"name": "homebridge-tasmota-control",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.15",
|
|
5
5
|
"description": "Homebridge plugin (https://github.com/homebridge/homebridge) to control Tasmota flashed devices.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"LICENSE"
|
|
24
24
|
],
|
|
25
25
|
"engines": {
|
|
26
|
-
"node": ">=
|
|
27
|
-
"homebridge": ">=1.
|
|
26
|
+
"node": ">=16.0.0",
|
|
27
|
+
"homebridge": ">=1.5.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"axios": "^1.
|
|
30
|
+
"axios": "^1.3.0"
|
|
31
31
|
},
|
|
32
32
|
"keywords": [
|
|
33
33
|
"homebridge",
|