make-all / tuya-local

Local support for Tuya devices in Home Assistant
MIT License
1.41k stars 542 forks source link

Request support for Zemismart 3-phase smart energy meter #2489

Open marleshi opened 1 week ago

marleshi commented 1 week ago

Log message

DPS: {"updated_at": 1730895908.1826687, "1": 90, "9": 0, "12": true, "19": "fzx24010001", "23": 224, "29": 962, "32": 4996, "35": "online", "50": 33, "101": false, "102": 15, "103": 2405, "104": -3878, "105": -697, "108": -74, "109": 15, "110": 220, "112": 2419, "113": 7341, "114": 1703, "117": 96, "118": 60, "119": 0, "121": 2424, "122": -630, "123": -43, "126": -28, "127": 15, "128": 4, "130": 85, "131": 247, "132": "9600", "133": "N81"}

Product ID

fzxonzodwjiugioz

Product Name

ZemiSmart sdm01-tw0-12-zm

DPS information

{
"result":{
"model":"{"modelId":"fcpru8","services":[{"actions":[],"code":"","description":"","events":[],"name":"默认服务","properties":[
{"abilityId":1,"accessMode":"ro","code":"forward_energy_total","description":"","extensions":{"iconName":"icon-dp_lightning","attribute":"1152"},"name":"累计正向有功电能","typeSpec":{"type":"value","max":999999999,"min":0,"scale":2,"step":1,"unit":"kW.h"}},
{"abilityId":6,"accessMode":"ro","code":"phase_a","description":"1,A相电压,电流及功率\n2,大端模式,HEX格式,共8个字节\n3,单位精度:电压,2字节,单位0.1V。电流,3字节,单位 0.001A 。A相有功功率,3字节,单位0.0001kW\n4,报文格式\n举例:08 80 00 03 E8 00 27 10 表示A相217.6V,A相电流1.000A,A相功率10.000KW\n5,通信逻辑:\n1)用户进面板,主动查询。用户进入面板,面板马上下发0x08到电表,电表上报数据到云平台,面板拿到数据,然后展示。 注:最新WIFI支持。 \n2)电表基于一定周期上报数据。建议:在WIFI模式时,15秒上报一次。NB模式时,1个小时上报一次。","extensions":{"iconName":"icon-dp_lightning","attribute":"1152"},"name":"A相电压,电流及功率","typeSpec":{"type":"raw","maxlen":128}},
{"abilityId":7,"accessMode":"ro","code":"phase_b","description":"1,B相电压,电流及功率\n2,大端模式,HEX格式,共8个字节\n3,单位精度:电压,2字节,单位0.1V。电流,3字节,单位 0.001A 。B相有功功率,3字节,单位0.0001kW\n4,报文格式\n举例:08 80 00 03 E8 00 27 10 表示B相217.6V,B相电流1.000A,B相功率10.000KW\n5,通信逻辑:\n1)用户进面板,主动查询。用户进入面板,面板马上下发0x00到电表,电表上报数据到云平台,面板拿到数据,然后展示。 \n2)电表基于一定周期上报数据。建议:在WIFI模式时,15秒上报一次。NB模式时,1个小时上报一次。","extensions":{"iconName":"icon-dp_lightning","attribute":"1152"},"name":"B相电压,电流及功率","typeSpec":{"type":"raw","maxlen":128}},
{"abilityId":8,"accessMode":"ro","code":"phase_c","description":"1,C相电压,电流及功率\n2,大端模式,HEX格式,共8个字节\n3,单位精度:电压,2字节,单位0.1V。电流,3字节,单位 0.001A 。C相有功功率,3字节,单位0.0001kW\n4,报文格式\n举例:08 80 00 03 E8 00 27 10 表示C相217.6V,C相电流1.000A,C相功率10.000KW\n5,通信逻辑:\n1)用户进面板,主动查询。用户进入面板,面板马上下发0x08到电表,电表上报数据到云平台,面板拿到数据,然后展示。 \n2)电表基于一定周期上报数据。建议:在WIFI模式时,15秒上报一次。NB模式时,1个小时上报一次。","extensions":{"iconName":"icon-dp_lightning","attribute":"1152"},"name":"C相电压,电流及功率","typeSpec":{"type":"raw","maxlen":128}},
{"abilityId":9,"accessMode":"ro","code":"fault","description":"1,告警\n2,大端模式,HEX,4字节\n3,报文格式\n按照完整4个字节,对应的告警位上报告警;bit位,1表示有告警,0表示无告警;如果没用的告警位,补0。高位无定义,也补0;\n举例:0X00 00 00 09,表示当前发生了漏电自检不正常告警和短路告警,无其它告警。\n4,通信逻辑\n只要有1个告警发生,就完整4个字节上报给面板;只要有1个告警关闭,就完整4个字节上报给面板,更新面板显示。","extensions":{"iconName":"icon-baojing","attribute":"1152"},"name":"故障告警","typeSpec":{"type":"bitmap","label":["short_circuit_alarm","surge_alarm","overload_alarm","leakagecurr_alarm","temp_dif_fault","fire_alarm","high_power_alarm","self_test_alarm","ov_cr","unbalance_alarm","ov_vol","undervoltage_alarm","miss_phase_alarm","outage_alarm","magnetism_alarm","credit_alarm","no_balance_alarm"],"maxlen":17}},
{"abilityId":12,"accessMode":"rw","code":"clear_energy","description":"","extensions":{"iconName":"icon-dp_lightning","attribute":"1024"},"name":"电能清零","typeSpec":{"type":"bool"}},
{"abilityId":17,"accessMode":"rw","code":"alarm_set_1","description":"1,告警阈值使能控制及设置2 \n2,HEX格式,大端模式, 总告警的数量*4字节= 设置告警总长度。\n3,报文格式\n每个告警由4个字节组成,第1个字节(表示该告警存在);第2个字节(发生此告警时,断路器控制模式(0X01拉闸,0X00不动作只告警);第3、4字节:设置告警阈值\n举例:0X01 01 00 00 03 01 00 14,表示该断路器支持短路告警,发生该告警时,自动跳闸,阀值补0。支持过载告警,发生该告警时,拉闸动作,动作阀值20KW。无其它告警。\n4,通信逻辑\nA,配网成功后,按照上面的格式,主动上报给云平台,面板知道哪些告警是断路器当前支持的。设置不成功,重新配网再上报。\nB,断路器上电时,也上报一次。\nC,面板根据协议下发告警设置。","extensions":{"iconName":"icon-dp_warming","attribute":"1152"},"name":"告警设置1","typeSpec":{"type":"raw","maxlen":128}},
{"abilityId":18,"accessMode":"rw","code":"alarm_set_2","description":"1,告警阈值使能控制及设置2 \n2,HEX格式,大端模式\n3,报文格式\n每个告警由4个字节组成,第1个字节(表示该告警存在);第2个字节(发生此告警时,断路器控制模式(0X01拉闸,0X00不动作只告警);第3、4字节:设置告警阈值\n举例:0X01 01 00 3C 03 01 00 F5,表示该断路器支持过流告警,发生该告警时,拉闸动作,动作阀值60A。支持过压告警,发生该告警时,拉闸动作,动作阀值245V\n4,通信逻辑\nA,配网成功后,按照上面的格式,主动上报给云平台,面板知道哪些告警是断路器当前支持的。设置不成功,重新配网再上报。\nB,断路器上电时,也上报一次。\nC,面板根据协议下发告警设置。","extensions":{"iconName":"icon-dp_warming","attribute":"1152"},"name":"告警设置2","typeSpec":{"type":"raw","maxlen":128}},
{"abilityId":19,"accessMode":"ro","code":"breaker_id","description":"1,设备号\n2,大端模式,字符串型\n3,单位精度\n4,报文格式\n5,通信逻辑\nA,配网时上报三次,以确保上报成功。如果配对成功,面板有显示设备号。\nB,如果配对成功,面板没有显示设备号,需要移除设备,再配置一遍。\nC,每次断路器上电,也上报一次。","extensions":{"iconName":"icon-dp_mode","attribute":"1152"},"name":"设备号显示","typeSpec":{"type":"string","maxlen":255}},
{"abilityId":23,"accessMode":"ro","code":"reverse_energy_total","description":"","extensions":{"iconName":"icon-dp_lightning","attribute":"1024"},"name":"累计反向有功电能","typeSpec":{"type":"value","max":999999999,"min":0,"scale":2,"step":1,"unit":"kW·h"}},
{"abilityId":29,"accessMode":"rw","code":"active_power","description":"","extensions":{"iconName":"icon-dianliang","attribute":"1152"},"name":"总有功功率","typeSpec":{"type":"value","max":99999999,"min":-99999999,"scale":3,"step":1,"unit":"kW"}},
{"abilityId":32,"accessMode":"ro","code":"supply_frequency","description":"","extensions":{"iconName":"icon-dp_lightning","attribute":"1152"},"name":"频率","typeSpec":{"type":"value","max":9999,"min":0,"scale":2,"step":1,"unit":"Hz"}},
{"abilityId":35,"accessMode":"rw","code":"online_state","description":"可用于APP交互更新机制,例如进入面板点击刷新按钮会下发online,设备感知后立即上报一次最新的例如电流电压功率等希望及时更新展示的数据dp。","extensions":{"iconName":"icon-dp_updown"},"name":"面板在线","typeSpec":{"type":"enum","range":["online","offline"]}},
{"abilityId":50,"accessMode":"rw","code":"power_factor","description":"","extensions":{"iconName":"icon-dp_lightning"},"name":"总功率因数","typeSpec":{"type":"value","max":100,"min":-100,"scale":2,"step":1,"unit":""}},
{"abilityId":101,"accessMode":"rw","code":"device_locating","description":"","name":"设备定位","typeSpec":{"type":"bool"}},
{"abilityId":102,"accessMode":"rw","code":"data_report_duration","description":"","name":"数据上报间隔时间","typeSpec":{"type":"value","max":3600,"min":5,"scale":0,"step":1,"unit":"seconds"}},
{"abilityId":103,"accessMode":"ro","code":"cur_voltage_x","description":"","extensions":{"trigger":"direct"},"name":"X相电压","typeSpec":{"type":"value","max":5000,"min":0,"scale":1,"step":1,"unit":"V"}},
{"abilityId":104,"accessMode":"ro","code":"cur_current_x","description":"","extensions":{"trigger":"direct"},"name":"X相电流","typeSpec":{"type":"value","max":300000,"min":-300000,"scale":3,"step":1,"unit":"A"}},
{"abilityId":105,"accessMode":"ro","code":"cur_power_x","description":"","extensions":{"trigger":"direct"},"name":"X相有功功率","typeSpec":{"type":"value","max":100000,"min":-100000,"scale":3,"step":1,"unit":"kW"}},
{"abilityId":108,"accessMode":"ro","code":"power_factor_x","description":"","extensions":{"trigger":"direct"},"name":"X相功率因数","typeSpec":{"type":"value","max":100,"min":-100,"scale":2,"step":1,"unit":""}},
{"abilityId":109,"accessMode":"ro","code":"x_total_import_energy","description":"","extensions":{"trigger":"direct"},"name":"X相正向电能","typeSpec":{"type":"value","max":999999999,"min":0,"scale":2,"step":1,"unit":"kW.h"}},
{"abilityId":110,"accessMode":"ro","code":"x_total_export_energy","description":"","extensions":{"trigger":"direct"},"name":"X相反向电能","typeSpec":{"type":"value","max":999999999,"min":0,"scale":2,"step":1,"unit":"kW.h"}},
{"abilityId":112,"accessMode":"ro","code":"cur_voltage_y","description":"","extensions":{"trigger":"direct"},"name":"Y相电压","typeSpec":{"type":"value","max":5000,"min":0,"scale":1,"step":1,"unit":"V"}},
{"abilityId":113,"accessMode":"ro","code":"cur_current_y","description":"","extensions":{"trigger":"direct"},"name":"Y相电流","typeSpec":{"type":"value","max":300000,"min":-300000,"scale":3,"step":1,"unit":"A"}},
{"abilityId":114,"accessMode":"ro","code":"cur_power_y","description":"","extensions":{"trigger":"direct"},"name":"Y相有功功率","typeSpec":{"type":"value","max":100000,"min":-100000,"scale":3,"step":1,"unit":"kW"}},
{"abilityId":117,"accessMode":"ro","code":"power_factor_y","description":"","extensions":{"trigger":"direct"},"name":"Y相功率因数","typeSpec":{"type":"value","max":100,"min":-100,"scale":2,"step":1,"unit":""}},
{"abilityId":118,"accessMode":"ro","code":"y_total_import_energy","description":"","extensions":{"trigger":"direct"},"name":"Y相正向电能","typeSpec":{"type":"value","max":999999999,"min":0,"scale":2,"step":1,"unit":"kW.h"}},
{"abilityId":119,"accessMode":"ro","code":"y_total_export_energy","description":"","extensions":{"trigger":"direct"},"name":"Y相反向电能","typeSpec":{"type":"value","max":999999999,"min":0,"scale":2,"step":1,"unit":"kW.h"}},
{"abilityId":121,"accessMode":"ro","code":"cur_voltage_z","description":"","extensions":{"trigger":"direct"},"name":"Z相电压","typeSpec":{"type":"value","max":5000,"min":0,"scale":1,"step":1,"unit":"V"}},
{"abilityId":122,"accessMode":"ro","code":"cur_current_z","description":"","extensions":{"trigger":"direct"},"name":"Z相电流","typeSpec":{"type":"value","max":300000,"min":-300000,"scale":3,"step":1,"unit":"A"}},
{"abilityId":123,"accessMode":"ro","code":"cur_power_z","description":"","extensions":{"trigger":"direct"},"name":"Z相有功功率","typeSpec":{"type":"value","max":100000,"min":-100000,"scale":3,"step":1,"unit":"kW"}},
{"abilityId":126,"accessMode":"ro","code":"power_factor_z","description":"","extensions":{"trigger":"direct"},"name":"Z相功率因数","typeSpec":{"type":"value","max":100,"min":-100,"scale":2,"step":1,"unit":""}},
{"abilityId":127,"accessMode":"ro","code":"z_total_import_energy","description":"","extensions":{"trigger":"direct"},"name":"Z相正向电能","typeSpec":{"type":"value","max":999999999,"min":0,"scale":2,"step":1,"unit":"kW.h"}},
{"abilityId":128,"accessMode":"ro","code":"z_total_export_energy","description":"","extensions":{"trigger":"direct"},"name":"Z相反向电能","typeSpec":{"type":"value","max":999999999,"min":0,"scale":2,"step":1,"unit":"kW.h"}},
{"abilityId":130,"accessMode":"ro","code":"current_unbalance","description":"","extensions":{"trigger":"direct"},"name":"三相电流不平衡度","typeSpec":{"type":"value","max":500,"min":0,"scale":0,"step":1,"unit":"%"}},
{"abilityId":131,"accessMode":"rw","code":"rs485_address","description":"","name":"RS485地址","typeSpec":{"type":"value","max":247,"min":1,"scale":0,"step":1,"unit":""}},
{"abilityId":132,"accessMode":"rw","code":"rs485_baut_rate","description":"","name":"RS485波特率","typeSpec":{"type":"enum","range":["2400","4800","9600","19200","38400"]}},
{"abilityId":133,"accessMode":"rw","code":"rs485_data_format","description":"","name":"RS485数据格式","typeSpec":{"type":"enum","range":["N81","E81","O81","N82"]}}]}]}"
},
"success":true,
"t":1730897546532,
"tid":"f97eb04e9c3d11efacb2ded37fff273c"
}

Sample config

name: Energy meter
products:
  - id: fzxonzodwjiugioz
    name: ZemiSmart-SmartMeter
primary_entity:
  entity: sensor
  class: power
  name: Phase A Power
  dps:
    - id: 105
      type: integer
      name: sensor
      unit: W
      class: measurement
      mapping:
        - scale: 1
secondary_entities:
  - entity: sensor
    class: power
    name: Phase B Power
    dps:
      - id: 114
        type: integer
        name: sensor
        unit: W
        class: measurement
        mapping:
          - scale: 1
  - entity: sensor
    class: power
    name: Phase C Power
    dps:
      - id: 123
        type: integer
        name: sensor
        unit: W
        class: measurement
        mapping:
          - scale: 1

Information about how the device functions

The device is a Wifi-connected smart 3-phase power/energy meter. It is described at https://www.zemismart.com/products/sdm01-tw0-12-zm

The three important DPS fields are 105, 114 and 123, which are the power measurements for the three phases.

marleshi commented 1 week ago

{ "result":{ "model":"{\"modelId\":\"fcpru8\",\"services\":[{\"actions\":[],\"code\":\"\",\"description\":\"\",\"events\":[],\"name\":\"默认服务\",\"properties\":[{\"abilityId\":1,\"accessMode\":\"ro\",\"code\":\"forward_energy_total\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_lightning\",\"attribute\":\"1152\"},\"name\":\"累计正向有功电能\",\"typeSpec\":{\"type\":\"value\",\"max\":999999999,\"min\":0,\"scale\":2,\"step\":1,\"unit\":\"kW.h\"}},{\"abilityId\":6,\"accessMode\":\"ro\",\"code\":\"phase_a\",\"description\":\"1,A相电压,电流及功率\n2,大端模式,HEX格式,共8个字节\n3,单位精度:电压,2字节,单位0.1V。电流,3字节,单位 0.001A 。A相有功功率,3字节,单位0.0001kW\n4,报文格式\n举例:08 80 00 03 E8 00 27 10 表示A相217.6V,A相电流1.000A,A相功率10.000KW\n5,通信逻辑:\n1)用户进面板,主动查询。用户进入面板,面板马上下发0x08到电表,电表上报数据到云平台,面板拿到数据,然后展示。 注:最新WIFI支持。 \n2)电表基于一定周期上报数据。建议:在WIFI模式时,15秒上报一次。NB模式时,1个小时上报一次。\",\"extensions\":{\"iconName\":\"icon-dp_lightning\",\"attribute\":\"1152\"},\"name\":\"A相电压,电流及功率\",\"typeSpec\":{\"type\":\"raw\",\"maxlen\":128}},{\"abilityId\":7,\"accessMode\":\"ro\",\"code\":\"phase_b\",\"description\":\"1,B相电压,电流及功率\n2,大端模式,HEX格式,共8个字节\n3,单位精度:电压,2字节,单位0.1V。电流,3字节,单位 0.001A 。B相有功功率,3字节,单位0.0001kW\n4,报文格式\n举例:08 80 00 03 E8 00 27 10 表示B相217.6V,B相电流1.000A,B相功率10.000KW\n5,通信逻辑:\n1)用户进面板,主动查询。用户进入面板,面板马上下发0x00到电表,电表上报数据到云平台,面板拿到数据,然后展示。 \n2)电表基于一定周期上报数据。建议:在WIFI模式时,15秒上报一次。NB模式时,1个小时上报一次。\",\"extensions\":{\"iconName\":\"icon-dp_lightning\",\"attribute\":\"1152\"},\"name\":\"B相电压,电流及功率\",\"typeSpec\":{\"type\":\"raw\",\"maxlen\":128}},{\"abilityId\":8,\"accessMode\":\"ro\",\"code\":\"phase_c\",\"description\":\"1,C相电压,电流及功率\n2,大端模式,HEX格式,共8个字节\n3,单位精度:电压,2字节,单位0.1V。电流,3字节,单位 0.001A 。C相有功功率,3字节,单位0.0001kW\n4,报文格式\n举例:08 80 00 03 E8 00 27 10 表示C相217.6V,C相电流1.000A,C相功率10.000KW\n5,通信逻辑:\n1)用户进面板,主动查询。用户进入面板,面板马上下发0x08到电表,电表上报数据到云平台,面板拿到数据,然后展示。 \n2)电表基于一定周期上报数据。建议:在WIFI模式时,15秒上报一次。NB模式时,1个小时上报一次。\",\"extensions\":{\"iconName\":\"icon-dp_lightning\",\"attribute\":\"1152\"},\"name\":\"C相电压,电流及功率\",\"typeSpec\":{\"type\":\"raw\",\"maxlen\":128}},{\"abilityId\":9,\"accessMode\":\"ro\",\"code\":\"fault\",\"description\":\"1,告警\n2,大端模式,HEX,4字节\n3,报文格式\n按照完整4个字节,对应的告警位上报告警;bit位,1表示有告警,0表示无告警;如果没用的告警位,补0。高位无定义,也补0;\n举例:0X00 00 00 09,表示当前发生了漏电自检不正常告警和短路告警,无其它告警。\n4,通信逻辑\n只要有1个告警发生,就完整4个字节上报给面板;只要有1个告警关闭,就完整4个字节上报给面板,更新面板显示。\",\"extensions\":{\"iconName\":\"icon-baojing\",\"attribute\":\"1152\"},\"name\":\"故障告警\",\"typeSpec\":{\"type\":\"bitmap\",\"label\":[\"short_circuit_alarm\",\"surge_alarm\",\"overload_alarm\",\"leakagecurr_alarm\",\"temp_dif_fault\",\"fire_alarm\",\"high_power_alarm\",\"self_test_alarm\",\"ov_cr\",\"unbalance_alarm\",\"ov_vol\",\"undervoltage_alarm\",\"miss_phase_alarm\",\"outage_alarm\",\"magnetism_alarm\",\"credit_alarm\",\"no_balance_alarm\"],\"maxlen\":17}},{\"abilityId\":12,\"accessMode\":\"rw\",\"code\":\"clear_energy\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_lightning\",\"attribute\":\"1024\"},\"name\":\"电能清零\",\"typeSpec\":{\"type\":\"bool\"}},{\"abilityId\":17,\"accessMode\":\"rw\",\"code\":\"alarm_set_1\",\"description\":\"1,告警阈值使能控制及设置2 \n2,HEX格式,大端模式, 总告警的数量*4字节= 设置告警总长度。\n3,报文格式\n每个告警由4个字节组成,第1个字节(表示该告警存在);第2个字节(发生此告警时,断路器控制模式(0X01拉闸,0X00不动作只告警);第3、4字节:设置告警阈值\n举例:0X01 01 00 00 03 01 00 14,表示该断路器支持短路告警,发生该告警时,自动跳闸,阀值补0。支持过载告警,发生该告警时,拉闸动作,动作阀值20KW。无其它告警。\n4,通信逻辑\nA,配网成功后,按照上面的格式,主动上报给云平台,面板知道哪些告警是断路器当前支持的。设置不成功,重新配网再上报。\nB,断路器上电时,也上报一次。\nC,面板根据协议下发告警设置。\",\"extensions\":{\"iconName\":\"icon-dp_warming\",\"attribute\":\"1152\"},\"name\":\"告警设置1\",\"typeSpec\":{\"type\":\"raw\",\"maxlen\":128}},{\"abilityId\":18,\"accessMode\":\"rw\",\"code\":\"alarm_set_2\",\"description\":\"1,告警阈值使能控制及设置2 \n2,HEX格式,大端模式\n3,报文格式\n每个告警由4个字节组成,第1个字节(表示该告警存在);第2个字节(发生此告警时,断路器控制模式(0X01拉闸,0X00不动作只告警);第3、4字节:设置告警阈值\n举例:0X01 01 00 3C 03 01 00 F5,表示该断路器支持过流告警,发生该告警时,拉闸动作,动作阀值60A。支持过压告警,发生该告警时,拉闸动作,动作阀值245V\n4,通信逻辑\nA,配网成功后,按照上面的格式,主动上报给云平台,面板知道哪些告警是断路器当前支持的。设置不成功,重新配网再上报。\nB,断路器上电时,也上报一次。\nC,面板根据协议下发告警设置。\",\"extensions\":{\"iconName\":\"icon-dp_warming\",\"attribute\":\"1152\"},\"name\":\"告警设置2\",\"typeSpec\":{\"type\":\"raw\",\"maxlen\":128}},{\"abilityId\":19,\"accessMode\":\"ro\",\"code\":\"breaker_id\",\"description\":\"1,设备号\n2,大端模式,字符串型\n3,单位精度\n4,报文格式\n5,通信逻辑\nA,配网时上报三次,以确保上报成功。如果配对成功,面板有显示设备号。\nB,如果配对成功,面板没有显示设备号,需要移除设备,再配置一遍。\nC,每次断路器上电,也上报一次。\",\"extensions\":{\"iconName\":\"icon-dp_mode\",\"attribute\":\"1152\"},\"name\":\"设备号显示\",\"typeSpec\":{\"type\":\"string\",\"maxlen\":255}},{\"abilityId\":23,\"accessMode\":\"ro\",\"code\":\"reverse_energy_total\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_lightning\",\"attribute\":\"1024\"},\"name\":\"累计反向有功电能\",\"typeSpec\":{\"type\":\"value\",\"max\":999999999,\"min\":0,\"scale\":2,\"step\":1,\"unit\":\"kW·h\"}},{\"abilityId\":29,\"accessMode\":\"rw\",\"code\":\"active_power\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dianliang\",\"attribute\":\"1152\"},\"name\":\"总有功功率\",\"typeSpec\":{\"type\":\"value\",\"max\":99999999,\"min\":-99999999,\"scale\":3,\"step\":1,\"unit\":\"kW\"}},{\"abilityId\":32,\"accessMode\":\"ro\",\"code\":\"supply_frequency\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_lightning\",\"attribute\":\"1152\"},\"name\":\"频率\",\"typeSpec\":{\"type\":\"value\",\"max\":9999,\"min\":0,\"scale\":2,\"step\":1,\"unit\":\"Hz\"}},{\"abilityId\":35,\"accessMode\":\"rw\",\"code\":\"online_state\",\"description\":\"可用于APP交互更新机制,例如进入面板点击刷新按钮会下发online,设备感知后立即上报一次最新的例如电流电压功率等希望及时更新展示的数据dp。\",\"extensions\":{\"iconName\":\"icon-dp_updown\"},\"name\":\"面板在线\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"online\",\"offline\"]}},{\"abilityId\":50,\"accessMode\":\"rw\",\"code\":\"power_factor\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_lightning\"},\"name\":\"总功率因数\",\"typeSpec\":{\"type\":\"value\",\"max\":100,\"min\":-100,\"scale\":2,\"step\":1,\"unit\":\"\"}},{\"abilityId\":101,\"accessMode\":\"rw\",\"code\":\"device_locating\",\"description\":\"\",\"name\":\"设备定位\",\"typeSpec\":{\"type\":\"bool\"}},{\"abilityId\":102,\"accessMode\":\"rw\",\"code\":\"data_report_duration\",\"description\":\"\",\"name\":\"数据上报间隔时间\",\"typeSpec\":{\"type\":\"value\",\"max\":3600,\"min\":5,\"scale\":0,\"step\":1,\"unit\":\"seconds\"}},{\"abilityId\":103,\"accessMode\":\"ro\",\"code\":\"cur_voltage_x\",\"description\":\"\",\"extensions\":{\"trigger\":\"direct\"},\"name\":\"X相电压\",\"typeSpec\":{\"type\":\"value\",\"max\":5000,\"min\":0,\"scale\":1,\"step\":1,\"unit\":\"V\"}},{\"abilityId\":104,\"accessMode\":\"ro\",\"code\":\"cur_current_x\",\"description\":\"\",\"extensions\":{\"trigger\":\"direct\"},\"name\":\"X相电流\",\"typeSpec\":{\"type\":\"value\",\"max\":300000,\"min\":-300000,\"scale\":3,\"step\":1,\"unit\":\"A\"}},{\"abilityId\":105,\"accessMode\":\"ro\",\"code\":\"cur_power_x\",\"description\":\"\",\"extensions\":{\"trigger\":\"direct\"},\"name\":\"X相有功功率\",\"typeSpec\":{\"type\":\"value\",\"max\":100000,\"min\":-100000,\"scale\":3,\"step\":1,\"unit\":\"kW\"}},{\"abilityId\":108,\"accessMode\":\"ro\",\"code\":\"power_factor_x\",\"description\":\"\",\"extensions\":{\"trigger\":\"direct\"},\"name\":\"X相功率因数\",\"typeSpec\":{\"type\":\"value\",\"max\":100,\"min\":-100,\"scale\":2,\"step\":1,\"unit\":\"\"}},{\"abilityId\":109,\"accessMode\":\"ro\",\"code\":\"x_total_import_energy\",\"description\":\"\",\"extensions\":{\"trigger\":\"direct\"},\"name\":\"X相正向电能\",\"typeSpec\":{\"type\":\"value\",\"max\":999999999,\"min\":0,\"scale\":2,\"step\":1,\"unit\":\"kW.h\"}},{\"abilityId\":110,\"accessMode\":\"ro\",\"code\":\"x_total_export_energy\",\"description\":\"\",\"extensions\":{\"trigger\":\"direct\"},\"name\":\"X相反向电能\",\"typeSpec\":{\"type\":\"value\",\"max\":999999999,\"min\":0,\"scale\":2,\"step\":1,\"unit\":\"kW.h\"}},{\"abilityId\":112,\"accessMode\":\"ro\",\"code\":\"cur_voltage_y\",\"description\":\"\",\"extensions\":{\"trigger\":\"direct\"},\"name\":\"Y相电压\",\"typeSpec\":{\"type\":\"value\",\"max\":5000,\"min\":0,\"scale\":1,\"step\":1,\"unit\":\"V\"}},{\"abilityId\":113,\"accessMode\":\"ro\",\"code\":\"cur_current_y\",\"description\":\"\",\"extensions\":{\"trigger\":\"direct\"},\"name\":\"Y相电流\",\"typeSpec\":{\"type\":\"value\",\"max\":300000,\"min\":-300000,\"scale\":3,\"step\":1,\"unit\":\"A\"}},{\"abilityId\":114,\"accessMode\":\"ro\",\"code\":\"cur_power_y\",\"description\":\"\",\"extensions\":{\"trigger\":\"direct\"},\"name\":\"Y相有功功率\",\"typeSpec\":{\"type\":\"value\",\"max\":100000,\"min\":-100000,\"scale\":3,\"step\":1,\"unit\":\"kW\"}},{\"abilityId\":117,\"accessMode\":\"ro\",\"code\":\"power_factor_y\",\"description\":\"\",\"extensions\":{\"trigger\":\"direct\"},\"name\":\"Y相功率因数\",\"typeSpec\":{\"type\":\"value\",\"max\":100,\"min\":-100,\"scale\":2,\"step\":1,\"unit\":\"\"}},{\"abilityId\":118,\"accessMode\":\"ro\",\"code\":\"y_total_import_energy\",\"description\":\"\",\"extensions\":{\"trigger\":\"direct\"},\"name\":\"Y相正向电能\",\"typeSpec\":{\"type\":\"value\",\"max\":999999999,\"min\":0,\"scale\":2,\"step\":1,\"unit\":\"kW.h\"}},{\"abilityId\":119,\"accessMode\":\"ro\",\"code\":\"y_total_export_energy\",\"description\":\"\",\"extensions\":{\"trigger\":\"direct\"},\"name\":\"Y相反向电能\",\"typeSpec\":{\"type\":\"value\",\"max\":999999999,\"min\":0,\"scale\":2,\"step\":1,\"unit\":\"kW.h\"}},{\"abilityId\":121,\"accessMode\":\"ro\",\"code\":\"cur_voltage_z\",\"description\":\"\",\"extensions\":{\"trigger\":\"direct\"},\"name\":\"Z相电压\",\"typeSpec\":{\"type\":\"value\",\"max\":5000,\"min\":0,\"scale\":1,\"step\":1,\"unit\":\"V\"}},{\"abilityId\":122,\"accessMode\":\"ro\",\"code\":\"cur_current_z\",\"description\":\"\",\"extensions\":{\"trigger\":\"direct\"},\"name\":\"Z相电流\",\"typeSpec\":{\"type\":\"value\",\"max\":300000,\"min\":-300000,\"scale\":3,\"step\":1,\"unit\":\"A\"}},{\"abilityId\":123,\"accessMode\":\"ro\",\"code\":\"cur_power_z\",\"description\":\"\",\"extensions\":{\"trigger\":\"direct\"},\"name\":\"Z相有功功率\",\"typeSpec\":{\"type\":\"value\",\"max\":100000,\"min\":-100000,\"scale\":3,\"step\":1,\"unit\":\"kW\"}},{\"abilityId\":126,\"accessMode\":\"ro\",\"code\":\"power_factor_z\",\"description\":\"\",\"extensions\":{\"trigger\":\"direct\"},\"name\":\"Z相功率因数\",\"typeSpec\":{\"type\":\"value\",\"max\":100,\"min\":-100,\"scale\":2,\"step\":1,\"unit\":\"\"}},{\"abilityId\":127,\"accessMode\":\"ro\",\"code\":\"z_total_import_energy\",\"description\":\"\",\"extensions\":{\"trigger\":\"direct\"},\"name\":\"Z相正向电能\",\"typeSpec\":{\"type\":\"value\",\"max\":999999999,\"min\":0,\"scale\":2,\"step\":1,\"unit\":\"kW.h\"}},{\"abilityId\":128,\"accessMode\":\"ro\",\"code\":\"z_total_export_energy\",\"description\":\"\",\"extensions\":{\"trigger\":\"direct\"},\"name\":\"Z相反向电能\",\"typeSpec\":{\"type\":\"value\",\"max\":999999999,\"min\":0,\"scale\":2,\"step\":1,\"unit\":\"kW.h\"}},{\"abilityId\":130,\"accessMode\":\"ro\",\"code\":\"current_unbalance\",\"description\":\"\",\"extensions\":{\"trigger\":\"direct\"},\"name\":\"三相电流不平衡度\",\"typeSpec\":{\"type\":\"value\",\"max\":500,\"min\":0,\"scale\":0,\"step\":1,\"unit\":\"%\"}},{\"abilityId\":131,\"accessMode\":\"rw\",\"code\":\"rs485_address\",\"description\":\"\",\"name\":\"RS485地址\",\"typeSpec\":{\"type\":\"value\",\"max\":247,\"min\":1,\"scale\":0,\"step\":1,\"unit\":\"\"}},{\"abilityId\":132,\"accessMode\":\"rw\",\"code\":\"rs485_baut_rate\",\"description\":\"\",\"name\":\"RS485波特率\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"2400\",\"4800\",\"9600\",\"19200\",\"38400\"]}},{\"abilityId\":133,\"accessMode\":\"rw\",\"code\":\"rs485_data_format\",\"description\":\"\",\"name\":\"RS485数据格式\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"N81\",\"E81\",\"O81\",\"N82\"]}}]}]}" }, "success":true, "t":1730897546532, "tid":"f97eb04e9c3d11efacb2ded37fff273c" }