I’ve updated Github to include this in Pre-Requisites
Scenes are used in this package. If you use default_config: there is no need to add anything as it is included automatically (see - https://www.home-assistant.io/integrations/default_config/) if not then somewhere (usually in your configuration.yaml) you must include the line scene:
in the recorder and logger (I have also some exclude: clauses, but mainly for domains and some spcific entities) but no history appears.
I have also some strange behaviour on showing the the min when using slider for each of the zones.
This happened after my last download of the repo, on 1st July
This is an animated gif, i hope it shows correctly.
Thanks
PS: Very nice the new feature to run just a single zone…
Is this something you would be willing to share (even just privately), as comparing my setup to yours would almost instantly show where I have missed something or made an error?
I put it in purely for testing. It means I (or you) can run the package and everything will be as normal except that the actual switches will not turn on so no actual irrigation takes place.
@klogg - How difficult will it be to add sunrise / sunset with a optional offset as a trigger as when to let the irrigation start running instead of a fixed time?
Finally works for me (lovelace storage mode). The first version was good but the second is excellent. The only thing I miss is the option for a rain sensor and soil moisture.
No rush - Would be very handy if/when implemented! Thank you!
@klogg Then, I found a minor cosmetic bug. The Calculated end time or the manual runtime does it calculation using all the eight zones, not only the enabled zones. So if you have a value from a zone not in use it is added to the total.
@klogg This might not be relevant since i extend a little bit your code, but it could be a quick one for you and i’m strangling to find a solution for the past few days and couldn’t figure it out.
I have extent your code to have 16 zones, since this would suit my needs better. My problem is that when i have more that 9 zones enabled (10…16) then when the last zone finished, it starts all over again from zone1. If i only engage 9 zones (not altering the extended code, but from the UI) everything works as it should. My guest is that there is “somewhere” a “limitation” to 1 digit (since the flow goes smoothly when i only engage 9 zones) but haven’t found anything relevant. My best guess was that this is somewhere at garden_irrigation_start but can’t see it. Can you (by any chance) make an educated guess where is the problem ?
Of course, if you want i can send you the code and use it at your git. It’s your work after all, i just find 16 zones, more useful for my needs and others might wanna use more zones as well.
@AthanAs you have extended the code I’m guessing you understand at least a little of what is going on so if you want to investigate for yourself before I have time to look then…
I think you are right that currently it cannot cope with two digit zone numbers.
Look in garden_irrigation_start.yaml at the script irrigation_start_a_zone
The script is passed the current zone as zoneX and the very last action looks only at the last character, see the line {% if zone[-1] | int == states('input_number.irrigation_number_of_zones') | int %}
You are going to have to change things so the package expects a two digit zone number i.e. zone01, zone02 ... zone16
I’m not sure what the implications will be elsewhere in the package of this change but at least you have something to help you start looking at things yourself if you choose to do so.
How does the UI look with 16 zones? Does everything display properly?
Or is my understanding of the number of zones incorrect? My presumption is that only the zones defined as per number of zones will run. Or will the “hidden” zones also run?
My example only showed that the end time did in fact change when a zone wasn’t running on a certain day - I only showed the image for zone 1, the other zones also had some time which is why the total showed 15 minutes.
However, I see now that you didn’t mean that
Yes the number of zones is the number of zones you have and only that number of zones should be irrigated so if you set it to 4 only zones 1 to 4 should get water. I am pretty sure that part works correctly.
It is however quite possible that the calculation for the end time doesn’t look at the number of zones defined because I never considered that this number would ever be anything other than the number actual zones so unused zones would have zero time.
I will look into this and it should be an easy fix.
Out of interest, why do you change the number of zones? It was only ever meant to be an initial setting but maybe it can be used in a different way to?