This is my attempt to try and get good control of Kodi via Smartthings, getting it integrated into the Smartthings echo system. It brings quite a bit of control.
Key Features
Communicate to and from Kodi
Get current state (Playing, Paused, Stopped, Shutdown, Startup)
Get current type - this is taken directly from Kodi
Get current category (Movie, TV Show, Sports)
All above configurable in preferences within the DTH
A fully functioning remote control right within your Smartthings App
Please take a look over at my GitHub README for the full details
##Version 1.2 [Latest]
Removed âSwitchâ capability as doesnât makes sense to me to use. Moved to Media Controller for the Kodi commands (Music Player still the state handler + custom attributes)
Made all the icons and colours a map at the very top of the code for easy customisation. Put in a easy to use order, so any future updates that override your personalisation are easy to copy and paste back over the update.
Install - You need to update both DTH and the Smartapp. If coming from a previous version, you MUST re-initalise the Smartapp. just go in to the smartapp (no need to change any settings) and click âDoneâ, for each smartapp instance. This will just re-initalise it to pick up latest settings.
NB you should not need to update the URLs in Kodi-Callbacks if you only update the smartapp to latest code.
Added more functionality to the remote and cleaned it up as a default theme (theme framework added for creating themes later)
Version 1.1 [Previous] - Overhaul of the original
Iâve turned the device handler into a media player and Kodi remote:
Preferences Screen
Iâve also added much better integration and control of Kodi. Head over to the read me for full details and comment below if you like it/have any suggestions/have any issues.
Version 1.0
I have forked and updated the Kodi Manager from here:
Iâve added shutdown and startup states. You need to add the URLâs to the callbacks plugin.
Iâve also added custom attributes and exposed some of the options I use as preferences in the device handler prefs.
Please take a look at the README in my repo for more info.
Also, I will be updating it, got quite a few ideas how I want to improve it. Eventually Iâll try and get rid off the call backs plugin (not sure I can do this!). For now its the best way to get the real time changes reflected
Special thanks to @toliver182 for the original kodi manager I forked.