Use devices.json for discovery

* Usese devices.json from "tuya-cli wizard" for device discovery, no topic config required
* Uses device discovery by default, but can manually edit devices.json to add IP address, protocol version, or change
* Creates short topic name using just "friendly name" or "id".
This commit is contained in:
tsightler
2020-09-21 00:23:31 -04:00
parent b0549bf392
commit 670a87e9fb
3 changed files with 212 additions and 264 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "tuya-mqtt",
"version": "2.1.0",
"version": "3.0.0-beta1",
"description": "Control Tuya devices locally via MQTT",
"homepage": "https://github.com/TheAgentK/tuya-mqtt#readme",
"main": "tuya-mqtt.js",
@@ -16,7 +16,8 @@
"color-convert": "^2.0.1",
"debug": "^4.1.1",
"mqtt": "^4.2.1",
"tuyapi": "^5.3.1"
"tuyapi": "^5.3.1",
"json5": "^2.1.3"
},
"repository": {
"type": "git",