Localtuya Device DP Config Settings Thread

I couldn’t find a specific thread where everyone lists all the TuyaLocal devices they have got work and what DP Config Settings they used.

Try not to log issues here, just Post the devices and its config

2 Likes

Name: Arlec White Grid Connect Smart Plug In Socket With Energy Meter
Link: Bunnings

DP1 - Switch

DP17 - Electricity Consumption

  • UoM: kWh
  • Device Class: energy
  • SF: 0.001 (copy & paste as manual entry does not seem to work)

DP18 - Current

  • UoM: mA
  • Device Class: current
    • SF: 0.001 (copy & paste as manual entry does not seem to work)

DP 19 - Power

  • UoM: W
  • Device Class: power
  • SF: 0.1 (copy & paste as manual entry does not seem to work)

DP 20 - Voltage

  • UoM: V
  • Device Class: Voltage
  • SF: 0.1 (copy & paste as manual entry does not seem to work)
3 Likes

I think it would be great to put all things like it in one place - but i’m not sure if that thread is ok for that?
From my side - LSC LED Flood light with sensor - i’ve put all values into Tuya localapi LSC LED Flood light with sensor - Google Docs

1 Like

There are reports that you can run for your devices at iot.tuya.com.

Device ID’s will be available either in locatTuya or by going to the iot.Tuya site and going to the device list. There are lots of tutorials if you have nota lready been there

To get the local key go to API Explorer and use Device Management > ‘Query device details’ and enter in your device ID. The local key is in the response returned.
cloud>Tuya 2>device mgmt

To ge the local key
Device Management > ‘Query device details’ and enter in your device ID. The local key is in the response returned.
API Explorer > Cloud Tuya >Cloud > Device mgmt
To get the DPIDS

while you are in there, you can also retrieve the DP values for your device using:
Device Control > Query Properties

And you can get the valid values for each setting here
Device Control (Standard Instruction Set) > Get the specifications and properties of the device

Has it changed? I cant seem to get the actual ID numbers, just a list

DP Instruction	Standard Instruction
switch_led
switch_led
work_mode
work_mode
bright_value
bright_value
temp_value
temp_value
colour_data
colour_data
scene_data

… etc lots others.

I can also query things like

      {
        "code": "switch_led",
        "event_from": "2",
        "event_id": 5,
        "event_time": 1729284096288,
        "status": "1",
        "value": "false"
      },
      {
        "code": "bright_value_v2",
        "event_from": "2",
        "event_id": 5,
        "event_time": 1728706326648,
        "status": "1",
        "value": "1000"
      },

and others, but I’m not sure how to translate that into dp values.

Thats not how you get the DP id

Follow these instructions

1 Like