I’m trying to have one input number sensor that’s going to be the daily max wind gust, but somehow it stops after a few updates.
It compares the value of the helper with the actual wind gust value, if the wind gust value is larger, then the value of the helper becomes the actual wind gust value. It works, but after some time it stops getting the new values.
My automation looks like this →
Your template condition is comparing strings when you need to compare numbers. This would lead to a case like described, because {{ "16" > "9" }} would render as False.
Your automation mode is set to ‘single’ which may lead to values being dropped if they are coming in rapidly.
Since gusts are brief by definition, it might be better to get the value from the trigger variable rather than reevaluating the sensor’s state.