From a74ab6fc3401ab259f7b21294de85107d8b31922 Mon Sep 17 00:00:00 2001 From: slopjong Date: Sun, 24 Nov 2019 22:07:39 +0100 Subject: [PATCH] Reformat projectionscreen.rules --- rules/projectionscreen.rules | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) 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