homebridge-tasmota-control 0.3.44 → 0.3.48
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 +15 -0
- package/LICENSE +1 -1
- package/README.md +10 -1
- package/config.schema.json +2 -2
- package/index.js +1 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,21 @@ 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
|
+
## [0.3.47] - (18.01.2022)
|
|
7
|
+
## Changes
|
|
8
|
+
- update dependencies
|
|
9
|
+
## [0.3.46] - (17.01.2022)
|
|
10
|
+
## Changes
|
|
11
|
+
- update dependencies
|
|
12
|
+
|
|
13
|
+
## [0.3.45] - (29.12.2021)
|
|
14
|
+
## Changs
|
|
15
|
+
- prepare directory and files synchronously
|
|
16
|
+
|
|
17
|
+
## [0.3.44] - (28.12.2021)
|
|
18
|
+
## Changs
|
|
19
|
+
- update node minimum requirements
|
|
20
|
+
|
|
6
21
|
## [0.3.43] - (28.12.2021)
|
|
7
22
|
## Changs
|
|
8
23
|
- code cleanup
|
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
<span align="center">
|
|
6
6
|
|
|
7
7
|
# Homebridge Tasmota Control
|
|
8
|
+
[](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)
|
|
8
9
|
[](https://www.npmjs.com/package/homebridge-tasmota-control) [](https://www.npmjs.com/package/homebridge-tasmota-control)
|
|
9
10
|
[](https://github.com/grzegorz914/homebridge-tasmota-control/pulls)
|
|
10
11
|
[](https://github.com/grzegorz914/homebridge-tasmota-control/issues)
|
|
@@ -22,6 +23,14 @@ Homebridge plugin for Tasmota flashed devices.
|
|
|
22
23
|
|
|
23
24
|
## Note
|
|
24
25
|
* Right now only switch/outlets devices are supported.
|
|
26
|
+
* Tested with latest Tasmota 10.1.0
|
|
27
|
+
|
|
28
|
+
## Troubleshooting
|
|
29
|
+
* If for some reason the device is not displayed in HomeKit app try this procedure:
|
|
30
|
+
* Go to `./homebridge/persist`.
|
|
31
|
+
* Remove `AccessoryInfo.xxx` file which contain Your device data: `{"displayName":"Tasmota"}`.
|
|
32
|
+
* Next remove `IdentifierCashe.xxx` file with same name as `AccessoryInfo.xxx`.
|
|
33
|
+
* Restart Homebridge and try add it to the Home app again.
|
|
25
34
|
|
|
26
35
|
## Configuration
|
|
27
36
|
Install and use [Homebridge Config UI X](https://github.com/oznu/homebridge-config-ui-x/wiki) plugin to configure this plugin (Highly Recommended). The sample configuration can be edited and used manually as an alternative. See the `sample-config.json` file in this repository for an example or copy the example below into your config.json file, making the apporpriate changes before saving it. Be sure to always make a backup copy of your config.json file before making any changes to it.
|
|
@@ -69,7 +78,7 @@ Each accessory needs to be manually paired.
|
|
|
69
78
|
5. Enter the Homebridge PIN or scan the QR code, this can be found in Homebridge UI or Homebridge logs.
|
|
70
79
|
6. Complete the accessory setup.
|
|
71
80
|
|
|
72
|
-
## [What's New](https://github.com/grzegorz914/homebridge-tasmota-control/blob/master/CHANGELOG.md)
|
|
81
|
+
## [What's New](https://github.com/grzegorz914/homebridge-tasmota-control/blob/master/CHANGELOG.md).
|
|
73
82
|
|
|
74
83
|
## Development
|
|
75
84
|
* Pull request and help in development highly appreciated.
|
package/config.schema.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"pluginAlias": "tasmotaControl",
|
|
3
3
|
"pluginType": "platform",
|
|
4
4
|
"singular": true,
|
|
5
|
-
"headerDisplay": "This plugin works with Tasmota flashed devices and are exposed to HomeKit as separate accessories and each needs to be manually paired.\n\n1. Open the Home <img src='https://user-images.githubusercontent.com/3979615/78010622-4ea1d380-738e-11ea-8a17-e6a465eeec35.png' height='16.42px'> app on your device.\n2. Tap the
|
|
6
|
-
|
|
5
|
+
"headerDisplay": "This plugin works with Tasmota flashed devices and are exposed to HomeKit as separate accessories and each needs to be manually paired.\n\n1. Open the Home <img src='https://user-images.githubusercontent.com/3979615/78010622-4ea1d380-738e-11ea-8a17-e6a465eeec35.png' height='16.42px'> app on your device.\n2. Tap the <img src='https://user-images.githubusercontent.com/3979615/78010869-9aed1380-738e-11ea-9644-9f46b3633026.png' height='16.42px'>.\n3. Tap *Add Accessory*, and select *I Don't Have a Code or Cannot Scan* or *More Options*.\n4. Select Your accessory.\n5. Enter the Homebridge PIN or scan the QR code, this can be found in Homebridge UI or Homebridge logs.\n6. Complete the accessory setup.",
|
|
6
|
+
"footerDisplay": "For documentation please see [GitHub repository](https://github.com/grzegorz914/homebridge-tasmota-control).",
|
|
7
7
|
"schema": {
|
|
8
8
|
"type": "object",
|
|
9
9
|
"properties": {
|
package/index.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
const path = require('path');
|
|
4
4
|
const axios = require('axios');
|
|
5
5
|
const fs = require('fs');
|
|
6
|
-
const fsPromises = require('fs').promises;
|
|
7
6
|
|
|
8
7
|
const API_COMMANDS = {
|
|
9
8
|
Status: 'Status0',
|
|
@@ -104,7 +103,7 @@ class tasmotaDevice {
|
|
|
104
103
|
|
|
105
104
|
//check if the directory exists, if not then create it
|
|
106
105
|
if (fs.existsSync(this.prefDir) == false) {
|
|
107
|
-
|
|
106
|
+
fs.mkdirSync(this.prefDir);
|
|
108
107
|
}
|
|
109
108
|
|
|
110
109
|
//Check device state
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "Tasmota Control",
|
|
3
3
|
"name": "homebridge-tasmota-control",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.48",
|
|
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": "
|
|
34
|
+
"axios": "^0.26.0"
|
|
35
35
|
},
|
|
36
36
|
"keywords": [
|
|
37
37
|
"homebridge",
|