Open TV Channel in XBMC/Kodi

is there anyone using the XBMC / KODI Binding?

I want to tune to a specific channel with openHAB.

tried to ask it before.

If someone could provide an example, i tried to use the number or name of the channels.

This is the Item definition for PVR Items:

xbmc=“>[#livingroom|PVR.OpenTV]”

I ended up using the http binding to do it as no one replied and i couldnt reach a solution for it :slight_smile:

1 Like

It would be great if there is a kodi binding,
the rest api has a lot of possible approches how to interact with the channels.
For example listing channel details:
http://forum.kodi.tv/showthread.php?tid=244198

And this site also recommends using curl:
http://forum.kodi.tv/showthread.php?tid=183965&pid=1607144#pid1607144
/usr/bin/curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"id":1,"jsonrpc":"2.0","method":"Player.Open","params":{"item":{"channelid":14}}}' http://localhost:9191/jsonrpc

There is a Kodi binding based on openHAB 2 in work. It already runs wery well. Only PVR is not supported yet

When will it be released?
I did not find it on cloudbees

@Mohamed_Negm same here :slight_smile:
would be great to get an updated Kodi binding

1 Like

I think a first version of the new binding will be available soon. The code is currently reviewed.

@MHerbst
Do you know when this will be available? :slight_smile:

It has been merged today. So probably it will be available with the next snapshot build tomorrow.

2 Likes

Great,
but there is some Problem with the "Umlauts"
Not all content is shown, so i might use 1.x and 2.x next to each other in the beginning.

Umlauts:
K�nstler
(Künstler)

Lautst�rke
(Lautstärke)

Hi Dominic,

The Umlaut problem is a well-known problem also for other bindings. We are discussing this in the Smarthome issue tracker (https://github.com/eclipse/smarthome/issues/2639) and I think that we have a solution.
Now that the binding has been merged I can work on the PVR support. But it may take 2 or 3 weeks until a first implementation.

1 Like

Hi,

first at all: Thanks for implementing this new thing.

I’d like to use/test it, but I’am missing the kodi.things-file (it was not created after installation) or the help-page (http://docs.openhab.org/addons/bindings/kodi/readme.html) to create it by hand.

It would be great to get the content of a sample file, esp. with auth.

Thanks,
GL

Hi Andreas,

Things file always have to be created manually. But if you use the Paper UI you don’t need it. Normally your Kodi will be detected automatically. Then new binding uses the websocket API and as far as I remember this does not need auth.

Martin

Hi!
I installed the kodi binding last night and it found my kodi instances flawlessly.
Everything is working as it should be :slight_smile:

I use the paper and classic UI, so i don’t need the Things file.
I also use LibreElec, which is a KODI optimized OS for the RPi.

It does not offer a clean Websocket API (i had authentication issues)
So i defined websockets on port 9999 (there are a few examples out there)

What is the successor of:
{xbmc="<[#livingroom|Player.Label]"}
(1.x syntax) ?
It offers the Station Name of a TV or Radio Station.

PVR support is still missing in the current version

1 Like

Hi guys!

Testing this new binding I came across a small problem…
The “control” channel does not support STOP.
Is this the intended behavior?
If you stop the player in Kodi, the channel state goes to PAUSE instead of STOP.
And, evidently, you cannot send STOP command to player…

Valid data types are: ( PlayPauseType RewindFastforwardType UnDefType )

The channel uses the standard player item type (https://www.eclipse.org/smarthome/documentation/concepts/items.html) but this item type apparently does not have a stop function.
You could add an issue in the Smarthome repo for support of a stop function in the player.

@MHerbst Any news for PVR support? Thank you for your work on the binding.