You need to format the number, as you already do it in the items file.
I would initially try to make the correct string. Use a
logInfo (“MyLogInfo”,“MyNewString:{}”, MyNewString)
to check wether the string is correct, then you can use it with the say command.
say("Temperaturen udenfor er"+ String::format("%f", (Temperatur_Udebygninger_Udv_Sonos.state as DecimalType).floatValue()) + "grader" )
by changing the “%f” part, you can change the decimals. “%.2f” will give you a xx,xx readout, so “%f” should give you a “xx grader” type readout
HTH,
Regards,
-OLI