From 1d1ab0d62a9e5cfedad6d935de7bdb050a90acbc Mon Sep 17 00:00:00 2001 From: lehanspb Date: Wed, 15 Feb 2023 12:36:25 +0300 Subject: [PATCH] Description for MQTT DPS topics for subdevices (cid) behind Tuya Gateway --- README.md | 7 ++++--- docs/openHAB.md | 3 --- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 20a570f..b8e835b 100644 --- a/README.md +++ b/README.md @@ -157,6 +157,7 @@ In addition to the DPS Key topics, it's possible to use the DPS for devices behi This example demostrates DPS values and commands for Tuya Smart Thermostat Radiator Valve behind Tuya Gateway: +``` Thermostat mode: tuya/zgw1/1a24fkfffe6b4e24/dsp/4/state --> {"4":"auto"} Possible values: auto/temp_auto/holiday/manual/comfort/eco/BOOST @@ -175,13 +176,13 @@ Valve percent: tuya/zgw1/1a24fkfffe6b4e24/dps/109/state --> {"109": 30} Where 30 - 30% tuya/zgw1/dps/command <-- {"dps": 109, "set": 40, "cid": "1a24fkfffe6b4e24"} - +``` ## Issues Not all Tuya protocols are supported. For example, some devices use protocol 3.2 which currently remains unsupported by the TuyAPI project due to lack of enough information to reverse engineer the protocol. If you are unable to control your devices with tuya-mqtt please verify that you can query and control them with tuya-cli first. If tuya-cli works, then this script should also work, if it doesn't then this script will not work either. -## Integration with other Home Automation tools -openHAB examples are [here](docs/openHAB.md). +## Integration with openHAB +openHAB 3.x examples are [here](docs/openHAB.md). ## Contributors - [TheAgentK](https://github.com/TheAgentK) diff --git a/docs/openHAB.md b/docs/openHAB.md index fb681be..bb7eb01 100644 --- a/docs/openHAB.md +++ b/docs/openHAB.md @@ -1,6 +1,3 @@ -:exclamation: There is a greate Step-By-Step guide from user HolgiHab at openhab community ([Step-By-Step Guide]( -https://community.openhab.org/t/step-by-step-guide-for-adding-tuya-bulbs-smart-life-to-oh2-using-tuya-mqtt-js-by-agentk/59371)). This guide is not only for light bulbs, but also applies to sockets. :exclamation: - ## Example items for OpenHAB 3.x Bindings ### Tuya Smart Thermostat Radiator Valve behind Tuya Gateway