Examples of HeatmiserBindingProvider


Examples of org.openhab.binding.heatmiser.HeatmiserBindingProvider

   */
  @Override
  protected void internalReceiveCommand(String itemName, Command command) {
    logger.debug("Heatmiser Command: {} to {}", itemName, command);

    HeatmiserBindingProvider providerCmd = null;
    for (HeatmiserBindingProvider provider : this.providers) {
      int address = provider.getAddress(itemName);
      if (address != -1) {
        providerCmd = provider;
        break;
      }
    }

    if(providerCmd == null) {
      logger.debug("Heatmiser command provider not found!!");
      return;
    }
    logger.debug("Heatmiser command provider is: {}", providerCmd);
   
    int address = providerCmd.getAddress(itemName);
    Functions function = providerCmd.getFunction(itemName);
   
    for (HeatmiserThermostat thermostat: thermostatTable) {
      if(thermostat.getAddress() == address) {
        logger.debug("Heatmiser command found thermostat: {}", thermostat);
        // Found the thermostat
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.