DeutscheMark/homebridge-kodi

Kodi 19 issue

bogdanbun opened this issue · 2 comments

Describe The Bug:

Integration with Kodi 19 seems to be broken.

To Reproduce:

  1. Install (or upgrade existing installation) of Kodi to v19.
  2. Reload the homebridge-kodi.
  3. Check "remote control" feature of iOS.
  4. Check the homebridge-kodi logs.

Expected behavior:

The Kodi option should be available in the remote control.

Logs:

[2/21/2021, 3:25:14 PM] [Config] Running in Service Mode
[2/21/2021, 3:25:14 PM] [Kodi] Initializing Kodi platform...
[2/21/2021, 3:25:14 PM] [Kodi] Init Homebridge-Kodi
[2/21/2021, 3:25:14 PM] [Kodi] Adding Kodi Controls
[2/21/2021, 3:25:14 PM] [Kodi] Adding input for Kodi Controls: Home
[2/21/2021, 3:25:14 PM] [Kodi] Adding input for Kodi Controls: Settings
[2/21/2021, 3:25:14 PM] [Kodi] Adding Kodi Controls
[2/21/2021, 3:25:14 PM] [Kodi] Adding TelevisionControlsAccessory
[2/21/2021, 3:25:14 PM] [Kodi] Adding TelevisionControls - Kodi Controls Speaker
[2/21/2021, 3:25:14 PM] [Kodi] Adding TelevisionControls - InputKodi Controls Home
[2/21/2021, 3:25:14 PM] [Kodi] Adding TelevisionControls - InputKodi Controls Settings
[2/21/2021, 3:25:14 PM] [Kodi] Error adding sequence: undefined
Preparing Advertiser for 'Kodi Controls 5EA1' using bonjour-hap backend!
Preparing Advertiser for 'Homebridge Kodi 1BC2' using bonjour-hap backend!
Setup Payload:
X-HM://XXXXXXXXXXXXX
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ XXX-XX-XXX │     
    └────────────┘     
                       
Starting to advertise 'Kodi Controls 5EA1' using bonjour-hap backend!
[2/21/2021, 3:25:14 PM] Kodi Controls 5EA1 is running on port XXXXX.
[2/21/2021, 3:25:14 PM] Please add [Kodi Controls 5EA1] manually in Home app. Setup Code: XXX-XX-XXX
Starting to advertise 'Homebridge Kodi 1BC2' using bonjour-hap backend!
[2/21/2021, 3:25:14 PM] Homebridge v1.3.0 (Homebridge Kodi) is running on port XXXXX.
[2/21/2021, 6:48:51 PM] [Homebridge UI] [admin] Accessory layout changes saved.

Plugin Config:

        {
            "name": "Kodi",
            "host": "XXX.XXX.XXX.XXX",
            "port": "XXXX",
            "username": "XXXXXXXX",
            "password": "XXXXXXXX",
            "polling": 10,
            "retrytime": 30,
            "debug": false,
            "television": {
                "controls": {
                    "menuitems": [
                        "home",
                        "settings"
                    ]
                }
            },
            "player": {
                "main": false,
                "play": false,
                "pause": false,
                "stop": false
            },
            "application": {
                "volume": false
            },
            "videolibrary": {
                "scan": false,
                "clean": false
            },
            "audiolibrary": {
                "scan": false,
                "clean": false
            },
            "commands": [
                {
                    "interval": 200
                }
            ],
            "platform": "Kodi"
        }
  • Environment
    Linux Debian 10

  • Plugin Version:
    1.0.1

  • Homebridge Version:
    1.3.0

  • Node.js Version:
    14.15.5

  • NPM Version:
    6.14.11

  • Operating System:
    Debian 10

Hi,

from the log everything looks fine although your commands section is somehow not set correctly, as there is no name and sequence set, only the interval (maybe you only set the interval in Config-UI-X). But that doesn't matter for the TV remote control so you can just delete the commands section (or remove the interval and command in the Commands section in Config-UI-X).

I assume you added the TV accessory manually like it is said in the log? The remote is only available when the TV accessory is added with the HomeKit code shown. This is new with v1.0.1 as the plugin now supports external accessories to support the remote for more than one remote control per Homebridge instance and config.

If you did so, is your TV accessory active when Kodi is running and set to "Home"? Is changing the input to "Settings" working?

I tried everything with Kodi v19 as my main test so I cannot reproduce your problem right now. The remote control worked for me.

In order to help with this issue could you please set debug to true and send me the log that is written after adding all accessories and maybe try to set the input of the TV accessory or try to disable it so some log is written.

Thank you for your help. 😊
DM

After the initial installation of homebridge-kodi I was getting the same "Error adding sequence: undefined" error message every time the plugin started. It went away after I had defined the first command sequence.

Before I did that, I was able to use most other plugin functions without a problem. I'm still on Kodi 18.9.