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 | 
localtuya.remote_add_code | 
{"data": {"target", "device_name", "command_name", "base64", "head", "key" }} | 
Manually add code into remote device. | 
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 1Value totrue - Set 
DP 2Value totrue - Set 
DP 3Value tofalse 
Add a TV button using head/key or base64