My Garden Irrigation

I have one zone which is seasonal / ad-hoc, but mostly bench testing :slight_smile:

Currently I have a nodeMCU with a two channel relay, another with a 4 channel, then a ESP8266 with a 2 channel connected running and a Sonoff 4ch Pro R2 in the mail (hopefully arriving this week).

I’m trying the different configurations to determine stability, ease of deployment and maintenance before putting them in for good. Unfortunately my irrigation does not run from a single manifold and is scattered across the yard. As we speak only the one NodeMCU with a 2ch relay is actually running valves. Hoping that the Sonoff ch can go in this weekend to take over from the Rainbird controller.

@itajackass, @Robson and @everyone for info.

I am about to upload changes that I think will allow you to ignore a schedule if it is raining now.
I have only tested this with dummy sensors so I would appreciate some feedback as to whether it works.

Thanks.


The changes are spread across five files (two of them are for Lovelace)

garden_globals_rainfall.yaml
garden_weather_rainfall.yaml
garden_irrigation_triggered.yaml

section_settings_rainfall.yaml
item_settings_weather_sensors.yaml

You need to turn on this option:

image

And you need to define your binary_sensor in Settings, General, Weather Sensors:

image

Hi Klogg i have tried to load the new settings and have copied over the new files over to their respective locations, but i get a error after a restart, regarding rainfall graph (see below), have you got this file somewhere as it’s not included in the new files.

Sorted the issue by creating a rainfall graph yaml file and copying the temperature graph yaml file into the rainfall graph yaml file for now, now to configure the sensors in a bit.

Hello, I’ve been reading the last days the guides, installed HACS and all the prerequisites but still I am afraid before making the big step of copying the folders, so I still have some questions:
1.what is the best way to proceed, just copy the folder package in packages and lovelace in config, or should I clone the repository
2.what is the best way to debug things, I found this very important especially at the beginning
3.is there a way to undo adding the package, if I delete the folders would that suffice?
4.I saw there are some forks of the package which are closer to what I will use (EspHome), can I install more packages in parallel and will they work?

it’s the same with me.

Yes there is a missing file that needs to be added (item settings rainfall graph yaml), i just created a temporary one which will let me get into the irrigation program for now, but i’m sure Klogg is aware of this now and fix it in github.

For a temporary fix Just copy the items settings temperature graph yaml and change the name of the file to item_setting_rainfall_graph.yaml and put it in the rainfall folder and you will be good to go for now.

Sorry about that - I have no idea what happened to that file.
I wonder… was it ever uploaded.

It’s there now…
Sorry again.

1 Like

Just one more question for now Klogg, where is this defined…

“sensor.weather_api_forecast_total_rain_today”

or is it one of your customised sensors ?

Yes, it’s one of mine :wink:

1 Like

@ekkesa
I’ve fixed this now.
It should show correct end time based on the number of zones.

As always please feedback when you’ve checked it! :wink:


Updated files:
garden_globals_cycle1.yaml
garden_globals_cycle2.yaml
garden_globals_cycle3.yaml

Awesome! Thank you so much - I have replaced the files and all looks good. Appreciate the effort.

Now just for that sunrise /sunset with offset trigger - nudge nudge :slightly_smiling_face: :upside_down_face:

@klogg
Update: Wait, it seems to do funny stuff. I now get weird numbers:
image

image

UPDATE2: I figured out, that when changing the run duration, the calculation does not change, but when changing the amount of active zones it updates the “end time”. @klogg

Oh yes…
I changed the template to a for...loop so it doesn’t know what entities to watch.
Sorry :blush:
I’ll fix it later today

Files uploaded. I think that fixes it :slight_smile: :crossed_fingers: :wink:

It’s on my list and I’m thinking about it :wink:
I’m also not sure how I will include it in the UI.

Continuing the discussion from My Garden Irrigation:

Hello all, finally today I started to integrate the Garden Irrigation Version 2 inside my HA on RPi4, I used the italian guide for the steps, and I made a branch on my configuration repository so I can easily reverse it if it doesn’t work, I find this as a guide good method to do it.
I also wrote a HowTo.md that you can find here:

My HA configuration is found here:
https://github.com/bbogdanmircea/hass.io_config_pi4/tree/HA-Irrigation-Version2

Unfortunately even if I can see the dashboard, if I click on the Zones nothing happens, first I received an error related to browser_mod service not running so I read about it and added it to configuration.yaml, but even after adding it still doesn’t work.
If anyone can have a look and let me know what is wrong, it would be really helpful as I am totally lost so far.

If anyone was really quick to get the files, I had to make a small extra edit.

It seems some people are having issues with setting this package up. Unfortunately I don’t have time to sit down and write a better install guide (and I wouldn’t be able to test it anyway as I only have one HA instance).

If anyone has anything written that they think would be useful for others and they want me to link to it from my repo I will be happy to do so.

Also if anyone who has forked this package and made any changes or improvements would like me to specifically link to it from my readme, I am happy to do that too.

The best way would be to raise an issue on GitHub with the links and any relevant comments you’d like me to include that describe what the link contains.

I tried to write in HowTo.md what I did so far, but as it doesn’t work it is not complete and ok I guess, but if you find it useful then you can use it from my forked repository.
I don’t know if it is possible for you to make the repository so that it can be directly cloned in the homeassistant directory, probably it is better to copy the packages/package and lovelace folders on a branch of a repository for the local configuration, then it is easily manageable and switchable.

Hi klogg, this is my guide for italian people: https://www.domoticadiy.it/2020/06/irrigazione-smart-my-garden-irrigation-home-assistant/

But it fully readable also using google translator i think