rule "Monitor Display Status On" when Item Monitor_Display_State changed to ON then var state = Monitor_Display_State.state; Monitor_Display.postUpdate(ON) end rule "Monitor Display Status Off" when Item Monitor_Display_State changed to OFF then var state = Monitor_Display_State.state; Monitor_Display.postUpdate(OFF) end rule "Monitor Display" when Item Monitor_Display received command then logInfo("Monitor_Display", "Command received:" + receivedCommand) if(receivedCommand == ON) { // "on" argument to set_dpms.sh Monitor_Display_Command_Args.sendCommand("on") } else { Monitor_Display_Command_Args.sendCommand("off") } end