diff --git a/smartapps/jonscheiding/power-control.src/power-control.groovy b/smartapps/jonscheiding/power-control.src/power-control.groovy index 61bdfee..6366488 100644 --- a/smartapps/jonscheiding/power-control.src/power-control.groovy +++ b/smartapps/jonscheiding/power-control.src/power-control.groovy @@ -67,6 +67,8 @@ def api_switch_get() { def api_switch_state_put() { def sw = find_switch(params.id) + + log.info("Received request to turn switch ${sw.id} to ${params.state}. Switch is currently ${sw.currentSwitch}.") switch(params.state) { case "on":