# Watering the garden with Homey

**URL:** <https://community.homey.app/t/watering-the-garden-with-homey/30746>\
**Category:** Questions & Help\
**Created:** [June 2, 2020, 1:59pm UTC](https://community.homey.app/t/watering-the-garden-with-homey/30746 "2020-06-02T13:59:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lex](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lex/32/20756_2.png) [@Lex](https://community.homey.app/u/Lex)\
**Post date:** [June 2, 2020, 1:59pm UTC](https://community.homey.app/t/watering-the-garden-with-homey/30746/1 "2020-06-02T13:59:33Z")

</div>

Hey folks,  
I need a little help as I do not really know where to start. Let me paint you a picture 🙂

 ![Screenshot 2020-06-02 at 15.49.26](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/3/d3587e88dff38fa84de59e36b61853aa0826ff8e.png)

I have a pump in my garden that is pumping groundwater into my sprinklers. It is connected to the power via a smart switch from Aeotec (Dual Nano Switch). Via Homey I can switch it on and off and with that, switch the sprinklers in my garden on and off.

I also have a Netatmo weatherstation that includes a rain meter. It is connected to Homey so in theory, Homey should know if it rained the last 3 hours or not.

You can probably feel where this is going 😃 I would like to create a flow (or flows) where Homey looks at the rain meter and based on the reading at a certain time (let’s say, 8 in the evening and 8 in the morning) either turns on the pump or not. I’ve tried to get this to work but I do not know how to get it to work the way I would like it to.

Does any one of you have a clue or a hot tip? I would very much appreciate it.

Kind regards,  
Alex

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [June 2, 2020, 4:14pm UTC](https://community.homey.app/t/watering-the-garden-with-homey/30746/2 "2020-06-02T16:14:24Z")

</div>

Make a variable Rain yesterday and Rain today. Make a flow , WHEN every hour, Then set a logic variable, rain today.

Make a flow, WHEN it is 23:59, then set a logic variable Rain yesterday to Netatmo Rain today

Make a flow, WHEN every hour, AND time is between 20:00 and 08:00, AND rain today is 0, and rain yesterday is 0, THEN turn on.

If you want exactly no rain for 3 hours then tou have to make multiple flows like this;

Make 8 variables named rain 1-3 hour, rain 4-6 hour, rain 7-8 hour etc etc. Make a flow when it is 03:01, then set a logic variable, rain 1-3 hour to rain Netatmo rain today, second flow, When it is 06:01, Then set a logic variable rain 4-6 hour (rain 4-6 hour minus rain 1-3 hour) etc etc

Make a Few flow, When every hour, and choose the variable which correspont with the three hours time, Then turn on
