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:


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:

And this site also recommends using curl:
/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.

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.


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.



Hi Dominic,

The Umlaut problem is a well-known problem also for other bindings. We are discussing this in the Smarthome issue tracker ( 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


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 ( to create it by hand.

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


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.


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:
(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 ( 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.