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

Adding device yml for EV charger tj9l3ghsjnbdjom6 which is not suppor… #2816

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ralsinn
Copy link

@ralsinn ralsinn commented Jan 19, 2025

Tested with the charger I got yesterday and it works fine for me. Hope this can be added. In my case the Device is branded as "Absina wallbox 11kw" charger but it is sold with different names.
I also saw an open issue “Request support for Dé Wallbox 22 2kW AC EV Charger 32A #2050” with the same tuya ID. I assume it will work there as well.

Attached the Data model from the API Explorer:

{
  "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": 1737306992732,
  "tid": "211a7bd7d68911ef9e5f9e9247cde4aa"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 👀 In review
Development

Successfully merging this pull request may close these issues.

1 participant