logInfo("Weather", "Temperature1 (" + Weather_Temperature1.label + ") changed by " + String::format("%.2f", (Weather_Temperature1.deltaSince(now.minusMinutes(2))).floatValue()) + " degrees to " + String::format("%.2f", (Weather_Temperature1.state as DecimalType).floatvalue) + "degrees.")
I always get the warning
Rule 'Update max and min temperatures': 'floatvalue' is not a member of 'java.lang.Number'; line 241, column 228, length 51
The problem seems to be the part
String::format("%.2f", (Weather_Temperature1.state as DecimalType).floatvalue)
I have tried different solutions (using only state, Number instead of DecimalType, no floatvalue conversion, but without success.
Any help is appreciated.