HI Terrence, I installed the component on a new HA install and found the problem. I have also added some additional validation to pickup when the time pre-req is not there and updated the github documentation to add the senor.time requirement. If you copy the irrigationprogram.switch.py and set up the sensor.time and restart it should be good to go.
love this componentā¦ think I have figured most of it out, but still running into a problem
hassio current version
pi 4b
installed v2 as per directions
copied irrigationprogram and irrigationzone to custom components
copied dummy switches and irrigation yaml to my pkgs directory and modified accordingly.
check config, all is good.
reboot
then setup lovelace cards with the file you have provided
everything shows up as it should.
now, modify for MY switches and sensors
update lovelace to show my rain sensor and my irrigation controller status
update irrigation.yaml to include my switches (using switches created by b-hyve component)
update irrigation.yaml to reflect my rain_sensor
reboot home assistant
everything looks good, looks like itās working, but the switches for this component will NOT turn on my BHyve switches. it seems to flash (i can see my status flip from auto to manual in BHyve, but then the switch instantly turns off)
what am I missing??
I have also removed the dummy_switches.yaml as I am guessing it is no longer needed now that I have defined my own.
I have attached my irrigation.yaml to show my changes (i tried to highlight to show my modifications)
Glad you like it, itās nice to get some feedback. I been using HA for a few years now and feel better giving a bit back for such a good product.
A couple of questions to help get to the heart of the issue:
Are there any errors in the log file when you restart HA?, an error is generated if there are objects that are used that canāt be found.
Are there any errors in the log when the program tries to start?
If you start the morning program manually do your switches start? If it runs your config is OK.
what frequency have you set, and what is the value of last_ran attribute of the morning switch?
When the program is first set up the last_ran attribute is set to today so if you are using the frequency option it wonāt run until the next day. You can use the developer tools to modify the attribute for testing. I should add this to the setup notes and default to yesterday. I will add this to my to do list.
also get this one, which is something iām sure you are already aware of for both irrigationzone and irrigation program
No āversionā key in the manifest file for custom integration āirrigationzoneā. This will not be allowed in a future version of Home Assistant. Please report this to the maintainer of āirrigationzoneā
none that I can see. unless I am not looking in the correct place.
yes, your component appears to work, it just doesnāt seem to want to turn MY switches on. Again, I can see the status of my b-hyve component flip from auto to manual, but then it turns right off (my zone switch will not stay on)
frequency is currently set to 1 and the last_ran attribute shows as todays date. Speaking of which, what does the frequency setting in the program do?
it seems to be something related to MY irrigations switches (created by b-hyve component - switch.back_dripline_zone). Your irrigation component appears to be working.
if I change this switch above to one of my light switches, the irrigation program works and turns my light on and off as expected.
I have tested my irrigation switches in the developer section with the switch.turn_on service and it works as expected.
Hi. Frequency sets up how often the program runs, 1 is daily, 2 is every second day and so on. The last run day keeps the information on the left time it ran so can calculate when to run again.
I have a couple of ideas on what I can change that may help, Iāll make the changes over the next few days and post again when I have a new version.
I uploaded the new version, fixed the version warning and tweaked one area that could be a problem, not hugely confident I am fixing your underlying problem though.
New switch,py files and manifest,json files for both components.
I can now access my bhyve switches directly as configured or by setting up dummy switches with additional configuration to allow for their limitation of manual run times with the bhyve switches.
I do still see the error about not being able to load my rain sensor, but I am guessing that is a startup issue and my sensor is NOT available at the time the irrigation_component loads.
the wait cycle is optional, if you have a zone that doesnāt need it you donāt set it up. The idea is that my lawn likes a soaking so it just gets 20 minutes in one hit and the pots need small lots or the water runs through, but they all operate on the one program.
if you want the same wait cycle on several zones you can use the same inputs and change the design of your lovelace cards.