Both channels should be available in the snapshot version. Did you create your Kodi thing before updating or after updating to snapshot version? If it was before you maybe have to recreate it.
I have a few problems and questions that Iād like to askā¦
I added the the Thumbnail Channel through PaperUI
I am currently on Openhab 2.3 on Ubuntu 18 LTS Which is my Desktop PC. So recently Iāve tried using the Channels for Image(Thumbnail and Fanart) which in all attempts have failedā¦
Oh and another thing,I upgraded recently to 2.3 from 2.0, so this is actually my first attempt
First of all, Iāve added the Thumbnail Channel for OpenELEC(6) Running on a RPi 2, my desktop PC running the latest Kodi 17.3ā¦
My first Attempt was with OpenELEC, and I got no where, when I check Paper UI it says āNo image is currently presentā(And there is a Thumbnail Image and Fanart Image)
Second, I installed the latest version of Kodi on my Desktop, but now PaperUI does discover, it does add it, but when I check the status it says: āstatus: OFFLINE - COMMUNICATION_ERROR Connection could not be establishedā
And so I have no other way of testing this the Thumbnail Channel.
Question that I have is:
Is there a Problem with openhab 2.3?
Am I supposed to be running a specific version of Kodi/OpenELEC?
Is there maybe other means of identifying a problem?
The solution provided here does not use the thumbnail and fanart channels (these channels were not available when I posted this solution). However, it should be possible to use them I guess.
To be honest, I donāt know if the solution still works. My test setup died a long time ago and I havenāt reinstalled it since. On my production system Iām still running openhab 1.xā¦
Since the above solution does not work for you and Paper UI indicates a communication error, my best guess would be that the problem is in the configuration of Kodi.
Are you sure that the āAllow control Kodi via HTTPā option in Kodi is enabled? Also, the code in the rule above assumes that Kodiās webserver is listening on port 8080. Is yours also listening on port 8080 or perhaps on port 80?
I would first start by fixing the communication error you see in Paper UI. Once that is fixed then the next step would be to see if you can get this solution running.
I am using a Vero 4K with OSMC/Kodi installed, I will test the Thumbnail/fanart over the coming days as I want to display the movie art playing on my wall mounted tablet
EDIT: it appears to not display in the basic UI sitemap
hello, would it be possible to add an option to the kodi binding so we can set an offline thumbnail image?
i recently setup a habpanel and it is working great as long as kodi is playing a video, but everytime kodi is not online, values for artist, album, titel, thumbnail, fanart are actually NULL or UNDEF.
iāve setup some rules to change the values of those items when they are UNDEF but iām struggling hard to do the same for the thumbnail. when kodi is offline i always get an empty picture frame in habpanel that looks ugly. ( same like when a picture is not found in an tag)
rule "No Titel"
when
Item Kodi_Title changed or
Item Kodi_Mediatype changed
then
var String ersatzTitel = "No Title / No Playback"
var String ersatzArtist = ""
var String ersatzAlbum = ""
var Number ersatzposi = 0
var Number ersatzlength = 0
if (Kodi_Title.state == UNDEF) {
Kodi_Title.postUpdate(ersatzTitel)
Kodi_Abspielpositionp.postUpdate(ersatzposi)
Kodi_Abspielpositionp.postUpdate(ersatzlength)
Kodi_Album.postUpdate(ersatzAlbum)
Kodi_Artist.postUpdate(ersatzArtist)
// Kodi_Thumbnail.postUpdate(Kodi_Offlineimage)
here i tried to set an image item but iām not sure how it is done right since the documentation has no example for the type image. it is not working. can someone please correct me?
Thank you for your guidance, it is working in the sitemap. No i did not know about the article you linked.
I was refererring to this items guide
it says somewhere in the middle type name image but i didnāt find an example of how to use it.
There are examples for all types except of Image. It is still unclear how to do it outside of the sitemap in a regular .items file
here is a picture of your solution working in the sitemap.
Thank you. half way there =)
Here is a picture of my habpanel so you can see what iām trying to do.
And here is the code for the widget on the left side:
playprogress, title, artist and album gets replaced by my rule linked in last post but sometimes when watching a youtube video for instance either album or artist are still UNDEF and then itās showing up like here: habpanelyoutubevideo
I appreciate your help and thx a lot for your time.
You maybe then should review your Rule and change it to check for UNDEF on every Item state. Not only the title - do not forget to adept the Trigger as well.
if (Kodi_Title.state == UNDEF)
Kodi_Title.postUpdate(ersatzTitel)
...
if (Kodi_Album.state == UNDEF)
Kodi_Album.postUpdate(ersatzAlbum)
...
In HABPanel you probably want to use the relative path. When you open the page on e.g. your tablet then localhost will be your tablet so it wonāt be able to find the picture.
iām still not sure if the the syntax is correct for Kodi_Offlineimage in a regular items file since the docs have no examples for Image, except the sitemap one you mentioned above.
AFAIK you cannot define an Image item linked to a fixed source. Thus you currently should see errors or warnings in your log file. Additionally I am not an HABPanel expert but I am sure there is a solution for hiding stuff if necessary.
rule "KodiThumbnailUNDEF"
when
Item Kodi_Thumbnail changed to UNDEF
then
Kodi_Thumbnail.postUpdate("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=")
end