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

Store every_n_days in a helper to edit via dashboard #179

Open
simionpetrus opened this issue Aug 19, 2024 · 4 comments
Open

Store every_n_days in a helper to edit via dashboard #179

simionpetrus opened this issue Aug 19, 2024 · 4 comments

Comments

@simionpetrus
Copy link

Would this be possible?
Also for start_n_days

@rgc99
Copy link
Owner

rgc99 commented Sep 15, 2024

This could be done by setting up the required helpers and then have an automation which updates the schedule when they change. Schedules can be updated in Irrigation Unlimited with the load_schedule service (including every_n_days and start_n_days). One proviso is that changes made through this service call are NOT saved and will revert to the configuration.yaml if the integration is reloaded, HA is restarted etc. You would need to also fire the automation on a HA restart.

@hejjaat
Copy link

hejjaat commented Oct 1, 2024

I would like to see such a possibility as well. Lawn should not be watered every day, but less freuqently with bigger doses. We should water them every n days, depending on the temperature (basically). I am irrigating every day only if the temperature is above 30 ºC, every 2 days if 25-30 ºC, below 25 ºC only every 3 days. So I need to change the every_n_days daily. If it not survives HA restart I an end up over/underwatering. It would be nice to have the option to set only the every_n_days, and it would count from the last active day, no need to calculate the start_n_days.

@simionpetrus
Copy link
Author

Yes, agreed.
My ideal setup would be to have every_n_days counting from the last active day and be stored in a helper (in fact multiple, one for each sequence or zone) to be able to modify its value from the a card in the dashboard

@rgc99
Copy link
Owner

rgc99 commented Oct 1, 2024

You can see how long since the last state change. Work it into a template with your other parameters and set the adjustment to 0 or 100 percent.

{{ now() - states.binary_sensor.irrigation_unlimited_c1_z1.last_changed }}

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

3 participants