Kodi Community Forum
v16 Using Kodi as Home Automation Controller(API commands in submenu) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+---- Forum: Aeon Nox: Silvo (https://forum.kodi.tv/forumdisplay.php?fid=142)
+---- Thread: v16 Using Kodi as Home Automation Controller(API commands in submenu) (/showthread.php?tid=303984)



Using Kodi as Home Automation Controller(API commands in submenu) - ravi_09x - 2017-01-13

hi people,

I have a wifi light that can be turned on and off by API commands.

Since my kodi is in the same network i wanted to make a submenu item that can give those API commands so that the Kodi works as Home Automation controller as well.

The following is the API command i give in the broswer that turns my light on:
http://192.168.1.106/orrin?saya=load+_11DSA0000

Now when i give this exact command in the 'custom item' in submenu action, it does not work.

Is there something else has to be done hereHuh

PS: I don't have much command on networking.

Please help!


RE: Giving API commands in Submenu in 'custom item' - BigNoid - 2017-01-13

Kodi doesn't know how to handle the url. What you can do is find out how to send the url over command line, put that in a script and use System.Exec(script.sh/cmd) in the custom shortcut action.


RE: Using Kodi as Home Automation Controller(API commands in submenu) - ravi_09x - 2017-01-13

....