Reformat projectionscreen.rules

master
slopjong 2019-11-24 22:07:39 +01:00
parent 3e081bff10
commit a74ab6fc34
1 changed files with 11 additions and 11 deletions

View File

@ -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