Hello, I need help with node red I have wired a contractor into relay one of the Cerbo GX. I would like it to close when the battery Soc gets above 90% and close when it gets to 80% and below. I would be grateful if someone could help.
Many thanks
@Elliot777
Make sure you set your relay 1 to manual.
copy, import, paste - test.
Summary
[
{
“id”: “6b5433ce2b72f68b”,
“type”: “victron-input-system”,
“z”: “3b854ccefa731133”,
“service”: “com.victronenergy.system/0”,
“path”: “/Dc/Battery/Soc”,
“serviceObj”: {
“service”: “com.victronenergy.system/0”,
“name”: “Venus system”
},
“pathObj”: {
“path”: “/Dc/Battery/Soc”,
“type”: “float”,
“name”: “Battery State of Charge (%)”
},
“name”: “SOC”,
“onlyChanges”: true,
“roundValues”: “1”,
“x”: 530,
“y”: 140,
“wires”: [
[
“8d1c5812d3ddf277”
]
]
},
{
“id”: “8d1c5812d3ddf277”,
“type”: “switch”,
“z”: “3b854ccefa731133”,
“name”: “Switch”,
“property”: “payload”,
“propertyType”: “msg”,
“rules”: [
{
“t”: “gte”,
“v”: “90”,
“vt”: “num”
},
{
“t”: “lte”,
“v”: “80”,
“vt”: “num”
}
],
“checkall”: “true”,
“repair”: false,
“outputs”: 2,
“x”: 650,
“y”: 140,
“wires”: [
[
“229809fdecf3f65a”
],
[
“7ed539c4209dda03”
]
]
},
{
“id”: “229809fdecf3f65a”,
“type”: “change”,
“z”: “3b854ccefa731133”,
“name”: “On”,
“rules”: [
{
“t”: “set”,
“p”: “payload”,
“pt”: “msg”,
“to”: “1”,
“tot”: “num”
}
],
“action”: “”,
“property”: “”,
“from”: “”,
“to”: “”,
“reg”: false,
“x”: 790,
“y”: 120,
“wires”: [
[
“9f7419173834d074”
]
]
},
{
“id”: “7ed539c4209dda03”,
“type”: “change”,
“z”: “3b854ccefa731133”,
“name”: “Off”,
“rules”: [
{
“t”: “set”,
“p”: “payload”,
“pt”: “msg”,
“to”: “0”,
“tot”: “num”
}
],
“action”: “”,
“property”: “”,
“from”: “”,
“to”: “”,
“reg”: false,
“x”: 790,
“y”: 160,
“wires”: [
[
“9f7419173834d074”
]
]
},
{
“id”: “9f7419173834d074”,
“type”: “victron-output-relay”,
“z”: “3b854ccefa731133”,
“service”: “com.victronenergy.system/0”,
“path”: “/Relay/0/State”,
“serviceObj”: {
“service”: “com.victronenergy.system/0”,
“name”: “Venus device”
},
“pathObj”: {
“path”: “/Relay/0/State”,
“type”: “enum”,
“name”: “Venus relay 1 state”,
“enum”: {
“0”: “Open”,
“1”: “Closed”
},
“writable”: true,
“disabled”: true,
“warning”: “The relays are configured for tank pump function. Please navigate to Settings > Relay and change it to manual.”
},
“initial”: “0”,
“name”: “”,
“onlyChanges”: false,
“x”: 1020,
“y”: 140,
“wires”:
}
]
or unzip and import the json file - test it.
Cerbo relay.zip (894 Bytes)
Thank you so much Alexandra this works perfect
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.