Package org.openhab.binding.maxcube.internal.message

Examples of org.openhab.binding.maxcube.internal.message.S_Command


          decimalType = (DecimalType) command;
        } else if (command instanceof OnOffType) {
          decimalType = OnOffType.ON.equals(command) ? DEFAULT_ON_TEMPERATURE : DEFAULT_OFF_TEMPERATURE;
        }

        S_Command cmd = new S_Command(rfAddress, device.getRoomId(), decimalType.doubleValue());
        commandString = cmd.getCommandString();
      } else if (command instanceof StringType) {
        String commandContent = command.toString().trim().toUpperCase();
        ThermostatModeType commandThermoType = null;
        if (commandContent.contentEquals(ThermostatModeType.AUTOMATIC.toString())) {
          commandThermoType = ThermostatModeType.AUTOMATIC;
        } else if (commandContent.contentEquals(ThermostatModeType.BOOST.toString())) {
          commandThermoType = ThermostatModeType.BOOST;
        } else {
          logger.debug("Only updates to AUTOMATIC & BOOST supported, received value ;'{}'", commandContent);
          continue;
        }

        S_Command cmd = new S_Command(rfAddress, device.getRoomId(), commandThermoType);
        commandString = cmd.getCommandString();
      }

      if (commandString != null) {
        Socket socket = null;
        try {
View Full Code Here

TOP

Related Classes of org.openhab.binding.maxcube.internal.message.S_Command

Copyright © 2018 www.massapicom. 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.