rospogrigio / localtuya

local handling for Tuya devices
GNU General Public License v3.0
2.94k stars 562 forks source link

Where can I find the correct DPs to wake up? #1055

Open DFC1990 opened 2 years ago

DFC1990 commented 2 years ago

Hello all, unfortunately my tuyas are also not reachable from localtuya after restarting. The app however can still control the devices.

DNS and Internet access are blocked.

The latest version of localtuya is installed (4.1.0) which DPIDs should I use and enter in the web interface or where exactly do I get the correct DPIDs?

TECKIN Smart Plug SP22

frontendbuddy commented 2 years ago

I found mine for some heaters from China in the Device Logs section of IOT Tuya web interface in the network tab in the particular list request. Maybe you could check if this does apply to you too?

image

iosoft commented 2 years ago

Watch this YouTube video - https://www.youtube.com/watch?v=Q1ZShFJDvE0

cryptocelt commented 1 year ago

Bump, I am also looking for the DPIPs to use in a reset command, those are not mentioned in the video posted above. Most switches are ok/recoverable with "18,19,20", but smart lamps usually don't even have those DPIDs available (so the reset is not working).

donburch888 commented 1 year ago

The video mentioned DOES show how to get the Data Points (also called dp_id) from 6 minutes into the video. He even gives an explanation for interpreting the data types and values. Not a detailed explanation, but between the code (name), type and values most of them should be reasonably clear.

Note also that there are two similar entries in that menu - "Get device specification attribute" and "Get Device Specification Attribute" with capital letters at the bottom of the menu.

cryptocelt commented 1 year ago

It does, I never questioned that. However, it does not show which DPIDs are to be sent if the device falls into a zombie state, which is what is mentioned by the OP. Relative field in Local Tuya: image

tanus10 commented 3 months ago

Tuya IoT web site has been updated, as 2024-07 on Tuya web site, you can find above mentioned function at,

Could - API Explorer - Smart Home Basic Service (at Upper-Left topdown menu, make sure it's not default [IoT Core] ) - Smart Home Device Control - Get Device Specification... (the last one. There are two 'Get Device Specification's as mentioned above)

My device, Moes Quad Switch (wifi) has dp_id as 1,2,3,4 { "code": "switch_2", "dp_id": 2, "type": "Boolean", "values": "{}" },