Package org.openhab.binding.omnilink.internal.model

Examples of org.openhab.binding.omnilink.internal.model.Thermostat


            case THERMO_HOLD_MODE:
            case THERMO_SYSTEM_MODE:
            case THERMO_TEMP: {
              ThermostatProperties p = readThermoProperties(
                  config.getNumber());
              Thermostat thermo = thermostatMap.get(number);
              if (thermo == null) {
                thermo = new Thermostat(p, celius);
                thermostatMap.put(number, thermo);
              }
              config.setDevice(thermo);
              thermo.setProperties(p);
              thermo.updateItem(provider.getItem(itemName),
                  config, eventPublisher);
            }
              break;
            case AUDIOZONE_MUTE:
            case AUDIOZONE_POWER:
View Full Code Here


        cmd = OmniLinkCmd.CMD_THERMO_RAISE_LOWER_COOL.getNumber();
      } else if (command == IncreaseDecreaseType.DECREASE) {
        param1 = -1;
        cmd = OmniLinkCmd.CMD_THERMO_RAISE_LOWER_COOL.getNumber();
      } else if (command instanceof DecimalType) {
        Thermostat thermo = (Thermostat) config.getDevice();
        cmd = OmniLinkCmd.CMD_THERMO_SET_COOL_POINT.getNumber();
        if (thermo.isCelsius())
          param1 = MessageUtils.CToOmni(((DecimalType) command)
              .intValue());
        else
          param1 = MessageUtils.FtoOmni(((DecimalType) command)
              .intValue());

      } else {
        logger.debug("Could not find matching command for " + command);
        break;
      }
      commands.add(new OmniLinkControllerCommand(cmd, param1, param2));

    }
      break;
    case THERMO_HEAT_POINT: {
      if (command == IncreaseDecreaseType.INCREASE) {
        param1 = 1;
        cmd = OmniLinkCmd.CMD_THERMO_RAISE_LOWER_HEAT.getNumber();
      } else if (command == IncreaseDecreaseType.DECREASE) {
        param1 = -1;
        cmd = OmniLinkCmd.CMD_THERMO_RAISE_LOWER_HEAT.getNumber();
      } else if (command instanceof DecimalType) {
        Thermostat thermo = (Thermostat) config.getDevice();
        cmd = OmniLinkCmd.CMD_THERMO_SET_HEAT_POINT.getNumber();
        if (thermo.isCelsius())
          param1 = MessageUtils.CToOmni(((DecimalType) command)
              .intValue());
        else
          param1 = MessageUtils.FtoOmni(((DecimalType) command)
              .intValue());
View Full Code Here

      unit.getProperties().updateUnit((UnitStatus) status);
      updateItemsForDevice(unit);
    } else if (status instanceof ThermostatStatus
        && thermostatMap.containsKey(number)) {
      logger.debug("Updating thermo " + number);
      Thermostat thermo = thermostatMap.get(number);
      thermo.getProperties().updateThermostat((ThermostatStatus) status);
      updateItemsForDevice(thermo);
    } else if (status instanceof AudioZoneStatus
        && audioZoneMap.containsKey(number)) {
      logger.debug("Updating audioZone " + number);
      AudioZone az = audioZoneMap.get(number);
View Full Code Here

TOP

Related Classes of org.openhab.binding.omnilink.internal.model.Thermostat

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.