tuya-local icon indicating copy to clipboard operation
tuya-local copied to clipboard

Request support for Dé Wallbox 22 2kW AC EV Charger 32A

Open coolwiesau opened this issue 1 year ago • 2 comments

Log Message

"data": { "device_config": { "friendly_name": "Charging Post", "host": "192.168.178.102", "device_id": "bf071c634dfcdec1degajl", "local_key": "", "protocol_version": "3.3", "enable_debug": false, "dps_strings": [ "10 (value: 0)", "101 (value: no_connet)", "102 (value: 233)", "103 (value: 0)", "104 (value: 0)", "105 (value: 0)", "106 (value: 0)", "107 (value: 0)", "109 (value: 0)", "110 (value: 405)", "112 (value: 0)", "113 (value: Max32A)", "115 (value: 20)", "118 (value: 0)", "119 (value: 0)", "120 (value: 00:00:00)", "121 (value: 0)", "123 (value: True)", "124 (value: WaitOperation)" ], "entities": [ { "id": 10, "friendly_name": "Voltage", "restore_on_reconnect": false, "is_passive_entity": false, "platform": "switch" } ], "product_key": "tj9l3ghsjnbdjom6" } } }

Please paste logs here

Information about DPS mappings

Please paste the output here. { "result": { "model": "{"modelId":"ek3pa0","services":[{"actions":[],"code":"","description":"","events":[],"name":"默认服务","properties":[{"abilityId":3,"accessMode":"ro","code":"work_state","description":"","extensions":{"iconName":"icon-zhuangtai"},"name":"工作状态","typeSpec":{"type":"enum","range":["charger_free","charger_insert","charger_free_fault","charger_wait","charger_charging","charger_pause","charger_end","charger_fault"]}},{"abilityId":10,"accessMode":"ro","code":"fault","description":"","extensions":{"iconName":"icon-baojing","scope":"fault"},"name":"故障告警","typeSpec":{"type":"bitmap","label":["err_uvp","err_ovp","err_ocp","err_pe","err_temp","err_cp","err_leak","err_leaksc","err_pe2","err_temp_plug","err_temp_pcb","err_temp_core","err_esb","err_pe_sck"],"maxlen":14}},{"abilityId":11,"accessMode":"rw","code":"alarm_set_1","description":"1.1 名称:告警设置1\n1.2 含义:用于告知面板有哪些告警,对每个告警项进行设置,例如是否动作,动作阈值数值设置。\n2 格式:HEX格式,大端模式, 总告警的数量4字节= 设置告警总长度。\n3,报文格式\n每个告警由4个字节组成,第1个字节(表示该告警存在);第2个字节(发生此告警时,设备是否告警及保护动作;第3、4字节:设置告警阈值","extensions":{"iconName":"icon-dp_warming"},"name":"告警设置1","typeSpec":{"type":"raw","maxlen":128}},{"abilityId":12,"accessMode":"rw","code":"alarm_set_2","description":"1.1 名称:告警设置2\n1.2 含义:用于告知面板有哪些告警,对每个告警项进行设置,例如是否动作,动作阈值数值设置。\n2 格式:HEX格式,大端模式, 总告警的数量4字节= 设置告警总长度。\n3,报文格式\n每个告警由4个字节组成,第1个字节(表示该告警存在);第2个字节(发生此告警时,设备是否告警及保护动作;第3、4字节:设置告警阈值","extensions":{"iconName":"icon-dp_warming"},"name":"告警设置2","typeSpec":{"type":"raw","maxlen":128}},{"abilityId":14,"accessMode":"rw","code":"work_mode","description":"","extensions":{"iconName":"icon-dp_mode","trigger":"direct"},"name":"工作模式","typeSpec":{"type":"enum","range":["charge_now","charge_pct","charge_energy","charge_schedule"]}},{"abilityId":15,"accessMode":"ro","code":"balance_energy","description":"","extensions":{"iconName":"icon-dp_lightning"},"name":"剩余可用电量","typeSpec":{"type":"value","max":99999999,"min":0,"scale":3,"step":1,"unit":"kW·h"}},{"abilityId":16,"accessMode":"rw","code":"clear_energy","description":"","extensions":{"iconName":"icon-dp_lightning"},"name":"电量清零","typeSpec":{"type":"bool"}},{"abilityId":18,"accessMode":"rw","code":"switch","description":"","extensions":{"iconName":"icon-dp_power2","trigger":"direct"},"name":"开关","typeSpec":{"type":"bool"}},{"abilityId":23,"accessMode":"ro","code":"system_version","description":"1.1 名称:充电桩软硬件版本号\n1.2 含义:硬件、固件等当前版本号\n2 格式\n 数据类型: string\n 功能属性: 最大长度128字节\n4 报文格式\n 举例:\"HW V1.0,SW V1.0.3\"","extensions":{"iconName":"icon-dp_mode"},"name":"系统版本","typeSpec":{"type":"string","maxlen":255}},{"abilityId":25,"accessMode":"ro","code":"charge_energy_once","description":"","extensions":{"iconName":"icon-Ele","attribute":"2048","trigger":"direct"},"name":"单次充电量","typeSpec":{"type":"value","max":999999,"min":1,"scale":2,"step":1,"unit":"kW·h"}},{"abilityId":27,"accessMode":"rw","code":"online_state","description":"","extensions":{"iconName":"icon-dp_updown"},"name":"在线状态","typeSpec":{"type":"enum","range":["online","offline"]}},{"abilityId":101,"accessMode":"ro","code":"DeviceState","description":"","name":"设备状态","typeSpec":{"type":"enum","range":["no_connet","connect","charing","wait_rfid","finish","wait_charing","error"]}},{"abilityId":102,"accessMode":"ro","code":"A_Voltage","description":"","name":"输入电压","typeSpec":{"type":"value","max":500,"min":0,"scale":0,"step":1,"unit":"V"}},{"abilityId":103,"accessMode":"ro","code":"B_Voltage","description":"","name":"输入电压","typeSpec":{"type":"value","max":500,"min":0,"scale":0,"step":1,"unit":"V"}},{"abilityId":104,"accessMode":"ro","code":"C_Voltage","description":"","name":"输入电压","typeSpec":{"type":"value","max":500,"min":0,"scale":0,"step":1,"unit":"V"}},{"abilityId":105,"accessMode":"ro","code":"A_Current","description":"","name":"输出电流","typeSpec":{"type":"value","max":600,"min":0,"scale":1,"step":1,"unit":"A"}},{"abilityId":106,"accessMode":"ro","code":"B_Current","description":"","name":"输出电流","typeSpec":{"type":"value","max":600,"min":0,"scale":1,"step":1,"unit":"A"}},{"abilityId":107,"accessMode":"ro","code":"C_Current","description":"","name":"输出电流","typeSpec":{"type":"value","max":600,"min":0,"scale":1,"step":1,"unit":"A"}},{"abilityId":108,"accessMode":"ro","code":"PhaseFlag","description":"","name":"单三相标志","typeSpec":{"type":"enum","range":["Single_phase","Three_phase","No_phase","Phase_err"]}},{"abilityId":109,"accessMode":"ro","code":"DeviceKw","description":"","name":"设备功率","typeSpec":{"type":"value","max":1000,"min":0,"scale":1,"step":1,"unit":"kW"}},{"abilityId":110,"accessMode":"ro","code":"DeviceTemp","description":"ID-111 为设备温度2 备用 ","name":"设备温度","typeSpec":{"type":"value","max":1050,"min":-300,"scale":1,"step":1,"unit":"℃"}},{"abilityId":111,"accessMode":"ro","code":"DeviceTemp2","description":"设备温度2 备用","name":"设备温度2","typeSpec":{"type":"value","max":1050,"min":-300,"scale":1,"step":1,"unit":"℃"}},{"abilityId":112,"accessMode":"ro","code":"DeviceKwh","description":"一次充电的累计功率,拔枪后清零。","name":"累计功率","typeSpec":{"type":"value","max":10000,"min":0,"scale":1,"step":1,"unit":"kWh"}},{"abilityId":113,"accessMode":"ro","code":"DeviceMaxSetA","description":"","name":"最大电流设置","typeSpec":{"type":"enum","range":["Max16A","Max32A","Max40A","Max50A"]}},{"abilityId":114,"accessMode":"rw","code":"Set16A","description":"","name":"设置电流","typeSpec":{"type":"value","max":16,"min":8,"scale":0,"step":1,"unit":"A"}},{"abilityId":115,"accessMode":"rw","code":"Set32A","description":"","name":"设置电流","typeSpec":{"type":"value","max":32,"min":8,"scale":0,"step":1,"unit":"A"}},{"abilityId":116,"accessMode":"rw","code":"Set40A","description":"","name":"设置电流","typeSpec":{"type":"value","max":40,"min":12,"scale":0,"step":1,"unit":"A"}},{"abilityId":117,"accessMode":"rw","code":"Set50A","description":"","name":"设置电流","typeSpec":{"type":"value","max":50,"min":12,"scale":0,"step":1,"unit":""}},{"abilityId":118,"accessMode":"rw","code":"SetDelayTime","description":"","name":"预约充电","typeSpec":{"type":"value","max":15,"min":0,"scale":0,"step":1,"unit":"H"}},{"abilityId":119,"accessMode":"rw","code":"SetDefineTime","description":"","name":"定时充电","typeSpec":{"type":"value","max":15,"min":0,"scale":0,"step":1,"unit":"H"}},{"abilityId":120,"accessMode":"ro","code":"Ctime","description":"","name":"时间","typeSpec":{"type":"string","maxlen":255}},{"abilityId":121,"accessMode":"ro","code":"CTime2","description":"","name":"充电时间","typeSpec":{"type":"value","max":480,"min":0,"scale":1,"step":1,"unit":"H"}},{"abilityId":122,"accessMode":"rw","code":"IDVerificationSet","description":"","name":"身份验证设置","typeSpec":{"type":"bool"}},{"abilityId":123,"accessMode":"rw","code":"RFID","description":"","extensions":{"trigger":"direct"},"name":"刷卡","typeSpec":{"type":"bool"}},{"abilityId":124,"accessMode":"rw","code":"ChargingOperation","description":"","name":"充电操作","typeSpec":{"type":"enum","range":["OpenCharging","CloseCharging","WaitOperation"]}}]}]}" }, "success": true, "t": 1719300902470, "tid": "6efb0a5432c511ef9e3b1acebe103cd3" }

Please paste the output here.

Product ID

tj9l3ghsjnbdjom6

Information about how the device functions

https://www.ebay.de/itm/404784503669

coolwiesau avatar Jun 25 '24 12:06 coolwiesau

Hi there, can i contribute something to speed things up?

coolwiesau avatar Jul 05 '24 10:07 coolwiesau

Not my place to say but it would probably simplify things for the team if you gave them the info they requested, in the format they requested. The critical log message you can find in home assistant under setting->system->logg It's the entry created when you tried to add the product without it being supported. Should look like this: Device matches smartplug_usb with quality of 31%. DPS: {"updated_at": 1726579719.4110582, "1": false, "2": "fan", "3": "high", "4": 0, "6": false, "7": false, "8": 22, "9": 0, "11": 72, "12": true, "13": false, "14": false, "15": 0}

For the DPS info, you have to go to the Tuya IoT website, open your project and under cloud select Api queries and in the side menu on the following page, scroll down and select QueryThingsDataModel, key in your device id and the result you get is what is requested in the DPS info.

In the "Information about how the device functions" you can either describe the functions yourself or try to find a link to a proper pdf manual. A link to a sales page will leave it up the team to further investigate.

It's important to supply the correct information for this to be a more or less mechanised process instead of a research project. If every request was a research project, the team would probably only manage to make support for a handful of devices/year. It's not easy to make an integration for a product you don't have access to for testing. The small team has a lot of work to do developing the TuyaLocal integration, deal with bugs and support requsts. To help us make device definition files for our stuff is a side-service they kindly help us with (If you read the documentation, you could absolutely do it yourself). We have to understand that and see to it that this side-service takes away as little time as possible from development.

I know it's not easy and it took me hours to figure it out the first time. A good method is to go in and look at other requests that's gone through the whole process and see how the data they submitted looked like.

ghost avatar Sep 22 '24 06:09 ghost