[SOLVED] Paper UI some items say Undefined aswell as a value

Hi again everyone

I have been having this problem since the moving to OH 2.3 i did read a post on how to fix this i just cant find the post again , i was busy fixing other problems

all i can remember reading is that it was something too do with item files hoping someone can point me too the post TIA

    //  Weather Underground
// Current Forcast
Number LocalWeatherWeatherUnderground_Current_HeatIndex "Heat Index" { channel="weatherunderground:weather:local:current#heatIndex" }
Image LocalWeatherWeatherUnderground_Current_WeatherIcon "Weather Icon" { channel="weatherunderground:weather:local:current#icon" }
Number LocalWeatherWeatherUnderground_Current_WindChillTemperature "Wind Chill Temperature" { channel="weatherunderground:weather:local:current#windChill" }
String LocalWeatherWeatherUnderground_Current_WindDirection "Wind Direction" { channel="weatherunderground:weather:local:current#windDirection" }
Number LocalWeatherWeatherUnderground_Current_WindGust "Wind Gust" { channel="weatherunderground:weather:local:current#windGust" }
Number LocalWeatherWeatherUnderground_Current_WindSpeed "Wind Speed" { channel="weatherunderground:weather:local:current#windSpeed" }
String LocalWeatherWeatherUnderground_Current_ObservationLocation "ObservationLocation" { channel="weatherunderground:weather:local:current#location" }
DateTime LocalWeatherWeatherUnderground_Current_ObservationTime "Observation Time" { channel="weatherunderground:weather:local:current#observationTime" }
Number LocalWeatherWeatherUnderground_Current_SolarRadiation "Solar Radiation" { channel="weatherunderground:weather:local:current#solarRadiation" }
Number LocalWeatherWeatherUnderground_Current_Temperature "Temperature" (Goutside_Temp) { channel="weatherunderground:weather:local:current#temperature" }
Number LocalWeatherWeatherUnderground_Current_UVIndex "UV Index" { channel="weatherunderground:weather:local:current#UVIndex" }
Number LocalWeatherWeatherUnderground_Current_Visibility "Visibility" { channel="weatherunderground:weather:local:current#visibility" }
String LocalWeatherWeatherUnderground_Current_CurrentConditions "Current Conditions" { channel="weatherunderground:weather:local:current#conditions" }
Number LocalWeatherWeatherUnderground_Current_DewPointTemperature "Dew Point Temperature" { channel="weatherunderground:weather:local:current#dewPoint" }
Number LocalWeatherWeatherUnderground_Current_FeelingTemperature "Feeling Temperature" { channel="weatherunderground:weather:local:current#feelingTemperature" }
Number LocalWeatherWeatherUnderground_Current_Pressure "Pressure" { channel="weatherunderground:weather:local:current#pressure" }
Number LocalWeatherWeatherUnderground_Current_RainFallDay "Rain Fall Day" { channel="weatherunderground:weather:local:current#precipitationDay" }
Number LocalWeatherWeatherUnderground_Current_RainFallHour "Rain Fall Hour" { channel="weatherunderground:weather:local:current#precipitationHour" }
Number LocalWeatherWeatherUnderground_Current_RelativeHumidity "Relative Humidity" { channel="weatherunderground:weather:local:current#relativeHumidity" }

// Todays Forcast
Image LocalWeatherWeatherUnderground_ForecastToday_WeatherIcon "Weather Icon" { channel="weatherunderground:weather:local:forecastToday#icon" }
Number LocalWeatherWeatherUnderground_ForecastToday_MaximumTemperature "Maximum Temperature" { channel="weatherunderground:weather:local:forecastToday#maxTemperature" }
Number LocalWeatherWeatherUnderground_ForecastToday_MinimumTemperature "Minimum Temperature" { channel="weatherunderground:weather:local:forecastToday#minTemperature" }
Number LocalWeatherWeatherUnderground_ForecastToday_MaximumWindSpeed "Maximum Wind Speed" { channel="weatherunderground:weather:local:forecastToday#maxWindSpeed" }
Number LocalWeatherWeatherUnderground_ForecastToday_AverageWindSpeed "Average Wind Speed" { channel="weatherunderground:weather:local:forecastToday#averageWindSpeed" } 
Number LocalWeatherWeatherUnderground_ForecastToday_SnowFall "Snow Fall" { channel="weatherunderground:weather:local:forecastToday#snow" }
String LocalWeatherWeatherUnderground_ForecastToday_ForecastConditions "ForecastConditions" { channel="weatherunderground:weather:local:forecastToday#conditions" }
DateTime LocalWeatherWeatherUnderground_ForecastToday_ForecastTime "ForecastTime" { channel="weatherunderground:weather:local:forecastToday#forecastTime" }
Number LocalWeatherWeatherUnderground_ForecastToday_PrecipitationProbability "Precipitation Probability" { channel="weatherunderground:weather:local:forecastToday#probaPrecipitation" }
Number LocalWeatherWeatherUnderground_ForecastToday_RainFallDay "Rain Fall Day" { channel="weatherunderground:weather:local:forecastToday#precipitationDay" }

This is to do with the new “units” feature

Change your items to

Number:Temperature
Number:Speed
Number:Angle
Number:Pressure
Number:Dimensionless

Depending on what the item is.
You only need to do that for the items bound to WU or any ohter binding with dimension items. The docs have been updated
For example the netamo and nest binding now provide unit numbers.

Hi Again Vincent thanks for that i can remember now i will update my items now

do you use this when an item doesn’t fit angle temperate ect

Same as this one…

Btw, Vincent… Thanks for setting the thread to solved

You have to look into the doc for the Binding.

1 Like

Yes.
I use Dimensionless for Humidity for example

1 Like

Thanks for that here are my updated items for reference

some of my items like wind speed now show KPH how can i change this too MPH the rest of the values like CM are MM ect are perfect i would just prefer MPH

        //  Weather
    //  Weather Underground
// Current Forcast
Number LocalWeatherWeatherUnderground_Current_HeatIndex "Heat Index" { channel="weatherunderground:weather:local:current#heatIndex" }
Image LocalWeatherWeatherUnderground_Current_WeatherIcon "Weather Icon" { channel="weatherunderground:weather:local:current#icon" }
Number:Temperature LocalWeatherWeatherUnderground_Current_WindChillTemperature "Wind Chill Temperature" { channel="weatherunderground:weather:local:current#windChill" }
String LocalWeatherWeatherUnderground_Current_WindDirection "Wind Direction" { channel="weatherunderground:weather:local:current#windDirection" }
Number:Speed LocalWeatherWeatherUnderground_Current_WindGust "Wind Gust" { channel="weatherunderground:weather:local:current#windGust" }
Number:Speed LocalWeatherWeatherUnderground_Current_WindSpeed "Wind Speed" { channel="weatherunderground:weather:local:current#windSpeed" }
String LocalWeatherWeatherUnderground_Current_ObservationLocation "ObservationLocation" { channel="weatherunderground:weather:local:current#location" }
DateTime LocalWeatherWeatherUnderground_Current_ObservationTime "Observation Time" { channel="weatherunderground:weather:local:current#observationTime" }
Number:Intensity LocalWeatherWeatherUnderground_Current_SolarRadiation "Solar Radiation" { channel="weatherunderground:weather:local:current#solarRadiation" }
Number:Temperature LocalWeatherWeatherUnderground_Current_Temperature "Temperature" (Goutside_Temp) { channel="weatherunderground:weather:local:current#temperature" }
Number LocalWeatherWeatherUnderground_Current_UVIndex "UV Index" { channel="weatherunderground:weather:local:current#UVIndex" }
Number:Length LocalWeatherWeatherUnderground_Current_Visibility "Visibility" { channel="weatherunderground:weather:local:current#visibility" }
String LocalWeatherWeatherUnderground_Current_CurrentConditions "Current Conditions" { channel="weatherunderground:weather:local:current#conditions" }
Number:Temperature LocalWeatherWeatherUnderground_Current_DewPointTemperature "Dew Point Temperature" { channel="weatherunderground:weather:local:current#dewPoint" }
Number:Temperature LocalWeatherWeatherUnderground_Current_FeelingTemperature "Feeling Temperature" { channel="weatherunderground:weather:local:current#feelingTemperature" }
Number:Pressure LocalWeatherWeatherUnderground_Current_Pressure "Pressure" { channel="weatherunderground:weather:local:current#pressure" }
Number:Length LocalWeatherWeatherUnderground_Current_RainFallDay "Rain Fall Day" { channel="weatherunderground:weather:local:current#precipitationDay" }
Number:Length LocalWeatherWeatherUnderground_Current_RainFallHour "Rain Fall Hour" { channel="weatherunderground:weather:local:current#precipitationHour" }
Number:Dimensionless LocalWeatherWeatherUnderground_Current_RelativeHumidity "Relative Humidity" { channel="weatherunderground:weather:local:current#relativeHumidity" }

// Todays Forcast
Image LocalWeatherWeatherUnderground_ForecastToday_WeatherIcon "Weather Icon" { channel="weatherunderground:weather:local:forecastToday#icon" }
Number:Temperature LocalWeatherWeatherUnderground_ForecastToday_MaximumTemperature "Maximum Temperature" { channel="weatherunderground:weather:local:forecastToday#maxTemperature" }
Number:Temperature LocalWeatherWeatherUnderground_ForecastToday_MinimumTemperature "Minimum Temperature" { channel="weatherunderground:weather:local:forecastToday#minTemperature" }
Number:Speed LocalWeatherWeatherUnderground_ForecastToday_MaximumWindSpeed "Maximum Wind Speed" { channel="weatherunderground:weather:local:forecastToday#maxWindSpeed" }
Number:Speed LocalWeatherWeatherUnderground_ForecastToday_AverageWindSpeed "Average Wind Speed" { channel="weatherunderground:weather:local:forecastToday#averageWindSpeed" } 
Number:Length LocalWeatherWeatherUnderground_ForecastToday_SnowFall "Snow Fall" { channel="weatherunderground:weather:local:forecastToday#snow" }
String LocalWeatherWeatherUnderground_ForecastToday_ForecastConditions "ForecastConditions" { channel="weatherunderground:weather:local:forecastToday#conditions" }
DateTime LocalWeatherWeatherUnderground_ForecastToday_ForecastTime "ForecastTime" { channel="weatherunderground:weather:local:forecastToday#forecastTime" }
Number:Dimensionless LocalWeatherWeatherUnderground_ForecastToday_PrecipitationProbability "Precipitation Probability" { channel="weatherunderground:weather:local:forecastToday#probaPrecipitation" }
Number:Length LocalWeatherWeatherUnderground_ForecastToday_RainFallDay "Rain Fall Day" { channel="weatherunderground:weather:local:forecastToday#precipitationDay" }

Looks better too me

Number:Speed LocalWeatherWeatherUnderground_Current_WindGust "Wind Gust [%.1f mph]" { channel="weatherunderground:weather:local:current#windGust" }

Thats something thats on my todo list add more off these too my items i just dont understand how you know thats what was needed

you helped me with one of these a few posts ago still no wiser i dont like adding code i dont understand makes it hard too replicate and fix ect

I have added it too my items thanks again

@Sharpy
Aaron

It’s all there…

1 Like

Thanks i will save these posts for future reference

After Changing the item files some of my dummy widgets stopped working in habpannel

i have only added the Number:Pressure ect at the moment

Yes that’s a known issue. They will populate on the next item update.

i think it might be my mistake i also added it too the yahoo weather items and this stopped them from working removing the :Pressure ect solved this should i be adding them too all other items that are pressure speed length related or just ones for certain bindings

For the time being do it only for the bindings that require it. Leave the rest.
For a normal item you can display the unit this way

Itemtype Itemname "Item label [%.1f °C]" #celcius with 1 decimal
[%0.f %%] percentage no decimal
[%0.f mbar] milibars no decimals

and so on
1 Like

Thanks i appreciate all your help on that