[SOLVED] Error to transform - without need to transform

  • Platform information:
    • Hardware: Raspberry Pi 3 Model B Rev 1.2
    • OS: openHABian
    • Java Runtime Environment: whatever is deployed with openHABian
    • openHAB version: openHAB 2.4.0-1 (Release Build)

Hi guys,

A few times a day I have the following error message in my log:

2019-10-20 07:58:38.186 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - couldn’t transform value in label because transformationService of type 'HEM ’ is unavailable

The crux is that I’m not using a transformation service called HEM…

Maybe someone knows how / where else to look for the source of this error message - I’m now at the end of my latin…

(Yes, I could simply filter the message - it’s less about getting the message out of my log and more about ‘why is that happening?’)


HEM is the name of a gas station I’m polling for prices via the tankerkönig binding and the String ‘HEM’ occurs in exactly 4 files in my setup:

things

Bridge tankerkoenig:webservice:WebserviceName "Tankerkoenig" [ apikey="<nothing-to-see-here>", refresh= 10, modeOpeningTime =false ] {
        Thing station TK_HEM "<nothing-to-see-here>" @ "GasStations"[ locationid = "<nothing-to-see-here>" ]
}

items

Group:Number:AVG GGas_Prices			
    "Durschnittlicher Benzinpreis: [%.3f €]" 					
    <price>	
    (Functions) 

Number TK_HEM_E5 
    "Super [%.3f €]"
    <price>
    (GGas_Prices)
    { channel="tankerkoenig:station:WebserviceName:TK_HEM:e5" }

Number TK_HEM_E5_AVG
    "Durchschnittlich [%.3f €]"
    <niveau>

rules

val String rulesDomaine = "tankerkoenig.rules"

rule "Current Gas Price"
when
    Time cron "0 45 14 ? * MON-FRI" or
    Item State_Vacation changed
then
	logInfo(rulesDomaine, "Rule \"Current Gas Price\" triggered")
    val avgPrice = TK_HEM_E5.averageSince(now.minusMonths(1))
    TK_HEM_E5_AVG.sendCommand(avgPrice)
    // 1. Check to see if the Rule has to run at all, if not exit.
    if( TK_HEM_E5.state >= avgPrice) {
        logDebug(rulesDomaine, "Current price: " + TK_HEM_E5.state + "> avg price: " +
            avgPrice + " -> do nothing")
        return
    }

    // 2. Calculate what needs to be done.

    // 3. Do it. Only do actions in like sendCommand in one place at the end of the Rule.
    Message_Service.sendCommand("HEM (Super): " + TK_HEM_E5.state + "€/l, damit liegt " +
        "der Preis unter dem durchschnittlichen Preis von " + avgPrice + "€/l der " +
        "letzten vier Wochen")
end

sitemap

Text item=GGas_Prices 
				valuecolor=[<=1.3="green", <=1.4="orange", >1.4="red"]
				{
			Frame label="HEM <nothing-to-see-here>" {
				Text item=TK_HEM_E5
					valuecolor=[<=1.3="green", <=1.4="orange", >1.4="red"]
			}// END Frame HEM
			Frame {
				Switch item=State_Chart_Gas_Prices
					label=""
					mappings=[
							1="Tag",
							2="Woche",
							3="Monat",
							4="Jahr"]
				Text item=TK_HEM_E5_AVG
				Chart item=GGas_Prices
					period=D
					refresh=600000
					visibility=[State_Chart_Gas_Prices == 1,
							State_Chart_Gas_Prices == NULL]
				Chart item=GGas_Prices
					period=W
					refresh=600000
					visibility=[State_Chart_Gas_Prices == 2]
				Chart item=GGas_Prices
					period=M
					refresh=600000
					visibility=[State_Chart_Gas_Prices == 3]
				Chart item=GGas_Prices
					period=Y
					refresh=600000
					visibility=[State_Chart_Gas_Prices == 4]
			}// END Frame Diagramm

You may have run into this issue, it’s about the inclusion of an accidentally magic string in an Item state.

Thx - that seems to match my problem perfectly :grinning: