Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add divide Attribute to Manage Watering Time and a Service to Modify Repeats #171

Open
FermedePommerieux opened this issue Jul 19, 2024 · 2 comments

Comments

@FermedePommerieux
Copy link

FermedePommerieux commented Jul 19, 2024

It would be beneficial to have the ability to divide the watering time when we repeat a watering sequence instead of multiplying it. When setting the watering time via smart_irrigation, we typically define the total time for a zone or sequence. To conserve water, it would be useful to have a specific behavior that allows us to divide the defined watering time by the number of repetitions instead of multiplying it.

Additionally, it would be very useful to add a service that allows modifying the number of repetitions dynamically.

@FermedePommerieux FermedePommerieux changed the title Add boolean divide attribute to divide watering time when repeat a sequence or a zone Add divide Attribute to Manage Watering Time and a Service to Modify Repeats Jul 19, 2024
@rgc99
Copy link
Owner

rgc99 commented Jul 21, 2024

Can't the watering time be divided by the number of repetitions? Hint: The adjust_time service call supports templating. This gives you great flexibility to manipulate values without having to create intermediary sensors.

The service call to adjust repetitions in itself is not that difficult. Most of the effort would be in saving/restore to survive HA restarts. What is the use case scenario?

@FermedePommerieux
Copy link
Author

Thank you for your response and clarifications on the existing capabilities.

The use case I have in mind involves watering pots or hanging plants that can only receive a limited amount of water per minute. For example, certain pots can only handle a maximum of 2 minutes of watering with a flow rate of 8 liters per hour.

In this context, if I adjust the watering time based on sensor data (such as a moisture/temp/rain sensor), I want to ensure that each watering repetition does not exceed 2 minutes. This is to prevent overflow or saturation. Therefore, it would be necessary to dynamically adjust the number of repetitions according to the total watering time needed, while ensuring that each repetition stays within this 2-minute limit.

The ability to automatically adjust the number of repetitions would ensure that, even if the total recommended watering time increases based on sensor data, the amount of water applied in each repetition remains controlled. This way, the plants would receive the necessary water without exceeding their drainage capacity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants