I have the same needs and I ended up patching a file (use it as your own risks !) :
--- dvcc.py.orig
+++ /opt/victronenergy/dbus-systemcalc-py/delegates/dvcc.py
@@ -1280,10 +1280,10 @@
self._multi.bol.maxchargecurrent = mcc
# Also set the maxchargecurrent, to ensure this is not stuck
# at some lower value that overrides the intent here.
- try:
- self._multi.maxchargecurrent = max(self._multi.maxchargecurrent, mcc)
- except TypeError:
- pass
+# try:
+# self._multi.maxchargecurrent = max(self._multi.maxchargecurrent, mcc)
+# except TypeError:
+# pass
I have this patch since v3.51 without any side-effects and if I get the meaning of the commentary right, I WANT a lower value overriding the multiplus max charge current.
Since 3.70 I use this flow :
[
{
"id": "063b59405b5c5008",
"type": "tab",
"label": "Flux 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "1ffef8c4f9d53a88",
"type": "victron-input-custom",
"z": "063b59405b5c5008",
"service": "com.victronenergy.vebus/276",
"path": "/Dc/0/MaxChargeCurrent",
"serviceObj": {
"service": "com.victronenergy.vebus/276",
"name": "MultiPlus-II (276)"
},
"pathObj": {
"path": "/Dc/0/MaxChargeCurrent",
"name": "/Dc/0/MaxChargeCurrent",
"type": "number"
},
"name": "",
"onlyChanges": true,
"outputs": 1,
"x": 170,
"y": 100,
"wires": [
[
"01ad04cb0fc0efb7"
]
]
},
{
"id": "01ad04cb0fc0efb7",
"type": "ui_slider",
"z": "063b59405b5c5008",
"name": "",
"label": "Max charge",
"tooltip": "",
"group": "f0d944440512ba91",
"order": 1,
"width": 0,
"height": 0,
"passthru": true,
"outs": "end",
"topic": "topic",
"topicType": "msg",
"min": 0,
"max": "120",
"step": 1,
"className": "",
"x": 450,
"y": 100,
"wires": [
[
"42f097359ba3165d"
]
]
},
{
"id": "42f097359ba3165d",
"type": "function",
"z": "063b59405b5c5008",
"name": "State to JSON",
"func": "msg.payload = { \"/SwitchableOutput/output_1/Dimming\": msg.payload };\n\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 620,
"y": 100,
"wires": [
[
"d566d5122357fde6"
]
]
},
{
"id": "d566d5122357fde6",
"type": "victron-virtual-switch",
"z": "063b59405b5c5008",
"name": "",
"outputs": 2,
"switch_1_type": 7,
"switch_1_min": "0",
"switch_1_max": "120",
"switch_1_initial": 0,
"switch_1_label": "",
"switch_1_unit": "A",
"switch_1_step": 1,
"switch_1_customname": "Max charge",
"switch_1_group": "AC",
"switch_1_include_measurement": false,
"switch_1_rgb_color_wheel": false,
"switch_1_cct_wheel": false,
"switch_1_rgb_white_dimmer": false,
"x": 360,
"y": 200,
"wires": [
[],
[
"59d1edc24d242f0b"
]
]
},
{
"id": "59d1edc24d242f0b",
"type": "victron-output-custom",
"z": "063b59405b5c5008",
"service": "com.victronenergy.vebus/276",
"path": "/Dc/0/MaxChargeCurrent",
"serviceObj": {
"service": "com.victronenergy.vebus/276",
"name": "MultiPlus-II (276)"
},
"pathObj": {
"path": "/Dc/0/MaxChargeCurrent",
"name": "/Dc/0/MaxChargeCurrent",
"type": "number"
},
"name": "",
"onlyChanges": false,
"outputs": 0,
"x": 650,
"y": 200,
"wires": []
},
{
"id": "f0d944440512ba91",
"type": "ui_group",
"name": "Default",
"tab": "79e08d895c0a1d45",
"order": 1,
"disp": true,
"width": "6",
"collapse": false,
"className": ""
},
{
"id": "79e08d895c0a1d45",
"type": "ui_tab",
"name": "Home",
"icon": "dashboard",
"disabled": false,
"hidden": false
},
{
"id": "a6af03fd96927a89",
"type": "global-config",
"env": [],
"modules": {
"@victronenergy/node-red-contrib-victron": "1.6.61",
"node-red-dashboard": "3.6.2"
}
}
]