[
{
"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": 160,
"y": 240,
"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": 540,
"y": 240,
"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": 350,
"y": 240,
"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": 100,
"y": 40,
"wires": [
[
"a9f1efd2.7ba",
"bd4c9090.779998"
]
]
},
{
"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": 770,
"y": 40,
"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": 500,
"y": 80,
"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": 310,
"y": 80,
"wires": [
[
"edbdcaab.6c3bf8"
]
]
},
{
"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": 770,
"y": 80,
"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": 90,
"y": 120,
"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": 760,
"y": 120,
"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": 100,
"y": 80,
"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": 1030,
"y": 80,
"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": 1230,
"y": 80,
"wires": [
[
"f1325bf4.4ed0f"
]
]
},
{
"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
}
]