Control charging from grid

gen for ac ignore.zip (911 Bytes)

@MotoringMariah that is quite the panel.

You will need to set your gen start stop on the gx to drive relay 1.
Program your parameters on the GX.
Import the above after unzipping. Adjust as the code by double clicking the node for the inverter as will be looking for my inverter still. There is a note there.

Summary

Deploy.

Test.

I had something else in mind but this seems simpler as you va basically ‘edit’ the code using the gx gui as you like. And have a manual override.

If you have questions just @ me and i will reply as soon as i am online again.

Summary

[
{
“id”: “91a4812e886d51e8”,
“type”: “victron-output-vebus”,
“z”: “2e584231b93a46ed”,
“service”: “com.victronenergy.vebus/276”,
“path”: “/Mode”,
“serviceObj”: {
“service”: “com.victronenergy.vebus/276”,
“name”: “MultiPlus 24/3000/70-50”
},
“pathObj”: {
“path”: “/Mode”,
“type”: “enum”,
“name”: “Switch Position”,
“enum”: {
“1”: “Charger Only”,
“2”: “Inverter Only”,
“3”: “On”,
“4”: “Off”
},
“mode”: “both”
},
“name”: “”,
“onlyChanges”: false,
“x”: 980,
“y”: 340,
“wires”:
},
{
“id”: “e23eed447738a307”,
“type”: “victron-input-relay”,
“z”: “2e584231b93a46ed”,
“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”
},
“mode”: “both”,
“disabled”: false
},
“name”: “”,
“onlyChanges”: false,
“x”: 310,
“y”: 340,
“wires”: [
[
“e7a1aa09c2616ed4”
]
]
},
{
“id”: “e7a1aa09c2616ed4”,
“type”: “switch”,
“z”: “2e584231b93a46ed”,
“name”: “Relay State”,
“property”: “payload”,
“propertyType”: “msg”,
“rules”: [
{
“t”: “eq”,
“v”: “1”,
“vt”: “num”
},
{
“t”: “eq”,
“v”: “0”,
“vt”: “num”
}
],
“checkall”: “true”,
“repair”: false,
“outputs”: 2,
“x”: 540,
“y”: 340,
“wires”: [
[
“4be939285f499c99”
],
[
“55651352dce62f06”
]
],
“outputLabels”: [
“closed”,
“open”
]
},
{
“id”: “4be939285f499c99”,
“type”: “change”,
“z”: “2e584231b93a46ed”,
“name”: “On”,
“rules”: [
{
“t”: “set”,
“p”: “payload”,
“pt”: “msg”,
“to”: “3”,
“tot”: “num”
}
],
“action”: “”,
“property”: “”,
“from”: “”,
“to”: “”,
“reg”: false,
“x”: 710,
“y”: 300,
“wires”: [
[
“91a4812e886d51e8”
]
]
},
{
“id”: “55651352dce62f06”,
“type”: “change”,
“z”: “2e584231b93a46ed”,
“name”: “Inverter Only”,
“rules”: [
{
“t”: “set”,
“p”: “payload”,
“pt”: “msg”,
“to”: “2”,
“tot”: “num”
}
],
“action”: “”,
“property”: “”,
“from”: “”,
“to”: “”,
“reg”: false,
“x”: 710,
“y”: 380,
“wires”: [
[
“91a4812e886d51e8”
]
]
},
{
“id”: “8ae8424aa1441cb4”,
“type”: “comment”,
“z”: “2e584231b93a46ed”,
“name”: “Make sure this node is your inverter”,
“info”: “”,
“x”: 960,
“y”: 300,
“wires”:
}
]