irrigation_unlimited icon indicating copy to clipboard operation
irrigation_unlimited copied to clipboard

Updated (automation) example for HASmartIrrigation v2.0 needed

Open Kurisutian opened this issue 1 year ago • 3 comments

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 avatar Sep 24 '23 18:09 Kurisutian

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

rgc99 avatar Oct 04 '23 03:10 rgc99

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.

Kolia56 avatar Oct 04 '23 08:10 Kolia56

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

Detmud avatar Apr 19 '24 09:04 Detmud