homebridge-tasmota-control 0.3.50-beta.1 → 0.4.2
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 +17 -0
- package/README.md +0 -2
- package/index.js +7 -6
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +3,26 @@ All notable changes to this project will be documented in this file.
|
|
|
3
3
|
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
|
+
|
|
7
|
+
## [0.4.2] - (25.04.2022)
|
|
8
|
+
## Changes
|
|
9
|
+
- update dependencies
|
|
10
|
+
|
|
11
|
+
## [0.4.1] - (08.04.2022)
|
|
12
|
+
## Changes
|
|
13
|
+
- update dependencies
|
|
14
|
+
|
|
15
|
+
## [0.4.0] - (25.02.2022)
|
|
16
|
+
## Added
|
|
17
|
+
- automatically check channels count
|
|
18
|
+
|
|
19
|
+
## Changes
|
|
20
|
+
- removed channelsCount properties from config.json
|
|
21
|
+
|
|
6
22
|
## [0.3.47] - (18.01.2022)
|
|
7
23
|
## Changes
|
|
8
24
|
- update dependencies
|
|
25
|
+
|
|
9
26
|
## [0.3.46] - (17.01.2022)
|
|
10
27
|
## Changes
|
|
11
28
|
- update dependencies
|
package/README.md
CHANGED
|
@@ -46,7 +46,6 @@ Install and use [Homebridge Config UI X](https://github.com/oznu/homebridge-conf
|
|
|
46
46
|
| `auth` | If enabled, authorizatins credentials will be used for login. |
|
|
47
47
|
| `user` | Here set the authorization *Username*. |
|
|
48
48
|
| `passwd` | Here set the authorization *Password*. |
|
|
49
|
-
| `channelsCount` | Here select the channels count. |
|
|
50
49
|
| `enableDebugMode` | This enable deep log in homebridge console. |
|
|
51
50
|
| `disableLogInfo` | This disable log info, all values and state will not be displayed in Homebridge log console. |
|
|
52
51
|
|
|
@@ -60,7 +59,6 @@ Install and use [Homebridge Config UI X](https://github.com/oznu/homebridge-conf
|
|
|
60
59
|
"auth": false,
|
|
61
60
|
"user": "user",
|
|
62
61
|
"passwd": "password",
|
|
63
|
-
"channelsCount": 1,
|
|
64
62
|
"refreshInterval": 5,
|
|
65
63
|
"disableLogInfo": false,
|
|
66
64
|
"enableDebugMode": false,
|
package/index.js
CHANGED
|
@@ -98,7 +98,7 @@ class tasmotaDevice {
|
|
|
98
98
|
this.axiosInstance = axios.create({
|
|
99
99
|
method: 'GET',
|
|
100
100
|
baseURL: url,
|
|
101
|
-
timeout:
|
|
101
|
+
timeout: 10000
|
|
102
102
|
});
|
|
103
103
|
|
|
104
104
|
//check if the directory exists, if not then create it
|
|
@@ -128,11 +128,12 @@ class tasmotaDevice {
|
|
|
128
128
|
const firmwareRevision = response.data.StatusFWR.Version;
|
|
129
129
|
const channelsCount = response.data.Status.FriendlyName.length;
|
|
130
130
|
|
|
131
|
-
this.log(`----- ${deviceName}
|
|
132
|
-
this.log(
|
|
133
|
-
this.log(
|
|
134
|
-
this.log(
|
|
135
|
-
this.log(
|
|
131
|
+
this.log(`----- ${deviceName} -----`);
|
|
132
|
+
this.log(`Manufacturer: ${this.manufacturer}`);
|
|
133
|
+
this.log(`Hardware: ${modelName}`);
|
|
134
|
+
this.log(`Serialnr: ${addressMac}`);
|
|
135
|
+
this.log(`Firmware: ${firmwareRevision}`);
|
|
136
|
+
this.log(`Channels: ${channelsCount}`);
|
|
136
137
|
this.log('----------------------------------');
|
|
137
138
|
|
|
138
139
|
this.modelName = modelName;
|
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
|
+
"version": "0.4.2",
|
|
5
5
|
"description": "Homebridge plugin (https://github.com/homebridge/homebridge) to control Tasmota flashed devices.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"homebridge": ">=1.3.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"axios": "^0.
|
|
34
|
+
"axios": "^0.27.0"
|
|
35
35
|
},
|
|
36
36
|
"keywords": [
|
|
37
37
|
"homebridge",
|