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

Request support for EVSUN EV Charger #1501

Closed
spawnax opened this issue Jan 9, 2024 · 0 comments
Closed

Request support for EVSUN EV Charger #1501

spawnax opened this issue Jan 9, 2024 · 0 comments

Comments

@spawnax
Copy link

spawnax commented Jan 9, 2024

Log Message

EV charger received {"3": "charger_end", "4": 16, "9": 0, "10": 0, "13": "controlpi_9v", "14": "charge_schedule", "16": true, "17": 11, "18": false, "23": "A3V2V183", "24": 0, "25": 6, "27": "online", "28": 1, "full_poll": true}

Information about DPS mappings

{
  "result": {
    "model": "{\"modelId\":\"000004ik5x\",\"services\":[{\"actions\":[],\"code\":\"\",\"description\":\"\",\"events\":[],\"name\":\"默认服务\",\"properties\":[
{\"abilityId\":1,\"accessMode\":\"ro\",\"code\":\"forward_energy_total\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_lightning\",\"cloudless\":1,\"trigger\":\"direct\"},\"name\":\"正向总有功电量\",\"typeSpec\":{\"max\":99999999,\"min\":0,\"scale\":2,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":0,\"unit\":\"kW·h\"}},
{\"abilityId\":3,\"accessMode\":\"ro\",\"code\":\"work_state\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-zhuangtai\"},\"name\":\"工作状态\",\"typeSpec\":{\"range\":[\"charger_free\",\"charger_insert\",\"charger_free_fault\",\"charger_wait\",\"charger_charging\",\"charger_pause\",\"charger_end\",\"charger_fault\"],\"type\":\"enum\",\"typeDefaultValue\":\"charger_free\"}},
{\"abilityId\":4,\"accessMode\":\"rw\",\"code\":\"charge_cur_set\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-shezhi\"},\"name\":\"充电电流设定\",\"typeSpec\":{\"max\":255,\"min\":1,\"scale\":0,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":1,\"unit\":\"A\"}},
{\"abilityId\":5,\"accessMode\":\"ro\",\"code\":\"sigle_phase_power\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_lightning\"},\"name\":\"单相有功功率\",\"typeSpec\":{\"max\":99999999,\"min\":0,\"scale\":3,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":0,\"unit\":\"kW\"}},
{\"abilityId\":6,\"accessMode\":\"ro\",\"code\":\"phase_a\",\"description\":\"1.1 名称:A相电压,电流及功率\\n1.2 含义:展示A相当前的电压、电流、功率值。\\n2 格式:大端模式,HEX格式,共8个字节\\n3,单位精度:电压,2字节,单位0.1V。电流,3字节,单位 0.001A 。A相有功功率,3字节,单位0.001kW\\n4,报文格式\\n举例:08 80 00 03 E8 00 27 10 表示A相217.6V,A相电流10A,A相功率10.000KW\",\"extensions\":{\"iconName\":\"icon-dp_lightning\"},\"name\":\"上报A相电压,电流及功率\",\"typeSpec\":{\"maxlen\":128,\"type\":\"raw\"}},
{\"abilityId\":9,\"accessMode\":\"ro\",\"code\":\"power_total\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_lightning\"},\"name\":\"总功率\",\"typeSpec\":{\"max\":99999999,\"min\":0,\"scale\":3,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":0,\"unit\":\"kW\"}},
{\"abilityId\":10,\"accessMode\":\"ro\",\"code\":\"fault\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-baojing\"},\"name\":\"故障告警\",\"typeSpec\":{\"label\":[\"ov_cr\",\"ov2_cr_fault\",\"ov_vol\",\"undervoltage_alarm\",\"contactor_adhesion\",\"contactor_fault\",\"earth_fault\",\"meter_hardware_alarm\",\"scram_fault\",\"cp_fault\",\"meter_commu_fault\",\"card_reader_fault\",\"cir_short_fault\",\"adhesion_fault\",\"self_test_alarm\",\"leakagecurr_alarm\"],\"maxlen\":16,\"type\":\"bitmap\",\"typeDefaultValue\":0}},
{\"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\":{\"maxlen\":128,\"type\":\"raw\"}},
{\"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\":{\"maxlen\":128,\"type\":\"raw\"}},
{\"abilityId\":13,\"accessMode\":\"ro\",\"code\":\"connection_state\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-zhuangtai\"},\"name\":\"连接状态\",\"typeSpec\":{\"range\":[\"controlpi_12v\",\"controlpi_12v_pwm\",\"controlpi_9v\",\"controlpi_9v_pwm\",\"controlpi_6v\",\"controlpi_6v_pwm\",\"controlpi_error\"],\"type\":\"enum\",\"typeDefaultValue\":\"controlpi_12v\"}},
{\"abilityId\":14,\"accessMode\":\"rw\",\"code\":\"work_mode\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_mode\",\"trigger\":\"direct\"},\"name\":\"工作模式\",\"typeSpec\":{\"range\":[\"charge_now\",\"charge_pct\",\"charge_energy\",\"charge_schedule\",\"charge_delay\"],\"type\":\"enum\",\"typeDefaultValue\":\"charge_now\"}},
{\"abilityId\":15,\"accessMode\":\"ro\",\"code\":\"balance_energy\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_lightning\"},\"name\":\"剩余可用电量\",\"typeSpec\":{\"max\":99999999,\"min\":0,\"scale\":3,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":0,\"unit\":\"kW·h\"}},
{\"abilityId\":16,\"accessMode\":\"rw\",\"code\":\"clear_energy\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_lightning\"},\"name\":\"电量清零\",\"typeSpec\":{\"type\":\"bool\",\"typeDefaultValue\":false}},
{\"abilityId\":17,\"accessMode\":\"rw\",\"code\":\"energy_charge\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_money\"},\"name\":\"定量电量充电\",\"typeSpec\":{\"max\":2000000,\"min\":1,\"scale\":2,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":1,\"unit\":\"kW·h\"}},
{\"abilityId\":18,\"accessMode\":\"rw\",\"code\":\"switch\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_power2\",\"trigger\":\"direct\"},\"name\":\"开关\",\"typeSpec\":{\"type\":\"bool\",\"typeDefaultValue\":false}},
{\"abilityId\":19,\"accessMode\":\"rw\",\"code\":\"local_timer\",\"description\":\"1.1 名称:定时充电时间段设置\\n1.2 含义:设置定时充电模式的时间段,默认是当地时间的峰谷电\\n2,HEX格式,两个字节,大端模式\\n3,单位精度:小时\\n4,报文格式\\n   第一个字节,表示开始充电时间,第二个字节,表示结束充电时间\\n   举例:16 06,表示从22点充到第二天的6点 \",\"extensions\":{\"iconName\":\"icon-dp_time\"},\"name\":\"本地定时\",\"typeSpec\":{\"maxlen\":128,\"type\":\"raw\"}},
{\"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\":{\"maxlen\":255,\"type\":\"string\",\"typeDefaultValue\":\"\"}},
{\"abilityId\":24,\"accessMode\":\"ro\",\"code\":\"temp_current\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_c\",\"trigger\":\"direct\"},\"name\":\"当前温度\",\"typeSpec\":{\"max\":200,\"min\":-40,\"scale\":0,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":-40,\"unit\":\"℃\"}},
{\"abilityId\":25,\"accessMode\":\"ro\",\"code\":\"charge_energy_once\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-Ele\",\"attribute\":\"2048\",\"trigger\":\"direct\"},\"name\":\"单次充电量\",\"typeSpec\":{\"max\":999999,\"min\":1,\"scale\":2,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":1,\"unit\":\"kW·h\"}},
{\"abilityId\":27,\"accessMode\":\"rw\",\"code\":\"online_state\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_updown\"},\"name\":\"在线状态\",\"typeSpec\":{\"range\":[\"online\",\"offline\"],\"type\":\"enum\",\"typeDefaultValue\":\"online\"}},
{\"abilityId\":28,\"accessMode\":\"rw\",\"code\":\"timer_on\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_time3\"},\"name\":\"延时上电\",\"typeSpec\":{\"max\":12,\"min\":0,\"scale\":0,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":0,\"unit\":\"h\"}},
{\"abilityId\":33,\"accessMode\":\"rw\",\"code\":\"mode_set\",\"description\":\"1,充电模式\\n2,大端模式,HEX,8个字节\\n3,报文格式\\n   第1个字节 0x01 具备即时充电模式,0x00 无即时充电模式  \\n   第2个字节 0x00 本次不实现电量百分比充电功能\\n   第3个字节 0x01 具备定量充电模式,0x00 无定量充电模式\\n   第4个字节 0x01 具备定时充电模式,0x00 无定时充电模式\\n   第5个字节 0x01 具备延时充电模式,0x00 无延时充电模式\\n   第6个字节,第7个字节,第8个字节,没有定义,上报0X00填充\",\"extensions\":{\"iconName\":\"icon-setting\",\"trigger\":\"direct\"},\"name\":\"充电模式\",\"typeSpec\":{\"maxlen\":128,\"type\":\"raw\"}}]}]}"
  },
  "success": true,
  "t": 1704784195190,
  "tid": "17271d47aebe11ee8f03ea88e9697574"
}

Product ID

Information about how the device functions

evsun_ev_charger.txt

@spawnax spawnax added the new device Unsupported device label Jan 9, 2024
@make-all make-all added the full_info All info needed was provided label Jan 10, 2024
make-all added a commit that referenced this issue Jan 25, 2024
@make-all make-all added awaiting confirmation Wating for confirmation the issue is solved unreleased Will be in next release and removed full_info All info needed was provided new device Unsupported device awaiting confirmation Wating for confirmation the issue is solved unreleased Will be in next release labels Jan 25, 2024
timlaing pushed a commit to timlaing/tuya-local that referenced this issue Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants