[ERROR] [ui.internal.items.ItemUIRegistryImpl]

Platform information:
Hardware: Raspbery Pi 3
openHAB 2.4.0 Build #1412

I’m getting this error with Paper UI and Android when accessing different items, this error seems to be related to a table lamp? But in Paper UI and Android I do see the lamp and I can control it?

Error Log:
2018-11-19 09:57:09.177 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Group
2018-11-19 09:57:09.182 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘BF_TableLamp’ for widget org.eclipse.smarthome.model.sitemap.Group
2018-11-19 09:57:09.185 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘BF_TableLamp’ for widget org.eclipse.smarthome.model.sitemap.Group
2018-11-19 09:57:09.189 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘BF_TableLamp’ for widget org.eclipse.smarthome.model.sitemap.Group

Items file:

// Basemenet
Color Basement_Color “Tablelamp” (BF_Tablelamp) { channel=“lifx:colorlight:basement:color” }
Dimmer Basement_Temperature “Tablelamp” (BF_Tablelamp) { channel=“lifx:colorlight:basement:temperature” }
Switch BF_Cans “Cans” {insteonplm=“2B.DC.CB:F00.00.02#switch”}

Sitemap:

Group item=BF_LivingRoom label=“Family Room”
{
Group item=BF_TableLamp label=“Table Lamp” icon= “lightbulb”
{
Switch item=Basement_Color
Slider item=Basement_Color
Colorpicker item=Basement_Color
Slider item=Basement_Temperature
}
Switch item=BF_Cans label=“Cans”
}

Replace the Group with Text and remove the item=...
Openhab is trying to display the content of the group and then you are overriding with items.

Text label=“Table Lamp” icon= “lightbulb”
{
Switch item=Basement_Color
Slider item=Basement_Color
Colorpicker item=Basement_Color
Slider item=Basement_Temperature
}

Thanks that solved my issue, I had a group inside a group?

Vincent

Another question, I fixed all the group errors I had, but now I’m getting a text error on a different part of my sitemap:

// Time info

Frame {
Text label="Time of Day Information" {
    Frame label="Time Period of Day" {
        Text item=TimePeriodOfDay label="Time of Day"
    }
    Frame label="Time Transition Events" 
    {
        //Text item=SunriseStart_Time label="Sunrise Start Time"

        Text item=Sunrise_Time label="Sunrise_Time"
        Text item=Sunset_Time label='Sunset_Time'

       // Text item=SunsetStart_Time label="Sunset Start Time"

        Text item=DawnStart_Time label="Dawn Start Time"
        Text item=DayStart_Time label="Day Start Time"
        Text item=DuskStart_Time label="Dusk Start Time"
        Text item=NightStart_Time label="Night Start Time"
        
    }
    Frame label="Time of Day Status" {
        Text item=Dawn label="Is Dawn"
        Text item=Day label="Is Day"
        Text item=Dusk label="Is Dusk"
        Text item=Night label="Is Night"
    }
    Frame label="Sun" {
        Text item=SunAzimuth label="Sun Azimuth" icon="sun"
        Text item=SunElevation label="Sun Elevation" icon="sun"
    }
    Frame label="Moon" {
        Text item=MoonPhase label="Moon Phase" icon="moon"
    }
}

}

Error:
2018-11-19 12:13:03.367 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Text
2018-11-19 12:13:03.372 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘SunAzimuth’ for widget org.eclipse.smarthome.model.sitemap.Text

2018-11-19 12:13:03.378 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘SunAzimuth’ for widget org.eclipse.smarthome.model.sitemap.Text
2018-11-19 12:13:03.382 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘SunAzimuth’ for widget org.eclipse.smarthome.model.sitemap.Text
2018-11-19 12:13:03.388 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Text
2018-11-19 12:13:03.393 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘SunElevation’ for widget org.eclipse.smarthome.model.sitemap.Text
2018-11-19 12:13:03.399 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘SunElevation’ for widget org.eclipse.smarthome.model.sitemap.Text
2018-11-19 12:13:03.403 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘SunElevation’ for widget org.eclipse.smarthome.model.sitemap.Text

What does VSCode says about your syntax?

No issues? That’s whats odd. But then I get the error in the log?

Delete the “Sun” frame.
Does that throw an error?

Its’ related to , SunAzimuth & SunElevation
When I comment them out its fine?
I think its the fact that they are angles? and I’m trying to display them as text???

Sitemap
Frame label=“Sun”
{
Text item=Dusk label=“Is Dusk”
Text item=Night label=“Is Night”
//Text item=SunAzimuth label=“Sun Azimuth” icon=“sun”
//Text item=SunElevation label=“Sun Elevation” icon=“sun”
}

Items:
Number:Angle Azimuth “Azimuth” { channel=“astro:sun:home:position#azimuth” }
Number:Angle Elevation “Elevation” { channel=“astro:sun:home:position#elevation” }

Try that:

Number:Angle Azimuth "Azimuth [%.1f °]" { channel="astro:sun:home:position#azimuth" }
Number:Angle Elevation "Elevation [%.1f °]" { channel="astro:sun:home:position#elevation" }
Frame label=“Sun”
{
Text item=SunAzimuth icon=“sun”
Text item=SunElevation icon=“sun”
}

Same issue?

Delete the Sun frame. Don’t comment it out, delete it. Save the file.
Type it in again.

Sounds weird, I know but there may be a stray invisible character in there

Same issue?

Its related to the SunAzimuth & SunElevation , I deleted the frame and moved the two items into the moon frame and got the same error?

// Time info
//
Frame {
Text label=“Time of Day Information” {
Frame label=“Time Period of Day” {
Text item=TimePeriodOfDay label=“Time of Day”
}
Frame label=“Time Transition Events”
{
// Text item=SunriseStart_Time label=“Sunrise Start Time”

        Text item=Sunrise_Time label="Sunrise_Time"
        Text item=Sunset_Time label='Sunset_Time'

      // Text item=SunsetStart_Time label="Sunset Start Time"

        Text item=DawnStart_Time label="Dawn Start Time"
        Text item=DayStart_Time label="Day Start Time"
        Text item=DuskStart_Time label="Dusk Start Time"
        Text item=NightStart_Time label="Night Start Time"
        
    }
    Frame label="Time of Day Status" {
        Text item=Dawn label="Is Dawn"
        Text item=Day label="Is Day"
    }
    

    
    Frame label="Moon" {
        Text item=MoonPhase label="Moon Phase" icon="moon"
        
        Text item=SunAzimuth  icon="sun"
        Text item=SunElevation icon="sun"
    }
}

Here’s the log:

2018-11-19 14:09:24.165 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model ‘our_house.sitemap’

2018-11-19 14:09:27.182 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Text

2018-11-19 14:09:27.189 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘SunAzimuth’ for widget org.eclipse.smarthome.model.sitemap.Text

2018-11-19 14:09:27.194 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘SunAzimuth’ for widget org.eclipse.smarthome.model.sitemap.Text

2018-11-19 14:09:27.196 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘SunAzimuth’ for widget org.eclipse.smarthome.model.sitemap.Text

2018-11-19 14:09:27.199 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Text

2018-11-19 14:09:27.202 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘SunElevation’ for widget org.eclipse.smarthome.model.sitemap.Text

2018-11-19 14:09:27.205 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘SunElevation’ for widget org.eclipse.smarthome.model.sitemap.Text

2018-11-19 14:09:27.208 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘SunElevation’ for widget org.eclipse.smarthome.model.sitemap.Text

==> /var/log/openhab2/events.log <==

2018-11-19 14:09:34.800 [vent.ItemStateChangedEvent] - Azimuth changed from 212.55999613916336 ° to 212.7875710952551 °

2018-11-19 14:09:34.813 [vent.ItemStateChangedEvent] - Elevation changed from 18.98056692974793 ° to 18.884940630538527 °

Delete them completely and save
Type them back in. Don’t copy and paste

This is the only thing that worked?

        Text item=astro_sun_local_position_azimuth
        Text item=astro_sun_local_position_elevation

Odd