homebridge-tasmota-control 0.4.0 → 0.4.3
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 +11 -0
- package/index.js +7 -6
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,15 +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
|
+
|
|
6
15
|
## [0.4.0] - (25.02.2022)
|
|
7
16
|
## Added
|
|
8
17
|
- automatically check channels count
|
|
18
|
+
|
|
9
19
|
## Changes
|
|
10
20
|
- removed channelsCount properties from config.json
|
|
11
21
|
|
|
12
22
|
## [0.3.47] - (18.01.2022)
|
|
13
23
|
## Changes
|
|
14
24
|
- update dependencies
|
|
25
|
+
|
|
15
26
|
## [0.3.46] - (17.01.2022)
|
|
16
27
|
## Changes
|
|
17
28
|
- update dependencies
|
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.
|
|
4
|
+
"version": "0.4.3",
|
|
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.2"
|
|
35
35
|
},
|
|
36
36
|
"keywords": [
|
|
37
37
|
"homebridge",
|