Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,


as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.


As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!



Smart Home Forum by FIBARO Team

Irrigation Control standalone 1.2

   (1 review)

1 Screenshot

About This File

Irrigation Control standalone


Finally a solution that brings seamless and easy Irrigation control to HC2. This solution overrides all limitations of the HC2 sprinklers panel. With this solution it is possible to set watering duration up to 100 minutes. Also no more overlapping zone watering times. Adjustment of watering is done according to current and forecast weather and rain amount and then zone watering start times automatically adjusted so there is no more overlapping and pressure drops in the system. Your beautiful garden will stay beautiful with this solution :-)





  • Watering delays and duration adjustment - Works with Weather State & Forecast suite and 6 most popular weather services on the planet to automatically adjust or delay watering depending on current and forecast temperatures and rain precipitation
  • Irrigation pump control – If irrigation system has water supply pump then user can setup pump device ID and irrigation control will take care to start pump before watering cycle starts and stop pump when watering cycle is finished.
  • Sprinklers panel - Works with HC2 Sprinklers panel and overrides panel limitations of 15 minutes watering duration and eliminates overlapping of watering zones by recalculating and setting of zones watering start times depending on adjusted watering duration times. From version 1.2 it is also possible to setup each zone watering start times manually to overlap them and shorten time needed for watering cycle.
  • Watering cycles - User can setup any number of watering cycles with VD and then save them to sprinklers panel with one press of the button. Cycle watering start time and zones watering duration and weekdays all can be setup with this VD and then transferred to sprinkler panel.
  • Auto and Off mode - User can set all watering zones to auto or off mode at once with press of a button
  • Manual watering - User can activate any selected watering zone manually with preselected duration. Great option for maintenance and check of the sprinklers.
  • Watering state at a glance - VD icon shows current overall status of the watering system by changing VD main icon and label accordingly.
  • Watering history – VD is recording all watering cycles times and durations per zones and weather state and forecast measurements. Separate VD is provided for displaying history data.
  • Multi-language support - VD has built in multi-language support with 27 languages included (see APPENDIX 1 for the list). VD can use HC selected language or user can select any other available language. E-mail and push messages are also translated

  • VD Icons setup - Easy setup for VD icons. User can download HC2 Icon Preview VD to easily

    find icon ID numbers

  • Global variables - are automatically added, monitored, repaired and cleaned and does not require user intervention



Please check provided User Manual



Since v1.2 has a new VD layout to upgrade, first delete Irrigation Control VD and remove global variable "IrrigationMain_XX" where XX is ID of the old VD and then import new Irrigation Control VD. Irrigation History VD v1.0 can remain installed and users do not have to replace it.



  • Irrigation Control VD v1.2
  • Irrigation History VD v1.1
  • Icon packs
  • User manual EN v1.2



Permission to use, copy, modify and distribute this software and its documentation for educational, research, personal use and non-profit purposes, without fee and without a signed licensing agreement is hereby granted, provided that the copyright notice, with "Terms and conditions" and "Disclaimer" appear in all copies, modifications and distributions. It is strictly forbidden to sell, rent, lease and/or lend this software for profit without prior consent from the Author.



This software is provided by copyright owner "as is" and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the author and distributor be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.

Fibar Group S.A. and their employees are not responsible for support of the ABC VD. Please contact the author Sankotronic, on the Fibaro Forum, for any questions or support required.



  • 1.0 - First public release
  • 1.2 - please see change log for detailed list of changes



Look and feel:



Enjoy coding and your new Irrigation Control! :-)





Edited by Sankotronic
Irrigation Control VD new version

What's New in Version 1.2   See changelog


VERSION 1.2 changes

  • Since this version Emoji VD is not required to be installed.
  • Corrected handling of watering zones week days
  • Added watering_pump_stop_delay setting to prevent pump to be stopped between
  • watering cycles if there is a gap. Default setting is 60 sec.
  • Added label and buttons for setting manual watering duration time
  • Added button to cancel watering duration adjustment which is set by Weather State & Forecast VD
  • Added buttons to manually set/reset watering delay for 24h. If delay is manually set then it will not be change by weather check until manual delay is cancelled or expired.
  • Added buttons to manually set watering start time for each zone regardless of watering duration. Even if watering duration is changed, if watering start times are manually set then will not be recalculated and changed by VD.



  1. delete old version Irrigation Control VD
  2. delete global variable IrrigationMain_XX where XX is Irrigation Control VD ID number
  3. Import new version of Irrigation Control VD
  4. Setup VD in main loop
  • Like 4

User Feedback

Recommended Comments

@Sankotronic thanks for nice module :). I have tested it for a few days and I pretty like that. You did a great job!

Anyway I have one point how it should be improved, if it is possible :).

Is it possible to add functionality when I am able to start my cycle at anytime I want? That functionality I had on my classic Toro Evolution unit.

E.g. I set that for cycle one my zone 1 is on for 15 min, zone 2 for 20 min, zone 3 for 10 min and it is set to time 20:30. But sometimes I want to start that cycle on different time (when I know that we will have some party on garden at time when usually my spprinklers are irrigating garden). Then it will be nice if I can just set irrigation of that cycle manual anytime. Is that possible?

Or if this is too much complicated, is it possible to adjust behaviour of your module (or add some settings) that when I manually start all my zones at once, that they will not start all at once, but one ofter one as it is when I use cycle.


Link to comment
Share on other sites

Hi @janikjan,


You can just change start time of the automatic watering cycle with H+, H-, M+ and M- buttons and then save it with ? save button. VD will take care of everything else, recalculate and set new watering start times for all zones and then start watering at this new cycle start time. What I mean is that with this VD you do not need to go to HC2 Sprinklers panel anymore since all settings can be done from VD.


I trust this can't be easier as it is :-)




  • Like 1
Link to comment
Share on other sites

@Sankotronic I use only your module, not Fibaro sprinklers panel :). But what you wrote is also good. Actually I do no know why I did not think about it like you :). You are right that I can do it like you wrote. Good solution too. I just need to little change my habits I have from previous Toro Evolution controller. So thanks for you idea how to do that :).

Link to comment
Share on other sites

Hi @janikjan,


Thank you again for using my work and for feedback and suggestions. I'm listening to you and will do my best to improve it for UHAS on which I'm now working hard to make it available as soon as humanly possible.


  • Like 1
Link to comment
Share on other sites

Hi @Bodyart,


Don't be jealous because UHAS compatible versions are also ready to be published. Besides UHAS versions have some more advantages over standalone ones. As I mentioned, I'm working hard on UHAS and as soon as I finish remaining few modules will make it available.

  • Like 2
  • Thanks 2
Link to comment
Share on other sites

Hi Sankotronic,

I love your work altough I sometimes have my problems when i don't get it to work as it should.

But I know it is my un experiance with Lua language (this makes reading the code a challenge, and so also an even bigger challenge to find the things I'm doing wrong)

I have the 2 VD's Weather State and Forecast working well now.

The Irrigation Control VD however gives an error.

Any Idea what I did wrong this time?


  • Thanks 1
Link to comment
Share on other sites

Hi @Voordeh,


Thanks for reporting this bug. Since this bug will show up only when outside temperature drops bellow freezing point it is expected to be found at this winter time.


You can either correct this bug yourself by scrolling VD main loop code to line 257 and remove additional "r" letter from tempCurr, or replaced this code line with this code:

      if tempCur<=low_temp_delay_24h then delay=24 msg=lT[lT.lng].msg.temp_low.."🌡❄️ "..tempCur..temp_unit..". "..lT[lT.lng].msg.delay..delay.."h"


or you can download complete main loop code here: Irrigation Ctrl Main loop v1.2.1.lua

and paste it over existing code. Before you do that please save your current settings so you can copy settings to this new main loop code!


  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...