Hy everyone, need some advice on automating my irrigation system. The scenarios is: when moisture is below 40% , the pump must turn ON for 5 seconds and then turn OFF. If moisture is still below 40% the pump should turn On again.
this is my code
well, I can see nothing about 40% in your config… did you mean 50%?
on the reason why it does not trigger for the second time - please read how numeric_state trigger works.
basically, it won’t until the moisture won’t get above and then fall below afaik so you need to change your strategy:
add a condition to test the moisture value and if it’s below the level, call turn_on (but who will turn it off?)