Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Device request]: TUYA WiFi Smart Circuit Breaker by Tongou #142

Closed
GiulioAutel opened this issue Aug 13, 2024 · 0 comments · Fixed by #225
Closed

[Device request]: TUYA WiFi Smart Circuit Breaker by Tongou #142

GiulioAutel opened this issue Aug 13, 2024 · 0 comments · Fixed by #225
Labels
confirmed Indicates that there is an issue which has been confirmed device request Indicates a device request in progress Is already being worked on
Milestone

Comments

@GiulioAutel
Copy link

GiulioAutel commented Aug 13, 2024

Device information

TUYA WiFi Smart Circuit Breaker with power measures by Tongou

The device serves as a circuit breaker remotely operated. The device measures voltage, power and current

61RfjY-xPhL SX522

Device specification

{
  "device": {
    "active_time": 1716987077,
    "biz_type": 0,
    "category": "dlq",
    "create_time": 1716987077,
    "icon": "smart/icon/bay1638066107344ANbl/49a020b43a5acc39d95eb2b1da0fb7c1.jpg",
    "id": "bfd8bc837f19773faezfys",
    "ip": "<redacted>",
    "lat": "<redacted>",
    "local_key": "<redacted>",
    "lon": "<redacted>",
    "model": "AT-Q-SY1-JWT",
    "name": "Autoclave",
    "online": true,
    "owner_id": "<redacted>",
    "product_id": "jdj6ccklup7btq3a",
    "product_name": "WiFi Din Rail Switch with metering",
    "status": [
      {
        "code": "switch",
        "value": true
      },
      {
        "code": "countdown_1",
        "value": 0
      },
      {
        "code": "add_ele",
        "value": 1
      },
      {
        "code": "cur_current",
        "value": 121
      },
      {
        "code": "cur_power",
        "value": 20
      },
      {
        "code": "cur_voltage",
        "value": 2327
      },
      {
        "code": "test_bit",
        "value": 1
      },
      {
        "code": "voltage_coe",
        "value": 15994
      },
      {
        "code": "electric_coe",
        "value": 13060
      },
      {
        "code": "power_coe",
        "value": 3132
      },
      {
        "code": "electricity_coe",
        "value": 2688
      },
      {
        "code": "fault",
        "value": 0
      },
      {
        "code": "relay_status",
        "value": "power_on"
      },
      {
        "code": "light_mode",
        "value": "pos"
      },
      {
        "code": "child_lock",
        "value": false
      },
      {
        "code": "cycle_time",
        "value": ""
      },
      {
        "code": "online_state",
        "value": "online"
      }
    ],
    "sub": false,
    "time_zone": "+02:00",
    "uid": "<redacted>",
    "update_time": 1723470222,
    "uuid": "<redacted>"
  },
  "specifications": {
    "category": "dlq",
    "functions": [
      {
        "code": "switch",
        "desc": "{}",
        "name": "开关",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "countdown_1",
        "desc": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}",
        "name": "开关倒计时",
        "type": "Integer",
        "values": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}"
      },
      {
        "code": "relay_status",
        "desc": "{\"range\":[\"power_off\",\"power_on\",\"last\"]}",
        "name": "上电状态设置",
        "type": "Enum",
        "values": "{\"range\":[\"power_off\",\"power_on\",\"last\"]}"
      },
      {
        "code": "light_mode",
        "desc": "{\"range\":[\"relay\",\"pos\",\"none\",\"on\"]}",
        "name": "指示灯状态设置",
        "type": "Enum",
        "values": "{\"range\":[\"relay\",\"pos\",\"none\",\"on\"]}"
      },
      {
        "code": "child_lock",
        "desc": "{}",
        "name": "童锁开关",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "cycle_time",
        "desc": "{\"maxlen\":255}",
        "name": "循环定时",
        "type": "String",
        "values": "{\"maxlen\":255}"
      },
      {
        "code": "online_state",
        "desc": "{\"range\":[\"online\",\"offline\"]}",
        "name": "查询状态",
        "type": "Enum",
        "values": "{\"range\":[\"online\",\"offline\"]}"
      }
    ],
    "status": [
      {
        "code": "switch",
        "name": "开关",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "countdown_1",
        "name": "开关倒计时",
        "type": "Integer",
        "values": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}"
      },
      {
        "code": "add_ele",
        "name": "增加电量",
        "type": "Integer",
        "values": "{\"unit\":\"\",\"min\":0,\"max\":9999999,\"scale\":3,\"step\":100}"
      },
      {
        "code": "cur_current",
        "name": "当前电流",
        "type": "Integer",
        "values": "{\"unit\":\"mA\",\"min\":0,\"max\":100000,\"scale\":0,\"step\":1}"
      },
      {
        "code": "cur_power",
        "name": "当前功率",
        "type": "Integer",
        "values": "{\"unit\":\"W\",\"min\":0,\"max\":999999,\"scale\":1,\"step\":1}"
      },
      {
        "code": "cur_voltage",
        "name": "当前电压",
        "type": "Integer",
        "values": "{\"unit\":\"V\",\"min\":0,\"max\":5000,\"scale\":1,\"step\":1}"
      },
      {
        "code": "test_bit",
        "name": "产测结果位",
        "type": "Integer",
        "values": "{\"min\":0,\"max\":5,\"scale\":0,\"step\":1}"
      },
      {
        "code": "voltage_coe",
        "name": "电压校准系数",
        "type": "Integer",
        "values": "{\"min\":0,\"max\":1000000,\"scale\":0,\"step\":1}"
      },
      {
        "code": "electric_coe",
        "name": "电流校准系数",
        "type": "Integer",
        "values": "{\"min\":0,\"max\":1000000,\"scale\":0,\"step\":1}"
      },
      {
        "code": "power_coe",
        "name": "功率校准系数",
        "type": "Integer",
        "values": "{\"min\":0,\"max\":1000000,\"scale\":0,\"step\":1}"
      },
      {
        "code": "electricity_coe",
        "name": "电量校准系数",
        "type": "Integer",
        "values": "{\"min\":0,\"max\":1000000,\"scale\":0,\"step\":1}"
      },
      {
        "code": "fault",
        "name": "故障告警",
        "type": "Bitmap",
        "values": "{\"label\":[\"ov_cr\",\"ov_vol\",\"ov_pwr\",\"ls_cr\",\"ls_vol\",\"ls_pow\"]}"
      },
      {
        "code": "relay_status",
        "name": "上电状态设置",
        "type": "Enum",
        "values": "{\"range\":[\"power_off\",\"power_on\",\"last\"]}"
      },
      {
        "code": "light_mode",
        "name": "指示灯状态设置",
        "type": "Enum",
        "values": "{\"range\":[\"relay\",\"pos\",\"none\",\"on\"]}"
      },
      {
        "code": "child_lock",
        "name": "童锁开关",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "cycle_time",
        "name": "循环定时",
        "type": "String",
        "values": "{\"maxlen\":255}"
      },
      {
        "code": "online_state",
        "name": "online_state",
        "type": "Enum",
        "values": "{\"range\":[\"online\",\"offline\"]}"
      }
    ]
  }
}
@GiulioAutel GiulioAutel added the device request Indicates a device request label Aug 13, 2024
@bobvandevijver bobvandevijver mentioned this issue Aug 13, 2024
34 tasks
@bobvandevijver bobvandevijver added the confirmed Indicates that there is an issue which has been confirmed label Aug 13, 2024
@bobvandevijver bobvandevijver added this to the Release 1.4.0 milestone Sep 2, 2024
@bobvandevijver bobvandevijver linked a pull request Sep 12, 2024 that will close this issue
@bobvandevijver bobvandevijver added the in progress Is already being worked on label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed Indicates that there is an issue which has been confirmed device request Indicates a device request in progress Is already being worked on
Development

Successfully merging a pull request may close this issue.

2 participants