diff --git a/rules/projectionscreen.rules b/rules/projectionscreen.rules index 8ca9740..74798cf 100644 --- a/rules/projectionscreen.rules +++ b/rules/projectionscreen.rules @@ -30,19 +30,19 @@ end // and here is the thing as a window blind rule "Chill Projection Screen" when - Item chill_projection_screen received command + Item chill_projection_screen received command then - switch(receivedCommand.toString.toUpperCase){ - case "UP": { - chill_zone_screen_button_up.sendCommand("ON") + switch(receivedCommand.toString.toUpperCase){ + case "UP": { + chill_zone_screen_button_up.sendCommand("ON") + } + case "STOP": { + chill_zone_screen_button_stop.sendCommand("ON") + } + case "DOWN": { + chill_zone_screen_button_down.sendCommand("ON") + } } - case "STOP": { - chill_zone_screen_button_stop.sendCommand("ON") - } - case "DOWN": { - chill_zone_screen_button_down.sendCommand("ON") - } - } end // val maxCount = 1