Skip to content

Commit a5a9858

Browse files
committed
Added smartapp.
1 parent 41e07cc commit a5a9858

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

smartapps/fireboy1919/milight-manager.src/milight-manager.groovy

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,14 @@ def initialize() {
5151
def httpCall(body, uri, mac, evt) {
5252
def group = evt.device.getPreferences()["group"]
5353
def path = "/gateways/$mac/rgbw/$group"
54+
def body = JsonOutput.toJson(body);
5455
def params = [
5556
uri: uri,
5657
path: path,
57-
body: JsonOutput.toJson(body),
58+
body: body,
5859
contentType: 'application/json'
5960
]
60-
log.debug("Sending to ${params['uri']}${path}.")
61+
log.debug("Sending to ${params['uri']}${path}. Body: ${body}.")
6162
try {
6263
httpPutJson(params) {resp ->
6364
if(settings.isDebug) { log.debug "Successfully updated settings." }

0 commit comments

Comments
 (0)