Update README.md

Friendly topics
This commit is contained in:
Alex M
2024-02-19 19:48:39 +03:00
committed by GitHub
parent f865e259a1
commit adb59a0d9d

View File

@@ -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