use of org.openhab.binding.hyperion.internal.protocol.v1.ClearCommand in project openhab-addons by openhab.
the class HyperionHandler method handleClear.
private void handleClear(Command command) throws IOException, CommandUnsuccessfulException {
if (command instanceof StringType) {
String cmd = command.toString();
if ("ALL".equals(cmd)) {
ClearAllCommand clearCommand = new ClearAllCommand();
sendCommand(clearCommand);
} else {
int priority = Integer.parseInt(cmd);
ClearCommand clearCommand = new ClearCommand(priority);
sendCommand(clearCommand);
}
}
}
use of org.openhab.binding.hyperion.internal.protocol.v1.ClearCommand in project openhab-addons by openhab.
the class HyperionNgHandler method handleClear.
private void handleClear(Command command) throws IOException, CommandUnsuccessfulException {
if (command instanceof StringType) {
String cmd = command.toString();
if ("ALL".equals(cmd)) {
ClearAllCommand clearCommand = new ClearAllCommand();
sendCommand(clearCommand);
} else {
int priority = Integer.parseInt(cmd);
ClearCommand clearCommand = new ClearCommand(priority);
sendCommand(clearCommand);
}
}
}
Aggregations