[ { "id": "af22c8a5919add22", "type": "tab", "label": "MQTT Example", "disabled": false, "info": "", "env": [] }, { "id": "5a4e85d816b1320e", "type": "mqtt in", "z": "af22c8a5919add22", "name": "Battery SoC", "topic": "N/+/system/0/Dc/Battery/Soc", "qos": "2", "datatype": "auto-detect", "broker": "90922124ac4409de", "nl": false, "rap": true, "rh": 0, "inputs": 0, "x": 150, "y": 260, "wires": [ [ "bb8c6aa68c0a2f75" ] ] }, { "id": "daa8037f5a7cd0c0", "type": "debug", "z": "af22c8a5919add22", "name": "Battery SoC", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 490, "y": 260, "wires": [] }, { "id": "71c62b756158b4b8", "type": "mqtt in", "z": "af22c8a5919add22", "name": "L1 ActiveIn Power", "topic": "N/+/system/0/Ac/ActiveIn/L1/Power", "qos": "2", "datatype": "auto-detect", "broker": "90922124ac4409de", "nl": false, "rap": true, "rh": 0, "inputs": 0, "x": 170, "y": 340, "wires": [ [ "fc3ac56d9602791b" ] ] }, { "id": "45d7159e91d802dd", "type": "debug", "z": "af22c8a5919add22", "name": "L1 ActiveIn Power", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 510, "y": 340, "wires": [] }, { "id": "bb8c6aa68c0a2f75", "type": "change", "z": "af22c8a5919add22", "name": "Value", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.value", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 310, "y": 260, "wires": [ [ "daa8037f5a7cd0c0" ] ] }, { "id": "fc3ac56d9602791b", "type": "change", "z": "af22c8a5919add22", "name": "Value", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "payload.value", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 330, "y": 340, "wires": [ [ "45d7159e91d802dd" ] ] }, { "id": "d120d27cb9f621a2", "type": "comment", "z": "af22c8a5919add22", "name": "Automatic keepalive mechanism without first knowing mqtt id", "info": "", "x": 260, "y": 20, "wires": [] }, { "id": "9ba9d9fc7072f5b0", "type": "comment", "z": "af22c8a5919add22", "name": "Retrieve some values to demonstrate fetching data", "info": "", "x": 270, "y": 180, "wires": [] }, { "id": "efbfe90beebece3a", "type": "mqtt out", "z": "af22c8a5919add22", "name": "send keepalive", "topic": "", "qos": "0", "retain": "", "respTopic": "", "contentType": "", "userProps": "", "correl": "", "expiry": "", "broker": "90922124ac4409de", "x": 500, "y": 120, "wires": [] }, { "id": "5ee268cc38cc0f98", "type": "debug", "z": "af22c8a5919add22", "name": "mqtt Serial", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 710, "y": 60, "wires": [] }, { "id": "d54bd95ebeff8b01", "type": "change", "z": "af22c8a5919add22", "name": "Create Keepalive Topic String", "rules": [ { "t": "change", "p": "topic", "pt": "msg", "from": "^N", "fromt": "re", "to": "R", "tot": "str" }, { "t": "set", "p": "mqtt_keepalive", "pt": "global", "to": "topic", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 430, "y": 60, "wires": [ [ "5ee268cc38cc0f98" ] ] }, { "id": "3319159c073db728", "type": "mqtt in", "z": "af22c8a5919add22", "name": "Read Serial # topic", "topic": "N/+/system/0/Serial", "qos": "2", "datatype": "auto-detect", "broker": "90922124ac4409de", "nl": false, "rap": true, "rh": 0, "inputs": 0, "x": 130, "y": 60, "wires": [ [ "d54bd95ebeff8b01" ] ] }, { "id": "5aea37ea68fe4f3b", "type": "inject", "z": "af22c8a5919add22", "name": "Inject Keepalive Topic", "props": [ { "p": "topic", "v": "mqtt_keepalive", "vt": "global" }, { "p": "payload" } ], "repeat": "40", "crontab": "", "once": true, "onceDelay": "10", "topic": "", "payload": "keepalive", "payloadType": "str", "x": 160, "y": 120, "wires": [ [ "efbfe90beebece3a" ] ] }, { "id": "90922124ac4409de", "type": "mqtt-broker", "name": "Victron GX", "broker": "192.168.12.13", "port": "1883", "clientid": "", "autoConnect": true, "usetls": false, "protocolVersion": "3", "keepalive": "60", "cleansession": true, "birthTopic": "", "birthQos": "0", "birthPayload": "", "birthMsg": {}, "closeTopic": "", "closeQos": "0", "closePayload": "", "closeMsg": {}, "willTopic": "", "willQos": "0", "willPayload": "", "willMsg": {}, "userProps": "", "sessionExpiry": "" } ]