Package org.openhab.binding.insteonplm.internal.device

Examples of org.openhab.binding.insteonplm.internal.device.DeviceType


   * @param aConfig The binding configuration parameters, needed to make device.
   * @return Reference to the new device that has been created
   */
  private InsteonDevice makeNewDevice(InsteonPLMBindingConfig aConfig) {
    String prodKey = aConfig.getProductKey();
    DeviceType dt = DeviceTypeLoader.s_instance().getDeviceType(prodKey);
    if (dt == null) {
      logger.error("unknown product key: {} for config: {}." +
          " Add definition to xml file and try again", prodKey, aConfig);
      return null;
    }
View Full Code Here


        if (msg.isPureNack()) return;
        if (msg.getByte("Cmd") == 0x60) {
          // add the modem to the device list
          InsteonAddress a = new InsteonAddress(msg.getAddress("IMAddress"));
          String prodKey = "0x000045";
          DeviceType dt = DeviceTypeLoader.s_instance().getDeviceType(prodKey);
          if (dt == null) {
            logger.error("unknown modem product key: {} for modem: {}.", prodKey, a);
          } else {
            m_device =  InsteonDevice.s_makeDevice(dt);
            m_device.setAddress(a);
View Full Code Here

TOP

Related Classes of org.openhab.binding.insteonplm.internal.device.DeviceType

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.