Open TV Channel in XBMC/Kodi

(Dominic Spatz) #1

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:


(Negm) #2

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

(Dominic Spatz) #3

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

(Martin Herbst) #4

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

(Dominic Spatz) #5

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

(Basem Al Saeed) #6

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

(Martin Herbst) #7

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

(Mark Lavercombe) #8

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

(Martin Herbst) #9

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

(Dominic Spatz) #10

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.



(Martin Herbst) #11

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.

(Andreas Kaluza) #12


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.


(Martin Herbst) #13

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.


(Mark Lavercombe) #14

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

(Dominic Spatz) #15

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)

(Dominic Spatz) #16

What is the successor of:
(1.x syntax) ?
It offers the Station Name of a TV or Radio Station.

(Martin Herbst) #17

PVR support is still missing in the current version

(Mihai Badea) #18

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 )

(Martin Herbst) #19

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.

(Markus Gehlhaar) #20

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