Kodi Community Forum
Disable Addon from Skin - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Service Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=152)
+---- Thread: Disable Addon from Skin (/showthread.php?tid=183298)



Disable Addon from Skin - jedney - 2014-01-14

Hi,

Can anyone help me please? I need a way to enable or disable an Service Addon from a skin.

I've reviewed the list of built in functions at http://wiki.xbmc.org/index.php?title=List_of_built-in_functions - I need something like the DisableAddon(ID).

The reason I need this is that I've recently installed a home automation script which dims the lights whenever a Video is played. This works great, however there are times when I don't want it to do it. The easiest way would seem to be to Disable the Addon. This works fine, but has very low WAF when it requires about 8 remote presses to get to the right part of the Addon Manager and then back to the main menu.

Thanks for your help.

J.


RE: Disable Addon from Skin - sphere - 2014-01-14

This is possible via the jsonRPC method "Addons.SetAddonEnabled" which toggles the enabled state.
See here for details


RE: Disable Addon from Skin - jedney - 2014-01-14

Awesome, thanks for your help Sphere.