mirror of
https://github.com/lehanspb/tuya-mqtt.git
synced 2025-12-16 09:44:36 +00:00
Update README.md
Friendly topics
This commit is contained in:
20
README.md
20
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
|
||||
|
||||
Reference in New Issue
Block a user