[SOLVED] Sitemap Image not working

Hi all,

I’m running a RPi3 with openhab2.
The used OS is a Raspbian Stretch.

I’m trying to use the Image type on my sitemap:
http://docs.openhab.org/configuration/sitemaps.html#element-type-image

But the image is not displayed on the sitemap.

I receive the following messages in the log:
2017-11-19 13:00:41.136 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘Cam_Test’ for widget org.eclipse.smarthome.model.sitemap.Image
2017-11-19 13:00:41.137 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘Cam_Test’ for widget org.eclipse.smarthome.model.sitemap.Image
2017-11-19 13:00:41.139 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Image

Currently I have no idea what to check further.

This is my Sitemap configuration:
Frame label=“Video” {
Text label=“Cams” icon=“camera” {
Image item=Cam_Test url=“https://raw.githubusercontent.com/wiki/openhab/openhab/images/features.png
}
}

I hope someone might be able to help.

Let me know if you need more information.

Best regards
Timmi

What’s the value of your item ?

What do you mean with value?

Item state if you prefer.

The item is a image. So I don’t know what type of state you request.

Is it an image or an URL ?
What UI are you using ?
Please show how this item is defined. To what binding channel is it LinkedIn ?

Hi Lolodomo,

I only defined this Item in the sitemap as show in my first post.
This is the example for this page:
http://docs.openhab.org/configuration/sitemaps.html#element-type-image

There is no further configuration than that.
Using BasicUi and the mobile app.

Best regards
Timmi

I think that you should either item= or url=
if you use item= , the state of this item should be a string with the value of the url (you need to define/create such item in your files)
if you use url= , you simply type the url there

The ERROR that you are getting is because you haven’t defined/created the Cam_Test item (in an *.items file)

If you have the raw image or its URL ser in an item, you must use item= AND url=
If you don’t need item but just want to display an image from its URL, just use url=

Hi both,

thank you for your answers. I will try this later today.

Best regards
Timmi

Hi both,

I just tried the following:

Frame label="Video" {
  Text label="Kameras" icon="camera" {
    Image url="https://raw.githubusercontent.com/wiki/openhab/openhab/images/features.png"
  }
}

This is not working for me. The basicUI does not show any pic. But now there is also no Error message in the log.

Best regards
Timmi

Issue solved in OH2.2.