Hi everyone, I need your help!
I can’t use this template with negative values!!!
The values are related to a temperature sensor
I already tried with positive values and I had no problems
Thanks in advance
There’s no difference between negative or positive values in a wait template. I’m guessing you’re miss understanding how wait templates work. What’s the expectation of this?
Already solved, changing int to float!
So there was a diference between a negative and positive number in wait template an work with float instead of int.
There’s no difference from it being in a wait_template. You keep saying that and it’s not correct, others looking at your responses will think the same thing.
When you convert a string number to an integer, it floors the absolute value of the result. I.e. 9.9 will go to 9. -9.9 will go to -9. This was most likely the cause of your issues.