Sprinkler Irrigation by Volume, Rain and Soil Moisture (Tuya GiEX Zigbee) Home Assistant Dashboard

Feature Overview:

V1.0 Initial

  • Water only if below a measured Median Soil Moisture Level.
  • Set Garden Area for Water Volume Calculations.
  • Set Weekly mm of water per square meter of Garden Area.
  • Dynamically change charts based on settings.
  • Automatically Set irrigation valve Volume Required.
  • Calculate Total Rain Volume and mm over a 7 day period.
  • Calculate Water volume required minus Rain Fall Volume.
  • Water only on Set Days of the Week.
  • Divide Total Weekly Water Required over set days.
  • Calculate Water Consumed Monthly & Annual

V1.1 Update

  • New Picker for Garden Settings.
  • Volume Required is Divided over two watering session per day
  • Volume Required is further Divided into 7 sessions per week.
  • Times can now be set from the UI with a time picker.

V1.2 Update

  • New number picker for Area & Weekly Water.
  • Custom Expander Card used to hide stats and enable easier viewing of multiple beds.
  • Improvement for mobile and tablet viewing, uses Sections View (experimental).

V1.3 Update

  • Utilises Expander Card to make more room on a single dashboard.
  • New number picker for Number of Cycles and Set Cycle Interval.
  • Adjustment to Water Consumed Daily Statistics Sensor Reduced to 1 Day.
  • Rain Delay 24hrs if more than 10mm forecast next day, Will deliver residual volume after rain.
  • Updated Node Red Flow
  • Prevent Run-Off Water
    • Deliver Volume Required over multiple Cycles with Cycle Interval Delay in-between.
  • Sensor Set Valve Cycle Helper,
    • Work around for valve cycle behavior.
    • Valve: 0 = No Cycles, 1 = 2 Cycles, 2 = 2 Cycles, 3 = 3 Cycles.
    • Sensor Set Valve Cycle Helper: 1 = 0 No Cycles, 2 = 2 Cycles, 3 = 3 Cycles.
    • For the Volume Per Cycle Sensor to work, this cannot be divided by 0 giving a Div0 error.
  • Volume Per Cycle Sensor Added
    • This now sends the volume to the valve.
    • = ((((VOLUME REQUIRED) / DAYS PER WEEK)) / TIMES PER DAY)) / SET NUMBER CYCLES)
  • Water Volume Required Sensor
    • This is used to populate the Volume Per Cycle Sensor - No longer sends to valve.
    • = (WEEK TARGET VOLUME - RAIN VOLUME 7 DAYS)

V1.4 Update

  • Valve Volume Per Cycle changed for Big Number Card
  • Minor update to Daily Monthly Rain Graph (Fix X Axis)
  • Rain Delay 24hrs - Wait until Tomorrows Rain Chance Less Than 20%.
    • Will continue to account for any rain in the 24hr wait period, then deliver residual amount once below 20%
    • Use BOM Australia Sensor chance of rain, can be exchanged for a mm of rain forecast sensor.

Requirements -

NODES PACKAGE DOWNLOAD REQUIRED

image

image

image

Most of the sprinkler & irrigation integrations I could find, only provided time based watering rather than volume based watering, with no moisture meter. I also could find very little information on ideal soil moisture levels and volumes required. Most likely because the technology has not been there for that style of watering.

The resource this is based on. Tesselaar Best Way To Water Your Garden was one of the few resources I found for Australia. I use a garden weeper hose for irrigation. Over watering during winter is a problem, with the high rainfall we get in Tasmania.

Also based on Accurite Soil Moisture Guide

WHY IS IT BEST TO WATER THE SOIL AROUND THE ROOTS?

The roots are where the plants access the water and utilise it for growth and function. Watering the foliage can encourage fungal disease, especially in spring and autumn as the foliage stays wet during the cool of the evening. In hot weather, if you water the foliage in the heat of the day, and the total dissolved salts is high, it can burn the foliage.

  1. Deep, regular watering every week to ten days provides consistent moisture to enable the plant roots to grow at a healthy rate and create a strong, disease resistant plant.

  2. Watering too much too often – the roots are not proliferating because there is not enough air in the soil to thrive.

  3. Shallow, frequent watering encourages the roots to grow at the top of the soil where they are easily damaged and unable to access the stores lower in the soil profile, so less likely to survive dry conditions.

You should aim to apply around 24L per square metre every seven to ten days to keep your plants happy and healthy. Plants absorb water from the root zone which is usually 15-20cm below the soil, so aim to wet this deeply when you water.

This 24L is roughly equal to 24mm of rain. So when you hear the meteorologist tell you there has been 1-2mm of rain for the week, you still need to water, especially if the weather has been warm. The soil might look wet, but if you dig down you will see the rain has just touched the surface. However as the rain has touched the surface, it is a good idea to water, as it will help push the water down into the soil profile.

If the weather has been hot and dry for many weeks, or the soil has dried out, you may need to increase the amount and frequency you are watering in order to re-wet the soil. Re-wetting the soil ultimately uses more water than maintaining a constant watering program.

Zigbee Soil Moisture Meter I bought 3 of these for each garden bed, to ascertain a median soil moisture. Connected with Zigbee2MQTT. Good signal from outside, I only have 1 coordinator and two zigbee repeaters in my network.

  • Zigbee Model TS0601.
  • Manufacturer TuYa.
  • Model TS0601_soil

image image

Zigbee Irrigation Valve I bought 1 of these per garden bed. Yes they are compatible with Australian garden taps. The adapter is handy, if you need to use it at the top, the thread will be correct at the bottom. If you use it at the bottom the thread will be correct at the top.

  • Zigbee Model TS601.
  • Manufacturer GiEX
  • Model QT06_2

image image

HOME ASSISTANT Configuration, Sensors, Helpers, Dashboard - Go to this forum project page.

Sprinkler Irrigation by Volume, Rain and Soil Moisture (Tuya Zigbee) Dashboard

NODE RED FLOW The Node Labels should be fairly self explanatory

Set Irrigation Number of Cycles on Back Garden Valve

  • Triggered by a change in sensor.back_garden_set_valve_cycles_helper custom sensor in home assistant that does the calculations
  • Gets the Number of Cycles from sensor.back_garden_set_valve_cycles_helper
  • Sends value to Water Valve via Zigbee2MQTT.
  • Set Number of Cycles in Water Valve, Water Valve waits until activated by the below flow.

Set Irrigation Target Volume on Back Garden Valve

  • Triggered by a change in sensor.back_garden_water_volume_per_cycle custom sensor in home assistant that does the calculations
  • Gets the Volume Required and Filters and Numbers above Zero Only
  • Sends value to Water Valve via Zigbee2MQTT.
  • Set Target Value in Water Valve, Water Valve waits until activated by the below flow.

Trigger At Set Time Each Day

  • Time Switch 1 and 2 are set by input_datetime.back_garden_set_time_1 in Home Assistant from the dashboard
  • Time Switch 1 and 2 are set to send daily at the set time
  • These Time Switches are setup to expose themselves as entities in Home Assistant and can be turned ON and OFF from the dashboard

Only If Day Active

  • Sun to Sat ON are input booleans set in Home Assistant from the dashboard input_boolean.back_garden_1_sun, message will only be passed on if the input boolean is set to ON.

Check if MEDIAN MOISTURE is less that SET MOISTURE

  • '''sensor.back_garden_median_moisture''' is a custom sensor in Home Assistant that calculates the median moisture of 3 moisture meters per garden bed. Median chosen over Average to ensure the right data is given see Median vs Average
  • input_number.back_garden_set_moisture is an input number on the Home Assistant dashboard.
  • If sensor.back_garden_median_moisture is les than input_number.back_garden_set_moisture the valve will activate.
  • The valve will automatically cut off when the Target Value is reached, this is a feature of the valve in Zigbee2MQTT.

If Rain Delay Active wait 24hrs for Tomorrows rain to be less than 20% chance

  • Utilise BOM Australia sensor.yourlocation_rain_chance_2
  • If 24hr Rain Delay IS NOT active on the Dashboard, the flow sends the ON signal to the Valve.
  • If 24hr Rain Delay IS active on the Dashboard,
    • If forecast rain for tomorrow is above 20%, the node will wait until tomorrows chance of rain drops below 20%.
    • Any accumulated rain in that period (could be days) will be subracted from the Water Required.
    • The Valve will be given the ON Signal once Tomorrows Rain Chance drops below 20% and the Water Required will be delivered to the Garden.
    • If forecast rain for tomorrow is below 20% Chance, the node will send the ON signal to the valve and deliver the water.

432L Failsafe, if Target Fails

  • (Garden Area (m2) * Set Weekly Water (mm/m2/week)) is the maximum amount of water that can be delivered to the garden. These input number helpers are set in the dashboard. The maximum values of these are set so they can not exceed the physical size of the garden or a set maximum (24mm/m2/week). These maximums can be adjusted.
  • If the Target Volume has failed in the valve for some reason, the valve will shut off when the maximum amount of water is delivered to the Garden that the settings will allow.

image

[{"id":"2354ed8159f59b1c","type":"tab","label":"Irrigation","disabled":false,"info":"","env":[]},{"id":"20075ec4c0b47957","type":"group","z":"2354ed8159f59b1c","name":"Back Garden Irrigation (Tuya Zigbee Soil Moisture & Valve)","style":{"label":true,"color":"#000000"},"nodes":["e7e3a8f0d1f36ddf","59f193f85d4880ef","8c8bf88e6a747474","20a443ce5baac7d3","fe263811448d3958","e7d191e9fb2a480e","ecf45bf3dea3ee9a","312144bc83870123"],"x":62,"y":47,"w":1396,"h":760},{"id":"e7e3a8f0d1f36ddf","type":"group","z":"2354ed8159f59b1c","g":"20075ec4c0b47957","name":"Trigger At Set Time Each Day","style":{"label":true,"fill":"#ffbfbf","color":"#000000"},"nodes":["0efcaa6d8085a21b","2ea24d19b7619de6"],"x":94,"y":499,"w":192,"h":182},{"id":"59f193f85d4880ef","type":"group","z":"2354ed8159f59b1c","g":"20075ec4c0b47957","name":"Only If Day Active","style":{"fill":"#dbcbe7","label":true,"color":"#000000"},"nodes":["b579e04ecfa190fd","6f217f2384f3239a","c5c715654d720c18","f4e77a896615e7c1","7470b873b49dbc8d","6b7d14ce14b91908","b7bd1eec9cc9bf26"],"x":354,"y":439,"w":172,"h":322},{"id":"8c8bf88e6a747474","type":"group","z":"2354ed8159f59b1c","g":"20075ec4c0b47957","name":"Check if MEDIAN MOISTURE is less than SET MOISTURE","style":{"label":true,"fill":"#bfc7d7","color":"#000000"},"nodes":["2c74eff212f6982b","6aa770a911dcb821"],"x":594,"y":439,"w":377,"h":162},{"id":"20a443ce5baac7d3","type":"group","z":"2354ed8159f59b1c","g":"20075ec4c0b47957","name":"432L Failsafe, if Target Fails","style":{"label":true,"color":"#000000","fill":"#e3f3d3"},"nodes":["182d0994c1072ffa","fd4a7e28e66c7db8"],"x":1114,"y":639,"w":272,"h":142},{"id":"fe263811448d3958","type":"group","z":"2354ed8159f59b1c","g":"20075ec4c0b47957","name":"Turn Valve ON","style":{"label":true,"color":"#000000"},"nodes":["469dddcbf02addc2"],"x":1094,"y":459,"w":272,"h":82},{"id":"e7d191e9fb2a480e","type":"group","z":"2354ed8159f59b1c","g":"20075ec4c0b47957","name":"Set Irrigation Target Volume on Back Garden Valve","style":{"label":true,"color":"#000000","fill":"#ffefbf"},"nodes":["bd593566ba39980b","c30a692aff51594b","ce44f6a1f6053ecd"],"x":88,"y":253,"w":1344,"h":134},{"id":"ecf45bf3dea3ee9a","type":"group","z":"2354ed8159f59b1c","g":"20075ec4c0b47957","name":"If Rain Delay Active wait 24hrs for Tomorrows rain to be less than 20% Chance ","style":{"label":true,"fill":"#bfdbef","color":"#000000"},"nodes":["355689e3e161c377","dc1549d5824397a0"],"x":594,"y":639,"w":496,"h":142},{"id":"312144bc83870123","type":"group","z":"2354ed8159f59b1c","g":"20075ec4c0b47957","name":"Set Irrigation Number of Cycles on Back Garden Valve","style":{"label":true,"color":"#000000","fill":"#ffff3f","fill-opacity":"0.5"},"nodes":["d9e5c6d74cd4849a","5ffe6090345e5224","25c1f8c6c7b1cee9"],"x":88,"y":73,"w":1344,"h":134},{"id":"bd593566ba39980b","type":"group","z":"2354ed8159f59b1c","g":"e7d191e9fb2a480e","name":"Water Volume Per Cycle Sensor Changes","style":{"label":true,"color":"#000000","fill":"#ffffbf"},"nodes":["cb41895d9f4eae00"],"x":114,"y":279,"w":332,"h":82},{"id":"c30a692aff51594b","type":"group","z":"2354ed8159f59b1c","g":"e7d191e9fb2a480e","name":"Get Volume Required and Filter as Numbers above Zero Only","style":{"fill":"#e3f3d3","label":true,"color":"#000000"},"nodes":["34bae77dde1c61bd","985f6cb6c71346ff"],"x":474,"y":279,"w":512,"h":82},{"id":"ce44f6a1f6053ecd","type":"group","z":"2354ed8159f59b1c","g":"e7d191e9fb2a480e","name":"Set Volume Required (Target Set) in Valve","style":{"fill":"#bfdbef","label":true,"color":"#000000"},"nodes":["78cafc045759402a"],"x":1014,"y":279,"w":392,"h":82},{"id":"d9e5c6d74cd4849a","type":"group","z":"2354ed8159f59b1c","g":"312144bc83870123","name":"Set Valve Cycle Sensor Changes - UI Control","style":{"label":true,"color":"#000000","fill":"#ffffbf"},"nodes":["cff2fd927f317d03"],"x":114,"y":99,"w":372,"h":82},{"id":"5ffe6090345e5224","type":"group","z":"2354ed8159f59b1c","g":"312144bc83870123","name":"Get Set Valve Cycle Helper Number","style":{"fill":"#e3f3d3","label":true,"color":"#000000"},"nodes":["5ca4d8b3c3cc7fb9"],"x":574,"y":99,"w":352,"h":82},{"id":"25c1f8c6c7b1cee9","type":"group","z":"2354ed8159f59b1c","g":"312144bc83870123","name":"Set Volume Required (Target Set) in Valve","style":{"fill":"#bfdbef","label":true,"color":"#000000"},"nodes":["39ddb839ac6ae06a"],"x":1014,"y":99,"w":392,"h":82},{"id":"b579e04ecfa190fd","type":"api-current-state","z":"2354ed8159f59b1c","g":"59f193f85d4880ef","name":"Sun ON","server":"bb380e72.b8825","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.back_garden_1_sun","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":440,"y":480,"wires":[["2c74eff212f6982b"],[]]},{"id":"6f217f2384f3239a","type":"api-current-state","z":"2354ed8159f59b1c","g":"59f193f85d4880ef","name":"Mon ON","server":"bb380e72.b8825","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.back_garden_2_mon","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":440,"y":520,"wires":[["2c74eff212f6982b"],[]]},{"id":"c5c715654d720c18","type":"api-current-state","z":"2354ed8159f59b1c","g":"59f193f85d4880ef","name":"Tue ON","server":"bb380e72.b8825","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.back_garden_3_tue","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":440,"y":560,"wires":[["2c74eff212f6982b"],[]]},{"id":"f4e77a896615e7c1","type":"api-current-state","z":"2354ed8159f59b1c","g":"59f193f85d4880ef","name":"Wed ON","server":"bb380e72.b8825","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.back_garden_4_wed","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":440,"y":600,"wires":[["2c74eff212f6982b"],[]]},{"id":"7470b873b49dbc8d","type":"api-current-state","z":"2354ed8159f59b1c","g":"59f193f85d4880ef","name":"Thu ON","server":"bb380e72.b8825","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.back_garden_5_thu","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":440,"y":640,"wires":[["2c74eff212f6982b"],[]]},{"id":"6b7d14ce14b91908","type":"api-current-state","z":"2354ed8159f59b1c","g":"59f193f85d4880ef","name":"Fri ON","server":"bb380e72.b8825","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.back_garden_6_fri","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":430,"y":680,"wires":[["2c74eff212f6982b"],[]]},{"id":"b7bd1eec9cc9bf26","type":"api-current-state","z":"2354ed8159f59b1c","g":"59f193f85d4880ef","name":"Sat ON","server":"bb380e72.b8825","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.back_garden_7_sat","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":440,"y":720,"wires":[["2c74eff212f6982b"],[]]},{"id":"2c74eff212f6982b","type":"api-render-template","z":"2354ed8159f59b1c","g":"8c8bf88e6a747474","name":"Median Moisture Less than Set Moisture?","server":"bb380e72.b8825","version":0,"template":"{{ states('sensor.back_garden_median_moisture')|float(0) < states('input_number.back_garden_set_moisture')|float(0) }}","resultsLocation":"payload","resultsLocationType":"msg","templateLocation":"","templateLocationType":"none","x":780,"y":480,"wires":[["6aa770a911dcb821"]]},{"id":"6aa770a911dcb821","type":"switch","z":"2354ed8159f59b1c","g":"8c8bf88e6a747474","name":"True","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"True","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":690,"y":560,"wires":[["dc1549d5824397a0"]]},{"id":"182d0994c1072ffa","type":"ha-wait-until","z":"2354ed8159f59b1c","g":"20a443ce5baac7d3","name":"Wait Until 432L Fail Safe","server":"bb380e72.b8825","version":2,"outputs":1,"entityId":"sensor.0xa4c13839477a051c_water_consumed","entityIdFilterType":"regex","property":"attributes.water_consumed","comparator":"is","value":"432","valueType":"num","timeout":"0","timeoutType":"num","timeoutUnits":"seconds","checkCurrentState":true,"blockInputOverrides":true,"outputProperties":[],"entityLocation":"data","entityLocationType":"none","x":1250,"y":680,"wires":[["fd4a7e28e66c7db8"]]},{"id":"fd4a7e28e66c7db8","type":"api-call-service","z":"2354ed8159f59b1c","g":"20a443ce5baac7d3","name":"Water Back Garden OFF","server":"bb380e72.b8825","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":[],"entityId":["switch.0xa4c13839477a051c_state"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"all","x":1250,"y":740,"wires":[[]]},{"id":"469dddcbf02addc2","type":"api-call-service","z":"2354ed8159f59b1c","g":"fe263811448d3958","name":"Water Back Garden ON","server":"bb380e72.b8825","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["switch.0xa4c13839477a051c_state"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"all","x":1230,"y":500,"wires":[["182d0994c1072ffa"]]},{"id":"cb41895d9f4eae00","type":"trigger-state","z":"2354ed8159f59b1c","g":"bd593566ba39980b","name":"Water Volume Per Cycle Changes","server":"bb380e72.b8825","version":4,"inputs":0,"outputs":2,"exposeAsEntityConfig":"","entityId":"sensor.back_garden_water_volume_per_cycle","entityIdType":"exact","debugEnabled":false,"constraints":[{"targetType":"this_entity","targetValue":"","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":">=","comparatorValueDatatype":"str","comparatorValue":"0"}],"customOutputs":[],"outputInitially":false,"stateType":"num","enableInput":false,"x":280,"y":320,"wires":[["985f6cb6c71346ff"],[]]},{"id":"34bae77dde1c61bd","type":"function","z":"2354ed8159f59b1c","g":"c30a692aff51594b","name":"","func":"if(msg.payload < 0){\n    return [null];\n}else{\n    return [msg];\n}","outputs":2,"timeout":"","noerr":0,"initialize":"","finalize":"","libs":[],"x":900,"y":320,"wires":[["78cafc045759402a"],[]]},{"id":"985f6cb6c71346ff","type":"api-current-state","z":"2354ed8159f59b1c","g":"c30a692aff51594b","name":"Water Volume Per Cycle Back Garden","server":"bb380e72.b8825","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.back_garden_water_volume_per_cycle","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":650,"y":320,"wires":[["34bae77dde1c61bd"]]},{"id":"78cafc045759402a","type":"api-call-service","z":"2354ed8159f59b1c","g":"ce44f6a1f6053ecd","name":"Set Irrigation Target on Back Garden Valve","server":"bb380e72.b8825","version":5,"debugenabled":false,"domain":"number","service":"set_value","areaId":[],"deviceId":[],"entityId":["number.0xa4c13839477a051c_irrigation_target"],"data":"{\"value\":msg.payload}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1210,"y":320,"wires":[[]]},{"id":"0efcaa6d8085a21b","type":"ha-time","z":"2354ed8159f59b1c","g":"e7e3a8f0d1f36ddf","name":"Time Switch 1","server":"bb380e72.b8825","version":3,"exposeAsEntityConfig":"08d53b9781389ec9","entityId":"input_datetime.back_garden_set_time_1","property":"","offset":"0","offsetType":"num","offsetUnits":"minutes","randomOffset":false,"repeatDaily":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"sunday":true,"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":true,"x":190,"y":540,"wires":[["b579e04ecfa190fd","6f217f2384f3239a","c5c715654d720c18","f4e77a896615e7c1","6b7d14ce14b91908","b7bd1eec9cc9bf26"]]},{"id":"2ea24d19b7619de6","type":"ha-time","z":"2354ed8159f59b1c","g":"e7e3a8f0d1f36ddf","name":"Time Switch 2","server":"bb380e72.b8825","version":3,"exposeAsEntityConfig":"96ada8035959b75b","entityId":"input_datetime.back_garden_set_time_2","property":"","offset":"0","offsetType":"num","offsetUnits":"minutes","randomOffset":false,"repeatDaily":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"sunday":true,"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":true,"x":190,"y":640,"wires":[["b579e04ecfa190fd","6f217f2384f3239a","c5c715654d720c18","f4e77a896615e7c1","7470b873b49dbc8d","6b7d14ce14b91908","b7bd1eec9cc9bf26"]]},{"id":"355689e3e161c377","type":"ha-wait-until","z":"2354ed8159f59b1c","g":"ecf45bf3dea3ee9a","name":"Wait 24hrs if Tomorrows Rain Chance More Than 20%%","server":"bb380e72.b8825","version":2,"outputs":1,"entityId":"sensor.devonport_rain_chance_2","entityIdFilterType":"exact","property":"state","comparator":"lte","value":"20","valueType":"num","timeout":"0","timeoutType":"num","timeoutUnits":"days","checkCurrentState":true,"blockInputOverrides":true,"outputProperties":[],"entityLocation":"data","entityLocationType":"none","x":830,"y":740,"wires":[["469dddcbf02addc2"]]},{"id":"dc1549d5824397a0","type":"api-current-state","z":"2354ed8159f59b1c","g":"ecf45bf3dea3ee9a","name":"24hr Rain Delay Active?","server":"bb380e72.b8825","version":3,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.rain_delay_toggle","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":810,"y":680,"wires":[["469dddcbf02addc2"],["355689e3e161c377"]]},{"id":"cff2fd927f317d03","type":"trigger-state","z":"2354ed8159f59b1c","g":"d9e5c6d74cd4849a","name":"Sensor Set Valve Cycle Helper Changes","server":"bb380e72.b8825","version":4,"inputs":0,"outputs":2,"exposeAsEntityConfig":"","entityId":"sensor.back_garden_set_valve_cycles_helper","entityIdType":"exact","debugEnabled":false,"constraints":[{"targetType":"this_entity","targetValue":"","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":">=","comparatorValueDatatype":"str","comparatorValue":"0"}],"customOutputs":[],"outputInitially":false,"stateType":"num","enableInput":false,"x":300,"y":140,"wires":[["5ca4d8b3c3cc7fb9"],[]]},{"id":"5ca4d8b3c3cc7fb9","type":"api-current-state","z":"2354ed8159f59b1c","g":"5ffe6090345e5224","name":"Water Volume Per Cycle Back Garden","server":"bb380e72.b8825","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.back_garden_set_valve_cycles_helper","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":750,"y":140,"wires":[["39ddb839ac6ae06a"]]},{"id":"39ddb839ac6ae06a","type":"api-call-service","z":"2354ed8159f59b1c","g":"25c1f8c6c7b1cee9","name":"Set Irrigation Target on Back Garden Valve","server":"bb380e72.b8825","version":5,"debugenabled":false,"domain":"number","service":"set_value","areaId":[],"deviceId":[],"entityId":["number.0xa4c13839477a051c_cycle_irrigation_num_times"],"data":"{\"value\":msg.payload}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1210,"y":140,"wires":[[]]},{"id":"bb380e72.b8825","type":"server","name":"Home Assistant","version":5,"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","enableGlobalContextStore":true},{"id":"08d53b9781389ec9","type":"ha-entity-config","server":"bb380e72.b8825","deviceConfig":"d324ccdc3d63c68d","name":"Back Garden Set Time Switch 1","version":"6","entityType":"switch","haConfig":[{"property":"name","value":"Back Garden Set Time Switch 1"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":"switch"}],"resend":false,"debugEnabled":false},{"id":"96ada8035959b75b","type":"ha-entity-config","server":"bb380e72.b8825","deviceConfig":"67ebe3526123070e","name":"Back Garden Set Time Switch 2","version":"6","entityType":"switch","haConfig":[{"property":"name","value":"Back Garden Set Time Switch 2"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":"switch"}],"resend":false,"debugEnabled":false},{"id":"d324ccdc3d63c68d","type":"ha-device-config","name":"Back Garden Set Time Switch 1","hwVersion":"","manufacturer":"Node-RED","model":"","swVersion":""},{"id":"67ebe3526123070e","type":"ha-device-config","name":"Back Garden Set Time Switch 2","hwVersion":"","manufacturer":"Node-RED","model":"","swVersion":""}]

Flow Info

Created 1 week, 3 days ago
Updated 3 days ago
Rating: not yet rated

Actions

Rate:

Node Types

Core
  • function (x1)
  • switch (x1)
Other

Tags

  • Irrigation
  • Sprinkler
  • Zigbee
  • Soil
  • Moisture
  • Volume
  • Calculation
  • Water
  • Garden
  • Lawn
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option