X-Git-Url: http://plrg.eecs.uci.edu/git/?p=smartapps.git;a=blobdiff_plain;f=official%2Fsonos-remote-control.groovy;h=30bd547fbbb9b669623d49ba9ede0d25cfb1db83;hp=eed02d26ea67be02a85245d2f8cf15dd036c3284;hb=365a88ab78d93704abeaec9f929adc1ffc228fd6;hpb=3325c1b0cc49b9fbbc497cb3612f7aeff5263eca diff --git a/official/sonos-remote-control.groovy b/official/sonos-remote-control.groovy index eed02d2..30bd547 100755 --- a/official/sonos-remote-control.groovy +++ b/official/sonos-remote-control.groovy @@ -71,6 +71,7 @@ def initialize() { subscribe(buttonDevice, "button", buttonEvent) } + def buttonEvent(evt){ def buttonNumber = evt.data def value = evt.value