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 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
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021 Grzegorz
3
+ Copyright (c) 2022 Grzegorz Kaczor
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -5,6 +5,7 @@
5
5
  <span align="center">
6
6
 
7
7
  # Homebridge Tasmota Control
8
+ [![verified-by-homebridge](https://badgen.net/badge/homebridge/verified/purple)](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)
8
9
  [![npm](https://badgen.net/npm/dt/homebridge-tasmota-control?color=purple)](https://www.npmjs.com/package/homebridge-tasmota-control) [![npm](https://badgen.net/npm/v/homebridge-tasmota-control?color=purple)](https://www.npmjs.com/package/homebridge-tasmota-control)
9
10
  [![GitHub pull requests](https://img.shields.io/github/issues-pr/grzegorz914/homebridge-tasmota-control.svg)](https://github.com/grzegorz914/homebridge-tasmota-control/pulls)
10
11
  [![GitHub issues](https://img.shields.io/github/issues/grzegorz914/homebridge-tasmota-control.svg)](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.
@@ -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 Home tab, then tap <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*.\n4. Enter the Homebridge PIN, this can be found under the QR code in Homebridge UI or your Homebridge logs, alternatively you can select *Use Camera* and scan the QR code again.",
6
- "footerDisplay": "This plugin is available [here](https://github.com/grzegorz914/homebridge-tasmota-control).",
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
- fsPromises.mkdir(this.prefDir);
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.44",
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": ">=0.24.0"
34
+ "axios": "^0.26.0"
35
35
  },
36
36
  "keywords": [
37
37
  "homebridge",