@sparkydave thanks for the prompt reply, and apologies for the constant questions due to my limited coding knowledge.
I can confirm that i read all of the documentation on Packages previous to attempting the install/config. I added the following line to my configuration.yaml file and then created the packages folder under the config folder, and then created a reticulation.yaml (with your code) file within the packages folder, which resulted in all cards displaying correctly.
As for the Automation entry in my configuration.yaml file, i mentioned this as i have the line as below, which is just a file where my other automations live, not the automation section from your code (i have not brocken out your code at all, it is still all in original state and im pretty sure, appropriate place.
automation: !include automations.yaml
On that, i am going to try to revert to an earlier verion of my HASSio instance to see if this still spits out the same error, and if it does, will go back to a base install and try that…
I will keep this topic up to date with what i find.
Apologies again for my lack of knowledge. The next time your in Sydney, i’ll buy you a drink.
Are you sure there isn’t an indentation issue that’s been caused when editing the automations in my package? The error you are getting would suggest so. Copy / paste the automation section here, being sure to format it correctly. Hopefully I can see where the issue is for you
Hi @sparkydave, apologies for the delayed response, I have been working on a new Hassio build so i can test my theory… On that, i reverted to various backups and tried your code, and also built a brand new instance of HASSio with just your retic setup on there and i still get the same automation error… I then commented out the automation line (as below) in my configuration.yaml file, which removed the error…
#automation: !include automations.yaml
With regard to your earlier comment about pasting the automation section, it is exactly the same as what you have pasted above and tagged me into, i copy pasted a number of times to make sure i had not done anything wrong
Do you have an automation.yaml file or and automation: !include automations.yaml line in your configuration.yaml file?
@Mikkaat I just had a look at my config.yaml and I don’t think that is the issue. You really need to post your version of the package so I see what is happening here
@sparkydave and all others who have the same issue… After posting the above, i finally got it working thanks to @Cripplin who provided the solution over at [SOLVED]Automation in package not working… basically just need to have something in the automations.yaml file, ie it cannot be empy…
@sparkydave Thanks for all your help and sorry to put you through that… @Cripplin great find… thanks
Hi @sparkydave, quick question(s) for you about the package…
I have been working on it slowly over the last few weeks and (honestly only just go around to) setting some of the variables to test it out, just last night…
Can i just clarify, if i add times into the ‘Program 1 Start Time 1’ and ‘Program 1 Start Time 2’, select days in the Watering days (i have selected all days) and added 5 mins to Station 1 and Station 2 in Run times, should that be enough to run the system? As you can see from the screenshot, i have added values to the Available Rain % and mm as well, but the only way i can trigger the system to run, is to either use the Station 1 Run switch, or the Program 1 Run switch, ie the system will not trigger at the specified times i have added (as can be seen by the 19:39 current time and the Retic Station 1 valve run time 22 hours ago…)
I have updated your code to refeerence my location (in BOM and DarkSky) and also added Time component.
EDIT— @sparkydave I think i have narrowed the issue down to one of two things… (i am not as gifted with code as yourself or others, so hoping this could be it)…
Is there a reason why the Check rain parameters value_template has a value
The other thing which could be the issue is the way input_datetime.retic_program1_start_time_1. attribute.timestamp is captured in devtools states… Is the below screenshot the way yours shows as well? Should i update the code to reference input_datetime.retic_program1_start_time_1. attribute.state instead
@one-love I thank you in advance for all your efforts regarding the irrigation code. It’s brutal. But some time ago it stopped working. Would you have a look? Thank you so much for your attention.
Hello, I would like to know if it is possible to match the value of an input.date_time with the time of sunset. For example today the sun sets at 9:00 pm and at that time I want to do the last irrigation of the day, next week the sun sets at 9:10 p.m. and I need change the input.date_time value automatically to do the last irrigation at that time. someone could help me with that.
Greetings and thank you
Lots of great ideas in here. I’ve just finally started down the road of a DIY irrigation system for my back yard. I’ve just worked out how to wire up an ESP32, 4 channel relay, solenoids, and a 12v power supply. I’ve never done anything like this before.
Anyway, just starting to get it up and running on my desk, but I’ll need an outdoor enclosure. What are people using (especially interested in what Aussies are using)? 90% chance of where I end up putting it will be exposed to the weather.
I bought a cheap weather proof enclosure from AliExpress. It’s pretty good. I bought a thin galv sheet and cut out a back panel to mount everything o and then mounted that into the box. I have been meaning to knock up a post about the hardware install but haven’t had time. I may have a couple of photos on my phone I can upload later
Hi There @klogg This is an cool project, thanks for sharing this with everyone. I’ve been struggling with some errors when I copied over the packages, which are as follows:
Package garden_irrigation setup failed. Component input_boolean has duplicate key 'name'
Package garden_irrigation setup failed. Component input_text has duplicate key 'name'
Package garden_irrigation setup failed. Component input_select has duplicate key 'name'
Package garden_irrigation setup failed. Component input_datetime has duplicate key 'has_date'
Package garden_irrigation setup failed. Component input_number has duplicate key 'name'
Package garden_irrigation setup failed. Component timer has duplicate key 'name'
I am running the latest version of Hassio 0.97.2. If someone is able to explain these errors, that would be amazing.
I only have one single zone for my irrigation system, so I’m assuming that I can remove the additional zones from the files and it should still be able to control single sonoff, which I have connected to a irrigation pump? I’ve also just been looking at your code and realise that you have a weather station, is that correct? So if I don’t have the weather station is it still possible to use the packages?
@mattpitts74 I suggest you go and look here My Garden Irrigation
I created a thread for my project and it has changed a bit since I posted those files.
Hey everyone,
I just stumbled across this thread because I’m planing to build an own irrigation system.
Does anyone has used the Sonoff 4CH Pro r2 for this use case? Im planing to use 3 of them cause i have hunter valves working with 24ac and a water pump which needs 220dc, don’t know if im right here, but it should be possible to use them both at the sonoff 4ch pro r2 because this one has potential free switches – anyone experience with that? or can i only use one kind of voltage/current for the sonoff 4ch pro r2?
further more i also have this rain sensor from hunter laying around and was planing to integrate that one, but in contrary to the sonoff basic i don’t know a way to connect this sensor directly to the sonoff 4ch pro - anyone done this before or do u all used a nodemcu/esp8266?
Okay, the Hunter Mini Click is just a little switch. This switch gets activated (closed) by rain sooking the spongmaterial and will be de-activated (open) when it is dryed-up.
The voltage/current mentioned in the specification of this device is not of importance because you want to connect one wire to Ground (GND) and the other to a free GPIO input pin of the Sonoff device (supposing that one GPIO input port is available on the Sonoff 4CH device. (I don’t own such a devide).
You can define this sensor (input port) in ESPHome software or Tasmota software to be used by Home Assistant.
What is the maximum current of your waterpump? You must be sure the relay in the Sonoff 4CH can handle this current.
I have fried my Sonoff basic relay due to the fact that my waterpump draws 14 Amps. Sonoff basic goes up to 10 Amps. Now I have the Sonoff POW R2 with maximum capacity of 16 Amps.
Thanks for this answer, i think the sonoff 4ch pro r2 also only goes to 10 Amp i’ll check this and probably must use a pow here too.
have done some googling and found, that such an gpio pin must also exist for the sonoff 4ch pro r2 - also if i have to buy a pow, i think there is definitively something there.