Room Widget Background not loading

release-preview23
openhab

#1

Hi,

I am not able to load the background image for the Room widget. I did the following text based configuration:

                            "photo": 
                            {
                                    "binding": "Rotini_Background_Wohnzimmer"
                            },

The openHAB 2 item is an String which contains the correct hyperlink to the picture but it is not loaded. Could somebody share the correct configuration for this feature.

best regards René


Release - Preview 23: Wink support
#2

Can you provide at least rough format of URL that is assigned to Rotini_Background_Wohnzimmer?
There are some constraints on supported URL right for OpenHAB, so that might be an issue.


#3

Yes sure. I tried several ways. The connection to openhab is done via myopenhab and no local connection.

I tried:

over myopenhab

all with the same problem :frowning:


#4

These should have worked. Will check, might be a bug.


#5

Thanks Igor


#6

I still get it not working. Have you checked it with OH2 already?


#7

Yes, it is working for me. I couldn’t find the reason why it wouldn’t yet.
Do you have authentication enabled to access those images in all 3 cases?


#8

Hi I believe I know the problem see below:

grafik

The link looks a bit strange. Is this as it should be? Why it is not starting directly with the http://

The item contains the following value:
http://192.168.0.10/snapshot.cgi


#9

And your OH instance is not on http://192.168.0.10, since you connect through myopenhab, correct?


#10

I am now in local mode. As I thought the myopenhab is the problem.


#11

ok, and what host (exactly) you entered when configuring platform for local access?


#12

http://192.168.0.24:8080 is OH2 Host


#13

I have the same problem where it is putting “api” stuff at the front of my url to the image.


#14

This is fixed for the Preview 23 release


#15

Hi Igor,

the link looks now good, but the background is not loaded over myopenhab connection. Should this work?

myopenhab link: https://home.myopenhab.org/static/rotini/living-room.jpg


#16

@rene54321 I didn’t specially check for myopenhab URLs, but can you access that image normally through browser?
If it does work with browser, I’m thinking maybe auth is a problem then.


#17

Hi,

yes I believe that is the problem. I am only able to load the jpg after authenticating with myopenhab. I use myopenhab connection as Rotini platform to be able to access all items over 4G without VPN to my home, so I thought this is also working as getting the item states.

best regards René


#18

@rene54321 yes, it should’ve worked. Assuming you have https://home.myopenhab.org part included in the item state, can you try without it? E.g. /static/rotini/living-room.jpg


#19

Hi

The item contains this link:

https://home.myopenhab.org/static/rotini/living-room.jpg

If I open this link in the browser I need to authticate. After successful authentication the Screenshot is loaded.


#20

Can you try putting relative link as item value: /static/rotini/living-room.jpg?