[{"id":"560bf4fa.55869c","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"2700244d.a723cc","type":"victron-input-battery","z":"560bf4fa.55869c","service":"com.victronenergy.battery.socketcan_can1","path":"/Soc","serviceObj":{"service":"com.victronenergy.battery.socketcan_can1","name":"BATRIUM ","paths":[{"path":"/Dc/0/Voltage","type":"float","name":"Battery voltage (V)"},{"path":"/Dc/0/Current","type":"float","name":"Current (A)"},{"path":"/Soc","type":"float","name":"State of charge (%)"},{"path":"/Dc/0/Temperature","type":"float","name":"Battery temperature (C)"},{"path":"/Alarms/LowVoltage","type":"enum","name":"Low voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighVoltage","type":"enum","name":"High voltage alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/LowTemperature","type":"enum","name":"Low battery temperature alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Alarms/HighTemperature","type":"enum","name":"High battery temperature alarm","enum":{"0":"No alarm","2":"Alarm"}},{"path":"/Soh","type":"float","name":"State of health (%)"},{"path":"/Info/MaxChargeVoltage","type":"float","name":"CVL - Charge Voltage Limit (V)"},{"path":"/Info/MaxChargeCurrent","type":"float","name":"CCL - Charge Current Limit (A)"},{"path":"/Info/MaxDischargeCurrent","type":"float","name":"DCL - Discharge Current Limit (A)"},{"path":"/Alarms/CellImbalance","type":"enum","name":"Cell Imbalance alarm","enum":{"0":"No alarm","1":"Warning","2":"Alarm"}},{"path":"/Alarms/HighChargeCurrent","type":"enum","name":"High charge current alarm","enum":{"0":"No alarm","1":"Warning","2":"Alarm"}},{"path":"/Alarms/HighDischargeCurrent","type":"enum","name":"High discharge current alarm","enum":{"0":"No alarm","1":"Warning","2":"Alarm"}},{"path":"/Alarms/InternalFailure","type":"enum","name":"Internal error alarm","enum":{"0":"No alarm","1":"Warning","2":"Alarm"}},{"path":"/Alarms/HighChargeTemperature","type":"enum","name":"High charge temperature alarm","enum":{"0":"No alarm","1":"Warning","2":"Alarm"}},{"path":"/Alarms/LowChargeTemperature","type":"enum","name":"Low charge temperature alarm","enum":{"0":"No alarm","1":"Warning","2":"Alarm"}},{"path":"/Dc/0/Power","type":"float","name":"Battery power (W)"}]},"pathObj":{"path":"/Soc","type":"float","name":"State of charge (%)"},"name":"","x":290,"y":640,"wires":[["51558ff5.aee16"]]},{"id":"1df7c1c2.cd771e","type":"victron-output-vebus","z":"560bf4fa.55869c","service":"com.victronenergy.vebus.ttyS4","path":"/Mode","serviceObj":{"service":"com.victronenergy.vebus.ttyS4","name":"MultiPlus-II 48/3000/35-32","paths":[{"path":"/Mode","type":"enum","name":"Switch Position","enum":{"1":"Charger Only","2":"Inverter Only","3":"On","4":"Off"},"writable":true},{"path":"/Ac/In/1/CurrentLimit","type":"float","name":"Input 1 current limit (A)","writable":true}]},"pathObj":{"path":"/Mode","type":"enum","name":"Switch Position","enum":{"1":"Charger Only","2":"Inverter Only","3":"On","4":"Off"},"writable":true},"initial":"","name":"","x":1450,"y":640,"wires":[]},{"id":"2d8dda2f.c6b7d6","type":"change","z":"560bf4fa.55869c","name":"Charger Only (grid input, charge batteries)","rules":[{"t":"set","p":"payload","pt":"msg","to":"1","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":940,"y":600,"wires":[["349c4fc7.eec54"]]},{"id":"86581b6c.bdd948","type":"change","z":"560bf4fa.55869c","name":"normal operation","rules":[{"t":"set","p":"payload","pt":"msg","to":"3","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":860,"y":680,"wires":[["349c4fc7.eec54"]]},{"id":"51558ff5.aee16","type":"switch","z":"560bf4fa.55869c","name":"SoC Switch","property":"payload","propertyType":"msg","rules":[{"t":"lt","v":"5","vt":"num"},{"t":"btwn","v":"5","vt":"num","v2":"50","v2t":"num"},{"t":"else"}],"checkall":"true","repair":false,"outputs":3,"x":530,"y":640,"wires":[["2d8dda2f.c6b7d6"],["53f0a66d.1eb8b8"],["86581b6c.bdd948"]]},{"id":"349c4fc7.eec54","type":"rbe","z":"560bf4fa.55869c","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload","x":1190,"y":640,"wires":[["1df7c1c2.cd771e"]]},{"id":"53f0a66d.1eb8b8","type":"function","z":"560bf4fa.55869c","name":"night?","func":"// get current hours\nconst hr = new Date().getHours();\n\n// trigger a message if the time is between 12am and 4pm or 'night'\nif (hr >= 0 && hr <= 16) {\n return [msg, null]; // input 1\n} else {\n return [null, msg]; // input 2\n}\n","outputs":2,"noerr":0,"x":690,"y":640,"wires":[["2d8dda2f.c6b7d6"],["86581b6c.bdd948"]]}]