Moin zusammen.
Ich habe ein System in dem das Daly BMS ans Victron VenusOS angeschlossen ist. Läuft bei mir auf einem Raspberry pi. Ich habe es schnell hinbekommen, den SOC Wert auszulesen un den auch über http auslesber zumachen. So sieht's aus:
Auslesen kann man die Werte dann mit:
https://venus.local:1881/batt
Okay, nun will ich den SOC Wert aber (möglichst auch in Node Red) setzen. Also manipulieren. Das ist mir bisher nicht gelungen und ich finde da auch im Netz nichts das ich nachvollziehen könnte. Hat da jemand eine Lösung parat?
Vielen Dank vorab...
Hier die Nodes zum Importieren:
[ { "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": [] } ]