From adb59a0d9d92891f96bfd2adeda56bceab6b532b Mon Sep 17 00:00:00 2001 From: Alex M <125274663+lehanspb@users.noreply.github.com> Date: Mon, 19 Feb 2024 19:48:39 +0300 Subject: [PATCH] Update README.md Friendly topics --- README.md | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index b2d5102..d58a552 100644 --- a/README.md +++ b/README.md @@ -186,28 +186,34 @@ When sending commands directly to DPS values there are no limitation on what val ## DPS Topics for devices behind Tuya Gateway In addition to the DPS Key topics, it's possible to use the DPS for devices behind Tuya Gateway. 'cid' - is the subdevice id. +'cidname' - is the name of subdevice (from devices.conf) 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"} +tuya/zgw1/thermostat/dsp/4/state --> {"4":"auto"} Possible values: auto/temp_auto/holiday/manual/comfort/eco/BOOST -tuya/zgw1/dps/command <-- {"dps": 4, "set": 4, "cid": "1a24fkfffe6b4e24"} +tuya/zgw1/thermostat/dps/4/command <-- auto Temperature Setpoint: -tuya/zgw1/1a24fkfffe6b4e24/dps/2/state --> {"2": 220} +tuya/zgw1/thermostat/dps/2/state --> {"2": 220} Where 220 - 22.0 Celsius -tuya/zgw1/dps/command <-- {"dps": 2, "set": 220, "cid": "1a24fkfffe6b4e24"} +tuya/zgw1/thermostat/dps/command <-- 225 Current Temperature: -tuya/zgw1/1a24fkfffe6b4e24/dps/3/state --> {"3": 225} +tuya/zgw1/thermostat/dps/3/state --> {"3": 225} Where 225 - 22.5 Celsius Valve percent: -tuya/zgw1/1a24fkfffe6b4e24/dps/109/state --> {"109": 30} +tuya/zgw1/thermostat/dps/109/state --> {"109": 30} Where 30 - 30% -tuya/zgw1/dps/command <-- {"dps": 109, "set": 40, "cid": "1a24fkfffe6b4e24"} +``` + +You can also use JSON commands with 'cid' + +``` +tuya/zgw1/dps/command <-- {"dps": 2, "set": 225, "cid": "2c34f13fde594a34"} ``` ## Issues