Hello,
working with Irrigation Unlimited a few weeks now, great project.
Can use service āadjust_timeā and 'manual_run" via pyscript without problems. But how can I adjust the starting_time of a zone schedule? ( updating config.yaml and restarting homeassistant is a bit brute force )
Can not work with predefined sequences, as the zones are triggered by evaporation buckets, and many zones can run in parallel, depending on flow rate of the zone and pump capacity. ( rectangular package solver handles the optimization problem )
Thanks for you hints
Xal
Having 12 zones, with a flow between 4-14 l/min.
Having a pump with 24 l/min.
Running time per zone is calculated from (evaporation-rain) and watering buckets, so I get a list of zones with durations for next day. Can contain 0-12 zones.
For this zones I run ārectangle package solverā ( time x flowrate ), to minimze pump running time.
Outcome is a list āTimeā and āDurationā, one line per zone.
Now I want to feed this list into āIrrigation_unlimitedā. Only way I found is to rewrite config.yaml and restart homeassistant. ( reload āirrigation.unlimitedā does not change values )
Thanks for the overview, it does help to understand the problem. Here is my thinking for creating dynamic schedules.
Add a schedule_id field to the schedule object. A unique string similar to the controller_id and zone_id fields.
Implement a load_schedule service call using the schedule_id as the key. The service data would be identical to the schedule object with all fields optional. If a field is present then it will be updated if not then it will be left alone.
A few notes. This will only do an in-place update, it will not create or delete a schedule (you could disable it however). Initially it will be in memory only, that is until I can figure out storage in HA so you will have to resend the schedules after a restart.
Iām looking at integrating the smart irrigation solution into Irrigation Unlimited and running into a few problems.
Up until today I didnāt have a reset bucket automation which Iāve now rectified and basically verbatim from the documentation. I noted that it did indeed reset the daily adjusted run time value.
alias: Smart Irrigation reset bucket
description: Resets the Smart Irrigation bucket after watering
trigger:
- platform: state
entity_id:
- binary_sensor.irrigation_unlimited_c1_m
from: "on"
to: "off"
condition:
- condition: numeric_state
above: "0"
entity_id: sensor.smart_irrigation_daily_adjusted_run_time
action:
- service: smart_irrigation.smart_irrigation_reset_bucket
data: {}
mode: single
My adjustment automation is as follows and does need a little work.
I have 3 sequences, the first shown below and I know that in the above yaml, I only have the automation adjusting the first zone. Iād like to be able to adjust all the zones accordingly.
Maybe adjust the entire sequence instead of individual zones. Just tweak the data in the action. Here the entity_id is the controller/master and use the sequence_id parameter which is one for the first sequence.
The run time will be spread across all of the zones. As the zones (2,4,5,8,9) all have the same duration the spread will be equal. If they were different because one zone needs a longer or shorter run time then the times will be scaled to fit the total time specified.
Sorry for my english , but i want use the scheduler card for start irrigation because changing the time in the yaml is inconvenient.
i thinks use manual run service to start. is it possible?
thank you for help
I am just starting to use this and modified the 6.3 Sequence example to fit my 7 zones. So far so good and thanks. I do not see the % complete for each zone or sequence in my frontend. What do I need to do make those appear?
@rgc99 I have a question that is not related with your custom component that works great in my setup (and thank you for that) but is related with the āaverageā and getting the following on the log āThis is deprecated since 2022.10 and will stop working in Home Assistant 2023.4, it should be updated to use unit_conversion.TemperatureConverter instead.ā
I did not found any fix in the github repository for the average custom component so Iām asking if there is a away to work around this? Thank you again.