Jeg prøver å bruke en flow for å stoppe automatisk lading med easee, men selv om jeg trodde det skulle være lett, det fungerer ikke.
Jeg bruker “charging state” og en global variable som er satt til “false.”
Ser noen hva jeg gjør feil?
{
"Id": "AEIuAvqCHkcMum7",
"ClassId": "AEIuAvqCHkcMum7",
"Author": "",
"Version": 0,
"CreatedAt": "2023-09-19T17:12:22.41134965+02:00",
"UpdatedAt": "2023-09-19T17:12:22.41134965+02:00",
"Name": "charger control",
"Group": "test",
"Nodes": [
{
"Id": "1",
"Type": "trigger",
"Label": "Get Charger State",
"SuccessTransition": "2",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:evt/rt:dev/rn:easee/ad:1/sv:chargepoint/ad:5",
"Service": "chargepoint",
"ServiceInterface": "evt.state.report",
"Config": {
"Timeout": 0,
"ConnectorID": "",
"ValueFilter": {
"Value": null
},
"PropFilterName": "",
"PropFilterValue": "",
"ValueJPath": "",
"ValueJPathResultType": "",
"InputVariableType": "",
"IsValueFilterEnabled": false,
"RegisterAsVirtualService": false,
"LookupServiceNameAndLocation": false,
"VirtualServiceGroup": "",
"VirtualServiceProps": null
},
"Ui": {
"x": 175,
"y": 255,
"nodeType": ""
},
"TypeAlias": "Trigger"
},
{
"Id": "2",
"Type": "if",
"Label": "If charging",
"Address": "",
"Service": "",
"ServiceInterface": "",
"SuccessTransition": "",
"ErrorTransition": "",
"Config": {
"TrueTransition": "3",
"FalseTransition": "",
"Expression": [
{
"Operand": "eq",
"LeftVariableName": "",
"LeftVariableIsGlobal": false,
"RightVariable": {
"Value": "charging",
"ValueType": "string"
},
"BooleanOperator": "and"
},
{
"Operand": "eq",
"LeftVariableName": "enable_charging",
"LeftVariableIsGlobal": true,
"RightVariable": {
"Value": false,
"ValueType": "bool"
},
"BooleanOperator": ""
}
]
},
"Ui": {
"x": 247,
"y": 470,
"nodeType": ""
},
"TypeAlias": "If condition"
},
{
"Id": "3",
"Type": "action",
"Label": "turn off charger",
"Address": "pt:j1/mt:cmd/rt:dev/rn:easee/ad:1/sv:chargepoint/ad:5",
"Service": "chargepoint",
"ServiceInterface": "cmd.charge.stop",
"SuccessTransition": "",
"ErrorTransition": "",
"Config": {
"VariableName": "",
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"VirtualServiceGroup": "",
"VirtualServiceProps": {},
"ResponseToTopic": "",
"DefaultValue": {
"Value": ""
}
},
"Ui": {
"x": 296,
"y": 643,
"nodeType": ""
},
"TypeAlias": "Action"
}
],
"Settings": null,
"IsDisabled": false,
"IsDefault": false,
"ParallelExecution": ""
}