Services
Service | Data | Description |
---|---|---|
localtuya.reload |
Reload All localtuya entries |
|
localtuya.set_dp |
{"data": {"device_id", "dp", "value"}} |
Set new value for one DP or multi |
Change the value of DP 1
service: localtuya.set_dp
data:
device_id: 11100118278aab4de001
dp: 1
value: true
Change the values for multi DPs
service: localtuya.set_dp
data:
device_id: 11100118278aab4de001 #(1)!
value:
"1": true # (2)!
"2": true # (3)!
"3": false # (4)!
- Device with this ID must be added into
localtuya
- Set
DP 1
Value totrue
- Set
DP 2
Value totrue
- Set
DP 3
Value tofalse