To my knowledge this isn't possible (other than the strong concatenation approach).
An idea for you is to use the ValueColor attribute to show the temperature in a certain color depending on the sensors battery level (as in if it is getting low).
--
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab/b34a320c-c348-469e-af38-9eae428c0d77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
rule "Klima Aussen"
when
TempAussen changed or
LuftfAussen changed or
Time cron "0 */5 * * * ?"
then
var Number Humi = LuftfAussen.state
var Number Temp = TempAussen.state
var Number Humi_r = (Math::round(Humi.floatValue))
var Number Temp_r = (Math::round(Temp.floatValue*10.0)/10.0)
// logInfo("Klima", "Aussen: " +Temp_r + " °C " +Humi_r + " %")
postUpdate(Klima_Out, Temp_r + " °C " + Humi_r + " %")
end
String Klima_Out "Temp Aussen [%s]" <LEGtemperature> (Out)
Number LuftfAussen "Luftfeuchtigkeit Sitzplatz [%.0f %%]" <LEGhumidity> (Out, LuftfAussen) {http="<[http://sens/meteolog.cgi?mode=data&sensor=th0:60000:REGEX([0-9]* th0 .*? (.*?) .*?)]" }
Number TempAussen "Temperatur Sitzplatz [%.1f °C]" <LEGtemperature> (Out, TempAussen) {http="<[http://sens/meteolog.cgi?mode=data&sensor=th0:60000:REGEX([0-9]* th0 (.*?) [0-9]* .*?)]" }
Text item=Klima_Out label="Temperatur [%s]"