[ { "id": "d71e9be5.5b4ec8", "type": "tab", "label": "Zonnepanelen", "disabled": false, "info": "" }, { "id": "444a1149.a070b", "type": "inject", "z": "d71e9be5.5b4ec8", "name": "Timestamp", "topic": "domoticz/in", "payload": "", "payloadType": "date", "repeat": "5", "crontab": "", "once": false, "onceDelay": 0.1, "x": 130, "y": 60, "wires": [ [ "b0c15e77.d8ab9", "9032c324.be332", "edc68fd7.627c2" ] ] }, { "id": "b0c15e77.d8ab9", "type": "http request", "z": "d71e9be5.5b4ec8", "name": "Access inverter kW", "method": "GET", "ret": "txt", "paytoqs": false, "url": "http://10.0.0.160/gen.measurements.table.js", "tls": "", "persist": false, "proxy": "", "authType": "", "x": 390, "y": 280, "wires": [ [ "ef512037.c4d9a" ] ] }, { "id": "ef512037.c4d9a", "type": "string", "z": "d71e9be5.5b4ec8", "name": "Strip tags", "methods": [ { "name": "stripTags", "params": [ { "type": "str", "value": "" } ] }, { "name": "delLeftMost", "params": [ { "type": "str", "value": "document.write(\"InverterNameValueUnitP DC" } ] }, { "name": "delRightMost", "params": [ { "type": "str", "value": "WU DC" } ] } ], "prop": "payload", "propout": "payload", "object": "msg", "objectout": "msg", "x": 600, "y": 280, "wires": [ [ "9b8cf9fc.d6d5d8" ] ] }, { "id": "cf0881cd.cd2a7", "type": "change", "z": "d71e9be5.5b4ec8", "name": "Construct payload for idx40", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "{\"command\":\"udevice\",\"idx\":40,\"nvalue\":0,\"svalue\":\"3333;4444\"}", "tot": "json" }, { "t": "set", "p": "payload.svalue", "pt": "msg", "to": "kw", "tot": "flow" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 760, "y": 380, "wires": [ [ "68377776.4c9f48", "b40d1984.3bfa58" ] ] }, { "id": "b40d1984.3bfa58", "type": "mqtt out", "z": "d71e9be5.5b4ec8", "name": "Zonnepanelen", "topic": "domoticz/in", "qos": "", "retain": "", "broker": "4c0cc0f5.8a0f7", "x": 1000, "y": 380, "wires": [] }, { "id": "68377776.4c9f48", "type": "debug", "z": "d71e9be5.5b4ec8", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "x": 1050, "y": 460, "wires": [] }, { "id": "e04aab95.853508", "type": "change", "z": "d71e9be5.5b4ec8", "name": "Add flow.kw to the payload", "rules": [ { "t": "set", "p": "kw", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 420, "y": 380, "wires": [ [ "cf0881cd.cd2a7" ] ] }, { "id": "88715efb.e4fde", "type": "string", "z": "d71e9be5.5b4ec8", "name": "Add flow.kwh to payload", "methods": [ { "name": "append", "params": [ { "type": "str", "value": ";" } ] }, { "name": "append", "params": [ { "type": "flow", "value": "kwh" } ] } ], "prop": "payload", "propout": "payload", "object": "msg", "objectout": "msg", "x": 1090, "y": 280, "wires": [ [ "e04aab95.853508" ] ] }, { "id": "9b8cf9fc.d6d5d8", "type": "change", "z": "d71e9be5.5b4ec8", "name": "Remove ---", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": " --- ", "fromt": "str", "to": "0", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 850, "y": 280, "wires": [ [ "88715efb.e4fde" ] ], "info": "Removes the \"---\"\" on the web page when there is no sun" }, { "id": "9032c324.be332", "type": "moment", "z": "d71e9be5.5b4ec8", "name": "", "topic": "", "input": "payload", "inputType": "msg", "inTz": "Europe/Amsterdam", "adjAmount": 0, "adjType": "days", "adjDir": "add", "format": "object", "locale": "en_US", "output": "payload", "outputType": "msg", "outTz": "Europe/Amsterdam", "x": 400, "y": 60, "wires": [ [ "710c20f6.c8a8c" ] ] }, { "id": "710c20f6.c8a8c", "type": "change", "z": "d71e9be5.5b4ec8", "name": "", "rules": [ { "t": "set", "p": "today", "pt": "flow", "to": "payload.date", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 620, "y": 60, "wires": [ [] ] }, { "id": "edc68fd7.627c2", "type": "http request", "z": "d71e9be5.5b4ec8", "name": "Access inverter kWh", "method": "GET", "ret": "txt", "paytoqs": false, "url": "http://10.0.0.160/gen.yield.month.table.js", "tls": "", "persist": false, "proxy": "", "authType": "", "x": 400, "y": 120, "wires": [ [ "c0f870f3.802e5" ] ] }, { "id": "a180fbf0.171e28", "type": "string", "z": "d71e9be5.5b4ec8", "name": "Strip tags", "methods": [ { "name": "stripTags", "params": [ { "type": "str", "value": "" } ] }, { "name": "delRightMost", "params": [ { "type": "str", "value": "
Day | Value (kWh) |
---|---|
1 | " } ] } ], "prop": "payload", "propout": "payload", "object": "msg", "objectout": "msg", "x": 620, "y": 120, "wires": [ [ "99601d07.5c96a" ] ] }, { "id": "23203c6.e3109c4", "type": "function", "z": "d71e9be5.5b4ec8", "name": "Select todays kWh", "func": "var today = flow.get(\"today\")-1;\nvar newMsg = { payload: msg.payload[today]*1000 };\nreturn newMsg;", "outputs": 1, "noerr": 0, "x": 630, "y": 200, "wires": [ [ "e3ba9750.e72848" ] ] }, { "id": "e3ba9750.e72848", "type": "change", "z": "d71e9be5.5b4ec8", "name": "", "rules": [ { "t": "set", "p": "kwh", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 850, "y": 200, "wires": [ [] ] }, { "id": "4c0cc0f5.8a0f7", "type": "mqtt-broker", "z": "", "name": "Domoticz master", "broker": "10.0.0.135", "port": "1883", "clientid": "", "usetls": false, "compatmode": false, "keepalive": "60", "cleansession": true, "birthTopic": "", "birthQos": "0", "birthPayload": "", "closeTopic": "", "closeQos": "0", "closePayload": "", "willTopic": "", "willQos": "0", "willPayload": "" } ] |