Giter Club home page Giter Club logo

Comments (2)

make-all avatar make-all commented on August 17, 2024

The log you have posted does not contain any "full_poll": true entries, so the full info that is received from the light is not visible.
The information about DPS mappings also seems to be from one of the API calls intended for "standard" cloud API use, and not the full details that are available from the QueryThingsDataModel API call (albiet in a less human readable format).

from tuya-local.

fmonday avatar fmonday commented on August 17, 2024

I do see "full_poll": true in the third line of the HA log that I posted, but here's the result of the QueryThingsDataModel API call:

{
  "result": {
    "model": "{\"modelId\":\"000002rvu5\",\"services\":[{\"actions\":[],\"code\":\"\",\"description\":\"\",\"events\":[],\"name\":\"默认服务\",\"properties\":[{\"abilityId\":20,\"accessMode\":\"rw\",\"code\":\"switch_led\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_power\",\"attribute\":\"515\"},\"name\":\"开关\",\"typeSpec\":{\"type\":\"bool\"}},{\"abilityId\":26,\"accessMode\":\"rw\",\"code\":\"countdown\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-a_nav_timer\",\"attribute\":\"514\"},\"name\":\"倒计时\",\"typeSpec\":{\"type\":\"value\",\"max\":86400,\"min\":0,\"scale\":0,\"step\":1,\"unit\":\"s\"}},{\"abilityId\":28,\"accessMode\":\"wr\",\"code\":\"control_data\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_box2\",\"attribute\":\"608\"},\"name\":\"调节\",\"typeSpec\":{\"type\":\"string\",\"maxlen\":255}},{\"abilityId\":104,\"accessMode\":\"rw\",\"code\":\"lightcustomization\",\"description\":\"bit 1:显示灯泡;bit 0:关闭灯泡;\\n如 0b101......表示第1个灯泡开,第2个灯泡关,第3个灯泡关....\",\"name\":\"灯串显示\",\"typeSpec\":{\"type\":\"string\",\"maxlen\":255}},{\"abilityId\":106,\"accessMode\":\"rw\",\"code\":\"mode\",\"description\":\"模式字符串:012345555……5555\\n0:模式(单字符0-b):Fade、Blink、Twinkle、Rainbow、Red White Blue、Red Green White、Mardi Gras、Valentines Day、Autumn、St Patrick Day、Spring、UserColor1、UserColor2、UserColor3、UserColor4、UserColor5\\n1:效果(单字符0-7):Solid、Twinkle、Blink、Pulse、Wave Chase、Chase、Wave、Fase chase\\n2:速度(单字符0-f)\\n3:亮度(单字符0-f)\\n4:颜色个数(单字符0-2)\\n5:颜色值(HSV白光)\\n\",\"name\":\"模式\",\"typeSpec\":{\"type\":\"string\",\"maxlen\":255}},{\"abilityId\":107,\"accessMode\":\"rw\",\"code\":\"lamp_number\",\"description\":\"默认值24\",\"name\":\"灯串头数\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"12\",\"18\",\"24\"]}}]}]}"
  },
  "success": true,
  "t": 1720883560691,
  "tid": "58cc7f61412a11ef8d05deff400716f1"
}

I think I can also eventually work out how to get a debug scan from tinytuya if you need it...

from tuya-local.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.