Skip to content

Help with Irrigation factor for rain and temperature #111

Answered by patfelst
RouxStrauss asked this question in Q&A
Discussion options

You must be logged in to vote

So you need to learn how to use home assistant jinja templates. You can experiment in home assistant's template editor, you'll find it under developer tools.

Here's a complete example you can paste into the template editor. It's showing how you could use the temperature history (max temperature of each day) for the last 4 days and also today (day0max). It outputs a single floating point number which is the adjustment factor. You can use any function you can dream up here. I just asked chatgpt to write a function and this is what it came up with.

{% set day0max = 35 %}
{% set day1max = 30 %}
{% set day2max = 26 %}
{% set day3max = 25 %}
{% set day4max = 18 %}

{% set temp_base = 24 %}
{% s…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@petergridge
Comment options

Answer selected by petergridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants