question

beagle avatar image
beagle asked

relay 1 to start charging thru node red

I am close but still not there. Running charge control assistant on Multi. Relay opens wire and charge stops. Works fine manual on Vrm.

flow-1.jpg


[

{

"id": "b1eebfa674cf3134",

"type": "tab",

"label": "Flow 1",

"disabled": false,

"info": "",

"env": []

},

{

"id": "3b7a75fd72d55474",

"type": "victron-input-system",

"z": "b1eebfa674cf3134",

"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": "",

"onlyChanges": false,

"roundValues": "1",

"x": 190,

"y": 420,

"wires": [

[

"98cfa7961bbb484e",

"b330a76ea6b10a2b"

]

]

},

{

"id": "98cfa7961bbb484e",

"type": "debug",

"z": "b1eebfa674cf3134",

"name": "debug SoC %",

"active": true,

"tosidebar": true,

"console": false,

"tostatus": false,

"complete": "payload",

"targetType": "msg",

"statusVal": "",

"statusType": "auto",

"x": 540,

"y": 340,

"wires": []

},

{

"id": "63ee05797f7e9d29",

"type": "debug",

"z": "b1eebfa674cf3134",

"name": "Charger 1=On 0=Off",

"active": true,

"tosidebar": true,

"console": false,

"tostatus": false,

"complete": "payload",

"targetType": "msg",

"statusVal": "",

"statusType": "auto",

"x": 600,

"y": 700,

"wires": []

},

{

"id": "b330a76ea6b10a2b",

"type": "switch",

"z": "b1eebfa674cf3134",

"name": "% SoC",

"property": "payload",

"propertyType": "msg",

"rules": [

{

"t": "btwn",

"v": "0",

"vt": "num",

"v2": "70",

"v2t": "num"

},

{

"t": "btwn",

"v": "80",

"vt": "num",

"v2": "100",

"v2t": "num"

}

],

"checkall": "true",

"repair": false,

"outputs": 2,

"x": 500,

"y": 440,

"wires": [

[

"2236aec7beb5f05c"

],

[

"34596382e6569acf"

]

]

},

{

"id": "3c1cdae2c1c58679",

"type": "debug",

"z": "b1eebfa674cf3134",

"name": "Charger on",

"active": true,

"tosidebar": true,

"console": false,

"tostatus": false,

"complete": "payload",

"targetType": "msg",

"statusVal": "",

"statusType": "auto",

"x": 890,

"y": 340,

"wires": []

},

{

"id": "34596382e6569acf",

"type": "change",

"z": "b1eebfa674cf3134",

"name": "Charger off",

"rules": [

{

"t": "set",

"p": "payload",

"pt": "msg",

"to": "0",

"tot": "num"

}

],

"action": "",

"property": "",

"from": "",

"to": "",

"reg": false,

"x": 710,

"y": 460,

"wires": [

[

"73520b1bef03227c",

"cb4296f25da09437"

]

]

},

{

"id": "2236aec7beb5f05c",

"type": "change",

"z": "b1eebfa674cf3134",

"name": "Charger on",

"rules": [

{

"t": "set",

"p": "payload",

"pt": "msg",

"to": "1",

"tot": "num"

}

],

"action": "",

"property": "",

"from": "",

"to": "",

"reg": false,

"x": 710,

"y": 400,

"wires": [

[

"3c1cdae2c1c58679",

"cb4296f25da09437"

]

]

},

{

"id": "73520b1bef03227c",

"type": "debug",

"z": "b1eebfa674cf3134",

"name": "Charger Off",

"active": true,

"tosidebar": true,

"console": false,

"tostatus": false,

"complete": "payload",

"targetType": "msg",

"statusVal": "",

"statusType": "auto",

"x": 890,

"y": 520,

"wires": []

},

{

"id": "2eb5259d93d5ace6",

"type": "victron-input-relay",

"z": "b1eebfa674cf3134",

"service": "com.victronenergy.system/0",

"path": "/Relay/0/State",

"serviceObj": {

"service": "com.victronenergy.system/0",

"name": "Venus system"

},

"pathObj": {

"path": "/Relay/0/State",

"type": "enum",

"name": "Venus relay 1 state",

"enum": {

"0": "Open",

"1": "Closed"

}

},

"initial": "",

"name": "",

"onlyChanges": false,

"x": 220,

"y": 700,

"wires": [

[

"63ee05797f7e9d29"

]

]

},

{

"id": "cb4296f25da09437",

"type": "victron-output-relay",

"z": "b1eebfa674cf3134",

"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

},

"initial": "",

"name": "relay1 0-Open 1-Closed",

"onlyChanges": false,

"x": 1130,

"y": 420,

"wires": []

}

]

Node-RED
flow-1.jpg (177.3 KiB)
2 |3000

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

1 Answer
beagle avatar image
beagle answered ·

Fixed! (partially) tried Relay2 and it works fine. Why relay1 refuses. Only Victron can answer i guess.

2 |3000

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