rule "Enigma2_KeyS" when Item Enigma2_RemoteKeys received command then val actions = getActions("enigma2","enigma2:device:VUDUO4kSE") if(null === actions) { logInfo("actions", "Actions not found, check thing ID") return } actions.sendRcCommand(receivedCommand.toString) end rule "Enigma2_SendError" when Item Enigma2_SendError received command then val actions = getActions("enigma2","enigma2:device:VUDUO4kSE") if(null === actions) { logInfo("actions", "Actions not found, check thing ID") return } actions.sendError(receivedCommand.toString, 10) end rule "Enigma2_SendWarning" when Item Enigma2_SendWarning received command then val actions = getActions("enigma2","enigma2:device:VUDUO4kSE") if(null === actions) { logInfo("actions", "Actions not found, check thing ID") return } actions.sendWarning(receivedCommand.toString, 10) end rule "Enigma2_SendInfo" when Item Enigma2_SendInfo received command then val actions = getActions("enigma2","enigma2:device:VUDUO4kSE") if(null === actions) { logInfo("actions", "Actions not found, check thing ID") return } actions.sendInfo(receivedCommand.toString, 10) end rule "Enigma2_SendQuestion" when Item Enigma2_SendQuestion received command then val actions = getActions("enigma2","enigma2:device:VUDUO4kSE") if(null === actions) { logInfo("actions", "Actions not found, check thing ID") return } actions.sendQuestion(receivedCommand.toString, 10) end rule "Enigma2_Answer" when Item Enigma2_Answer received update then val actions = getActions("enigma2","enigma2:device:VUDUO4kSE") if(null === actions) { logInfo("actions", "Actions not found, check thing ID") return } logInfo("actions", "Answer is " + Enigma2_Answer.state) end