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

Updated (automation) example for HASmartIrrigation v2.0 needed #137

Open
Kurisutian opened this issue Sep 24, 2023 · 3 comments
Open

Updated (automation) example for HASmartIrrigation v2.0 needed #137

Kurisutian opened this issue Sep 24, 2023 · 3 comments

Comments

@Kurisutian
Copy link

Kurisutian commented Sep 24, 2023

With the recent update for HASmartIrrigation a lot of things have changed. So all examples and automation do not work any longer with the new version v2.0.
So the examples given to integrate HASmartIrrigation for calculating watering times have to be adjusted to fit with the new version to make it work again.
It would be great to have some example for the new version in the docs.

Thanks! 😄

@Kurisutian Kurisutian changed the title New (automation) example for HASmartIrrigation v2.0 needed Updated (automation) example for HASmartIrrigation v2.0 needed Sep 25, 2023
@rgc99
Copy link
Owner

rgc99 commented Oct 4, 2023

Yes it does look like HASmartirrigation has undergone a revamp. I haven't had the time to read through the new API's etc. @Kolia56 has done quite a bit of work integrating these two HA components. You can find his work here. Hope this helps.

Regards

@Kolia56
Copy link

Kolia56 commented Oct 4, 2023

I haven't updated to HASmartirrigation V2 yet, as I use only one zone, do not calculate ET nor precipitation (I have a PWS that delivers the data) and system is in production. As far as the code related to Irrigation Unlimited is concerned, the update would be rather straightforward.
Replace
smart_irrigation.[instance]_calculate_daily_adjusted_run_time
by
Smart Irrigation: calculate_zone or Smart Irrigation: calculate_all_zones
Replace
sensor.smart_irrigation_[instance]_daily_adjusted_run_time
by
sensor.smart_irrigation_[zone_name]
Replace
smart_irrigation.smart_irrigation_id7_reset_bucket
by
Smart Irrigation: reset_bucket or Smart Irrigation: reset_all_buckets
Then you should not be very far from a working solution. Depending on the number of zones you need to calculate irrigation time, you may need to do some home work.

@Detmud
Copy link

Detmud commented Apr 19, 2024

Hey, i am trying really hard but the hints are not helping. Does someone have a simple complete example i could start with `?

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

4 participants