question

monokristallin avatar image
monokristallin asked

How to set SOC, preferably in Node Red, to a Daly BMS?

Hello.

I know, questions like this have been asked already, but not quite like mine, I guess. Okay, I have been able to create a simple flow in Node Red to get my SOC out of my Daly BMS and I can read it via html. It looks like this:

1706283628774.png


For information, I can read it out with

 https://venus.local:1881/batt 

However, now I need to set the SOC. Somewhere I read this is not possible with Node Red but I am not quite convinced. As I understood it, others have made it, but I am not sure. Maybe it's possible with a workaround(?)

So, does anybody have a solution on how to set the SOC on a DALY BMS (preferably with Node Red)?


PS: Just in case, someone wants to check out the node above:

[
    {
        "id": "ee976dfbdb76164f",
        "type": "victron-input-battery",
        "z": "96cffcb4cb06b139",
        "service": "com.victronenergy.battery/3",
        "path": "/Soc",
        "serviceObj": {
            "service": "com.victronenergy.battery/3",
            "name": "SerialBattery(Daly)"
        },
        "pathObj": {
            "path": "/Soc",
            "type": "float",
            "name": "State of charge (%)"
        },
        "initial": "",
        "name": "Batt Monitor",
        "onlyChanges": false,
        "roundValues": "no",
        "x": 130,
        "y": 280,
        "wires": [
            [
                "1a032c9ca300fcde"
            ]
        ]
    },
    {
        "id": "d5868940c9996cab",
        "type": "debug",
        "z": "96cffcb4cb06b139",
        "name": "debug 4",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 580,
        "y": 280,
        "wires": []
    },
    {
        "id": "1a032c9ca300fcde",
        "type": "function",
        "z": "96cffcb4cb06b139",
        "name": "extractSOC",
        "func": "var newbattmsg = {payload: msg.payload};\nglobal.set(\"batt.soc\",newbattmsg);\nreturn newbattmsg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 370,
        "y": 280,
        "wires": [
            [
                "d5868940c9996cab"
            ]
        ]
    },
    {
        "id": "bc9afb993b05e874",
        "type": "http in",
        "z": "96cffcb4cb06b139",
        "name": "",
        "url": "/batt",
        "method": "get",
        "upload": false,
        "swaggerDoc": "",
        "x": 120,
        "y": 340,
        "wires": [
            [
                "d6b648c7a825d369"
            ]
        ]
    },
    {
        "id": "d6b648c7a825d369",
        "type": "function",
        "z": "96cffcb4cb06b139",
        "name": "json",
        "func": "msg.payload = {battery: global.get('batt.soc')};\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 310,
        "y": 340,
        "wires": [
            [
                "f5c6e012ca283bfa"
            ]
        ]
    },
    {
        "id": "f5c6e012ca283bfa",
        "type": "http response",
        "z": "96cffcb4cb06b139",
        "name": "http Response",
        "statusCode": "",
        "headers": {},
        "x": 480,
        "y": 340,
        "wires": []
    }
]
Node-REDSOCbattery
1706283628774.png (21.6 KiB)
1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

richies avatar image richies commented ·

Hi monokristallin! Do you have already a solution in NodeRed for your request? I have the same problem: I want to read out the SoC from the LynxShunt and set it into my DalyBMS. I can read out SoC from Shunt and send it to my HomeMatic system but I do not find a possiblity to write SoC into DalyBMS. I tried the Louis driver and the custom victron node.

0 Likes 0 ·
1 Answer
derrick thomas avatar image
derrick thomas answered ·

You can set Daly bms soc with node red using Louis driver and the custom victron node.

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.