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 <Demuda MPPT Solar Charge Controller LM-4048> #2965

Open
Katawengineering opened this issue Feb 16, 2025 · 3 comments
Open
Labels
awaiting feedback Needs more information full_info All info needed was provided new device Unsupported device

Comments

@Katawengineering
Copy link

Katawengineering commented Feb 16, 2025

Log message

2025-02-16 17:29:43.514 WARNING (MainThread) [custom_components.tuya_local.config_flow] Adding MPPT Solar Charge Controller device with product id vf7vdxbt6zd5xyuz
2025-02-16 17:29:48.320 WARNING (MainThread) [custom_components.tuya_local.config_flow] Device matches None with quality of 0%. DPS: {"updated_at": 1739698178.6169121}
2025-02-16 17:29:48.321 WARNING (MainThread) [custom_components.tuya_local.config_flow] Include the previous log messages with any new device request to https://github.com/make-all/tuya-local/issues/

Product ID

vf7vdxbt6zd5xyuz

Product Name

MPPT Solar Charge Controller (much Chinese MPPT are using same API, one is DEMUDA)

DPS information

{
  "result": {
    "model": "{\"modelId\":\"ezv0fc\",\"services\":[{\"actions\":[],\"code\":\"\",\"description\":\"\",\"events\":[],\"name\":\"默认服务\",\"properties\":[
{\"abilityId\":1,\"accessMode\":\"rw\",\"code\":\"charge_mode\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_mode\",\"attribute\":\"1152\"},\"name\":\"充电方式\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"mode_1\",\"mode_2\",\"mode_3\"]}},
{\"abilityId\":2,\"accessMode\":\"ro\",\"code\":\"voltage_current\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_lightning\",\"attribute\":\"1216\"},\"name\":\"光伏输入电压\",\"typeSpec\":{\"type\":\"value\",\"max\":9999,\"min\":0,\"scale\":1,\"step\":1,\"unit\":\"V\"}},
{\"abilityId\":3,\"accessMode\":\"rw\",\"code\":\"voltage_current_1\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_lightning\",\"attribute\":\"1216\"},\"name\":\"负载电压\",\"typeSpec\":{\"type\":\"value\",\"max\":9999,\"min\":0,\"scale\":1,\"step\":1,\"unit\":\"V\"}},
{\"abilityId\":4,\"accessMode\":\"ro\",\"code\":\"cur_current\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_0\",\"attribute\":\"1152\"},\"name\":\"负载电流\",\"typeSpec\":{\"type\":\"value\",\"max\":9999,\"min\":0,\"scale\":0,\"step\":1,\"unit\":\"A\"}},
{\"abilityId\":5,\"accessMode\":\"rw\",\"code\":\"power_current\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_lightning\",\"attribute\":\"1152\"},\"name\":\"负载功率\",\"typeSpec\":{\"type\":\"value\",\"max\":10000,\"min\":0,\"scale\":0,\"step\":1,\"unit\":\"W\"}},
{\"abilityId\":6,\"accessMode\":\"rw\",\"code\":\"switch\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_power2\"},\"name\":\"开关\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":7,\"accessMode\":\"ro\",\"code\":\"fault\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-baojing\",\"scope\":\"fault\",\"attribute\":\"1152\"},\"name\":\"状态显示\",\"typeSpec\":{\"type\":\"bitmap\",\"label\":[\"Standby\",\"Bat_Over\",\"Bat_Under\",\"Pv_Over\",\"Load_Short\",\"Load_Over\",\"Charge\",\"DisCharge\"],\"maxlen\":8}},
{\"abilityId\":8,\"accessMode\":\"rw\",\"code\":\"device_mode\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_mode\",\"attribute\":\"1152\"},\"name\":\"负载输出模式\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"0H\",\"1H\",\"2H\",\"3H\",\"4H\",\"5H\",\"6H\",\"7H\",\"8H\",\"9H\",\"10H\",\"11H\",\"12H\",\"13H\",\"14H\",\"15H\",\"16H\",\"17H\",\"18H\",\"19H\",\"20H\",\"21H\",\"22H\",\"23H\",\"24H\"]}},
{\"abilityId\":9,\"accessMode\":\"ro\",\"code\":\"runtime_total\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_time2\"},\"name\":\"总运行时间\",\"typeSpec\":{\"type\":\"value\",\"max\":99999,\"min\":0,\"scale\":0,\"step\":1,\"unit\":\"h\"}},
{\"abilityId\":10,\"accessMode\":\"ro\",\"code\":\"electric_total\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dianliang\",\"attribute\":\"1152\"},\"name\":\"总电量\",\"typeSpec\":{\"type\":\"value\",\"max\":999999,\"min\":0,\"scale\":2,\"step\":1,\"unit\":\"kW·h\"}},
{\"abilityId\":11,\"accessMode\":\"rw\",\"code\":\"overvol_value\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-shezhi\"},\"name\":\"充电截止电压\",\"typeSpec\":{\"type\":\"value\",\"max\":9999,\"min\":0,\"scale\":1,\"step\":1,\"unit\":\"V\"}},
{\"abilityId\":12,\"accessMode\":\"rw\",\"code\":\"undervol_value\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-shezhi\"},\"name\":\"放电截止电压\",\"typeSpec\":{\"type\":\"value\",\"max\":9999,\"min\":0,\"scale\":1,\"step\":1,\"unit\":\"V\"}},
{\"abilityId\":13,\"accessMode\":\"rw\",\"code\":\"current_max\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_lightning\"},\"name\":\"过流保护值\",\"typeSpec\":{\"type\":\"value\",\"max\":999,\"min\":0,\"scale\":1,\"step\":1,\"unit\":\"A\"}},
{\"abilityId\":14,\"accessMode\":\"rw\",\"code\":\"self_checking\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_mode\"},\"name\":\"设备自检\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":15,\"accessMode\":\"rw\",\"code\":\"switch_1\",\"description\":\"0=关;1=开;\",\"extensions\":{\"iconName\":\"icon-dp_power2\"},\"name\":\"负载开关\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":16,\"accessMode\":\"rw\",\"code\":\"usb_switch_1\",\"description\":\"点击按钮发送1\",\"extensions\":{\"iconName\":\"icon-dp_power2\"},\"name\":\"恢复出厂值\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":17,\"accessMode\":\"rw\",\"code\":\"usb_switch_2\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_power2\"},\"name\":\"USB2开关\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":101,\"accessMode\":\"ro\",\"code\":\"cur_power\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-gaodiyin\",\"attribute\":\"4096\"},\"name\":\"电池充电功率\",\"typeSpec\":{\"type\":\"value\",\"max\":50000,\"min\":0,\"scale\":1,\"step\":1,\"unit\":\"W\"}},
{\"abilityId\":102,\"accessMode\":\"ro\",\"code\":\"forward_energy_total\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_lightning\",\"attribute\":\"4096\"},\"name\":\"今日发电量\",\"typeSpec\":{\"type\":\"value\",\"max\":65535,\"min\":0,\"scale\":2,\"step\":1,\"unit\":\"KW·h\"}},
{\"abilityId\":103,\"accessMode\":\"ro\",\"code\":\"reverse_energy_total\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_lightning\",\"attribute\":\"4096\"},\"name\":\"累计发电量\",\"typeSpec\":{\"type\":\"value\",\"max\":99999999,\"min\":0,\"scale\":1,\"step\":1,\"unit\":\"kW·h\"}},
{\"abilityId\":104,\"accessMode\":\"ro\",\"code\":\"phase_a\",\"description\":\"总共6字节大端模式,2字节光伏板电压单位0.1V,2字节光伏板电流单位0.1A,2字节光伏板功率单位1W\",\"extensions\":{\"iconName\":\"icon-dp_lightning\",\"attribute\":\"4096\"},\"name\":\"光伏板参数\",\"typeSpec\":{\"type\":\"raw\",\"maxlen\":128}},
{\"abilityId\":105,\"accessMode\":\"ro\",\"code\":\"phase_b\",\"description\":\"总共6字节大端模式,2字节电池电压单位0.1V,2字节电池电流单位0.1A,2字节电池电量单位1%\",\"extensions\":{\"iconName\":\"icon-dp_lightning\",\"attribute\":\"4096\"},\"name\":\"电池参数\",\"typeSpec\":{\"type\":\"raw\",\"maxlen\":128}},
{\"abilityId\":106,\"accessMode\":\"ro\",\"code\":\"phase_c\",\"description\":\"总共6字节大端模式,2字节负载电压单位0.1V,2字节负载电流单位0.1A,2字节负载功率单位1W\",\"extensions\":{\"iconName\":\"icon-dp_lightning\",\"attribute\":\"4096\"},\"name\":\"负载参数\",\"typeSpec\":{\"type\":\"raw\",\"maxlen\":128}},
{\"abilityId\":107,\"accessMode\":\"rw\",\"code\":\"switch_8\",\"description\":\"点击按钮发送1\",\"extensions\":{\"iconName\":\"icon-dp_power2\",\"attribute\":\"4096\"},\"name\":\"读取\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":108,\"accessMode\":\"ro\",\"code\":\"temp_current\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_c\",\"attribute\":\"4096\"},\"name\":\"当前温度\",\"typeSpec\":{\"type\":\"value\",\"max\":10000,\"min\":-1000,\"scale\":0,\"step\":1,\"unit\":\"℃\"}},
{\"abilityId\":109,\"accessMode\":\"rw\",\"code\":\"switch_4\",\"description\":\"点击按钮发送1\",\"extensions\":{\"iconName\":\"icon-dp_power2\",\"attribute\":\"4096\",\"trigger\":\"direct\"},\"name\":\"发送\",\"typeSpec\":{\"type\":\"bool\"}},
{\"abilityId\":110,\"accessMode\":\"rw\",\"code\":\"cel_vol_under\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_mode\",\"attribute\":\"4096\"},\"name\":\"放电恢复电压\",\"typeSpec\":{\"type\":\"value\",\"max\":9999,\"min\":0,\"scale\":1,\"step\":1,\"unit\":\"V\"}},
{\"abilityId\":111,\"accessMode\":\"rw\",\"code\":\"work_mode\",\"description\":\"0=12V;1=24V;2=36V;3=48V\\n\",\"extensions\":{\"iconName\":\"icon-dp_mode\",\"attribute\":\"4096\"},\"name\":\"电池系统类型\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"12V\",\"24V\",\"36V\",\"48V\"]}},
{\"abilityId\":112,\"accessMode\":\"rw\",\"code\":\"mode\",\"description\":\"0=USE;1=FLD;2=GEL;3=SLD;4=Li\",\"extensions\":{\"iconName\":\"icon-dp_mode\",\"attribute\":\"4096\"},\"name\":\"电池类型\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"USE\",\"FLD\",\"GEL\",\"SLD\",\"Li\"]}},
{\"abilityId\":113,\"accessMode\":\"rw\",\"code\":\"oven_time\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_time3\",\"attribute\":\"4096\"},\"name\":\"负载输出模式\",\"typeSpec\":{\"type\":\"value\",\"max\":24,\"min\":0,\"scale\":0,\"step\":1,\"unit\":\"H\"}},
{\"abilityId\":114,\"accessMode\":\"rw\",\"code\":\"alarm_bright\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-liangdu1\",\"attribute\":\"4096\"},\"name\":\"充电功率\",\"typeSpec\":{\"type\":\"value\",\"max\":100,\"min\":0,\"scale\":0,\"step\":1,\"unit\":\"%\"}},
{\"abilityId\":118,\"accessMode\":\"ro\",\"code\":\"mcu_info\",\"description\":\"直接显示字符内容\",\"extensions\":{\"iconName\":\"icon-dp_doc\",\"attribute\":\"4096\"},\"name\":\"控制器型号\",\"typeSpec\":{\"type\":\"string\",\"maxlen\":255}},
{\"abilityId\":119,\"accessMode\":\"ro\",\"code\":\"battery_info\",\"description\":\"直接显示字符内容\",\"extensions\":{\"iconName\":\"icon-dp_doc\",\"attribute\":\"4096\"},\"name\":\"控制器设备号\",\"typeSpec\":{\"type\":\"string\",\"maxlen\":255}},
{\"abilityId\":120,\"accessMode\":\"wr\",\"code\":\"device_restart\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_power2\",\"attribute\":\"4096\"},\"name\":\"刷新\",\"typeSpec\":{\"type\":\"bool\"}}]}]}"
  },
  "success": true,
  "t": 1739711447878,
  "tid": "701bd0aeec6711ef95aeaae47fcf1080"
}

Information about how the device functions

Hello, This device is a very well working MPPT controller with an Tuya integration which is not very good... in the Tuya app (smart life) is working fine, but we can see clearly that the look and feel is different than usual tuya API... so I feel that they just have adapted an existing API that it work on smart life.... because the information in smart life not that is what i expect (statisitics) I want to use an Home assistant integration... when I integrate this devise using the normal tuya cloud integration . . . HA find the device but it have no entities... I had have the same problem with an Metering smart plug (no statistic in tuya cloud integration ) and resolved this problem by using Tuya local.... so I was hoping to get the same result with the MPPT controller . . .

https://shopee.ph/Demuda-MPPT-60A-Solar-Charger-Controller-24V-Solar-Controller-PV-Max-Input-160V-LCD-Backlit-Display-i.557927712.23485699997?sp_atk=2e28d348-d186-4870-9f90-4ee1d9672496&xptdk=2e28d348-d186-4870-9f90-4ee1d9672496

@Katawengineering Katawengineering added the new device Unsupported device label Feb 16, 2025
@make-all make-all added the full_info All info needed was provided label Feb 16, 2025
@make-all make-all moved this to 📋 Backlog in Tuya Local Feb 16, 2025
@Katawengineering
Copy link
Author

Sorry...had have wrong DPS information, I change it... now, is the correct one

@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in Tuya Local Feb 16, 2025
@Katawengineering
Copy link
Author

make a other mistake.... lease re-open it

@make-all make-all reopened this Feb 16, 2025
@github-project-automation github-project-automation bot moved this from ✅ Done to 📋 Backlog in Tuya Local Feb 16, 2025
@make-all make-all removed the status in Tuya Local Feb 16, 2025
@make-all make-all moved this to 📋 Backlog in Tuya Local Feb 16, 2025
@make-all make-all added the awaiting feedback Needs more information label Feb 18, 2025
@make-all make-all moved this from 📋 Backlog to 🏗 Stalled in Tuya Local Feb 18, 2025
@make-all
Copy link
Owner

make-all commented Feb 18, 2025

Please collect the logs again using tuya-local 2025.2.1 (or later)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting feedback Needs more information full_info All info needed was provided new device Unsupported device
Projects
Status: 🏗 Stalled
Development

No branches or pull requests

2 participants