Linux Disable Kodi responding to Lirc
#1
Hi all,

I am running kodibuntu (latest release) with a USB IR receiver and Harmony remote and a working Lirc configuration (e.g. Lirc receives IR commands). What I want to do is to route the Lirc events to another application named OpenHab, and use OpenHab to make call JSON RPC calls to Kodi. Both OpenHab and Kodi run on the same system.

The problem is that Kodi at the moment also responds to Lirc events. Is there any way to disable this, such that Lirc events are ignored by Kodi but without completely disabling Lirc on the machine? I have tried to find something on the webs, but almost everything seems to be about the reverse - e.g making Kodi work WITH Lirc instead of disabling it. Any help is much appreciated!

Thanks,
Joost
Reply
#2
There are built-in functions

LIRC.Stop --> Removes Kodi as a LIRC client.
LIRC.Start --> Adds Kodi as a LIRC client.

Look at List_of_built-in_functions
Reply
#3
Thanks a lot for this! So far I was remapping all my buttons to an action and that action in remote.xml to noop, which was way too much hassle. This is way more elegant.

So I have now in my autoexec.py this line:

xbmc.executebuiltin('Lirc.Stop')

Hope it works when I get a chance to test this later.
Reply

Logout Mark Read Team Forum Stats Members Help
Disable Kodi responding to Lirc0