Advertisement
johannwilken

Irrigation: Cycle Flow

Aug 8th, 2022 (edited)
820
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 15.75 KB | None | 0 0
  1. [{"id":"ef2b556a929a2cbc","type":"server-state-changed","z":"97a0da3560c6776a","name":"Irrigation Back On","server":"b560df0.404d82","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"switch.irrigation_back","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":90,"y":100,"wires":[["75f09688647eadaa","4b7577da2f4f4873"],[]]},{"id":"75f09688647eadaa","type":"api-current-state","z":"97a0da3560c6776a","name":"Irrigation Back Timer","server":"b560df0.404d82","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_number.irrigation_back_timer","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":340,"y":100,"wires":[["6414a2020785ab90"]]},{"id":"6414a2020785ab90","type":"function","z":"97a0da3560c6776a","name":"","func":"msg.payload = Number(msg.payload);\n\nmsg.payload = 60000*msg.payload;\n\nmsg.delay = msg.payload\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":560,"y":300,"wires":[["b4cf9b7386e9b589"]]},{"id":"b4cf9b7386e9b589","type":"delay","z":"97a0da3560c6776a","name":"Delay","pauseType":"delayv","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":730,"y":300,"wires":[["bc01a4bf1542afec","4dfa4e69e6ea6aa0","f1e182d8b0526cc6","bb5c4eb44454b946"]]},{"id":"0152455144c7feaa","type":"api-call-service","z":"97a0da3560c6776a","name":"Turn Irrigation Back Off","server":"b560df0.404d82","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":[],"entityId":["switch.irrigation_back"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1210,"y":100,"wires":[[]]},{"id":"bc01a4bf1542afec","type":"api-current-state","z":"97a0da3560c6776a","name":"If Irrigation Back Is On","server":"b560df0.404d82","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"switch.irrigation_back","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":940,"y":100,"wires":[["0152455144c7feaa","d2654547d6328c66"],[]]},{"id":"4b7577da2f4f4873","type":"api-call-service","z":"97a0da3560c6776a","name":"Notify JW","server":"b560df0.404d82","version":5,"debugenabled":false,"domain":"notify","service":"mobile_app_jw_s21","areaId":[],"deviceId":[],"entityId":[],"data":"{\"message\":\"Back On\",\"title\":\"Irrigation\"}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":260,"y":160,"wires":[[]]},{"id":"d2654547d6328c66","type":"api-call-service","z":"97a0da3560c6776a","name":"Notify JW","server":"b560df0.404d82","version":5,"debugenabled":false,"domain":"notify","service":"mobile_app_jw_s21","areaId":[],"deviceId":[],"entityId":[],"data":"{\"message\":\"Back Off\",\"title\":\"Irrigation\"}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1120,"y":160,"wires":[[]]},{"id":"23eef7b9fdedb33b","type":"server-state-changed","z":"97a0da3560c6776a","name":"Irrigation Braai On","server":"b560df0.404d82","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"switch.irrigation_braai","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":90,"y":240,"wires":[["4cfb76c5ba164d7b","c749893f0773db82"],[]]},{"id":"4cfb76c5ba164d7b","type":"api-current-state","z":"97a0da3560c6776a","name":"Irrigation Back Timer","server":"b560df0.404d82","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_number.irrigation_braai_timer","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":340,"y":240,"wires":[["6414a2020785ab90"]]},{"id":"c749893f0773db82","type":"api-call-service","z":"97a0da3560c6776a","name":"Notify JW","server":"b560df0.404d82","version":5,"debugenabled":false,"domain":"notify","service":"mobile_app_jw_s21","areaId":[],"deviceId":[],"entityId":[],"data":"{\"message\":\"Braai On\",\"title\":\"Irrigation\"}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":260,"y":300,"wires":[[]]},{"id":"9f0e3e259acaf857","type":"api-call-service","z":"97a0da3560c6776a","name":"Turn Irrigation Braai Off","server":"b560df0.404d82","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":[],"entityId":["switch.irrigation_braai"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1210,"y":240,"wires":[[]]},{"id":"4dfa4e69e6ea6aa0","type":"api-current-state","z":"97a0da3560c6776a","name":"If Irrigation Braai Is On","server":"b560df0.404d82","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"switch.irrigation_braai","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":940,"y":240,"wires":[["9f0e3e259acaf857","e24f9948d6baa90d"],[]]},{"id":"e24f9948d6baa90d","type":"api-call-service","z":"97a0da3560c6776a","name":"Notify JW","server":"b560df0.404d82","version":5,"debugenabled":false,"domain":"notify","service":"mobile_app_jw_s21","areaId":[],"deviceId":[],"entityId":[],"data":"{\"message\":\"Back Off\",\"title\":\"Irrigation\"}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1120,"y":300,"wires":[[]]},{"id":"66ac36549e8728d2","type":"server-state-changed","z":"97a0da3560c6776a","name":"Irrigation Wall On","server":"b560df0.404d82","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"switch.irrigation_wall","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":80,"y":380,"wires":[["3ad5fa20779e9cd8","9c11a8d31a6dc55a"],[]]},{"id":"3ad5fa20779e9cd8","type":"api-current-state","z":"97a0da3560c6776a","name":"Irrigation Wall Timer","server":"b560df0.404d82","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_number.irrigation_wall_timer","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":340,"y":380,"wires":[["6414a2020785ab90"]]},{"id":"9c11a8d31a6dc55a","type":"api-call-service","z":"97a0da3560c6776a","name":"Notify JW","server":"b560df0.404d82","version":5,"debugenabled":false,"domain":"notify","service":"mobile_app_jw_s21","areaId":[],"deviceId":[],"entityId":[],"data":"{\"message\":\"Wall On\",\"title\":\"Irrigation\"}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":260,"y":440,"wires":[[]]},{"id":"5bd45fc264666471","type":"api-call-service","z":"97a0da3560c6776a","name":"Turn Irrigation Wall Off","server":"b560df0.404d82","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":[],"entityId":["switch.irrigation_wall"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1200,"y":380,"wires":[[]]},{"id":"f1e182d8b0526cc6","type":"api-current-state","z":"97a0da3560c6776a","name":"If Irrigation Wall Is On","server":"b560df0.404d82","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"switch.irrigation_wall","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":940,"y":380,"wires":[["5bd45fc264666471","e6343303a3f49208"],[]]},{"id":"e6343303a3f49208","type":"api-call-service","z":"97a0da3560c6776a","name":"Notify JW","server":"b560df0.404d82","version":5,"debugenabled":false,"domain":"notify","service":"mobile_app_jw_s21","areaId":[],"deviceId":[],"entityId":[],"data":"{\"message\":\"Wall Off\",\"title\":\"Irrigation\"}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1120,"y":440,"wires":[[]]},{"id":"19be72888be682b9","type":"server-state-changed","z":"97a0da3560c6776a","name":"Irrigation Front On","server":"b560df0.404d82","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"switch.irrigation_front","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":90,"y":520,"wires":[["347b9d17fa84ace2","daf5ede1fee83ca8"],[]]},{"id":"347b9d17fa84ace2","type":"api-current-state","z":"97a0da3560c6776a","name":"Irrigation Front Timer","server":"b560df0.404d82","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_number.irrigation_front_timer","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":340,"y":520,"wires":[["6414a2020785ab90"]]},{"id":"daf5ede1fee83ca8","type":"api-call-service","z":"97a0da3560c6776a","name":"Notify JW","server":"b560df0.404d82","version":5,"debugenabled":false,"domain":"notify","service":"mobile_app_jw_s21","areaId":[],"deviceId":[],"entityId":[],"data":"{\"message\":\"Front On\",\"title\":\"Irrigation\"}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":260,"y":580,"wires":[[]]},{"id":"c5aa8b752cea0e32","type":"api-call-service","z":"97a0da3560c6776a","name":"Turn Irrigation Front Off","server":"b560df0.404d82","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":[],"entityId":["switch.irrigation_front"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1210,"y":520,"wires":[[]]},{"id":"bb5c4eb44454b946","type":"api-current-state","z":"97a0da3560c6776a","name":"If Irrigation Front Is On","server":"b560df0.404d82","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"switch.irrigation_front","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":940,"y":520,"wires":[["c5aa8b752cea0e32","b5aeab2ca14c26a9"],[]]},{"id":"b5aeab2ca14c26a9","type":"api-call-service","z":"97a0da3560c6776a","name":"Notify JW","server":"b560df0.404d82","version":5,"debugenabled":false,"domain":"notify","service":"mobile_app_jw_s21","areaId":[],"deviceId":[],"entityId":[],"data":"{\"message\":\"Front Off\",\"title\":\"Irrigation\"}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1120,"y":580,"wires":[[]]},{"id":"496fd76ed4736d5f","type":"comment","z":"97a0da3560c6776a","name":"Irrigation Cycle","info":"","x":80,"y":40,"wires":[]},{"id":"b560df0.404d82","type":"server","name":"Home Assistant","version":4,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30,"areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m"}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement