This is taking the max of the calculated value or 0 as the calculated value could go below 0.

Checkout Template Designer Documentation — Jinja Documentation (3.2.x) for more information

This is taking the max of the calculated value or 0 as the calculated value could go below 0.

Checkout Template Designer Documentation — Jinja Documentation (3.2.x) for more information

Got it - thank you a lot!

Thank you for this integration, I have it working with my node-red flows to check the factor to decide whether to water today or not. I already had the flows configured so didn’t go with your irrigation cards, but I was wanting a smarter way to decide if to water or not by simply looking back at yesterday and if it rained enough…well… Your “factor” appears to be even more thorough however am still trying to organize my brain into its logic. I understand the levels of importance etc, however the “factor” number the results means what? You set it to measure from 10mm and subtract the various values but lost on why you then divide by 10. Is that to average? Anyway my simple mind assumes that if “factor” is greater than 0 then you haven’t had enough rain equivalent to 10mm, and if the value is less than 0 (which returns 0) then no need to water. Seems strange as I understand the point just not the value.

Thanks to anyone who has time to explain to my brain the logic its missing.

The 10mm is arbitrary, I find it easier to work in 10,100…

The factor is simply a number that will be multiply against the watering time/volume.

So 0 represents there has been enough water so don’t water

1 is it has/will not rained so water fully, also if you extend the logic to include temp and it has been very hot you can have a factor of 1.1 to water more on those hot days.

The values between 0 and 1 reduce the amount of water to top up your plants as there may of been a small shower and they need water.

If you want to simply turn on/off watering you can develop your template to return true or false and have a binary sensor. Though I have not tested this so I may need to update the component to support this as a change.

The open weather history just records and exposed data so you can get creative

I hope this helps.

ok thankyou I wasn’t thinking along the lines of using it to adjust the amount of water… I hadnt clued into using the factors value more than just to water of not. Thanks for they ideas I shall get to work. And thanks again.