Microflow Timer not allowing parseDecimal function
I wanted to display the temperature status of being cold, normal or hot depending on the temperature data that I receive. However, the temperature data that I receive is in String type so in my microflow I need to convert is to decimal in order to make a if statement. Is this a bug or is there a mistake that I did on my end? I’m displaying it in a text using a parameter btw.
Your Attribute may be empty.
You should do something like this:
if $Data/Temperature != empty
Actually you can add:
The second value will be used as default in case the parseDecimal doesn’t work due attribute being empty or invalid
You can also use it in parseInteger :)