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]: TO-Q-SY2-JWT Din Rail Smart WiFi Switch with timing metering function #116

Closed
Eikland opened this issue Aug 5, 2024 · 0 comments · Fixed by #225
Closed
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

@Eikland
Copy link

Eikland commented Aug 5, 2024

Device information

https://www.tongou.com/product/to-q-sy2-jwt-din-rail-smart-wifi-switch-with-metering-function/
Din Rail TO-Q-SY2-JWT smart wifi switch can remote control to set time, loop time, and countdown through mobile phone anywhere, it has included the metering function for power consumption statistics, and it can query the status and power of the device anytime and anywhere and can be combined with smart scenarios for various combined applications.

Device specification

{
  "device": {
    "active_time": 1722357674,
    "biz_type": 18,
    "category": "dlq",
    "create_time": 1713173770,
    "icon": "smart/icon/bay1638066107344ANbl/54879131607096e4fead41a673bdfd5f.jpg",
    "id": "bf9748c97e1a3d9863hjfs",
    "ip": "<redacted>",
    "lat": "<redacted>",
    "local_key": "<redacted>",
    "lon": "<redacted>",
    "model": "AT-Q-SY2-JWT",
    "name": "SY2 WiFi switch meter",
    "online": true,
    "owner_id": "<redacted>",
    "product_id": "3lbgj7cu27nsmh0w",
    "product_name": "SY2 WiFi switch with metering ",
    "status": [
      {
        "code": "switch",
        "value": false
      },
      {
        "code": "countdown_1",
        "value": 0
      },
      {
        "code": "add_ele",
        "value": 1
      },
      {
        "code": "cur_current",
        "value": 0
      },
      {
        "code": "cur_power",
        "value": 0
      },
      {
        "code": "cur_voltage",
        "value": 2268
      },
      {
        "code": "test_bit",
        "value": 1
      },
      {
        "code": "voltage_coe",
        "value": 15855
      },
      {
        "code": "electric_coe",
        "value": 12746
      },
      {
        "code": "power_coe",
        "value": 3091
      },
      {
        "code": "electricity_coe",
        "value": 2653
      },
      {
        "code": "fault",
        "value": 0
      },
      {
        "code": "relay_status",
        "value": "last"
      },
      {
        "code": "light_mode",
        "value": "relay"
      },
      {
        "code": "child_lock",
        "value": false
      },
      {
        "code": "cycle_time",
        "value": ""
      },
      {
        "code": "temp_value",
        "value": 29
      },
      {
        "code": "alarm_set_1",
        "value": "BQEAZAcAAAA="
      },
      {
        "code": "alarm_set_2",
        "value": "AQEAQQMBAQkEAQBM"
      },
      {
        "code": "online_state",
        "value": "online"
      }
    ],
    "sub": false,
    "time_zone": "+02:00",
    "uid": "<redacted>",
    "update_time": 1722842519,
    "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": "alarm_set_1",
        "desc": "{}",
        "name": "告警设置1",
        "type": "Raw",
        "values": "{}"
      },
      {
        "code": "alarm_set_2",
        "desc": "{}",
        "name": "告警设置2",
        "type": "Raw",
        "values": "{}"
      },
      {
        "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": "temp_value",
        "name": "temp_value",
        "type": "Integer",
        "values": "{\"unit\":\"\",\"min\":0,\"max\":999,\"scale\":0,\"step\":1}"
      },
      {
        "code": "alarm_set_1",
        "name": "告警设置1",
        "type": "Raw",
        "values": "{}"
      },
      {
        "code": "alarm_set_2",
        "name": "告警设置2",
        "type": "Raw",
        "values": "{}"
      },
      {
        "code": "online_state",
        "name": "online_state",
        "type": "Enum",
        "values": "{\"range\":[\"online\",\"offline\"]}"
      }
    ]
  }
}
@Eikland Eikland added the device request Indicates a device request label Aug 5, 2024
@bobvandevijver bobvandevijver added the confirmed Indicates that there is an issue which has been confirmed label Aug 7, 2024
@bobvandevijver bobvandevijver mentioned this issue Aug 7, 2024
34 tasks
@bobvandevijver bobvandevijver changed the title TO-Q-SY2-JWT Din Rail Smart WiFi Switch with timing metering function [Device Request]: TO-Q-SY2-JWT Din Rail Smart WiFi Switch with timing metering function Aug 16, 2024
@bobvandevijver bobvandevijver added this to the Release 1.4.0 milestone Sep 2, 2024
@bobvandevijver bobvandevijver added the in progress Is already being worked on label Sep 12, 2024
@bobvandevijver bobvandevijver linked a pull request Sep 12, 2024 that will close this issue
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