- Home
- Deutsch
- Skripten / Logik
- Node-Red
- String aufteilen
String aufteilen
-
@mickym sehr gut, das habe ich gesucht.
Ja, die Flow Variable wird angepasst. -
@hafo sagte in String aufteilen:
@mickym sehr gut, das habe ich gesucht.
Ja, die Flow Variable wird angepasst.Nun wenn die Flow Variable passt - dann geh halt weiter:
- Nachdem Du Speichern drückst - sollte doch Dein
Change Node - die Payload auf die flow Variable setzen (ggf. Prüfen)
- Die Auswahl wird über getNode gelesen und in msg.auswahl gespeichert:
dann wird die vis_Auswahl abgerufen und in msg.auswahl gespeichert und die muss dann im Verteiler stehen:
Prüfe doch bitte, ob nach Deinem Verteiler beim Speichern drücken mittels Debug Node eine Nachricht kommt.
-
@mickym Dann wird dort das Problem sein, ich habe da etwas improvisiert.
-
@hafo Nun improvisieren - kann Auswirkungen haben, das die Puzzlestückchen nicht mehr zusammenpassen.
Kommst Du denn mit meiner Anleitung nun zurecht?Wichtig ist, dass aus Deinem Verteiler das Objekt der Flow Variablen rauskommt.
Dann muss der Topic richtig gesetzt werden
Dann wird wieder das Objekt auseinandergenommen um alle trues und falses in 0 und 1 zu übersetzen und dann wird das wieder als String zusammengesetzt.Wenn Du anderweitig vorher schon in Deinem Verteiler verteilst, dann brauchst doch nur die Change Node, die die Flow-Variable in die payload kopiert vorne hinhängen.
-
@mickym Ich starte meinen Pi einmal neu. Aktuell werden keine der Bewässerungsobjekte aktualisiert. Ich kann sie auch nicht direkt von Hand ändern. Seltsamerweise wird im Vis aber alles angepasst wenn ich es auswähle.
-
@hafo sagte in String aufteilen:
@mickym Ich starte meinen Pi einmal neu. Aktuell werden keine der Bewässerungsobjekte aktualisiert. Ich kann sie auch nicht direkt von Hand ändern. Seltsamerweise wird im Vis aber alles angepasst wenn ich es auswähle.
Na hoffentlich hast Du Dir nicht anderweitig eine Endlosschleife eingefangen. ggf. Debug Nodes an Ein- oder Ausgänge hängen.
-
@mickym Ich bin noch nicht weiter gekommen. Hier beim Timer habe ich ja nicht viel geändert
[ { "id": "f1325bf4.4ed0f", "type": "ui_time_scheduler", "z": "95848418.340d58", "group": "df42ab16.59cb78", "name": "Bewässerung", "startDay": "1", "refresh": 60, "devices": [ "Tomaten" ], "onlySendChange": false, "customPayload": false, "eventMode": false, "eventOptions": [], "sendTopic": false, "lat": "46.98015", "lon": "9.5706316", "outputs": 2, "order": 1, "width": 0, "height": 0, "x": 200, "y": 340, "wires": [ [], [ "15cd23d8.ca16d4" ] ], "outputLabels": [ "Info", "Chili", "Gewuertz", "Rasen", "Himbeeren", "Gemuese", "Feigenbaum", "Tomaten" ] }, { "id": "9334f2a7.e7bae", "type": "ioBroker out", "z": "95848418.340d58", "name": "Tomaten", "topic": "mqtt.0.ESP_Bewaesserung.GPIO.12", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 700, "y": 360, "wires": [] }, { "id": "15cd23d8.ca16d4", "type": "change", "z": "95848418.340d58", "name": "change true", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "true", "fromt": "bool", "to": "1", "tot": "num" }, { "t": "change", "p": "payload", "pt": "msg", "from": "false", "fromt": "bool", "to": "0", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 450, "y": 360, "wires": [ [ "9334f2a7.e7bae" ] ] }, { "id": "1df93fe2.46fbe", "type": "ioBroker in", "z": "95848418.340d58", "name": "Tomaten Startzeit", "topic": "0_userdata.0.Bewässerung.Tomaten_Startzeit", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "fireOnStart": "true", "x": 140, "y": 40, "wires": [ [ "18e28c07.feb6a4" ] ] }, { "id": "a9f1efd2.7ba", "type": "change", "z": "95848418.340d58", "name": "", "rules": [ { "t": "set", "p": "send.tomstart", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 810, "y": 140, "wires": [ [ "49b35f45.913428" ] ] }, { "id": "edbdcaab.6c3bf8", "type": "function", "z": "95848418.340d58", "name": "", "func": "var math = Number(msg.payload) + Number(msg.lauf);\nmsg.payload = math;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 600, "y": 180, "wires": [ [ "98df7f5d.11b1a8" ] ] }, { "id": "bd4c9090.779998", "type": "ioBroker get", "z": "95848418.340d58", "name": "Tomaten Laufzeit", "topic": "0_userdata.0.Bewässerung.Tomaten_Laufzeit", "attrname": "lauf", "payloadType": "value", "x": 290, "y": 180, "wires": [ [ "61f31e86.30eb7" ] ] }, { "id": "98df7f5d.11b1a8", "type": "change", "z": "95848418.340d58", "name": "", "rules": [ { "t": "set", "p": "send.tomend", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 810, "y": 180, "wires": [ [ "49b35f45.913428" ] ] }, { "id": "24fcb6c1.8936a2", "type": "ioBroker in", "z": "95848418.340d58", "name": "Tomaten Tage", "topic": "0_userdata.0.Bewässerung.Tomaten_Tage", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "fireOnStart": "true", "x": 130, "y": 240, "wires": [ [ "ec2da415.2a4fd8" ] ] }, { "id": "ec2da415.2a4fd8", "type": "change", "z": "95848418.340d58", "name": "", "rules": [ { "t": "set", "p": "send.tomtag", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 800, "y": 220, "wires": [ [ "49b35f45.913428" ] ] }, { "id": "f8cc9712.2ab86", "type": "ioBroker in", "z": "95848418.340d58", "name": "Tomaten Laufzeit", "topic": "0_userdata.0.Bewässerung.Tomaten_Laufzeit", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "fireOnStart": "true", "x": 80, "y": 180, "wires": [ [ "bd4c9090.779998" ] ] }, { "id": "49b35f45.913428", "type": "change", "z": "95848418.340d58", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "send", "tot": "flow" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1070, "y": 180, "wires": [ [ "df48c94f.bf566" ] ] }, { "id": "df48c94f.bf566", "type": "template", "z": "95848418.340d58", "name": "Create timer", "field": "payload", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", "template": "{\"timers\":[{\"starttime\":{{payload.tomstart}},\"days\":[{{payload.tomtag}}],\"output\":\"0\",\"endtime\":{{payload.tomend}}}],\"settings\":{\"disabledDevices\":[]}}", "output": "str", "x": 1270, "y": 180, "wires": [ [ "f1325bf4.4ed0f" ] ] }, { "id": "a2212093.185978", "type": "ioBroker get", "z": "95848418.340d58", "name": "min", "topic": "0_userdata.0.Bewässerung.Tomaten_Startzeit_m", "attrname": "min", "payloadType": "value", "x": 550, "y": 40, "wires": [ [ "cd67691.76bf218" ] ] }, { "id": "cd67691.76bf218", "type": "function", "z": "95848418.340d58", "name": "", "func": "var math = (Number(msg.payload) + Number(msg.min)) * 60000;\nmsg.payload = math;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 720, "y": 40, "wires": [ [ "a9f1efd2.7ba", "bd4c9090.779998" ] ] }, { "id": "18e28c07.feb6a4", "type": "function", "z": "95848418.340d58", "name": "", "func": "var math = (Number(msg.payload) - 1) * 60;\nmsg.payload = math;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 350, "y": 40, "wires": [ [ "a2212093.185978" ] ] }, { "id": "61f31e86.30eb7", "type": "calculator", "z": "95848418.340d58", "name": "", "inputMsgField": "lauf", "outputMsgField": "lauf", "operation": "mult", "constant": "60000", "round": false, "decimals": 0, "x": 460, "y": 180, "wires": [ [ "edbdcaab.6c3bf8" ] ] }, { "id": "c5a2845b.60457", "type": "ui_time_scheduler", "z": "95848418.340d58", "group": "df42ab16.59cb78", "name": "Bewässerung", "startDay": "1", "refresh": 60, "devices": [ "Gewuertz" ], "onlySendChange": false, "customPayload": false, "eventMode": false, "eventOptions": [], "sendTopic": false, "lat": "46.98015", "lon": "9.5706316", "outputs": 2, "order": 1, "width": 0, "height": 0, "x": 240, "y": 900, "wires": [ [], [ "677967fd.d6508" ] ], "outputLabels": [ "Info", "Chili" ] }, { "id": "e0307c77.b211c", "type": "ioBroker out", "z": "95848418.340d58", "name": "Gewürtz", "topic": "mqtt.0.ESP_Bewaesserung.GPIO.4", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 740, "y": 920, "wires": [] }, { "id": "677967fd.d6508", "type": "change", "z": "95848418.340d58", "name": "change true", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "true", "fromt": "bool", "to": "1", "tot": "num" }, { "t": "change", "p": "payload", "pt": "msg", "from": "false", "fromt": "bool", "to": "0", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 550, "y": 920, "wires": [ [ "e0307c77.b211c" ] ] }, { "id": "caf7b2e8.1894b", "type": "ioBroker in", "z": "95848418.340d58", "name": "Gewuertz Startzeit", "topic": "0_userdata.0.Bewässerung.Gewuertz_Startzeit", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "fireOnStart": "true", "x": 190, "y": 600, "wires": [ [ "fc7a7352.44fc9" ] ] }, { "id": "5ecdf7a0.e5c52", "type": "change", "z": "95848418.340d58", "name": "", "rules": [ { "t": "set", "p": "send.gewstart", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 850, "y": 700, "wires": [ [ "b11dd4d7.897628" ] ] }, { "id": "1cf4d57e.33b613", "type": "function", "z": "95848418.340d58", "name": "", "func": "var math = Number(msg.payload) + Number(msg.lauf);\nmsg.payload = math;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 640, "y": 740, "wires": [ [ "49c2e1d4.4d6fa" ] ] }, { "id": "a8d69e10.cd63e", "type": "ioBroker get", "z": "95848418.340d58", "name": "Gewuertz Laufzeit", "topic": "0_userdata.0.Bewässerung.Gewuertz_Laufzeit", "attrname": "lauf", "payloadType": "value", "x": 330, "y": 740, "wires": [ [ "9eb12009.2f268" ] ] }, { "id": "49c2e1d4.4d6fa", "type": "change", "z": "95848418.340d58", "name": "", "rules": [ { "t": "set", "p": "send.gewend", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 850, "y": 740, "wires": [ [ "b11dd4d7.897628" ] ] }, { "id": "a7e14d02.fec93", "type": "ioBroker in", "z": "95848418.340d58", "name": "Gewuertz Tage", "topic": "0_userdata.0.Bewässerung.Gewuertz_Tage", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "fireOnStart": "true", "x": 180, "y": 800, "wires": [ [ "710ebd7a.a08164" ] ] }, { "id": "710ebd7a.a08164", "type": "change", "z": "95848418.340d58", "name": "", "rules": [ { "t": "set", "p": "send.gewtag", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 850, "y": 780, "wires": [ [ "b11dd4d7.897628" ] ] }, { "id": "65326eb6.d8ded", "type": "ioBroker in", "z": "95848418.340d58", "name": "Gewuertz Laufzeit", "topic": "0_userdata.0.Bewässerung.Gewuertz_Laufzeit", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "fireOnStart": "true", "x": 130, "y": 740, "wires": [ [ "a8d69e10.cd63e" ] ] }, { "id": "b11dd4d7.897628", "type": "change", "z": "95848418.340d58", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "send", "tot": "flow" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1110, "y": 740, "wires": [ [ "961552c6.c4d6d" ] ] }, { "id": "961552c6.c4d6d", "type": "template", "z": "95848418.340d58", "name": "Create timer", "field": "payload", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", "template": "{\"timers\":[{\"starttime\":{{payload.gewstart}},\"days\":[{{payload.gewtag}}],\"output\":\"0\",\"endtime\":{{payload.gewend}}}],\"settings\":{\"disabledDevices\":[]}}", "output": "str", "x": 1310, "y": 740, "wires": [ [ "c5a2845b.60457" ] ] }, { "id": "5350d0ee.b87ef", "type": "ioBroker get", "z": "95848418.340d58", "name": "min", "topic": "0_userdata.0.Bewässerung.Gewuertz_Startzeit_m", "attrname": "min", "payloadType": "value", "x": 590, "y": 600, "wires": [ [ "d7ca170f.1c93a8" ] ] }, { "id": "d7ca170f.1c93a8", "type": "function", "z": "95848418.340d58", "name": "", "func": "var math = (Number(msg.payload) + Number(msg.min)) * 60000;\nmsg.payload = math;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 760, "y": 600, "wires": [ [ "5ecdf7a0.e5c52", "a8d69e10.cd63e" ] ] }, { "id": "fc7a7352.44fc9", "type": "function", "z": "95848418.340d58", "name": "", "func": "var math = (Number(msg.payload) - 1) * 60;\nmsg.payload = math;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 400, "y": 600, "wires": [ [ "5350d0ee.b87ef" ] ] }, { "id": "9eb12009.2f268", "type": "calculator", "z": "95848418.340d58", "name": "", "inputMsgField": "lauf", "outputMsgField": "lauf", "operation": "mult", "constant": "60000", "round": false, "decimals": 0, "x": 500, "y": 740, "wires": [ [ "1cf4d57e.33b613" ] ] }, { "id": "f742c03b.2b4018", "type": "ui_time_scheduler", "z": "95848418.340d58", "group": "df42ab16.59cb78", "name": "Bewässerung", "startDay": "1", "refresh": 60, "devices": [ "Rasen" ], "onlySendChange": false, "customPayload": false, "eventMode": false, "eventOptions": [], "sendTopic": false, "lat": "46.98015", "lon": "9.5706316", "outputs": 2, "order": 1, "width": 0, "height": 0, "x": 240, "y": 1340, "wires": [ [], [ "881632b6.31c788" ] ], "outputLabels": [ "Info", "Chili" ] }, { "id": "62ea3655.fb8248", "type": "ioBroker out", "z": "95848418.340d58", "name": "Rasen", "topic": "mqtt.0.ESP_Bewaesserung.GPIO.16", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 730, "y": 1360, "wires": [] }, { "id": "881632b6.31c788", "type": "change", "z": "95848418.340d58", "name": "change true", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "true", "fromt": "bool", "to": "1", "tot": "num" }, { "t": "change", "p": "payload", "pt": "msg", "from": "false", "fromt": "bool", "to": "0", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 490, "y": 1360, "wires": [ [ "62ea3655.fb8248" ] ] }, { "id": "4b2cc279.165b9c", "type": "ioBroker in", "z": "95848418.340d58", "name": "Rasen Startzeit", "topic": "0_userdata.0.Bewässerung.Rasen_Startzeit", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "fireOnStart": "true", "x": 180, "y": 1040, "wires": [ [ "7c130cf9.58ddf4" ] ] }, { "id": "9a31aa7.81634d8", "type": "change", "z": "95848418.340d58", "name": "", "rules": [ { "t": "set", "p": "send.rasstart", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 850, "y": 1140, "wires": [ [ "478bd581.773b1c" ] ] }, { "id": "7c888e93.75e008", "type": "function", "z": "95848418.340d58", "name": "", "func": "var math = Number(msg.payload) + Number(msg.lauf);\nmsg.payload = math;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 640, "y": 1180, "wires": [ [ "22336e17.68a50a" ] ] }, { "id": "16fd25cd.411922", "type": "ioBroker get", "z": "95848418.340d58", "name": "Rasen Laufzeit", "topic": "0_userdata.0.Bewässerung.Rasen_Laufzeit", "attrname": "lauf", "payloadType": "value", "x": 320, "y": 1180, "wires": [ [ "537f95ef.af8cf4" ] ] }, { "id": "22336e17.68a50a", "type": "change", "z": "95848418.340d58", "name": "", "rules": [ { "t": "set", "p": "send.rasend", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 840, "y": 1180, "wires": [ [ "478bd581.773b1c" ] ] }, { "id": "e8ab5570.c9b078", "type": "ioBroker in", "z": "95848418.340d58", "name": "Rasen Tage", "topic": "0_userdata.0.Bewässerung.Rasen_Tage", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "fireOnStart": "true", "x": 170, "y": 1240, "wires": [ [ "cc068c34.857cd8" ] ] }, { "id": "cc068c34.857cd8", "type": "change", "z": "95848418.340d58", "name": "", "rules": [ { "t": "set", "p": "send.rastag", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 840, "y": 1220, "wires": [ [ "478bd581.773b1c" ] ] }, { "id": "f7ab960.ee03fe8", "type": "ioBroker in", "z": "95848418.340d58", "name": "Rasen Laufzeit", "topic": "0_userdata.0.Bewässerung.Rasen_Laufzeit", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "fireOnStart": "true", "x": 120, "y": 1180, "wires": [ [ "16fd25cd.411922" ] ] }, { "id": "478bd581.773b1c", "type": "change", "z": "95848418.340d58", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "send", "tot": "flow" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1130, "y": 1180, "wires": [ [ "685c0011.4d76d8" ] ] }, { "id": "685c0011.4d76d8", "type": "template", "z": "95848418.340d58", "name": "Create timer", "field": "payload", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", "template": "{\"timers\":[{\"starttime\":{{payload.rasstart}},\"days\":[{{payload.rastag}}],\"output\":\"0\",\"endtime\":{{payload.rasend}}}],\"settings\":{\"disabledDevices\":[]}}", "output": "str", "x": 1310, "y": 1180, "wires": [ [ "f742c03b.2b4018" ] ] }, { "id": "6179abe5.5008cc", "type": "ioBroker get", "z": "95848418.340d58", "name": "min", "topic": "0_userdata.0.Bewässerung.Rasen_Startzeit_m", "attrname": "min", "payloadType": "value", "x": 590, "y": 1040, "wires": [ [ "eff73484.e162f8" ] ] }, { "id": "eff73484.e162f8", "type": "function", "z": "95848418.340d58", "name": "", "func": "var math = (Number(msg.payload) + Number(msg.min)) * 60000;\nmsg.payload = math;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 760, "y": 1040, "wires": [ [ "9a31aa7.81634d8", "16fd25cd.411922" ] ] }, { "id": "7c130cf9.58ddf4", "type": "function", "z": "95848418.340d58", "name": "", "func": "var math = (Number(msg.payload) - 1) * 60;\nmsg.payload = math;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 390, "y": 1040, "wires": [ [ "6179abe5.5008cc" ] ] }, { "id": "537f95ef.af8cf4", "type": "calculator", "z": "95848418.340d58", "name": "", "inputMsgField": "lauf", "outputMsgField": "lauf", "operation": "mult", "constant": "60000", "round": false, "decimals": 0, "x": 500, "y": 1180, "wires": [ [ "7c888e93.75e008" ] ] }, { "id": "ffade621.e21408", "type": "ui_time_scheduler", "z": "95848418.340d58", "group": "df42ab16.59cb78", "name": "Bewässerung", "startDay": "1", "refresh": 60, "devices": [ "Himbeeren" ], "onlySendChange": false, "customPayload": false, "eventMode": false, "eventOptions": [], "sendTopic": false, "lat": "46.98015", "lon": "9.5706316", "outputs": 2, "order": 1, "width": 0, "height": 0, "x": 260, "y": 1840, "wires": [ [], [ "2d9e3615.954982" ] ], "outputLabels": [ "Info", "Chili" ] }, { "id": "3e99677c.33493", "type": "ioBroker out", "z": "95848418.340d58", "name": "Himbeeren", "topic": "mqtt.0.ESP_Bewaesserung.GPIO.15", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 770, "y": 1860, "wires": [] }, { "id": "2d9e3615.954982", "type": "change", "z": "95848418.340d58", "name": "change true", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "true", "fromt": "bool", "to": "1", "tot": "num" }, { "t": "change", "p": "payload", "pt": "msg", "from": "false", "fromt": "bool", "to": "0", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 530, "y": 1840, "wires": [ [ "3e99677c.33493" ] ] }, { "id": "b1133be4.6945e8", "type": "ioBroker in", "z": "95848418.340d58", "name": "Himbeeren Startzeit", "topic": "0_userdata.0.Bewässerung.Himbeeren_Startzeit", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "fireOnStart": "true", "x": 210, "y": 1540, "wires": [ [ "43163347.805d3c" ] ] }, { "id": "5776e8d5.98b4a8", "type": "change", "z": "95848418.340d58", "name": "", "rules": [ { "t": "set", "p": "send.himstart", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 870, "y": 1640, "wires": [ [ "b5b9c48d.0ac7c8" ] ] }, { "id": "93bbcc75.140c6", "type": "function", "z": "95848418.340d58", "name": "", "func": "var math = Number(msg.payload) + Number(msg.lauf);\nmsg.payload = math;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 660, "y": 1680, "wires": [ [ "27b37ef4.39d9b2" ] ] }, { "id": "aaf11e52.96428", "type": "ioBroker get", "z": "95848418.340d58", "name": "Himbeeren Laufzeit", "topic": "0_userdata.0.Bewässerung.Himbeeren_Laufzeit", "attrname": "lauf", "payloadType": "value", "x": 350, "y": 1680, "wires": [ [ "889ba824.5c7ba8" ] ] }, { "id": "27b37ef4.39d9b2", "type": "change", "z": "95848418.340d58", "name": "", "rules": [ { "t": "set", "p": "send.himend", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 870, "y": 1680, "wires": [ [ "b5b9c48d.0ac7c8" ] ] }, { "id": "a2e37a01.8b062", "type": "ioBroker in", "z": "95848418.340d58", "name": "Himbeeren Tage", "topic": "0_userdata.0.Bewässerung.Himbeeren_Tage", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "fireOnStart": "true", "x": 200, "y": 1740, "wires": [ [ "17cc38bc.d0b1df" ] ] }, { "id": "17cc38bc.d0b1df", "type": "change", "z": "95848418.340d58", "name": "", "rules": [ { "t": "set", "p": "send.himtag", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 860, "y": 1720, "wires": [ [ "b5b9c48d.0ac7c8" ] ] }, { "id": "71fcb2df.72fd44", "type": "ioBroker in", "z": "95848418.340d58", "name": "Himbeeren Laufzeit", "topic": "0_userdata.0.Bewässerung.Himbeeren_Laufzeit", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "fireOnStart": "true", "x": 150, "y": 1680, "wires": [ [ "aaf11e52.96428" ] ] }, { "id": "b5b9c48d.0ac7c8", "type": "change", "z": "95848418.340d58", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "send", "tot": "flow" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1130, "y": 1680, "wires": [ [ "d35b19a6.f1acf" ] ] }, { "id": "d35b19a6.f1acf", "type": "template", "z": "95848418.340d58", "name": "Create timer", "field": "payload", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", "template": "{\"timers\":[{\"starttime\":{{payload.himstart}},\"days\":[{{payload.himtag}}],\"output\":\"0\",\"endtime\":{{payload.himend}}}],\"settings\":{\"disabledDevices\":[]}}", "output": "str", "x": 1330, "y": 1680, "wires": [ [ "ffade621.e21408" ] ] }, { "id": "58fac00.fbd1ac", "type": "ioBroker get", "z": "95848418.340d58", "name": "min", "topic": "0_userdata.0.Bewässerung.Himbeeren_Startzeit_m", "attrname": "min", "payloadType": "value", "x": 610, "y": 1540, "wires": [ [ "46fe7ce9.fc5d64" ] ] }, { "id": "46fe7ce9.fc5d64", "type": "function", "z": "95848418.340d58", "name": "", "func": "var math = (Number(msg.payload) + Number(msg.min)) * 60000;\nmsg.payload = math;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 780, "y": 1540, "wires": [ [ "5776e8d5.98b4a8", "aaf11e52.96428" ] ] }, { "id": "43163347.805d3c", "type": "function", "z": "95848418.340d58", "name": "", "func": "var math = (Number(msg.payload) - 1) * 60;\nmsg.payload = math;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 410, "y": 1540, "wires": [ [ "58fac00.fbd1ac" ] ] }, { "id": "889ba824.5c7ba8", "type": "calculator", "z": "95848418.340d58", "name": "", "inputMsgField": "lauf", "outputMsgField": "lauf", "operation": "mult", "constant": "60000", "round": false, "decimals": 0, "x": 520, "y": 1680, "wires": [ [ "93bbcc75.140c6" ] ] }, { "id": "6a1dc60e.2815c8", "type": "ui_time_scheduler", "z": "95848418.340d58", "group": "df42ab16.59cb78", "name": "Bewässerung", "startDay": "1", "refresh": 60, "devices": [ "Chili" ], "onlySendChange": false, "customPayload": false, "eventMode": false, "eventOptions": [], "sendTopic": false, "lat": "46.98015", "lon": "9.5706316", "outputs": 2, "order": 1, "width": 0, "height": 0, "x": 280, "y": 2280, "wires": [ [], [ "644cc02f.578248" ] ], "outputLabels": [ "Info", "Chili" ] }, { "id": "c739c937.d838", "type": "ioBroker out", "z": "95848418.340d58", "name": "Chili", "topic": "mqtt.0.ESP_Bewaesserung.GPIO.5", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 770, "y": 2300, "wires": [] }, { "id": "644cc02f.578248", "type": "change", "z": "95848418.340d58", "name": "change true", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "true", "fromt": "bool", "to": "1", "tot": "num" }, { "t": "change", "p": "payload", "pt": "msg", "from": "false", "fromt": "bool", "to": "0", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 530, "y": 2300, "wires": [ [ "c739c937.d838" ] ] }, { "id": "13823c3c.7d6a9c", "type": "ioBroker in", "z": "95848418.340d58", "name": "Chili Startzeit", "topic": "0_userdata.0.Bewässerung.Chili_Startzeit", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "fireOnStart": "true", "x": 210, "y": 1980, "wires": [ [ "27224828.5dd5e8" ] ] }, { "id": "c252fe8b.8de62", "type": "change", "z": "95848418.340d58", "name": "", "rules": [ { "t": "set", "p": "send.chistart", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 890, "y": 2080, "wires": [ [ "a99a6d33.3ba328" ] ] }, { "id": "10e12809.1df7c8", "type": "function", "z": "95848418.340d58", "name": "", "func": "var math = Number(msg.payload) + Number(msg.lauf);\nmsg.payload = math;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 680, "y": 2120, "wires": [ [ "3b1211e.2f1936e" ] ] }, { "id": "dd403d5.078954", "type": "ioBroker get", "z": "95848418.340d58", "name": "Chili Laufzeit", "topic": "0_userdata.0.Bewässerung.Chili_Laufzeit", "attrname": "lauf", "payloadType": "value", "x": 350, "y": 2120, "wires": [ [ "17acd138.a9cb87" ] ] }, { "id": "3b1211e.2f1936e", "type": "change", "z": "95848418.340d58", "name": "", "rules": [ { "t": "set", "p": "send.chiend", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 880, "y": 2120, "wires": [ [ "a99a6d33.3ba328" ] ] }, { "id": "b6c311c.a8d61f", "type": "ioBroker in", "z": "95848418.340d58", "name": "Chili Tage", "topic": "0_userdata.0.Bewässerung.Chili_Tage", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "fireOnStart": "true", "x": 200, "y": 2180, "wires": [ [ "79a48db9.90d15c" ] ] }, { "id": "79a48db9.90d15c", "type": "change", "z": "95848418.340d58", "name": "", "rules": [ { "t": "set", "p": "send.chitag", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 880, "y": 2160, "wires": [ [ "a99a6d33.3ba328" ] ] }, { "id": "fe7dee7f.a8929", "type": "ioBroker in", "z": "95848418.340d58", "name": "Chili Laufzeit", "topic": "0_userdata.0.Bewässerung.Chili_Laufzeit", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "fireOnStart": "true", "x": 150, "y": 2120, "wires": [ [ "dd403d5.078954" ] ] }, { "id": "a99a6d33.3ba328", "type": "change", "z": "95848418.340d58", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "send", "tot": "flow" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1150, "y": 2120, "wires": [ [ "ea332364.09e1a8" ] ] }, { "id": "ea332364.09e1a8", "type": "template", "z": "95848418.340d58", "name": "Create timer", "field": "payload", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", "template": "{\"timers\":[{\"starttime\":{{payload.chistart}},\"days\":[{{payload.chitag}}],\"output\":\"0\",\"endtime\":{{payload.chiend}}}],\"settings\":{\"disabledDevices\":[]}}", "output": "str", "x": 1350, "y": 2120, "wires": [ [ "6a1dc60e.2815c8" ] ] }, { "id": "99cc1f9a.000d5", "type": "ioBroker get", "z": "95848418.340d58", "name": "min", "topic": "0_userdata.0.Bewässerung.Chili_Startzeit_m", "attrname": "min", "payloadType": "value", "x": 630, "y": 1980, "wires": [ [ "f31fe6d6.ea30f" ] ] }, { "id": "f31fe6d6.ea30f", "type": "function", "z": "95848418.340d58", "name": "", "func": "var math = (Number(msg.payload) + Number(msg.min)) * 60000;\nmsg.payload = math;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 800, "y": 1980, "wires": [ [ "c252fe8b.8de62", "dd403d5.078954" ] ] }, { "id": "27224828.5dd5e8", "type": "function", "z": "95848418.340d58", "name": "", "func": "var math = (Number(msg.payload) - 1) * 60;\nmsg.payload = math;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 430, "y": 1980, "wires": [ [ "99cc1f9a.000d5" ] ] }, { "id": "17acd138.a9cb87", "type": "calculator", "z": "95848418.340d58", "name": "", "inputMsgField": "lauf", "outputMsgField": "lauf", "operation": "mult", "constant": "60000", "round": false, "decimals": 0, "x": 540, "y": 2120, "wires": [ [ "10e12809.1df7c8" ] ] }, { "id": "fb61e295.e1c3f8", "type": "ui_time_scheduler", "z": "95848418.340d58", "group": "df42ab16.59cb78", "name": "Bewässerung", "startDay": "1", "refresh": 60, "devices": [ "Gemuese" ], "onlySendChange": false, "customPayload": false, "eventMode": false, "eventOptions": [], "sendTopic": false, "lat": "46.98015", "lon": "9.5706316", "outputs": 2, "order": 1, "width": 0, "height": 0, "x": 240, "y": 2720, "wires": [ [], [ "eb50c5c1.3f81e8" ] ], "outputLabels": [ "Info", "Chili" ] }, { "id": "4d59c645.a9ef3", "type": "ioBroker out", "z": "95848418.340d58", "name": "Gemüse", "topic": "mqtt.0.ESP_Bewaesserung.GPIO.14", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 740, "y": 2740, "wires": [] }, { "id": "eb50c5c1.3f81e8", "type": "change", "z": "95848418.340d58", "name": "change true", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "true", "fromt": "bool", "to": "1", "tot": "num" }, { "t": "change", "p": "payload", "pt": "msg", "from": "false", "fromt": "bool", "to": "0", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 490, "y": 2740, "wires": [ [ "4d59c645.a9ef3" ] ] }, { "id": "bac661ce.7b14a8", "type": "ioBroker in", "z": "95848418.340d58", "name": "Gemuese Startzeit", "topic": "0_userdata.0.Bewässerung.Gemuese_Startzeit", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "fireOnStart": "true", "x": 190, "y": 2420, "wires": [ [ "655ca02b.c39688" ] ] }, { "id": "ede61f85.9b1fe8", "type": "change", "z": "95848418.340d58", "name": "", "rules": [ { "t": "set", "p": "send.gemstart", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 850, "y": 2520, "wires": [ [ "88855f2e.c147e8" ] ] }, { "id": "2c5a53a9.e88674", "type": "function", "z": "95848418.340d58", "name": "", "func": "var math = Number(msg.payload) + Number(msg.lauf);\nmsg.payload = math;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 640, "y": 2560, "wires": [ [ "fe9a251d.6c58b8" ] ] }, { "id": "ce8ee0.d1b9192", "type": "ioBroker get", "z": "95848418.340d58", "name": "Gemuese Laufzeit", "topic": "0_userdata.0.Bewässerung.Gemuese_Laufzeit", "attrname": "lauf", "payloadType": "value", "x": 330, "y": 2560, "wires": [ [ "ad223f59.b03b3" ] ] }, { "id": "fe9a251d.6c58b8", "type": "change", "z": "95848418.340d58", "name": "", "rules": [ { "t": "set", "p": "send.gemend", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 850, "y": 2560, "wires": [ [ "88855f2e.c147e8" ] ] }, { "id": "8dd057c3.525f", "type": "ioBroker in", "z": "95848418.340d58", "name": "Gemuese Tage", "topic": "0_userdata.0.Bewässerung.Gemuese_Tage", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "fireOnStart": "true", "x": 180, "y": 2620, "wires": [ [ "1ea15f91.006e4" ] ] }, { "id": "1ea15f91.006e4", "type": "change", "z": "95848418.340d58", "name": "", "rules": [ { "t": "set", "p": "send.gemtag", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 850, "y": 2600, "wires": [ [ "88855f2e.c147e8" ] ] }, { "id": "704a9b39.fff60c", "type": "ioBroker in", "z": "95848418.340d58", "name": "Gemuese Laufzeit", "topic": "0_userdata.0.Bewässerung.Gemuese_Laufzeit", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "fireOnStart": "true", "x": 130, "y": 2560, "wires": [ [ "ce8ee0.d1b9192" ] ] }, { "id": "88855f2e.c147e8", "type": "change", "z": "95848418.340d58", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "send", "tot": "flow" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1110, "y": 2560, "wires": [ [ "7695f95c.e0115" ] ] }, { "id": "7695f95c.e0115", "type": "template", "z": "95848418.340d58", "name": "Create timer", "field": "payload", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", "template": "{\"timers\":[{\"starttime\":{{payload.gemstart}},\"days\":[{{payload.gemtag}}],\"output\":\"0\",\"endtime\":{{payload.gemend}}}],\"settings\":{\"disabledDevices\":[]}}", "output": "str", "x": 1310, "y": 2560, "wires": [ [ "fb61e295.e1c3f8" ] ] }, { "id": "465c6378.063754", "type": "ioBroker get", "z": "95848418.340d58", "name": "min", "topic": "0_userdata.0.Bewässerung.Gemuese_Startzeit_m", "attrname": "min", "payloadType": "value", "x": 590, "y": 2420, "wires": [ [ "71bb1787.93aa1" ] ] }, { "id": "71bb1787.93aa1", "type": "function", "z": "95848418.340d58", "name": "", "func": "var math = (Number(msg.payload) + Number(msg.min)) * 60000;\nmsg.payload = math;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 760, "y": 2420, "wires": [ [ "ede61f85.9b1fe8", "ce8ee0.d1b9192" ] ] }, { "id": "655ca02b.c39688", "type": "function", "z": "95848418.340d58", "name": "", "func": "var math = (Number(msg.payload) - 1) * 60;\nmsg.payload = math;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 390, "y": 2420, "wires": [ [ "465c6378.063754" ] ] }, { "id": "ad223f59.b03b3", "type": "calculator", "z": "95848418.340d58", "name": "", "inputMsgField": "lauf", "outputMsgField": "lauf", "operation": "mult", "constant": "60000", "round": false, "decimals": 0, "x": 500, "y": 2560, "wires": [ [ "2c5a53a9.e88674" ] ] }, { "id": "509af3bd.f017f4", "type": "ui_time_scheduler", "z": "95848418.340d58", "group": "df42ab16.59cb78", "name": "Bewässerung", "startDay": "1", "refresh": 60, "devices": [ "Feigenbaum" ], "onlySendChange": false, "customPayload": false, "eventMode": false, "eventOptions": [], "sendTopic": false, "lat": "46.98015", "lon": "9.5706316", "outputs": 2, "order": 1, "width": 0, "height": 0, "x": 260, "y": 3140, "wires": [ [], [ "5a50917e.fb2e08" ] ], "outputLabels": [ "Info", "Chili" ] }, { "id": "8d0f9b68.f48f6", "type": "ioBroker out", "z": "95848418.340d58", "name": "Feigenbaum", "topic": "mqtt.0.ESP_Bewaesserung.GPIO.13", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 770, "y": 3160, "wires": [] }, { "id": "5a50917e.fb2e08", "type": "change", "z": "95848418.340d58", "name": "change true", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "true", "fromt": "bool", "to": "1", "tot": "num" }, { "t": "change", "p": "payload", "pt": "msg", "from": "false", "fromt": "bool", "to": "0", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 510, "y": 3160, "wires": [ [ "8d0f9b68.f48f6" ] ] }, { "id": "a03757aa.177f78", "type": "ioBroker in", "z": "95848418.340d58", "name": "Feigenbaum Startzeit", "topic": "0_userdata.0.Bewässerung.Feigenbaum_Startzeit", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "fireOnStart": "true", "x": 220, "y": 2840, "wires": [ [ "ae205d88.b3a16" ] ] }, { "id": "880223f9.33fa5", "type": "change", "z": "95848418.340d58", "name": "", "rules": [ { "t": "set", "p": "send.feistart", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 860, "y": 2940, "wires": [ [ "e69125f9.5d323" ] ] }, { "id": "4813b70.5ccf5c8", "type": "function", "z": "95848418.340d58", "name": "", "func": "var math = Number(msg.payload) + Number(msg.lauf);\nmsg.payload = math;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 660, "y": 2980, "wires": [ [ "cc150fa0.200788" ] ] }, { "id": "7a9f5936.318408", "type": "ioBroker get", "z": "95848418.340d58", "name": "Feigenbaum Laufzeit", "topic": "0_userdata.0.Bewässerung.Feigenbaum_Laufzeit", "attrname": "lauf", "payloadType": "value", "x": 340, "y": 2980, "wires": [ [ "7240e8b9.feeb68" ] ] }, { "id": "cc150fa0.200788", "type": "change", "z": "95848418.340d58", "name": "", "rules": [ { "t": "set", "p": "send.feiend", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 860, "y": 2980, "wires": [ [ "e69125f9.5d323" ] ] }, { "id": "dd944832.19d71", "type": "ioBroker in", "z": "95848418.340d58", "name": "Feigenbaum Tage", "topic": "0_userdata.0.Bewässerung.Feigenbaum_Tage", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "fireOnStart": "true", "x": 210, "y": 3040, "wires": [ [ "42552839.ddf258" ] ] }, { "id": "42552839.ddf258", "type": "change", "z": "95848418.340d58", "name": "", "rules": [ { "t": "set", "p": "send.feitag", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 860, "y": 3020, "wires": [ [ "e69125f9.5d323" ] ] }, { "id": "4bd2bfd5.a0f29", "type": "ioBroker in", "z": "95848418.340d58", "name": "Feigenbaum Laufzeit", "topic": "0_userdata.0.Bewässerung.Feigenbaum_Laufzeit", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "fireOnStart": "true", "x": 100, "y": 2980, "wires": [ [ "7a9f5936.318408" ] ] }, { "id": "e69125f9.5d323", "type": "change", "z": "95848418.340d58", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "send", "tot": "flow" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1130, "y": 2980, "wires": [ [ "f67212ea.6d15a" ] ] }, { "id": "f67212ea.6d15a", "type": "template", "z": "95848418.340d58", "name": "Create timer", "field": "payload", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", "template": "{\"timers\":[{\"starttime\":{{payload.feistart}},\"days\":[{{payload.feitag}}],\"output\":\"0\",\"endtime\":{{payload.feiend}}}],\"settings\":{\"disabledDevices\":[]}}", "output": "str", "x": 1330, "y": 2980, "wires": [ [ "509af3bd.f017f4" ] ] }, { "id": "1c9bcf61.13c8b1", "type": "ioBroker get", "z": "95848418.340d58", "name": "min", "topic": "0_userdata.0.Bewässerung.Feigenbaum_Startzeit_m", "attrname": "min", "payloadType": "value", "x": 610, "y": 2840, "wires": [ [ "9ab0b244.3d9638" ] ] }, { "id": "9ab0b244.3d9638", "type": "function", "z": "95848418.340d58", "name": "", "func": "var math = (Number(msg.payload) + Number(msg.min)) * 60000;\nmsg.payload = math;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 780, "y": 2840, "wires": [ [ "880223f9.33fa5", "7a9f5936.318408" ] ] }, { "id": "ae205d88.b3a16", "type": "function", "z": "95848418.340d58", "name": "", "func": "var math = (Number(msg.payload) - 1) * 60;\nmsg.payload = math;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 410, "y": 2840, "wires": [ [ "1c9bcf61.13c8b1" ] ] }, { "id": "7240e8b9.feeb68", "type": "calculator", "z": "95848418.340d58", "name": "", "inputMsgField": "lauf", "outputMsgField": "lauf", "operation": "mult", "constant": "60000", "round": false, "decimals": 0, "x": 520, "y": 2980, "wires": [ [ "4813b70.5ccf5c8" ] ] }, { "id": "df42ab16.59cb78", "type": "ui_group", "name": "Standard", "tab": "29502947.69c12e", "order": 1, "disp": true, "width": "6", "collapse": false }, { "id": "29502947.69c12e", "type": "ui_tab", "name": "Home", "icon": "dashboard", "disabled": false, "hidden": false } ]
-
@mickym Hier beim Vis füller funktioniert eigentlich alles wie gewünscht
[ { "id": "9e190b64.53d15", "type": "ioBroker in", "z": "99194dc0.5d65f", "name": "Vis Auswahl", "topic": "0_userdata.0.Bewässerung.vis.Auswahl", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "fireOnStart": "false", "x": 90, "y": 520, "wires": [ [ "1e3267dc.fdde18" ] ] }, { "id": "1e3267dc.fdde18", "type": "switch", "z": "99194dc0.5d65f", "name": "Verteiler", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "Chili", "vt": "str" }, { "t": "eq", "v": "Gewuertz", "vt": "str" }, { "t": "eq", "v": "Rasen", "vt": "str" }, { "t": "eq", "v": "Himbeeren", "vt": "str" }, { "t": "eq", "v": "Gemuese", "vt": "str" }, { "t": "eq", "v": "Feigenbaum", "vt": "str" }, { "t": "eq", "v": "Tomaten", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 7, "x": 260, "y": 520, "wires": [ [ "d701193.8d08d68", "d61802a5.3c8ee8", "ed935774.7ff95", "6d7eebae.187484" ], [ "6069718b.b27198", "3064f4bf.b9cfd4", "db6d1d71.321db", "c50a6d57.163c98" ], [ "6a6c068a.66fae", "7c456758.fd2e28", "420e5dd6.a6a794", "fdab73fb.a29758" ], [ "b29ffe85.62b778", "a655384e.cc9f48", "85581d0d.dcdac8", "cb96de0f.567aa8" ], [ "9a7fe8d.96ed618", "8ecb2b31.69c9a", "57cab2ad.5238ec", "2bb7c24b.2e20ce" ], [ "21765429.9e148c", "96ac89c7.f640c", "fe4ba9f8.37b3e8", "a3da58b6.1c94d8" ], [ "32de8143.168756", "4e50060a.be7778", "1386479f.8c24d", "760b9f83.494e5" ] ] }, { "id": "32de8143.168756", "type": "ioBroker get", "z": "99194dc0.5d65f", "name": "Tomaten", "topic": "0_userdata.0.Bewässerung.Tomaten_Tage", "attrname": "payload", "payloadType": "value", "x": 680, "y": 300, "wires": [ [ "b3bfd4c2.e5c2c8" ] ] }, { "id": "b3bfd4c2.e5c2c8", "type": "split", "z": "99194dc0.5d65f", "name": "", "splt": ",", "spltType": "str", "arraySplt": 1, "arraySpltType": "len", "stream": false, "addname": "", "x": 1030, "y": 180, "wires": [ [ "1b19502c.f6aba" ] ] }, { "id": "1b19502c.f6aba", "type": "change", "z": "99194dc0.5d65f", "name": "", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "0", "fromt": "str", "to": "false", "tot": "bool" }, { "t": "change", "p": "payload", "pt": "msg", "from": "1", "fromt": "str", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1210, "y": 180, "wires": [ [ "d6edd7f5.488038" ] ] }, { "id": "d6edd7f5.488038", "type": "switch", "z": "99194dc0.5d65f", "name": "", "property": "parts.index", "propertyType": "msg", "rules": [ { "t": "eq", "v": "0", "vt": "num" }, { "t": "eq", "v": "1", "vt": "num" }, { "t": "eq", "v": "2", "vt": "num" }, { "t": "eq", "v": "3", "vt": "num" }, { "t": "eq", "v": "4", "vt": "num" }, { "t": "eq", "v": "5", "vt": "num" }, { "t": "eq", "v": "6", "vt": "num" } ], "checkall": "true", "repair": false, "outputs": 7, "x": 1390, "y": 180, "wires": [ [ "a79df2d.709cb1" ], [ "b0e42158.9a50a" ], [ "2fda9826.954298" ], [ "13fd78fb.1e2217" ], [ "192afa2f.c005b6" ], [ "76e613ea.b8d75c" ], [ "4b4341e2.22c508" ] ] }, { "id": "6a6c068a.66fae", "type": "ioBroker get", "z": "99194dc0.5d65f", "name": "Rasen", "topic": "0_userdata.0.Bewässerung.Rasen_Tage", "attrname": "payload", "payloadType": "value", "x": 670, "y": 140, "wires": [ [ "b3bfd4c2.e5c2c8" ] ] }, { "id": "6069718b.b27198", "type": "ioBroker get", "z": "99194dc0.5d65f", "name": "Gewuertz", "topic": "0_userdata.0.Bewässerung.Gewuertz_Tage", "attrname": "payload", "payloadType": "value", "x": 680, "y": 100, "wires": [ [ "b3bfd4c2.e5c2c8" ] ] }, { "id": "b29ffe85.62b778", "type": "ioBroker get", "z": "99194dc0.5d65f", "name": "Himbeeren", "topic": "0_userdata.0.Bewässerung.Himbeeren_Tage", "attrname": "payload", "payloadType": "value", "x": 690, "y": 180, "wires": [ [ "b3bfd4c2.e5c2c8" ] ] }, { "id": "d701193.8d08d68", "type": "ioBroker get", "z": "99194dc0.5d65f", "name": "Chili", "topic": "0_userdata.0.Bewässerung.Chili_Tage", "attrname": "payload", "payloadType": "value", "x": 670, "y": 60, "wires": [ [ "b3bfd4c2.e5c2c8" ] ] }, { "id": "21765429.9e148c", "type": "ioBroker get", "z": "99194dc0.5d65f", "name": "Feigenbaum", "topic": "0_userdata.0.Bewässerung.Feigenbaum_Tage", "attrname": "payload", "payloadType": "value", "x": 690, "y": 260, "wires": [ [ "b3bfd4c2.e5c2c8" ] ] }, { "id": "9a7fe8d.96ed618", "type": "ioBroker get", "z": "99194dc0.5d65f", "name": "Gemuese", "topic": "0_userdata.0.Bewässerung.Gemuese_Tage", "attrname": "payload", "payloadType": "value", "x": 680, "y": 220, "wires": [ [ "b3bfd4c2.e5c2c8" ] ] }, { "id": "a79df2d.709cb1", "type": "ioBroker out", "z": "99194dc0.5d65f", "name": "Mo", "topic": "0_userdata.0.Bewässerung.vis.tage.1Mo", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1590, "y": 60, "wires": [] }, { "id": "b0e42158.9a50a", "type": "ioBroker out", "z": "99194dc0.5d65f", "name": "Di", "topic": "0_userdata.0.Bewässerung.vis.tage.2Di", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1590, "y": 100, "wires": [] }, { "id": "2fda9826.954298", "type": "ioBroker out", "z": "99194dc0.5d65f", "name": "Mi", "topic": "0_userdata.0.Bewässerung.vis.tage.3Mi", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1590, "y": 140, "wires": [] }, { "id": "13fd78fb.1e2217", "type": "ioBroker out", "z": "99194dc0.5d65f", "name": "Do", "topic": "0_userdata.0.Bewässerung.vis.tage.4Do", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1590, "y": 180, "wires": [] }, { "id": "192afa2f.c005b6", "type": "ioBroker out", "z": "99194dc0.5d65f", "name": "Fr", "topic": "0_userdata.0.Bewässerung.vis.tage.5Fr", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1590, "y": 220, "wires": [] }, { "id": "76e613ea.b8d75c", "type": "ioBroker out", "z": "99194dc0.5d65f", "name": "Sa", "topic": "0_userdata.0.Bewässerung.vis.tage.6Sa", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1590, "y": 260, "wires": [] }, { "id": "4b4341e2.22c508", "type": "ioBroker out", "z": "99194dc0.5d65f", "name": "So", "topic": "0_userdata.0.Bewässerung.vis.tage.7So", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1590, "y": 300, "wires": [] }, { "id": "4e50060a.be7778", "type": "ioBroker get", "z": "99194dc0.5d65f", "name": "Tomaten", "topic": "0_userdata.0.Bewässerung.Tomaten_Laufzeit", "attrname": "payload", "payloadType": "value", "x": 680, "y": 640, "wires": [ [ "b3311a52.9de078" ] ] }, { "id": "7c456758.fd2e28", "type": "ioBroker get", "z": "99194dc0.5d65f", "name": "Rasen", "topic": "0_userdata.0.Bewässerung.Rasen_Laufzeit", "attrname": "payload", "payloadType": "value", "x": 670, "y": 480, "wires": [ [ "b3311a52.9de078" ] ] }, { "id": "3064f4bf.b9cfd4", "type": "ioBroker get", "z": "99194dc0.5d65f", "name": "Gewuertz", "topic": "0_userdata.0.Bewässerung.Gewuertz_Laufzeit", "attrname": "payload", "payloadType": "value", "x": 680, "y": 440, "wires": [ [ "b3311a52.9de078" ] ] }, { "id": "a655384e.cc9f48", "type": "ioBroker get", "z": "99194dc0.5d65f", "name": "Himbeeren", "topic": "0_userdata.0.Bewässerung.Himbeeren_Laufzeit", "attrname": "payload", "payloadType": "value", "x": 690, "y": 520, "wires": [ [ "b3311a52.9de078" ] ] }, { "id": "d61802a5.3c8ee8", "type": "ioBroker get", "z": "99194dc0.5d65f", "name": "Chili", "topic": "0_userdata.0.Bewässerung.Chili_Laufzeit", "attrname": "payload", "payloadType": "value", "x": 670, "y": 400, "wires": [ [ "b3311a52.9de078" ] ] }, { "id": "96ac89c7.f640c", "type": "ioBroker get", "z": "99194dc0.5d65f", "name": "Feigenbaum", "topic": "0_userdata.0.Bewässerung.Feigenbaum_Laufzeit", "attrname": "payload", "payloadType": "value", "x": 690, "y": 600, "wires": [ [ "b3311a52.9de078" ] ] }, { "id": "8ecb2b31.69c9a", "type": "ioBroker get", "z": "99194dc0.5d65f", "name": "Gemuese", "topic": "0_userdata.0.Bewässerung.Gemuese_Laufzeit", "attrname": "payload", "payloadType": "value", "x": 680, "y": 560, "wires": [ [ "b3311a52.9de078" ] ] }, { "id": "1386479f.8c24d", "type": "ioBroker get", "z": "99194dc0.5d65f", "name": "Tomaten", "topic": "0_userdata.0.Bewässerung.Tomaten_Startzeit", "attrname": "payload", "payloadType": "value", "x": 680, "y": 960, "wires": [ [ "88eb3cc4.1f7df8" ] ] }, { "id": "420e5dd6.a6a794", "type": "ioBroker get", "z": "99194dc0.5d65f", "name": "Rasen", "topic": "0_userdata.0.Bewässerung.Rasen_Startzeit", "attrname": "payload", "payloadType": "value", "x": 670, "y": 800, "wires": [ [ "88eb3cc4.1f7df8" ] ] }, { "id": "db6d1d71.321db", "type": "ioBroker get", "z": "99194dc0.5d65f", "name": "Gewuertz", "topic": "0_userdata.0.Bewässerung.Gewuertz_Startzeit", "attrname": "payload", "payloadType": "value", "x": 680, "y": 760, "wires": [ [ "88eb3cc4.1f7df8" ] ] }, { "id": "85581d0d.dcdac8", "type": "ioBroker get", "z": "99194dc0.5d65f", "name": "Himbeeren", "topic": "0_userdata.0.Bewässerung.Himbeeren_Startzeit", "attrname": "payload", "payloadType": "value", "x": 690, "y": 840, "wires": [ [ "88eb3cc4.1f7df8" ] ] }, { "id": "ed935774.7ff95", "type": "ioBroker get", "z": "99194dc0.5d65f", "name": "Chili", "topic": "0_userdata.0.Bewässerung.Chili_Startzeit", "attrname": "payload", "payloadType": "value", "x": 670, "y": 720, "wires": [ [ "88eb3cc4.1f7df8" ] ] }, { "id": "fe4ba9f8.37b3e8", "type": "ioBroker get", "z": "99194dc0.5d65f", "name": "Feigenbaum", "topic": "0_userdata.0.Bewässerung.Feigenbaum_Startzeit", "attrname": "payload", "payloadType": "value", "x": 690, "y": 920, "wires": [ [ "88eb3cc4.1f7df8" ] ] }, { "id": "57cab2ad.5238ec", "type": "ioBroker get", "z": "99194dc0.5d65f", "name": "Gemuese", "topic": "0_userdata.0.Bewässerung.Gemuese_Startzeit", "attrname": "payload", "payloadType": "value", "x": 680, "y": 880, "wires": [ [ "88eb3cc4.1f7df8" ] ] }, { "id": "b3311a52.9de078", "type": "ioBroker out", "z": "99194dc0.5d65f", "name": "vis Laufzeit", "topic": "0_userdata.0.Bewässerung.vis.Laufzeit", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1210, "y": 620, "wires": [] }, { "id": "88eb3cc4.1f7df8", "type": "ioBroker out", "z": "99194dc0.5d65f", "name": "Startzeit h", "topic": "0_userdata.0.Bewässerung.vis.Startzeit_h", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1040, "y": 840, "wires": [] }, { "id": "760b9f83.494e5", "type": "ioBroker get", "z": "99194dc0.5d65f", "name": "Tomaten", "topic": "0_userdata.0.Bewässerung.Tomaten_Startzeit_m", "attrname": "payload", "payloadType": "value", "x": 680, "y": 1300, "wires": [ [ "e50834b8.eed6d" ] ] }, { "id": "fdab73fb.a29758", "type": "ioBroker get", "z": "99194dc0.5d65f", "name": "Rasen", "topic": "0_userdata.0.Bewässerung.Rasen_Startzeit_m", "attrname": "payload", "payloadType": "value", "x": 670, "y": 1140, "wires": [ [ "e50834b8.eed6d" ] ] }, { "id": "c50a6d57.163c98", "type": "ioBroker get", "z": "99194dc0.5d65f", "name": "Gewuertz", "topic": "0_userdata.0.Bewässerung.Gewuertz_Startzeit_m", "attrname": "payload", "payloadType": "value", "x": 680, "y": 1100, "wires": [ [ "e50834b8.eed6d" ] ] }, { "id": "cb96de0f.567aa8", "type": "ioBroker get", "z": "99194dc0.5d65f", "name": "Himbeeren", "topic": "0_userdata.0.Bewässerung.Himbeeren_Startzeit_m", "attrname": "payload", "payloadType": "value", "x": 690, "y": 1180, "wires": [ [ "e50834b8.eed6d" ] ] }, { "id": "6d7eebae.187484", "type": "ioBroker get", "z": "99194dc0.5d65f", "name": "Chili", "topic": "0_userdata.0.Bewässerung.Chili_Startzeit_m", "attrname": "payload", "payloadType": "value", "x": 670, "y": 1060, "wires": [ [ "e50834b8.eed6d" ] ] }, { "id": "a3da58b6.1c94d8", "type": "ioBroker get", "z": "99194dc0.5d65f", "name": "Feigenbaum", "topic": "0_userdata.0.Bewässerung.Feigenbaum_Startzeit_m", "attrname": "payload", "payloadType": "value", "x": 690, "y": 1260, "wires": [ [ "e50834b8.eed6d" ] ] }, { "id": "2bb7c24b.2e20ce", "type": "ioBroker get", "z": "99194dc0.5d65f", "name": "Gemuese", "topic": "0_userdata.0.Bewässerung.Gemuese_Startzeit_m", "attrname": "payload", "payloadType": "value", "x": 680, "y": 1220, "wires": [ [ "e50834b8.eed6d" ] ] }, { "id": "e50834b8.eed6d", "type": "ioBroker out", "z": "99194dc0.5d65f", "name": "Startzeit m", "topic": "0_userdata.0.Bewässerung.vis.Startzeit_m", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1040, "y": 1200, "wires": [] }, { "id": "e873a002.44c598", "type": "ioBroker in", "z": "99194dc0.5d65f", "name": "", "topic": "0_userdata.0.Bewässerung.vis.tage.*", "payloadType": "value", "onlyack": "", "func": "all", "gap": "", "fireOnStart": "false", "x": 1190, "y": 440, "wires": [ [ "263f94d9.d8b034" ] ] }, { "id": "263f94d9.d8b034", "type": "change", "z": "99194dc0.5d65f", "name": "", "rules": [ { "t": "change", "p": "topic", "pt": "msg", "from": ".*\\/(.*)$", "fromt": "re", "to": "$1", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1470, "y": 440, "wires": [ [ "3ba68664.834632" ] ] }, { "id": "3ba68664.834632", "type": "function", "z": "99194dc0.5d65f", "name": "setze Flow variable", "func": "fTopic='days.' + msg.topic;\nflow.set(fTopic,msg.payload);\nreturn null;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1690, "y": 440, "wires": [ [] ] } ]
-
@mickym und beim Speichern sind einige Punkte noch gar nicht angeschlossen welche ich nicht ändern kann
[ { "id": "5a0431bb.bb2aa", "type": "ioBroker in", "z": "4524d790.7edb8", "name": "Trigger", "topic": "0_userdata.0.Bewässerung.vis.Trigger", "payloadType": "value", "onlyack": false, "func": "all", "gap": "", "fireOnStart": "false", "x": 50, "y": 540, "wires": [ [ "e1c0ce04.dc943", "dd0d5311.5fd338", "3b3d0198.835f8e" ] ] }, { "id": "939eb60f.3fddd8", "type": "ioBroker get", "z": "4524d790.7edb8", "name": "Auswahl", "topic": "0_userdata.0.Bewässerung.vis.Auswahl", "attrname": "payload", "payloadType": "value", "x": 420, "y": 540, "wires": [ [ "f4ee1dde.995a48" ] ] }, { "id": "f4ee1dde.995a48", "type": "switch", "z": "4524d790.7edb8", "name": "Verteiler", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "Chili", "vt": "str" }, { "t": "eq", "v": "Gewuertz", "vt": "str" }, { "t": "eq", "v": "Rasen", "vt": "str" }, { "t": "eq", "v": "Himbeeren", "vt": "str" }, { "t": "eq", "v": "Gemuese", "vt": "str" }, { "t": "eq", "v": "Feigenbaum", "vt": "str" }, { "t": "eq", "v": "Tomaten", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 7, "x": 640, "y": 540, "wires": [ [ "6824380c.31de8", "e96d9792.c38ca8", "4ddfdab2.40b44c" ], [ "27ccefaf.7772b8", "bc8b762e.a2b03", "3a5b4365.9f12f4" ], [ "1c52b2f5.2355b5", "bbd132d0.1499a8", "1ad712f3.535975" ], [ "f7d776ee.abc678", "116a72ac.bcfd1d", "9f318fdc.0e71c" ], [ "63af54e3.178164", "9c3b0be0.5f03c", "a99e178f.55716" ], [ "1fa7d74b.223c81", "488b900f.2e8fa8", "925569ae.414b78", "59cd7ef3.1e074" ], [ "fbd3e57a.8cf3c8", "d3d4682e.04a438", "9048443a.d290c8", "82dfdd05.4d8e1" ] ] }, { "id": "6824380c.31de8", "type": "ioBroker get", "z": "4524d790.7edb8", "name": "Startzeit h", "topic": "0_userdata.0.Bewässerung.vis.Startzeit_h", "attrname": "payload", "payloadType": "value", "x": 1040, "y": 20, "wires": [ [ "489cc313.0c59bc" ] ] }, { "id": "e96d9792.c38ca8", "type": "ioBroker get", "z": "4524d790.7edb8", "name": "Startzeit m", "topic": "0_userdata.0.Bewässerung.vis.Startzeit_m", "attrname": "payload", "payloadType": "value", "x": 1050, "y": 60, "wires": [ [ "932a9248.21b268" ] ] }, { "id": "4ddfdab2.40b44c", "type": "ioBroker get", "z": "4524d790.7edb8", "name": "Laufzeit", "topic": "0_userdata.0.Bewässerung.vis.Laufzeit", "attrname": "payload", "payloadType": "value", "x": 1040, "y": 100, "wires": [ [ "e31c1a25.6b3868" ] ] }, { "id": "489cc313.0c59bc", "type": "ioBroker out", "z": "4524d790.7edb8", "name": "Chili Startzeit", "topic": "0_userdata.0.Bewässerung.Chili_Startzeit", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1290, "y": 20, "wires": [] }, { "id": "932a9248.21b268", "type": "ioBroker out", "z": "4524d790.7edb8", "name": "Feigenbaum Startzeit m", "topic": "0_userdata.0.Bewässerung.Feigenbaum_Startzeit_m", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1330, "y": 60, "wires": [] }, { "id": "e31c1a25.6b3868", "type": "ioBroker out", "z": "4524d790.7edb8", "name": "Chili Laufzeit", "topic": "0_userdata.0.Bewässerung.Chili_Laufzeit", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1290, "y": 100, "wires": [] }, { "id": "422d5faa.75ad48", "type": "debug", "z": "4524d790.7edb8", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 1050, "y": 140, "wires": [] }, { "id": "27ccefaf.7772b8", "type": "ioBroker get", "z": "4524d790.7edb8", "name": "Startzeit h", "topic": "0_userdata.0.Bewässerung.vis.Startzeit_h", "attrname": "payload", "payloadType": "value", "x": 1040, "y": 180, "wires": [ [ "679934ff.917364" ] ] }, { "id": "bc8b762e.a2b03", "type": "ioBroker get", "z": "4524d790.7edb8", "name": "Startzeit m", "topic": "0_userdata.0.Bewässerung.vis.Startzeit_m", "attrname": "payload", "payloadType": "value", "x": 1050, "y": 220, "wires": [ [ "9ae748ec.4841b8" ] ] }, { "id": "3a5b4365.9f12f4", "type": "ioBroker get", "z": "4524d790.7edb8", "name": "Laufzeit", "topic": "0_userdata.0.Bewässerung.vis.Laufzeit", "attrname": "payload", "payloadType": "value", "x": 1040, "y": 260, "wires": [ [ "b146a4d4.25c008" ] ] }, { "id": "679934ff.917364", "type": "ioBroker out", "z": "4524d790.7edb8", "name": "Gewuertz Startzeit", "topic": "0_userdata.0.Bewässerung.Gewuertz_Startzeit", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1310, "y": 180, "wires": [] }, { "id": "9ae748ec.4841b8", "type": "ioBroker out", "z": "4524d790.7edb8", "name": "Gewuertz Startzeit m", "topic": "0_userdata.0.Bewässerung.Gewuertz_Startzeit_m", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1320, "y": 220, "wires": [] }, { "id": "b146a4d4.25c008", "type": "ioBroker out", "z": "4524d790.7edb8", "name": "Gewuertz Laufzeit", "topic": "0_userdata.0.Bewässerung.Gewuertz_Laufzeit", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1310, "y": 260, "wires": [] }, { "id": "7ed32ced.72114c", "type": "debug", "z": "4524d790.7edb8", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 1050, "y": 300, "wires": [] }, { "id": "1c52b2f5.2355b5", "type": "ioBroker get", "z": "4524d790.7edb8", "name": "Startzeit h", "topic": "0_userdata.0.Bewässerung.vis.Startzeit_h", "attrname": "payload", "payloadType": "value", "x": 1040, "y": 340, "wires": [ [ "b79f93d4.3001e" ] ] }, { "id": "bbd132d0.1499a8", "type": "ioBroker get", "z": "4524d790.7edb8", "name": "Startzeit m", "topic": "0_userdata.0.Bewässerung.vis.Startzeit_m", "attrname": "payload", "payloadType": "value", "x": 1050, "y": 380, "wires": [ [ "3488b4bd.05ae0c" ] ] }, { "id": "1ad712f3.535975", "type": "ioBroker get", "z": "4524d790.7edb8", "name": "Laufzeit", "topic": "0_userdata.0.Bewässerung.vis.Laufzeit", "attrname": "payload", "payloadType": "value", "x": 1040, "y": 420, "wires": [ [ "54929399.82fab4" ] ] }, { "id": "b79f93d4.3001e", "type": "ioBroker out", "z": "4524d790.7edb8", "name": "Rasen Startzeit", "topic": "0_userdata.0.Bewässerung.Rasen_Startzeit", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1300, "y": 340, "wires": [] }, { "id": "3488b4bd.05ae0c", "type": "ioBroker out", "z": "4524d790.7edb8", "name": "Rasen Startzeit m", "topic": "0_userdata.0.Bewässerung.Rasen_Startzeit_m", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1310, "y": 380, "wires": [] }, { "id": "54929399.82fab4", "type": "ioBroker out", "z": "4524d790.7edb8", "name": "Rasen Laufzeit", "topic": "0_userdata.0.Bewässerung.Rasen_Laufzeit", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1300, "y": 420, "wires": [] }, { "id": "6a95c670.57983", "type": "debug", "z": "4524d790.7edb8", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 1050, "y": 460, "wires": [] }, { "id": "f7d776ee.abc678", "type": "ioBroker get", "z": "4524d790.7edb8", "name": "Startzeit h", "topic": "0_userdata.0.Bewässerung.vis.Startzeit_h", "attrname": "payload", "payloadType": "value", "x": 1040, "y": 500, "wires": [ [ "765d7d00.e345d4" ] ] }, { "id": "116a72ac.bcfd1d", "type": "ioBroker get", "z": "4524d790.7edb8", "name": "Startzeit m", "topic": "0_userdata.0.Bewässerung.vis.Startzeit_m", "attrname": "payload", "payloadType": "value", "x": 1050, "y": 540, "wires": [ [ "c61adffd.1f67b8" ] ] }, { "id": "9f318fdc.0e71c", "type": "ioBroker get", "z": "4524d790.7edb8", "name": "Laufzeit", "topic": "0_userdata.0.Bewässerung.vis.Laufzeit", "attrname": "payload", "payloadType": "value", "x": 1040, "y": 580, "wires": [ [ "cfbb3f17.ed621" ] ] }, { "id": "765d7d00.e345d4", "type": "ioBroker out", "z": "4524d790.7edb8", "name": "Himbeeren Startzeit", "topic": "0_userdata.0.Bewässerung.Himbeeren_Startzeit", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1310, "y": 500, "wires": [] }, { "id": "c61adffd.1f67b8", "type": "ioBroker out", "z": "4524d790.7edb8", "name": "Himbeeren Startzeit m", "topic": "0_userdata.0.Bewässerung.Himbeeren_Startzeit_m", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1320, "y": 540, "wires": [] }, { "id": "cfbb3f17.ed621", "type": "ioBroker out", "z": "4524d790.7edb8", "name": "Himbeeren Laufzeit", "topic": "0_userdata.0.Bewässerung.Himbeeren_Laufzeit", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1310, "y": 580, "wires": [] }, { "id": "dd39475.6a48eb8", "type": "debug", "z": "4524d790.7edb8", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 1050, "y": 620, "wires": [] }, { "id": "63af54e3.178164", "type": "ioBroker get", "z": "4524d790.7edb8", "name": "Startzeit h", "topic": "0_userdata.0.Bewässerung.vis.Startzeit_h", "attrname": "payload", "payloadType": "value", "x": 1040, "y": 660, "wires": [ [ "1b25caae.27731d" ] ] }, { "id": "9c3b0be0.5f03c", "type": "ioBroker get", "z": "4524d790.7edb8", "name": "Startzeit m", "topic": "0_userdata.0.Bewässerung.vis.Startzeit_m", "attrname": "payload", "payloadType": "value", "x": 1050, "y": 700, "wires": [ [ "ea0f0759.38f0e8" ] ] }, { "id": "a99e178f.55716", "type": "ioBroker get", "z": "4524d790.7edb8", "name": "Laufzeit", "topic": "0_userdata.0.Bewässerung.vis.Laufzeit", "attrname": "payload", "payloadType": "value", "x": 1040, "y": 740, "wires": [ [ "3567546e.7a226c" ] ] }, { "id": "1b25caae.27731d", "type": "ioBroker out", "z": "4524d790.7edb8", "name": "Gemuese Startzeit", "topic": "0_userdata.0.Bewässerung.Gemuese_Startzeit", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1310, "y": 660, "wires": [] }, { "id": "ea0f0759.38f0e8", "type": "ioBroker out", "z": "4524d790.7edb8", "name": "Gemuese Startzeit m", "topic": "0_userdata.0.Bewässerung.Gemuese_Startzeit_m", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1320, "y": 700, "wires": [] }, { "id": "3567546e.7a226c", "type": "ioBroker out", "z": "4524d790.7edb8", "name": "Gemuese Laufzeit", "topic": "0_userdata.0.Bewässerung.Gemuese_Laufzeit", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1310, "y": 740, "wires": [] }, { "id": "f46dbee3.80c9b8", "type": "debug", "z": "4524d790.7edb8", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 1050, "y": 780, "wires": [] }, { "id": "1fa7d74b.223c81", "type": "ioBroker get", "z": "4524d790.7edb8", "name": "Startzeit h", "topic": "0_userdata.0.Bewässerung.vis.Startzeit_h", "attrname": "payload", "payloadType": "value", "x": 1040, "y": 820, "wires": [ [ "40c36cb7.9f548c" ] ] }, { "id": "488b900f.2e8fa8", "type": "ioBroker get", "z": "4524d790.7edb8", "name": "Startzeit m", "topic": "0_userdata.0.Bewässerung.vis.Startzeit_m", "attrname": "payload", "payloadType": "value", "x": 1050, "y": 860, "wires": [ [ "d7d41d45.826528" ] ] }, { "id": "925569ae.414b78", "type": "ioBroker get", "z": "4524d790.7edb8", "name": "Laufzeit", "topic": "0_userdata.0.Bewässerung.vis.Laufzeit", "attrname": "payload", "payloadType": "value", "x": 1040, "y": 900, "wires": [ [ "b797b23.ae5c75" ] ] }, { "id": "40c36cb7.9f548c", "type": "ioBroker out", "z": "4524d790.7edb8", "name": "Feigenbaum Startzeit", "topic": "0_userdata.0.Bewässerung.Feigenbaum_Startzeit", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1320, "y": 820, "wires": [] }, { "id": "d7d41d45.826528", "type": "ioBroker out", "z": "4524d790.7edb8", "name": "Feigenbaum Startzeit m", "topic": "0_userdata.0.Bewässerung.Feigenbaum_Startzeit_m", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1330, "y": 860, "wires": [] }, { "id": "b797b23.ae5c75", "type": "ioBroker out", "z": "4524d790.7edb8", "name": "Feigenbaum Laufzeit", "topic": "0_userdata.0.Bewässerung.Feigenbaum_Laufzeit", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1320, "y": 900, "wires": [] }, { "id": "fbd3e57a.8cf3c8", "type": "ioBroker get", "z": "4524d790.7edb8", "name": "Startzeit h", "topic": "0_userdata.0.Bewässerung.vis.Startzeit_h", "attrname": "payload", "payloadType": "value", "x": 1040, "y": 980, "wires": [ [ "d80e42f7.54a0a8" ] ] }, { "id": "d3d4682e.04a438", "type": "ioBroker get", "z": "4524d790.7edb8", "name": "Startzeit m", "topic": "0_userdata.0.Bewässerung.vis.Startzeit_m", "attrname": "payload", "payloadType": "value", "x": 1050, "y": 1020, "wires": [ [ "590624f7.4905bc" ] ] }, { "id": "9048443a.d290c8", "type": "ioBroker get", "z": "4524d790.7edb8", "name": "Laufzeit", "topic": "0_userdata.0.Bewässerung.vis.Laufzeit", "attrname": "payload", "payloadType": "value", "x": 1040, "y": 1060, "wires": [ [ "37ff6b5e.5100b4" ] ] }, { "id": "d80e42f7.54a0a8", "type": "ioBroker out", "z": "4524d790.7edb8", "name": "Tomaten Startzeit", "topic": "0_userdata.0.Bewässerung.Tomaten_Startzeit", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1310, "y": 980, "wires": [] }, { "id": "590624f7.4905bc", "type": "ioBroker out", "z": "4524d790.7edb8", "name": "Tomaten Startzeit m", "topic": "0_userdata.0.Bewässerung.Tomaten_Startzeit_m", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1320, "y": 1020, "wires": [] }, { "id": "37ff6b5e.5100b4", "type": "ioBroker out", "z": "4524d790.7edb8", "name": "Tomaten Laufzeit", "topic": "0_userdata.0.Bewässerung.Tomaten_Laufzeit", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1310, "y": 1060, "wires": [] }, { "id": "e1c0ce04.dc943", "type": "delay", "z": "4524d790.7edb8", "name": "500ms", "pauseType": "delay", "timeout": "500", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "x": 90, "y": 640, "wires": [ [ "9dc503de.f151c8" ] ] }, { "id": "431d5592.997bfc", "type": "ioBroker out", "z": "4524d790.7edb8", "name": "Speichern", "topic": "0_userdata.0.Bewässerung.vis.Trigger", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 530, "y": 640, "wires": [] }, { "id": "9dc503de.f151c8", "type": "change", "z": "4524d790.7edb8", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "false", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 330, "y": 640, "wires": [ [ "431d5592.997bfc" ] ] }, { "id": "82dfdd05.4d8e1", "type": "change", "z": "4524d790.7edb8", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "days", "tot": "flow" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1070, "y": 1100, "wires": [ [ "5317be7b.ef4338", "d22a9254.04dc08" ] ] }, { "id": "e7dc8e38.b0003", "type": "ioBroker out", "z": "4524d790.7edb8", "name": "Tomaten Tage", "topic": "0_userdata.0.Bewässerung.Tomaten_Tage", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1980, "y": 1100, "wires": [] }, { "id": "4760a6ff.969fe8", "type": "split", "z": "4524d790.7edb8", "name": "", "splt": "\\n", "spltType": "str", "arraySplt": 1, "arraySpltType": "len", "stream": false, "addname": "", "x": 1430, "y": 1100, "wires": [ [ "29b86736.dbc0f8" ] ] }, { "id": "cb07faa.5e09e08", "type": "join", "z": "4524d790.7edb8", "name": "", "mode": "custom", "build": "string", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": ",", "joinerType": "str", "accumulate": false, "timeout": "", "count": "", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "", "reduceFixup": "", "x": 1790, "y": 1100, "wires": [ [ "e7dc8e38.b0003" ] ] }, { "id": "29b86736.dbc0f8", "type": "change", "z": "4524d790.7edb8", "name": "", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "true", "fromt": "bool", "to": "1", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "false", "fromt": "bool", "to": "0", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1610, "y": 1100, "wires": [ [ "cb07faa.5e09e08" ] ] }, { "id": "dd0d5311.5fd338", "type": "switch", "z": "4524d790.7edb8", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "true", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 230, "y": 540, "wires": [ [ "939eb60f.3fddd8" ] ] }, { "id": "59cd7ef3.1e074", "type": "change", "z": "4524d790.7edb8", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "days", "tot": "flow" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1070, "y": 940, "wires": [ [ "db94aeb0.49345" ] ] }, { "id": "5317be7b.ef4338", "type": "change", "z": "4524d790.7edb8", "name": "", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "0_userdata.0.Bewässerung.Tomaten_Tage", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1280, "y": 1100, "wires": [ [ "4760a6ff.969fe8", "d22a9254.04dc08" ] ] }, { "id": "73707462.c1cf2c", "type": "ioBroker out", "z": "4524d790.7edb8", "name": "Feigenbaum Tage", "topic": "0_userdata.0.Bewässerung.Feigenbaum_Tage", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1830, "y": 940, "wires": [] }, { "id": "db94aeb0.49345", "type": "split", "z": "4524d790.7edb8", "name": "", "splt": "\\n", "spltType": "str", "arraySplt": 1, "arraySpltType": "len", "stream": false, "addname": "", "x": 1270, "y": 940, "wires": [ [ "32f703ab.b2f2fc" ] ] }, { "id": "763e93da.627a34", "type": "join", "z": "4524d790.7edb8", "name": "", "mode": "custom", "build": "string", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": ",", "joinerType": "str", "accumulate": false, "timeout": "", "count": "", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "", "reduceFixup": "", "x": 1630, "y": 940, "wires": [ [ "73707462.c1cf2c" ] ] }, { "id": "32f703ab.b2f2fc", "type": "change", "z": "4524d790.7edb8", "name": "", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "true", "fromt": "bool", "to": "1", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "false", "fromt": "bool", "to": "0", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1450, "y": 940, "wires": [ [ "763e93da.627a34" ] ] }, { "id": "d22a9254.04dc08", "type": "debug", "z": "4524d790.7edb8", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 1500, "y": 1260, "wires": [] }, { "id": "3b3d0198.835f8e", "type": "debug", "z": "4524d790.7edb8", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 180, "y": 440, "wires": [] } ]
-
@hafo Nun wie gesagt an dem TimerFlow haben wir ja nichts gemacht - den lass ich mal aussen vor. Du hast ja nun 2 Debug Nodes an Deinen Speichern Flow gehängt. Kommt da was raus und was?
Du musst halt systematisch den Flow verfolgen.
-
@mickym Nein, da kommt nur was raus wenn ich auf speichern drücke.
-
-
@mickym genau, ich habe nach einer endlosschleife gesucht.
Aktuell funktioniert es wieder, die Objekte werden korrekt aktualisiert. Nun schaue ich das mit den Tagen nochmals an. -
@hafo Schleife gefunden! wenn ich das Debug Node an das Join Node hänge, dann kommt nach dem Speichern unendlich viel mal "false" raus
-
@hafo Na ok - das sind verschiedene paar Stiefel. Wenn aber in den Debug-Nodes was ankommt - wäre die nächste Frage ob die Strings in den entsprechenden Tomate_Tage etc geschrieben wird.
Ist dies der Fall, dann liegt es an Deinem Timer- Flow - aber das ist dann eine andere Baustelle - ich hab halt Deine Nodes nicht in meinem System installiert:
Deshalb kann ich hier die Logik nicht beurteilen.
Ich galube ich habe aber einen gravierenden Fehler entdeckt.
Ich galube nicht dass Dein ui_timer so einen String braucht.
{"timers":[{"starttime":{{payload.tomstart}},"days":[{{payload.tomtag}}],"output":"0","endtime":{{payload.tomend}}}],"settings":{"disabledDevices":[]}}
Das ist ein JSON String - ich denke aber eher, dass der ui_time Scheduler eine Objekt benötigt.
-
@mickym Ich habe gesehen dass man auch mit den Change Nodes mit jsonata Rechnen kann. Ich werde vielleicht das einmal testen.
Der Timer funktioniert wenn ich ihn auf diese Art füttere. Die Änderungen im Vis sehe ich nach dem Speichern im Node Red Dashboard. Ausser die Tage... -
@hafo sagte in String aufteilen:
@hafo Schleife gefunden! wenn ich das Debug Node an das Join Node hänge, dann kommt nach dem Speichern unendlich viel mal "false" raus
Dann unterbrich mal die Verbindung zu der out-Node und schau ob die Endlosschleife weiter bestehen bliebt.
Ja mit den Change Nodes kannst auch Rechnen. Wie gesagt es gibt nur noch wenige Situationen, wo ich eine Function Node brauche.
Als nächstes wäre zu prüfen, was aus den Split Nodes rauskommt. -
@mickym Ich muss da etwas verbockt haben
[ { "id": "82dfdd05.4d8e1", "type": "change", "z": "4524d790.7edb8", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "days", "tot": "flow" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1070, "y": 1100, "wires": [ [ "5317be7b.ef4338" ] ] }, { "id": "e7dc8e38.b0003", "type": "ioBroker out", "z": "4524d790.7edb8", "name": "Tomaten Tage", "topic": "0_userdata.0.Bewässerung.Tomaten_Tage", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1980, "y": 1100, "wires": [] }, { "id": "4760a6ff.969fe8", "type": "split", "z": "4524d790.7edb8", "name": "", "splt": "\\n", "spltType": "str", "arraySplt": 1, "arraySpltType": "len", "stream": false, "addname": "", "x": 1430, "y": 1100, "wires": [ [ "29b86736.dbc0f8" ] ] }, { "id": "cb07faa.5e09e08", "type": "join", "z": "4524d790.7edb8", "name": "", "mode": "custom", "build": "string", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": ",", "joinerType": "str", "accumulate": false, "timeout": "", "count": "", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "", "reduceFixup": "", "x": 1790, "y": 1100, "wires": [ [ "e7dc8e38.b0003", "d22a9254.04dc08" ] ] }, { "id": "29b86736.dbc0f8", "type": "change", "z": "4524d790.7edb8", "name": "", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "true", "fromt": "bool", "to": "1", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "false", "fromt": "bool", "to": "0", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1610, "y": 1100, "wires": [ [ "cb07faa.5e09e08" ] ] }, { "id": "5317be7b.ef4338", "type": "change", "z": "4524d790.7edb8", "name": "", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "0_userdata.0.Bewässerung.Tomaten_Tage", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1280, "y": 1100, "wires": [ [ "4760a6ff.969fe8" ] ] }, { "id": "d22a9254.04dc08", "type": "debug", "z": "4524d790.7edb8", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 1970, "y": 1180, "wires": [] } ]
Das Debug Nod läuft auch über wenn ich einen anderen Punkt speichere, da sollte dieser Strang doch gar nicht auslösen.
-
@mickym Ja, es läuft auch Rund ohne die out Node. Das hat keinen Einfluss.
Aus der Split Node kommt dasselbe raus "false" -
@hafo Unterbrich mal die Verbindung zur iobroker-Out Node und schau ob es dann aufhört. Wenn nicht dann triggert irgendwas anderes dauernd.