Hello i am trying to use red node for putting the grid limit depending if gen is on or off and depending of voltage from grid , but i don t know at the end how to do it i am here so far .
Can anyone help ? Thanks
Hi what I do, is to store the values as a variable e.g. „UgridL1“ and „genstat“.
I have an example for SOC
[
{
"id": "f66fdb3b71e14d7c",
"type": "victron-input-battery",
"z": "c2eebbc3aab9330e",
"service": "com.victronenergy.battery/512",
"path": "/Soc",
"serviceObj": {
"service": "com.victronenergy.battery/512",
"name": "Pylontech battery"
},
"pathObj": {
"path": "/Soc",
"type": "float",
"name": "State of charge (%)"
},
"name": "",
"onlyChanges": false,
"roundValues": "1",
"x": 170,
"y": 100,
"wires": [
[
"0eafa238ed2697b5"
]
]
},
{
"id": "0eafa238ed2697b5",
"type": "change",
"z": "c2eebbc3aab9330e",
"name": "Store SOC",
"rules": [
{
"t": "set",
"p": "SOC",
"pt": "flow",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 430,
"y": 100,
"wires": [
[
"ed75ef727f7077f5"
]
]
},
{
"id": "ed75ef727f7077f5",
"type": "debug",
"z": "c2eebbc3aab9330e",
"name": "SOC",
"active": false,
"tosidebar": false,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 770,
"y": 100,
"wires": []
}
]
Then I refer to the variable in your case inject the number you want the grid limit to be ande let it pass switch nodes.
Here my example I wanted to use grid over night and save my battery for my breakfast coffee.
{
"id": "df72cf06c8b0e0ee",
"type": "switch",
"z": "c2eebbc3aab9330e",
"name": "Batterie über Sommer 40% Winter 45%?",
"property": "SOC",
"propertyType": "flow",
"rules": [
{
"t": "gte",
"v": "60",
"vt": "num"
},
{
"t": "else"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 600,
"y": 1500,
"wires": [
[
"f5343cab3a21bc88",
"b96e80d9503f96df"
],
[
"b1919618d96d0967"
]
]
},
{
"id": "3d365cdad19d3040",
"type": "inject",
"z": "c2eebbc3aab9330e",
"name": "23:00 min SOC 45",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "00 23 * * *",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "60",
"payloadType": "num",
"x": 170,
"y": 1500,
"wires": [
[
"df72cf06c8b0e0ee"
]
]
},
{
"id": "8ad3131b61546184",
"type": "inject",
"z": "c2eebbc3aab9330e",
"d": true,
"name": "4:00 min 80% (Nov -Feb)",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "00 04 * * *",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "80",
"payloadType": "num",
"x": 190,
"y": 1560,
"wires": [
[
"df72cf06c8b0e0ee"
]
]
},
{
"id": "f5343cab3a21bc88",
"type": "victron-output-settings",
"z": "c2eebbc3aab9330e",
"service": "com.victronenergy.settings",
"path": "/Settings/CGwacs/BatteryLife/MinimumSocLimit",
"serviceObj": {
"service": "com.victronenergy.settings",
"name": "Venus settings"
},
"pathObj": {
"path": "/Settings/CGwacs/BatteryLife/MinimumSocLimit",
"type": "float",
"name": "ESS Minimum SoC (unless grid fails) (%)",
"writable": true
},
"name": "Minimum SOC",
"onlyChanges": false,
"x": 820,
"y": 1560,
"wires": []
},
{
"id": "b96e80d9503f96df",
"type": "debug",
"z": "c2eebbc3aab9330e",
"name": "debug 4",
"active": true,
"tosidebar": false,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 1020,
"y": 1560,
"wires": []
},
{
"id": "b1919618d96d0967",
"type": "change",
"z": "c2eebbc3aab9330e",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "SOC",
"tot": "flow"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 610,
"y": 1640,
"wires": [
[
"f5343cab3a21bc88",
"b96e80d9503f96df"
]
]
},
{
"id": "e50ed63bae5303a8",
"type": "inject",
"z": "c2eebbc3aab9330e",
"d": true,
"name": "5:30 min 25% (März-Okt)",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "30 05 * * *",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "40",
"payloadType": "num",
"x": 190,
"y": 1600,
"wires": [
[
"f5343cab3a21bc88"
]
]
}
]
I hope this helps, I am not a professional and the naming is German
Thank alot trying to figure it out im a noob :((