Using Kodi as Home Automation Controller(API commands in submenu)

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 hereConfused

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

Please help!