Created
June 23, 2020 07:49
-
-
Save pszafer/58d6df04a6d43d66820f76874e888e8d to your computer and use it in GitHub Desktop.
Water system
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
esphome: | |
name: podlewanie8 | |
platform: ESP32 | |
board: mhetesp32minikit | |
wifi: | |
ssid: !secret wifi_ap | |
password: !secret wifi_pass | |
domain: !secret domain | |
logger: | |
api: | |
ota: | |
dallas: | |
- pin: 27 | |
switch: | |
- platform: template | |
name: garaz | |
lambda: |- | |
if (id(in1garaz).state) { | |
return true; | |
} else { | |
return false; | |
} | |
turn_on_action: | |
- switch.turn_on: in1garaz | |
- delay: 30min | |
- switch.turn_off: in1garaz | |
turn_off_action: | |
- switch.turn_off: in1garaz | |
- platform: template | |
name: warzywniak | |
lambda: |- | |
if (id(in2warzywniak).state) { | |
return true; | |
} else { | |
return false; | |
} | |
turn_on_action: | |
- switch.turn_on: in2warzywniak | |
- delay: 30min | |
- switch.turn_off: in2warzywniak | |
turn_off_action: | |
- switch.turn_off: in2warzywniak | |
- platform: template | |
name: trawnik wiata1 | |
lambda: |- | |
if (id(in3trawnikwiata1).state) { | |
return true; | |
} else { | |
return false; | |
} | |
turn_on_action: | |
- switch.turn_on: in3trawnikwiata1 | |
- delay: 30min | |
- switch.turn_off: in3trawnikwiata1 | |
turn_off_action: | |
- switch.turn_off: in3trawnikwiata1 | |
- platform: template | |
name: trawnik wiata2 | |
lambda: |- | |
if (id(in4trawnikwiata2).state) { | |
return true; | |
} else { | |
return false; | |
} | |
turn_on_action: | |
- switch.turn_on: in4trawnikwiata2 | |
- delay: 30min | |
- switch.turn_off: in4trawnikwiata2 | |
turn_off_action: | |
- switch.turn_off: in4trawnikwiata2 | |
- platform: template | |
name: trawnik taras1 | |
lambda: |- | |
if (id(in5trawniktaras1).state) { | |
return true; | |
} else { | |
return false; | |
} | |
turn_on_action: | |
- switch.turn_on: in5trawniktaras1 | |
- delay: 30min | |
- switch.turn_off: in5trawniktaras1 | |
turn_off_action: | |
- switch.turn_off: in5trawniktaras1 | |
- platform: template | |
name: trawnik taras2 | |
lambda: |- | |
if (id(in6trawniktaras2).state) { | |
return true; | |
} else { | |
return false; | |
} | |
turn_on_action: | |
- switch.turn_on: in6trawniktaras2 | |
- delay: 30min | |
- switch.turn_off: in6trawniktaras2 | |
turn_off_action: | |
- switch.turn_off: in6trawniktaras2 | |
- platform: template | |
name: front1 | |
lambda: |- | |
if (id(in7front1).state) { | |
return true; | |
} else { | |
return false; | |
} | |
turn_on_action: | |
- switch.turn_on: in7front1 | |
- delay: 30min | |
- switch.turn_off: in7front1 | |
turn_off_action: | |
- switch.turn_off: in7front1 | |
- platform: template | |
name: front2 | |
lambda: |- | |
if (id(in8front2).state) { | |
return true; | |
} else { | |
return false; | |
} | |
turn_on_action: | |
- switch.turn_on: in8front2 | |
- delay: 30min | |
- switch.turn_off: in8front2 | |
turn_off_action: | |
- switch.turn_off: in8front2 | |
- platform: gpio | |
pin: | |
number: 21 | |
inverted: yes | |
id: in1garaz | |
restore_mode: ALWAYS_OFF | |
- platform: gpio | |
pin: | |
number: 33 | |
inverted: yes | |
id: in2warzywniak | |
restore_mode: ALWAYS_OFF | |
- platform: gpio | |
pin: | |
number: 22 | |
inverted: yes | |
id: in3trawnikwiata1 | |
restore_mode: ALWAYS_OFF | |
- platform: gpio | |
pin: | |
number: 26 | |
inverted: yes | |
id: in4trawnikwiata2 | |
restore_mode: ALWAYS_OFF | |
- platform: gpio | |
pin: | |
number: 18 | |
inverted: yes | |
id: in5trawniktaras1 | |
restore_mode: ALWAYS_OFF | |
- platform: gpio | |
pin: | |
number: 19 | |
inverted: yes | |
id: in6trawniktaras2 | |
restore_mode: ALWAYS_OFF | |
- platform: gpio | |
pin: | |
number: 5 | |
inverted: yes | |
name: front1 | |
id: in7front1 | |
restore_mode: ALWAYS_OFF | |
- platform: gpio | |
pin: | |
number: 23 | |
inverted: yes | |
id: in8front2 | |
restore_mode: ALWAYS_OFF | |
sensor: | |
- platform: wifi_signal | |
name: "Podlewanie WiFi Signal" | |
update_interval: 60s | |
- platform: uptime | |
name: "Podlewanie Uptime" | |
- platform: dallas | |
address: 0xC63C01A816ACC228 | |
name: "Garaz temperature" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "326a0b37.846944", | |
"type": "tab", | |
"label": "Podlewanie", | |
"disabled": false, | |
"info": "" | |
}, | |
{ | |
"id": "8d98c43b.c560f8", | |
"type": "api-call-service", | |
"z": "326a0b37.846944", | |
"name": "Podlewanie ON", | |
"server": "5cf29b98.da0b54", | |
"version": 1, | |
"debugenabled": false, | |
"service_domain": "switch", | |
"service": "turn_on", | |
"entityId": "", | |
"data": "{\"entity_id\":$.payload}", | |
"dataType": "jsonata", | |
"mergecontext": "", | |
"output_location": "", | |
"output_location_type": "none", | |
"mustacheAltTags": false, | |
"x": 557, | |
"y": 140, | |
"wires": [ | |
[ | |
"1fecabe3.eed714" | |
] | |
] | |
}, | |
{ | |
"id": "1fecabe3.eed714", | |
"type": "delay", | |
"z": "326a0b37.846944", | |
"name": "20 minut", | |
"pauseType": "delay", | |
"timeout": "20", | |
"timeoutUnits": "minutes", | |
"rate": "1", | |
"nbRateUnits": "1", | |
"rateUnits": "second", | |
"randomFirst": "1", | |
"randomLast": "5", | |
"randomUnits": "seconds", | |
"drop": false, | |
"x": 777, | |
"y": 140, | |
"wires": [ | |
[ | |
"a2faa2f4.11fe4" | |
] | |
] | |
}, | |
{ | |
"id": "a2faa2f4.11fe4", | |
"type": "api-call-service", | |
"z": "326a0b37.846944", | |
"name": "Podlewanie OFF", | |
"server": "5cf29b98.da0b54", | |
"version": 1, | |
"debugenabled": true, | |
"service_domain": "switch", | |
"service": "turn_off", | |
"entityId": "", | |
"data": "{\"entity_id\":$.payload}", | |
"dataType": "jsonata", | |
"mergecontext": "", | |
"output_location": "", | |
"output_location_type": "none", | |
"mustacheAltTags": false, | |
"x": 987, | |
"y": 140, | |
"wires": [ | |
[ | |
"ea0c812b.c699e" | |
] | |
] | |
}, | |
{ | |
"id": "570801dd.1dc09", | |
"type": "change", | |
"z": "326a0b37.846944", | |
"name": "FRONT 2", | |
"rules": [ | |
{ | |
"t": "set", | |
"p": "payload", | |
"pt": "msg", | |
"to": "switch.front2", | |
"tot": "str" | |
} | |
], | |
"action": "", | |
"property": "", | |
"from": "", | |
"to": "", | |
"reg": false, | |
"x": 340, | |
"y": 200, | |
"wires": [ | |
[ | |
"d61478f.dede888" | |
] | |
] | |
}, | |
{ | |
"id": "3d3f96e7.b6b3aa", | |
"type": "change", | |
"z": "326a0b37.846944", | |
"name": "FRONT 1", | |
"rules": [ | |
{ | |
"t": "set", | |
"p": "payload", | |
"pt": "msg", | |
"to": "switch.front1", | |
"tot": "str" | |
} | |
], | |
"action": "", | |
"property": "", | |
"from": "", | |
"to": "", | |
"reg": false, | |
"x": 340, | |
"y": 260, | |
"wires": [ | |
[ | |
"bd5aff0e.20132" | |
] | |
] | |
}, | |
{ | |
"id": "2106f540.9ce97a", | |
"type": "change", | |
"z": "326a0b37.846944", | |
"name": "TRAWNIK TARAS 1", | |
"rules": [ | |
{ | |
"t": "set", | |
"p": "payload", | |
"pt": "msg", | |
"to": "switch.trawnik_taras1", | |
"tot": "str" | |
} | |
], | |
"action": "", | |
"property": "", | |
"from": "", | |
"to": "", | |
"reg": false, | |
"x": 340, | |
"y": 320, | |
"wires": [ | |
[ | |
"a54e152.6f8ffe8" | |
] | |
] | |
}, | |
{ | |
"id": "418df27f.5ff1cc", | |
"type": "change", | |
"z": "326a0b37.846944", | |
"name": "TRAWNIK TARAS 2", | |
"rules": [ | |
{ | |
"t": "set", | |
"p": "payload", | |
"pt": "msg", | |
"to": "switch.trawnik_taras2", | |
"tot": "str" | |
} | |
], | |
"action": "", | |
"property": "", | |
"from": "", | |
"to": "", | |
"reg": false, | |
"x": 340, | |
"y": 380, | |
"wires": [ | |
[ | |
"a45dcd71.7d154" | |
] | |
] | |
}, | |
{ | |
"id": "f37a392c.eb55b8", | |
"type": "change", | |
"z": "326a0b37.846944", | |
"name": "TRAWNIK WIATA 1", | |
"rules": [ | |
{ | |
"t": "set", | |
"p": "payload", | |
"pt": "msg", | |
"to": "switch.trawnik_wiata1", | |
"tot": "str" | |
} | |
], | |
"action": "", | |
"property": "", | |
"from": "", | |
"to": "", | |
"reg": false, | |
"x": 330, | |
"y": 440, | |
"wires": [ | |
[ | |
"3901a1bf.33907e" | |
] | |
] | |
}, | |
{ | |
"id": "3e079969.0c6f06", | |
"type": "change", | |
"z": "326a0b37.846944", | |
"name": "TRAWNIK WIATA 2", | |
"rules": [ | |
{ | |
"t": "set", | |
"p": "payload", | |
"pt": "msg", | |
"to": "switch.trawnik_wiata2", | |
"tot": "str" | |
} | |
], | |
"action": "", | |
"property": "", | |
"from": "", | |
"to": "", | |
"reg": false, | |
"x": 330, | |
"y": 500, | |
"wires": [ | |
[ | |
"c42f76c4.9e07d8" | |
] | |
] | |
}, | |
{ | |
"id": "6eddf8a4.80da78", | |
"type": "change", | |
"z": "326a0b37.846944", | |
"name": "WARZYWNIAK", | |
"rules": [ | |
{ | |
"t": "set", | |
"p": "payload", | |
"pt": "msg", | |
"to": "switch.warzywniak", | |
"tot": "str" | |
} | |
], | |
"action": "", | |
"property": "", | |
"from": "", | |
"to": "", | |
"reg": false, | |
"x": 320, | |
"y": 560, | |
"wires": [ | |
[ | |
"f84aa4e2.f8b558" | |
] | |
] | |
}, | |
{ | |
"id": "5de9c8f7.645a18", | |
"type": "inject", | |
"z": "326a0b37.846944", | |
"name": "Start 5:15", | |
"topic": "", | |
"payload": "", | |
"payloadType": "date", | |
"repeat": "", | |
"crontab": "15 05 * * *", | |
"once": false, | |
"onceDelay": 0.1, | |
"x": 110, | |
"y": 40, | |
"wires": [ | |
[ | |
"f4477fa4.77f4b" | |
] | |
] | |
}, | |
{ | |
"id": "5aef1fd.7d7d1e", | |
"type": "change", | |
"z": "326a0b37.846944", | |
"name": "GARAZ", | |
"rules": [ | |
{ | |
"t": "set", | |
"p": "payload", | |
"pt": "msg", | |
"to": "switch.garaz", | |
"tot": "str" | |
} | |
], | |
"action": "", | |
"property": "", | |
"from": "", | |
"to": "", | |
"reg": false, | |
"x": 340, | |
"y": 140, | |
"wires": [ | |
[ | |
"8d98c43b.c560f8" | |
] | |
] | |
}, | |
{ | |
"id": "62996eac.7ea29", | |
"type": "api-call-service", | |
"z": "326a0b37.846944", | |
"name": "Notify TELEGRAM", | |
"server": "5cf29b98.da0b54", | |
"version": 1, | |
"debugenabled": false, | |
"service_domain": "notify", | |
"service": "telegram", | |
"entityId": "", | |
"data": "", | |
"dataType": "json", | |
"mergecontext": "", | |
"output_location": "payload", | |
"output_location_type": "msg", | |
"mustacheAltTags": false, | |
"x": 1070, | |
"y": 740, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "c6154af4.0082b8", | |
"type": "change", | |
"z": "326a0b37.846944", | |
"name": "SHOULD WATER?", | |
"rules": [ | |
{ | |
"t": "set", | |
"p": "payload", | |
"pt": "msg", | |
"to": "{\t \"data\":{\t \"title\":\"Water system\",\t \"message\":\"Tomorrow is going to rain \"& $.payload &\"mm/h. Do you want to turn on water anyway?\",\t \"data\":{\t \"inline_keyboard\": [\t \"Water:/water\",\t \"Don't water:/not_water\"\t \t ]\t }\t \t }\t\t}", | |
"tot": "jsonata" | |
} | |
], | |
"action": "", | |
"property": "", | |
"from": "", | |
"to": "", | |
"reg": false, | |
"x": 750, | |
"y": 740, | |
"wires": [ | |
[ | |
"62996eac.7ea29" | |
] | |
] | |
}, | |
{ | |
"id": "56f59345.d75fac", | |
"type": "inject", | |
"z": "326a0b37.846944", | |
"name": "Check water", | |
"topic": "", | |
"payload": "", | |
"payloadType": "date", | |
"repeat": "", | |
"crontab": "00 18 * * *", | |
"once": false, | |
"onceDelay": 0.1, | |
"x": 220, | |
"y": 740, | |
"wires": [ | |
[ | |
"a365bde0.67ded" | |
] | |
] | |
}, | |
{ | |
"id": "dce6fd83.b3f15", | |
"type": "server-events", | |
"z": "326a0b37.846944", | |
"name": "Notification clicked", | |
"server": "5cf29b98.da0b54", | |
"event_type": "telegram_callback", | |
"exposeToHomeAssistant": false, | |
"haConfig": [ | |
{ | |
"property": "name", | |
"value": "" | |
}, | |
{ | |
"property": "icon", | |
"value": "" | |
} | |
], | |
"x": 190, | |
"y": 880, | |
"wires": [ | |
[ | |
"7d5692aa.cde3ec" | |
] | |
] | |
}, | |
{ | |
"id": "7d5692aa.cde3ec", | |
"type": "change", | |
"z": "326a0b37.846944", | |
"name": "Move event data to action", | |
"rules": [ | |
{ | |
"t": "set", | |
"p": "payload.event.action", | |
"pt": "msg", | |
"to": "$substring(msg.payload.event.data, 1)", | |
"tot": "jsonata" | |
} | |
], | |
"action": "", | |
"property": "", | |
"from": "", | |
"to": "", | |
"reg": false, | |
"x": 430, | |
"y": 880, | |
"wires": [ | |
[ | |
"18432774.cdee09" | |
] | |
] | |
}, | |
{ | |
"id": "18432774.cdee09", | |
"type": "switch", | |
"z": "326a0b37.846944", | |
"name": "", | |
"property": "payload.event.action", | |
"propertyType": "msg", | |
"rules": [ | |
{ | |
"t": "eq", | |
"v": "water", | |
"vt": "str" | |
}, | |
{ | |
"t": "eq", | |
"v": "not_water", | |
"vt": "str" | |
} | |
], | |
"checkall": "true", | |
"repair": false, | |
"outputs": 2, | |
"x": 670, | |
"y": 920, | |
"wires": [ | |
[ | |
"81990757.6dc388" | |
], | |
[ | |
"f34a25c5.19e488" | |
] | |
] | |
}, | |
{ | |
"id": "a365bde0.67ded", | |
"type": "api-current-state", | |
"z": "326a0b37.846944", | |
"name": "Rain tomorrow", | |
"server": "5cf29b98.da0b54", | |
"version": 1, | |
"outputs": 2, | |
"halt_if": "0.1", | |
"halt_if_type": "num", | |
"halt_if_compare": "gt", | |
"override_topic": false, | |
"entity_id": "sensor.dark_sky_precip_intensity_1d", | |
"state_type": "num", | |
"state_location": "payload", | |
"override_payload": "msg", | |
"entity_location": "data", | |
"override_data": "msg", | |
"blockInputOverrides": false, | |
"x": 490, | |
"y": 740, | |
"wires": [ | |
[ | |
"c6154af4.0082b8" | |
], | |
[ | |
"c33a950d.4be678" | |
] | |
] | |
}, | |
{ | |
"id": "bee687af.e1c648", | |
"type": "api-call-service", | |
"z": "326a0b37.846944", | |
"name": "Turn on water", | |
"server": "5cf29b98.da0b54", | |
"version": 1, | |
"debugenabled": false, | |
"service_domain": "input_boolean", | |
"service": "turn_on", | |
"entityId": "input_boolean.podlewanie", | |
"data": "", | |
"dataType": "json", | |
"mergecontext": "", | |
"output_location": "", | |
"output_location_type": "none", | |
"mustacheAltTags": false, | |
"x": 570, | |
"y": 660, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "81990757.6dc388", | |
"type": "api-call-service", | |
"z": "326a0b37.846944", | |
"name": "Turn on water", | |
"server": "5cf29b98.da0b54", | |
"version": 1, | |
"debugenabled": false, | |
"service_domain": "input_boolean", | |
"service": "turn_on", | |
"entityId": "input_boolean.podlewanie", | |
"data": "", | |
"dataType": "json", | |
"mergecontext": "", | |
"output_location": "", | |
"output_location_type": "none", | |
"mustacheAltTags": false, | |
"x": 890, | |
"y": 880, | |
"wires": [ | |
[ | |
"6935f947.8a1a78", | |
"1e3015f9.c5790a" | |
] | |
] | |
}, | |
{ | |
"id": "f34a25c5.19e488", | |
"type": "api-call-service", | |
"z": "326a0b37.846944", | |
"name": "Turn off water", | |
"server": "5cf29b98.da0b54", | |
"version": 1, | |
"debugenabled": false, | |
"service_domain": "input_boolean", | |
"service": "turn_off", | |
"entityId": "input_boolean.podlewanie", | |
"data": "", | |
"dataType": "json", | |
"mergecontext": "", | |
"output_location": "", | |
"output_location_type": "none", | |
"mustacheAltTags": false, | |
"x": 890, | |
"y": 960, | |
"wires": [ | |
[ | |
"3cbf0bf4.6a1264", | |
"1e3015f9.c5790a" | |
] | |
] | |
}, | |
{ | |
"id": "6935f947.8a1a78", | |
"type": "change", | |
"z": "326a0b37.846944", | |
"name": "Confirm water", | |
"rules": [ | |
{ | |
"t": "set", | |
"p": "payload", | |
"pt": "msg", | |
"to": "{\t \"data\":{\t \"message\":\"OK, I'll turn on it tomorrow.\"\t }\t}", | |
"tot": "jsonata" | |
} | |
], | |
"action": "", | |
"property": "", | |
"from": "", | |
"to": "", | |
"reg": false, | |
"x": 1140, | |
"y": 880, | |
"wires": [ | |
[ | |
"5814c78c.e71848" | |
] | |
] | |
}, | |
{ | |
"id": "c2f1fc95.422ef", | |
"type": "api-call-service", | |
"z": "326a0b37.846944", | |
"name": "Del TELEGRAM buttons", | |
"server": "5cf29b98.da0b54", | |
"version": 1, | |
"debugenabled": false, | |
"service_domain": "telegram_bot", | |
"service": "edit_replymarkup", | |
"entityId": "", | |
"data": "", | |
"dataType": "json", | |
"mergecontext": "", | |
"output_location": "", | |
"output_location_type": "none", | |
"mustacheAltTags": false, | |
"x": 1430, | |
"y": 820, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "3cbf0bf4.6a1264", | |
"type": "change", | |
"z": "326a0b37.846944", | |
"name": "Turn off water", | |
"rules": [ | |
{ | |
"t": "set", | |
"p": "payload", | |
"pt": "msg", | |
"to": "{\t \"data\":{\t \"message\":\"Tomorrow no watering!\"\t }\t}", | |
"tot": "jsonata" | |
} | |
], | |
"action": "", | |
"property": "", | |
"from": "", | |
"to": "", | |
"reg": false, | |
"x": 1150, | |
"y": 960, | |
"wires": [ | |
[ | |
"5814c78c.e71848" | |
] | |
] | |
}, | |
{ | |
"id": "f4477fa4.77f4b", | |
"type": "api-current-state", | |
"z": "326a0b37.846944", | |
"name": "Do you want to water tomorrow?", | |
"server": "5cf29b98.da0b54", | |
"version": 1, | |
"outputs": 2, | |
"halt_if": "on", | |
"halt_if_type": "str", | |
"halt_if_compare": "is", | |
"override_topic": false, | |
"entity_id": "input_boolean.podlewanie", | |
"state_type": "str", | |
"state_location": "payload", | |
"override_payload": "msg", | |
"entity_location": "data", | |
"override_data": "msg", | |
"blockInputOverrides": false, | |
"x": 140, | |
"y": 140, | |
"wires": [ | |
[ | |
"5aef1fd.7d7d1e" | |
], | |
[] | |
] | |
}, | |
{ | |
"id": "302c66bc.53defa", | |
"type": "inject", | |
"z": "326a0b37.846944", | |
"name": "Reinitialize default values at 6am", | |
"topic": "", | |
"payload": "", | |
"payloadType": "date", | |
"repeat": "", | |
"crontab": "00 06 * * *", | |
"once": false, | |
"onceDelay": 0.1, | |
"x": 210, | |
"y": 660, | |
"wires": [ | |
[ | |
"bee687af.e1c648" | |
] | |
] | |
}, | |
{ | |
"id": "1e3015f9.c5790a", | |
"type": "change", | |
"z": "326a0b37.846944", | |
"name": "", | |
"rules": [ | |
{ | |
"t": "set", | |
"p": "payload", | |
"pt": "msg", | |
"to": "{\t \"data\": {\t \"message_id\": $.payload.event.message.message_id,\t \"chat_id\": \"-3333\",\t \"inline_keyboard\": []\t }\t}", | |
"tot": "jsonata" | |
} | |
], | |
"action": "", | |
"property": "", | |
"from": "", | |
"to": "", | |
"reg": false, | |
"x": 1160, | |
"y": 820, | |
"wires": [ | |
[ | |
"c2f1fc95.422ef" | |
] | |
] | |
}, | |
{ | |
"id": "5814c78c.e71848", | |
"type": "api-call-service", | |
"z": "326a0b37.846944", | |
"name": "Notify TELEGRAM", | |
"server": "5cf29b98.da0b54", | |
"version": 1, | |
"debugenabled": false, | |
"service_domain": "notify", | |
"service": "telegram", | |
"entityId": "", | |
"data": "", | |
"dataType": "json", | |
"mergecontext": "", | |
"output_location": "payload", | |
"output_location_type": "msg", | |
"mustacheAltTags": false, | |
"x": 1370, | |
"y": 920, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "4fdd8851.e01248", | |
"type": "link in", | |
"z": "326a0b37.846944", | |
"name": "", | |
"links": [ | |
"ea0c812b.c699e" | |
], | |
"x": 135, | |
"y": 200, | |
"wires": [ | |
[ | |
"570801dd.1dc09" | |
] | |
] | |
}, | |
{ | |
"id": "ea0c812b.c699e", | |
"type": "link out", | |
"z": "326a0b37.846944", | |
"name": "GARAZ", | |
"links": [ | |
"4fdd8851.e01248", | |
"7d97e215.f6012c" | |
], | |
"x": 1192, | |
"y": 140, | |
"wires": [] | |
}, | |
{ | |
"id": "d61478f.dede888", | |
"type": "api-call-service", | |
"z": "326a0b37.846944", | |
"name": "Water ON", | |
"server": "5cf29b98.da0b54", | |
"version": 1, | |
"debugenabled": false, | |
"service_domain": "switch", | |
"service": "turn_on", | |
"entityId": "", | |
"data": "{\"entity_id\":$.payload}", | |
"dataType": "jsonata", | |
"mergecontext": "", | |
"output_location": "", | |
"output_location_type": "none", | |
"mustacheAltTags": false, | |
"x": 560, | |
"y": 200, | |
"wires": [ | |
[ | |
"7f382c84.49b9e4" | |
] | |
] | |
}, | |
{ | |
"id": "7f382c84.49b9e4", | |
"type": "delay", | |
"z": "326a0b37.846944", | |
"name": "20 minut", | |
"pauseType": "delay", | |
"timeout": "20", | |
"timeoutUnits": "minutes", | |
"rate": "1", | |
"nbRateUnits": "1", | |
"rateUnits": "second", | |
"randomFirst": "1", | |
"randomLast": "5", | |
"randomUnits": "seconds", | |
"drop": false, | |
"x": 780, | |
"y": 200, | |
"wires": [ | |
[ | |
"1f8d7edc.88cc41" | |
] | |
] | |
}, | |
{ | |
"id": "1f8d7edc.88cc41", | |
"type": "api-call-service", | |
"z": "326a0b37.846944", | |
"name": "Podlewanie OFF", | |
"server": "5cf29b98.da0b54", | |
"version": 1, | |
"debugenabled": true, | |
"service_domain": "switch", | |
"service": "turn_off", | |
"entityId": "", | |
"data": "{\"entity_id\":$.payload}", | |
"dataType": "jsonata", | |
"mergecontext": "", | |
"output_location": "", | |
"output_location_type": "none", | |
"mustacheAltTags": false, | |
"x": 990, | |
"y": 200, | |
"wires": [ | |
[ | |
"df22d97f.505418" | |
] | |
] | |
}, | |
{ | |
"id": "df22d97f.505418", | |
"type": "link out", | |
"z": "326a0b37.846944", | |
"name": "FRONT2", | |
"links": [ | |
"94cf8357.992ad" | |
], | |
"x": 1195, | |
"y": 200, | |
"wires": [] | |
}, | |
{ | |
"id": "bd5aff0e.20132", | |
"type": "api-call-service", | |
"z": "326a0b37.846944", | |
"name": "Podlewanie ON", | |
"server": "5cf29b98.da0b54", | |
"version": 1, | |
"debugenabled": false, | |
"service_domain": "switch", | |
"service": "turn_on", | |
"entityId": "", | |
"data": "{\"entity_id\":$.payload}", | |
"dataType": "jsonata", | |
"mergecontext": "", | |
"output_location": "", | |
"output_location_type": "none", | |
"mustacheAltTags": false, | |
"x": 560, | |
"y": 260, | |
"wires": [ | |
[ | |
"92d66632.5fdb48" | |
] | |
] | |
}, | |
{ | |
"id": "92d66632.5fdb48", | |
"type": "delay", | |
"z": "326a0b37.846944", | |
"name": "10 minut", | |
"pauseType": "delay", | |
"timeout": "10", | |
"timeoutUnits": "minutes", | |
"rate": "1", | |
"nbRateUnits": "1", | |
"rateUnits": "second", | |
"randomFirst": "1", | |
"randomLast": "5", | |
"randomUnits": "seconds", | |
"drop": false, | |
"x": 780, | |
"y": 260, | |
"wires": [ | |
[ | |
"1fcb1a61.6f5e56" | |
] | |
] | |
}, | |
{ | |
"id": "1fcb1a61.6f5e56", | |
"type": "api-call-service", | |
"z": "326a0b37.846944", | |
"name": "Podlewanie OFF", | |
"server": "5cf29b98.da0b54", | |
"version": 1, | |
"debugenabled": true, | |
"service_domain": "switch", | |
"service": "turn_off", | |
"entityId": "", | |
"data": "{\"entity_id\":$.payload}", | |
"dataType": "jsonata", | |
"mergecontext": "", | |
"output_location": "", | |
"output_location_type": "none", | |
"mustacheAltTags": false, | |
"x": 990, | |
"y": 260, | |
"wires": [ | |
[ | |
"75d723f2.1e5b2c" | |
] | |
] | |
}, | |
{ | |
"id": "75d723f2.1e5b2c", | |
"type": "link out", | |
"z": "326a0b37.846944", | |
"name": "FRONT1", | |
"links": [ | |
"22a04215.9db1ee" | |
], | |
"x": 1195, | |
"y": 260, | |
"wires": [] | |
}, | |
{ | |
"id": "a54e152.6f8ffe8", | |
"type": "api-call-service", | |
"z": "326a0b37.846944", | |
"name": "Podlewanie ON", | |
"server": "5cf29b98.da0b54", | |
"version": 1, | |
"debugenabled": false, | |
"service_domain": "switch", | |
"service": "turn_on", | |
"entityId": "", | |
"data": "{\"entity_id\":$.payload}", | |
"dataType": "jsonata", | |
"mergecontext": "", | |
"output_location": "", | |
"output_location_type": "none", | |
"mustacheAltTags": false, | |
"x": 560, | |
"y": 320, | |
"wires": [ | |
[ | |
"98a3cc5a.980d2" | |
] | |
] | |
}, | |
{ | |
"id": "67a322eb.6ed60c", | |
"type": "api-call-service", | |
"z": "326a0b37.846944", | |
"name": "Podlewanie OFF", | |
"server": "5cf29b98.da0b54", | |
"version": 1, | |
"debugenabled": true, | |
"service_domain": "switch", | |
"service": "turn_off", | |
"entityId": "", | |
"data": "{\"entity_id\":$.payload}", | |
"dataType": "jsonata", | |
"mergecontext": "", | |
"output_location": "", | |
"output_location_type": "none", | |
"mustacheAltTags": false, | |
"x": 990, | |
"y": 320, | |
"wires": [ | |
[ | |
"694db42d.7b704c" | |
] | |
] | |
}, | |
{ | |
"id": "694db42d.7b704c", | |
"type": "link out", | |
"z": "326a0b37.846944", | |
"name": "TARAS1", | |
"links": [ | |
"3638a5a7.e2c6fa" | |
], | |
"x": 1195, | |
"y": 320, | |
"wires": [] | |
}, | |
{ | |
"id": "a45dcd71.7d154", | |
"type": "api-call-service", | |
"z": "326a0b37.846944", | |
"name": "Podlewanie ON", | |
"server": "5cf29b98.da0b54", | |
"version": 1, | |
"debugenabled": false, | |
"service_domain": "switch", | |
"service": "turn_on", | |
"entityId": "", | |
"data": "{\"entity_id\":$.payload}", | |
"dataType": "jsonata", | |
"mergecontext": "", | |
"output_location": "", | |
"output_location_type": "none", | |
"mustacheAltTags": false, | |
"x": 560, | |
"y": 380, | |
"wires": [ | |
[ | |
"6ead9022.68f5" | |
] | |
] | |
}, | |
{ | |
"id": "948a8f9a.1bc19", | |
"type": "api-call-service", | |
"z": "326a0b37.846944", | |
"name": "Podlewanie OFF", | |
"server": "5cf29b98.da0b54", | |
"version": 1, | |
"debugenabled": true, | |
"service_domain": "switch", | |
"service": "turn_off", | |
"entityId": "", | |
"data": "{\"entity_id\":$.payload}", | |
"dataType": "jsonata", | |
"mergecontext": "", | |
"output_location": "", | |
"output_location_type": "none", | |
"mustacheAltTags": false, | |
"x": 990, | |
"y": 380, | |
"wires": [ | |
[ | |
"72bd1434.ff112c" | |
] | |
] | |
}, | |
{ | |
"id": "72bd1434.ff112c", | |
"type": "link out", | |
"z": "326a0b37.846944", | |
"name": "TARAS2", | |
"links": [ | |
"96051305.a5f8d" | |
], | |
"x": 1195, | |
"y": 380, | |
"wires": [] | |
}, | |
{ | |
"id": "3901a1bf.33907e", | |
"type": "api-call-service", | |
"z": "326a0b37.846944", | |
"name": "Podlewanie ON", | |
"server": "5cf29b98.da0b54", | |
"version": 1, | |
"debugenabled": false, | |
"service_domain": "switch", | |
"service": "turn_on", | |
"entityId": "", | |
"data": "{\"entity_id\":$.payload}", | |
"dataType": "jsonata", | |
"mergecontext": "", | |
"output_location": "", | |
"output_location_type": "none", | |
"mustacheAltTags": false, | |
"x": 560, | |
"y": 440, | |
"wires": [ | |
[ | |
"379cc583.ee28fa" | |
] | |
] | |
}, | |
{ | |
"id": "af293565.4ae408", | |
"type": "api-call-service", | |
"z": "326a0b37.846944", | |
"name": "Podlewanie OFF", | |
"server": "5cf29b98.da0b54", | |
"version": 1, | |
"debugenabled": true, | |
"service_domain": "switch", | |
"service": "turn_off", | |
"entityId": "", | |
"data": "{\"entity_id\":$.payload}", | |
"dataType": "jsonata", | |
"mergecontext": "", | |
"output_location": "", | |
"output_location_type": "none", | |
"mustacheAltTags": false, | |
"x": 990, | |
"y": 440, | |
"wires": [ | |
[ | |
"9370b05.8e9745" | |
] | |
] | |
}, | |
{ | |
"id": "9370b05.8e9745", | |
"type": "link out", | |
"z": "326a0b37.846944", | |
"name": "WIATA1", | |
"links": [ | |
"b74ec2c8.c8fec" | |
], | |
"x": 1195, | |
"y": 440, | |
"wires": [] | |
}, | |
{ | |
"id": "c42f76c4.9e07d8", | |
"type": "api-call-service", | |
"z": "326a0b37.846944", | |
"name": "Podlewanie ON", | |
"server": "5cf29b98.da0b54", | |
"version": 1, | |
"debugenabled": false, | |
"service_domain": "switch", | |
"service": "turn_on", | |
"entityId": "", | |
"data": "{\"entity_id\":$.payload}", | |
"dataType": "jsonata", | |
"mergecontext": "", | |
"output_location": "", | |
"output_location_type": "none", | |
"mustacheAltTags": false, | |
"x": 560, | |
"y": 500, | |
"wires": [ | |
[ | |
"b9535fc1.0afa8" | |
] | |
] | |
}, | |
{ | |
"id": "90582768.a053a8", | |
"type": "api-call-service", | |
"z": "326a0b37.846944", | |
"name": "Podlewanie OFF", | |
"server": "5cf29b98.da0b54", | |
"version": 1, | |
"debugenabled": true, | |
"service_domain": "switch", | |
"service": "turn_off", | |
"entityId": "", | |
"data": "{\"entity_id\":$.payload}", | |
"dataType": "jsonata", | |
"mergecontext": "", | |
"output_location": "", | |
"output_location_type": "none", | |
"mustacheAltTags": false, | |
"x": 990, | |
"y": 500, | |
"wires": [ | |
[ | |
"4d54167b.78eac8" | |
] | |
] | |
}, | |
{ | |
"id": "4d54167b.78eac8", | |
"type": "link out", | |
"z": "326a0b37.846944", | |
"name": "WIATA2", | |
"links": [ | |
"ff01cab1.770338" | |
], | |
"x": 1195, | |
"y": 500, | |
"wires": [] | |
}, | |
{ | |
"id": "f84aa4e2.f8b558", | |
"type": "api-call-service", | |
"z": "326a0b37.846944", | |
"name": "Podlewanie ON", | |
"server": "5cf29b98.da0b54", | |
"version": 1, | |
"debugenabled": false, | |
"service_domain": "switch", | |
"service": "turn_on", | |
"entityId": "", | |
"data": "{\"entity_id\":$.payload}", | |
"dataType": "jsonata", | |
"mergecontext": "", | |
"output_location": "", | |
"output_location_type": "none", | |
"mustacheAltTags": false, | |
"x": 560, | |
"y": 560, | |
"wires": [ | |
[ | |
"b51ef077.ed3c" | |
] | |
] | |
}, | |
{ | |
"id": "e6077f83.36872", | |
"type": "api-call-service", | |
"z": "326a0b37.846944", | |
"name": "Podlewanie OFF", | |
"server": "5cf29b98.da0b54", | |
"version": 1, | |
"debugenabled": true, | |
"service_domain": "switch", | |
"service": "turn_off", | |
"entityId": "", | |
"data": "{\"entity_id\":$.payload}", | |
"dataType": "jsonata", | |
"mergecontext": "", | |
"output_location": "", | |
"output_location_type": "none", | |
"mustacheAltTags": false, | |
"x": 990, | |
"y": 560, | |
"wires": [ | |
[ | |
"5db4a0c9.82e4" | |
] | |
] | |
}, | |
{ | |
"id": "5db4a0c9.82e4", | |
"type": "link out", | |
"z": "326a0b37.846944", | |
"name": "WARZYWNIAK", | |
"links": [], | |
"x": 1195, | |
"y": 560, | |
"wires": [] | |
}, | |
{ | |
"id": "94cf8357.992ad", | |
"type": "link in", | |
"z": "326a0b37.846944", | |
"name": "", | |
"links": [ | |
"df22d97f.505418" | |
], | |
"x": 135, | |
"y": 260, | |
"wires": [ | |
[ | |
"3d3f96e7.b6b3aa" | |
] | |
] | |
}, | |
{ | |
"id": "22a04215.9db1ee", | |
"type": "link in", | |
"z": "326a0b37.846944", | |
"name": "", | |
"links": [ | |
"75d723f2.1e5b2c" | |
], | |
"x": 135, | |
"y": 320, | |
"wires": [ | |
[ | |
"2106f540.9ce97a" | |
] | |
] | |
}, | |
{ | |
"id": "3638a5a7.e2c6fa", | |
"type": "link in", | |
"z": "326a0b37.846944", | |
"name": "", | |
"links": [ | |
"694db42d.7b704c" | |
], | |
"x": 135, | |
"y": 380, | |
"wires": [ | |
[ | |
"418df27f.5ff1cc" | |
] | |
] | |
}, | |
{ | |
"id": "96051305.a5f8d", | |
"type": "link in", | |
"z": "326a0b37.846944", | |
"name": "", | |
"links": [ | |
"72bd1434.ff112c" | |
], | |
"x": 135, | |
"y": 440, | |
"wires": [ | |
[ | |
"f37a392c.eb55b8" | |
] | |
] | |
}, | |
{ | |
"id": "98a3cc5a.980d2", | |
"type": "delay", | |
"z": "326a0b37.846944", | |
"name": "10 minut", | |
"pauseType": "delay", | |
"timeout": "10", | |
"timeoutUnits": "minutes", | |
"rate": "1", | |
"nbRateUnits": "1", | |
"rateUnits": "second", | |
"randomFirst": "1", | |
"randomLast": "5", | |
"randomUnits": "seconds", | |
"drop": false, | |
"x": 780, | |
"y": 320, | |
"wires": [ | |
[ | |
"67a322eb.6ed60c" | |
] | |
] | |
}, | |
{ | |
"id": "6ead9022.68f5", | |
"type": "delay", | |
"z": "326a0b37.846944", | |
"name": "10 minut", | |
"pauseType": "delay", | |
"timeout": "10", | |
"timeoutUnits": "minutes", | |
"rate": "1", | |
"nbRateUnits": "1", | |
"rateUnits": "second", | |
"randomFirst": "1", | |
"randomLast": "5", | |
"randomUnits": "seconds", | |
"drop": false, | |
"x": 780, | |
"y": 380, | |
"wires": [ | |
[ | |
"948a8f9a.1bc19" | |
] | |
] | |
}, | |
{ | |
"id": "379cc583.ee28fa", | |
"type": "delay", | |
"z": "326a0b37.846944", | |
"name": "10 minut", | |
"pauseType": "delay", | |
"timeout": "10", | |
"timeoutUnits": "minutes", | |
"rate": "1", | |
"nbRateUnits": "1", | |
"rateUnits": "second", | |
"randomFirst": "1", | |
"randomLast": "5", | |
"randomUnits": "seconds", | |
"drop": false, | |
"x": 780, | |
"y": 440, | |
"wires": [ | |
[ | |
"af293565.4ae408" | |
] | |
] | |
}, | |
{ | |
"id": "b9535fc1.0afa8", | |
"type": "delay", | |
"z": "326a0b37.846944", | |
"name": "10 minut", | |
"pauseType": "delay", | |
"timeout": "10", | |
"timeoutUnits": "minutes", | |
"rate": "1", | |
"nbRateUnits": "1", | |
"rateUnits": "second", | |
"randomFirst": "1", | |
"randomLast": "5", | |
"randomUnits": "seconds", | |
"drop": false, | |
"x": 780, | |
"y": 500, | |
"wires": [ | |
[ | |
"90582768.a053a8" | |
] | |
] | |
}, | |
{ | |
"id": "b51ef077.ed3c", | |
"type": "delay", | |
"z": "326a0b37.846944", | |
"name": "10 minut", | |
"pauseType": "delay", | |
"timeout": "10", | |
"timeoutUnits": "minutes", | |
"rate": "1", | |
"nbRateUnits": "1", | |
"rateUnits": "second", | |
"randomFirst": "1", | |
"randomLast": "5", | |
"randomUnits": "seconds", | |
"drop": false, | |
"x": 780, | |
"y": 560, | |
"wires": [ | |
[ | |
"e6077f83.36872" | |
] | |
] | |
}, | |
{ | |
"id": "b74ec2c8.c8fec", | |
"type": "link in", | |
"z": "326a0b37.846944", | |
"name": "", | |
"links": [ | |
"9370b05.8e9745" | |
], | |
"x": 135, | |
"y": 500, | |
"wires": [ | |
[ | |
"3e079969.0c6f06" | |
] | |
] | |
}, | |
{ | |
"id": "ff01cab1.770338", | |
"type": "link in", | |
"z": "326a0b37.846944", | |
"name": "", | |
"links": [ | |
"4d54167b.78eac8" | |
], | |
"x": 135, | |
"y": 560, | |
"wires": [ | |
[ | |
"6eddf8a4.80da78" | |
] | |
] | |
}, | |
{ | |
"id": "c33a950d.4be678", | |
"type": "change", | |
"z": "326a0b37.846944", | |
"name": "PODLEWANIE INFO", | |
"rules": [ | |
{ | |
"t": "set", | |
"p": "payload", | |
"pt": "msg", | |
"to": "{\t \"data\":{\t \"title\":\"Podlewanie\",\t \"message\":\"Jutro nie będzie padać. Będę podlewał!\"\t \t }\t\t}", | |
"tot": "jsonata" | |
} | |
], | |
"action": "", | |
"property": "", | |
"from": "", | |
"to": "", | |
"reg": false, | |
"x": 760, | |
"y": 800, | |
"wires": [ | |
[ | |
"62996eac.7ea29" | |
] | |
] | |
}, | |
{ | |
"id": "5cf29b98.da0b54", | |
"type": "server", | |
"z": "", | |
"name": "Home Assistant", | |
"legacy": false, | |
"rejectUnauthorizedCerts": true, | |
"ha_boolean": "y|yes|true|on|home|open", | |
"connectionDelay": true | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment