GithubHelp home page GithubHelp logo

Comments (3)

make-all avatar make-all commented on September 23, 2024

The device is not exposing any USB switch. It is basically compatible with smartplugv2 (probably one of the energyv? variants) according to the dps mapping, but the diagnostics show it also isn't reporting any power data, so it can only function as the simple_switch it was detected as.

from tuya-local.

samhaa avatar samhaa commented on September 23, 2024

Thank you for the quick reply. I have accidentally put the DPS values ​​of the wrong device.

Correct DPS data


  "result": {
    "model": {
      "modelId": "0000027u7p",
      "services": [
        {
          "actions": [],
          "code": "",
          "description": "",
          "events": [],
          "name": "默认服务",
          "properties": [
            {
              "abilityId": 1,
              "accessMode": "rw",
              "code": "switch_1",
              "description": "",
              "extensions": {
                "iconName": "icon-dp_power2",
                "attribute": "16"
              },
              "name": "开关",
              "typeSpec": {
                "type": "bool"
              }
            },
            {
              "abilityId": 7,
              "accessMode": "rw",
              "code": "switch_usb1",
              "description": "",
              "extensions": {
                "iconName": "icon-dp_power2",
                "attribute": "16"
              },
              "name": "USB开关1",
              "typeSpec": {
                "type": "bool"
              }
            },
            {
              "abilityId": 9,
              "accessMode": "rw",
              "code": "countdown_1",
              "description": "",
              "extensions": {
                "iconName": "icon-dp_time2"
              },
              "name": "开关1倒计时",
              "typeSpec": {
                "type": "value",
                "max": 86400,
                "min": 0,
                "scale": 0,
                "step": 1,
                "unit": "s"
              }
            },
            {
              "abilityId": 15,
              "accessMode": "rw",
              "code": "countdown_usb1",
              "description": "",
              "extensions": {
                "iconName": "icon-dp_time2"
              },
              "name": "USB1倒计时",
              "typeSpec": {
                "type": "value",
                "max": 86400,
                "min": 0,
                "scale": 0,
                "step": 1,
                "unit": "s"
              }
            }
          ]
        }
      ]
    }
  },
  "success": true,


from tuya-local.

make-all avatar make-all commented on September 23, 2024

This looks more promising, but it won't help to resolve the problem that your device is only reporting the outlet switch:

 "cached_state": {
      "updated_at": 1717851343.5644524,
      "1": true
    },

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.