Package org.openhab.binding.rfxcom.internal

Examples of org.openhab.binding.rfxcom.internal.RFXComException


  @Override
  public void convertFromState(RFXComValueSelector valueSelector, String id,
      Object subType, Type type, byte seqNumber) throws RFXComException {
   
    throw new RFXComException("Not supported");
  }
View Full Code Here


      if (s.toString().equals(subType)) {
        return s;
      }
    }
   
    throw new RFXComException("Unknown sub type " + subType);
  }
View Full Code Here

      } else if (valueSelector == RFXComValueSelector.HUMIDITY) {

        state = new DecimalType(humidity);

      } else {
        throw new RFXComException("Can't convert "
            + valueSelector + " to NumberItem");
      }

    } else if (valueSelector.getItemClass() == StringItem.class) {

      if (valueSelector == RFXComValueSelector.RAW_DATA) {

        state = new StringType(
            DatatypeConverter.printHexBinary(rawMessage));

      } else if (valueSelector == RFXComValueSelector.HUMIDITY_STATUS) {

        state = new StringType(humidityStatus.toString());

      } else {
        throw new RFXComException("Can't convert " + valueSelector + " to StringItem");
      }
    } else {

      throw new RFXComException("Can't convert " + valueSelector
          + " to " + valueSelector.getItemClass());

    }

    return state;
View Full Code Here

  @Override
  public void convertFromState(RFXComValueSelector valueSelector, String id,
      Object subType, Type type, byte seqNumber) throws RFXComException {
   
    throw new RFXComException("Not supported");
  }
View Full Code Here

      if (s.toString().equals(subType)) {
        return s;
      }
    }
   
    throw new RFXComException("Unknown sub type " + subType);
  }
View Full Code Here

        state = new DecimalType(totalAmpHours);

      } else {
       
        throw new RFXComException("Can't convert " + valueSelector + " to NumberItem");
       
      }

    } else if (valueSelector.getItemClass() == StringItem.class) {

      if (valueSelector == RFXComValueSelector.RAW_DATA) {

        state = new StringType(
            DatatypeConverter.printHexBinary(rawMessage));
      } else {
        throw new RFXComException("Can't convert "
            + valueSelector + " to StringItem");
      }
    } else {

      throw new RFXComException("Can't convert " + valueSelector
          + " to " + valueSelector.getItemClass());

    }

    return state;
View Full Code Here

  @Override
  public void convertFromState(RFXComValueSelector valueSelector, String id,
      Object subType, Type type, byte seqNumber) throws RFXComException {
   
    throw new RFXComException("Not supported");
   
  }
View Full Code Here

      if (s.toString().equals(subType)) {
        return s;
      }
    }
   
    throw new RFXComException("Unknown sub type " + subType);
  }
View Full Code Here

TOP

Related Classes of org.openhab.binding.rfxcom.internal.RFXComException

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.