homebridge-tasmota-control 0.3.44 → 0.3.45
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 +9 -0
- package/README.md +1 -0
- package/config.schema.json +2 -2
- package/index.js +1 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@ 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.3.45] - (29.12.2021)
|
|
8
|
+
## Changs
|
|
9
|
+
- prepare directory and files synchronously
|
|
10
|
+
|
|
11
|
+
## [0.3.44] - (28.12.2021)
|
|
12
|
+
## Changs
|
|
13
|
+
- update node minimum requirements
|
|
14
|
+
|
|
6
15
|
## [0.3.43] - (28.12.2021)
|
|
7
16
|
## Changs
|
|
8
17
|
- code cleanup
|
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)
|
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.45",
|
|
5
5
|
"description": "Homebridge plugin (https://github.com/homebridge/homebridge) to control Tasmota flashed devices.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|