jasonacox / tinytuya

Python API for Tuya WiFi smart devices using a direct local area network (LAN) connection or the cloud (TuyaCloud API).
MIT License
868 stars 157 forks source link

DPS for ANWIO WiFi 12W Smart Bulbs #431

Open fgugliuzza opened 7 months ago

fgugliuzza commented 7 months ago

Hi, I've found that this model of RGB+CCT bulb: 61VZlsN9pJL _AC_SL1300_

supports more DPS than those shown on your tables. I've followed the instructions on the README and I've exported the full DPS list, which I'm pasting here (after some formatting enhancements):

{
  "20": "Switch",
  "21": "Mode",
  "22": "Bright",
  "23": "Colour Temp",
  "24": "Colour ",
  "25": "Scene",
  "26": "Left time",
  "27": "Music",
  "28": "Debugger",
  "29": "Debug",
  "30": "Rhythms",
  "31": "Go To Sleep",
  "32": "Wake Up",
  "33": "Power Off Memory",
  "34": "Do not Disturb",
  "41": "Remote Control Switch",
  "209": "Cycle Timing",
  "210": "Vacation Timing"
}

I hope this info can be helpful to others!

jasonacox commented 6 months ago

Thanks @fgugliuzza ! It looks like the new items are 30 through 210. Do you happen to know the "type" for these? I can add these to our README unless you want to submit a PR to get credit:

DP ID Function Point Type Range Units
20 Switch bool True/False
21 Mode enum white,colour,scene,music
22 Bright integer 10-1000*
23 Color Temp integer 0-1000
24 Color hexstring h:0-360,s:0-1000,v:0-1000 hsv
25 Scene string n/a
26 Left time integer 0-86400 s
27 Music string n/a
28 Debugger string n/a
29 Debug string n/a
30 Rhythms n/a n/a
31 Go To Sleep n/a n/a
32 Wake Up n/a n/a
33 Power Off Memory n/a n/a
34 Do not Disturb n/a n/a
41 Remote Control Switch n/a n/a
209 Cycle Timing n/a n/a
210 Vaction Timing n/a n/a
uzlonewolf commented 6 months ago

Looks like there's actually some official documentation at https://developer.tuya.com/en/docs/iot/product-function-definition?id=K9s9rhj576ypf#title-2-Description%20of%20DPs