SmartThings XBMC Home Theater Integration

Yeah… except I’d be a bit worried exposing my HTPC to the Whole Wide World.

@iGoControl

Authentication can be enabled for the EventGhost webserver as well, I just disabled it for my initial testing of the device type. Good call though, I should probably bake that into the device type code!

Curious as to if anyone has developed kodi integration further ? I run mine on a gbox q and would like to do basic stuff like dim lights when a movie starts. And When motion occurs only put lights to a certain level. Perhaps even set a mode to “Movie”.

I call a script from within Kodi to hit the endpoint URL for each action.
When a movie starts, the lights fade off.

I’m having issues with an endpoint that allows dimming to a set level though.
I’m not a developer, and I can’t figure out how to get the endpoint example to allow dimming with URL access to the device.

Someone tried to help me, but it didn’t work for me, and I haven’t revisited it yet.

Relevant code section for dimmers. This code snip allows you to send a value (1…99) to your dimmer.

 path("/dimmers") {
    		action: [
    			GET: "listDimmers"
    		]
    	}
    	path("/dimmers/:id") {
    		action: [
    			GET: "showDimmer"
    		]
    	}
    	path("/dimmers/:id/:command") {
    		action: [
    			GET: "updateDimmer"
    		]
    	}

You can find the whole example here

Was anyone ever able to come up with the code that would allow the device to update its state via Http requests?