Package org.openhab.binding.plcbus.internal.protocol

Examples of org.openhab.binding.plcbus.internal.protocol.IPLCBusController.switchOn()


      return;
    }

    IPLCBusController controller = PLCBusController.create(serialPortGateway);
    if (command == OnOffType.ON) {
      controller.switchOn(config.getUnit());
    } else if (command == OnOffType.OFF) {
      controller.switchOff(config.getUnit());
    } else if (command == IncreaseDecreaseType.INCREASE) {
      controller.bright(config.getUnit(), config.getSeconds());
    } else if (command == IncreaseDecreaseType.DECREASE) {
View Full Code Here


    } else if (command == IncreaseDecreaseType.DECREASE) {
      controller.dim(config.getUnit(), config.getSeconds());
    } else if (command == StopMoveType.STOP) {
      controller.fadeStop(config.getUnit());
    } else if (command == UpDownType.UP) {
      controller.switchOn(config.getUnit());
    } else if (command == UpDownType.DOWN) {
      controller.switchOff(config.getUnit());
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.