Skip to content

Allow modifying DALY charge/discharge limit parameters#2186

Open
M4GNV5 wants to merge 2 commits intodalathegreat:mainfrom
M4GNV5:daly-params
Open

Allow modifying DALY charge/discharge limit parameters#2186
M4GNV5 wants to merge 2 commits intodalathegreat:mainfrom
M4GNV5:daly-params

Conversation

@M4GNV5
Copy link
Copy Markdown
Contributor

@M4GNV5 M4GNV5 commented Apr 1, 2026

What

This PR implements web-configurable options for charge limits of DALY BMS based batteries

Why

Previously hard coded, but need to be adapted to each battery individually, see #2183

How

Added 5 new options throughout the codebase.

Disclaimer: I did not see how to correctly add new web options (needed to change 6 files after all), so I tasked Claude to do it and only made some manual changes afterwards. The result looks fine, but needs testing. Maybe @KelasHA00 can test? Or someone else? Or myself when I am back home.

Comment on lines -406 to -412
"BATTCVMAX", "BATTCVMIN", "MAXPRETIME", "MAXPREFREQ", "WIFICHANNEL", "DCHGPOWER", "CHGPOWER",
"LOCALIP1", "LOCALIP2", "LOCALIP3", "LOCALIP4", "GATEWAY1", "GATEWAY2", "GATEWAY3",
"GATEWAY4", "SUBNET1", "SUBNET2", "SUBNET3", "SUBNET4", "MQTTPORT", "MQTTTIMEOUT",
"SOFAR_ID", "PYLONSEND", "INVCELLS", "INVMODULES", "INVCELLSPER", "INVVLEVEL", "INVCAPACITY",
"INVBTYPE", "CANFREQ", "CANFDFREQ", "PRECHGMS", "PWMFREQ", "PWMHOLD", "GTWCOUNTRY",
"GTWMAPREG", "GTWCHASSIS", "GTWPACK", "LEDMODE", "GPIOOPT1", "GPIOOPT2", "GPIOOPT3",
"INVSUNTYPE", "GPIOOPT4", "CTVNOM", "CTANOM", "CTATTEN", "PYLONBAUD", "PYLONBRAND",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like clang reformatted this. Sorry for including reformatting in feature PRs.

@M4GNV5
Copy link
Copy Markdown
Contributor Author

M4GNV5 commented Apr 3, 2026

Had the time to build and OTA update. Everything seems to work fine, I was able to adjust the limit to 1.8kW at 10°C using the new web options.

From my point of view this is ready for review/merge.

image

Copy link
Copy Markdown

@KelasHA00 KelasHA00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

labels are more clear

@KelasHA00
Copy link
Copy Markdown

Changes are loaded and running, as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants