Closed i3laze closed 4 years ago
It's a bug with the minimal config. Thanks for reporting. I'm fixing it with the next version. Sorry for the problems you're having. A workaround would be to set all accessories to true in the meantime.
{
"platform": "Kodi",
"name": "Kodi",
"host": "172.16.0.1",
"port": "8080",
"username": "kodi",
"password": "",
"polling": 10,
"playerPlay": true,
"playerStop": true,
"applicationVolume": true,
"videoLibraryScan": true,
"videoLibraryClean": true
}
0.1.4 indeed works just fine. Thank you! Now it’s time for me to introduce some new home automations) Like Kodi-Pause on Koogeek front door open or kitchen light toggle on Player.
However some regular warnings on startup still left:
[11/15/2019, 5:26:29 PM] [Kodi] Initializing Kodi platform...
Init Homebridge-Kodi
[11/15/2019, 5:26:29 PM] [Kodi] Adding Kodi Player
[11/15/2019, 5:26:29 PM] [Kodi] Adding PlayerLightbulbAccessory
HAP Warning: Characteristic 3deb7456-5196-497e-8f4e-efc455516c96 not in required or optional characteristics for service 00000043-0000-1000-8000-0026BB765291. Adding anyway.
HAP Warning: Characteristic 939cbbc9-382f-4574-903f-649ffbc24a1d not in required or optional characteristics for service 00000043-0000-1000-8000-0026BB765291. Adding anyway.
HAP Warning: Characteristic 1972fe3f-7fe6-4e30-acdf-951eb9aabb7a not in required or optional characteristics for service 00000043-0000-1000-8000-0026BB765291. Adding anyway.
HAP Warning: Characteristic 74341e3c-271d-4f3c-b84e-595b804b1f90 not in required or optional characteristics for service 00000043-0000-1000-8000-0026BB765291. Adding anyway.
HAP Warning: Characteristic cf1c85ad-ba54-48e8-9681-255278976584 not in required or optional characteristics for service 00000043-0000-1000-8000-0026BB765291. Adding anyway.
[11/15/2019, 5:26:29 PM] [Kodi] Starting Kodi Update with polling: 3 seconds
[11/15/2019, 5:26:29 PM] [Kodi] Kodi Accessories read.
[11/15/2019, 5:26:29 PM] [Kodi] Initializing platform accessory 'Kodi Player'...
[11/15/2019, 5:26:29 PM] [Config] Initializing config platform...
[11/15/2019, 5:26:29 PM] [Config] Running in Standalone Mode.
[11/15/2019, 5:26:29 PM] Loading 1 accessories...
...
[11/15/2019, 5:26:29 PM] Homebridge is running on port 51826.
[11/15/2019, 5:26:30 PM] [Kodi] Kodi Version: 18.2
{ code: -32601, message: 'Method not found.' }
{ code: -32601, message: 'Method not found.' }
{ code: -32601, message: 'Method not found.' }
{ code: -32601, message: 'Method not found.' }
{ code: -32601, message: 'Method not found.' }
{ code: -32601, message: 'Method not found.' }
{ code: -32601, message: 'Method not found.' }
{ code: -32601, message: 'Method not found.' }
{ code: -32601, message: 'Method not found.' }
{ code: -32601, message: 'Method not found.' }
{ code: -32601, message: 'Method not found.' }
Thanks for your efforts! Before I used legacy Kodi Callbacks add-on to fire shell scripts to push HomeBridge on Kodi events. That one not maintained anymore and got compatibility issues with Leia.
Your HB plugin does work (I see status and can play/pause from Home.app), however I got these error messages in HB and HB restarts like once a minute:
HomeBridge 0.4.50, Plugin 0.1.3, LibreElec 9.0.2, Kodi 18.2
P.S. I run HomeBridge in Docker right above Kodi (LibreElec) - my networking might be the cause: HB Container has both Bridge 172.16.0.2 and MacVlan 192.168.1.128 interfaces. First one isn’t used for mDNS bonjour stuff (probably, can’t do getCharasteristic), second has no connectivity with Docker host (Kodi IP) by design (macvlan). I use bridge gateway IP 172.16.0.1 as “host IP” setting: