Examples of ZWaveDeviceClass


Examples of org.openhab.binding.zwave.internal.protocol.ZWaveDeviceClass

      logger.error(String.format("NODE %d: Specific device class 0x%02x not found", nodeId, incomingMessage.getMessagePayloadByte(5)));
      return false;
    }
    logger.debug(String.format("NODE %d: Specific = %s 0x%02x", nodeId, specific.getLabel(), specific.getKey()));
   
    ZWaveDeviceClass deviceClass = node.getDeviceClass();
    deviceClass.setBasicDeviceClass(basic);
    deviceClass.setGenericDeviceClass(generic);
    deviceClass.setSpecificDeviceClass(specific);
   
    // Add all the command classes.
    // If restored the node from configuration file then
    // the classes will already exist and this will be ignored
View Full Code Here

Examples of org.openhab.binding.zwave.internal.protocol.ZWaveDeviceClass

      logger.debug("NODE {}: Endpoints is dynamic = {}", this.getNode().getNodeId(), dynamic ? "true" : false);
      logger.debug(String.format("NODE %d: Basic = %s 0x%02x", this.getNode().getNodeId(), basic.getLabel(), basic.getKey()));
      logger.debug(String.format("NODE %d: Generic = %s 0x%02x", this.getNode().getNodeId(), generic.getLabel(), generic.getKey()));
      logger.debug(String.format("NODE %d: Specific = %s 0x%02x", this.getNode().getNodeId(), specific.getLabel(), specific.getKey()));
     
      ZWaveDeviceClass deviceClass = endpoint.getDeviceClass();
      deviceClass.setBasicDeviceClass(basic);
      deviceClass.setGenericDeviceClass(generic);
      deviceClass.setSpecificDeviceClass(specific);
     
      // add basic command class, if it's also supported by the parent node.
      if (supportsBasicCommandClass) {
        ZWaveCommandClass commandClass = new ZWaveBasicCommandClass(this.getNode(), this.getController(), endpoint);
        endpoint.addCommandClass(commandClass);
View Full Code Here

Examples of org.openhab.binding.zwave.internal.protocol.ZWaveDeviceClass

          else
            record.value = Double.toString(versionCommandClass.getApplicationVersion());
          records.add(record);
        }

        ZWaveDeviceClass devClass = node.getDeviceClass();
        if (devClass != null) {
          record = new OpenHABConfigurationRecord(domain, "BasicClass", "Basic Device Class", true);
          record.value = devClass.getBasicDeviceClass().toString();
          records.add(record);
          record = new OpenHABConfigurationRecord(domain, "GenericClass", "Generic Device Class", true);
          record.value = devClass.getGenericDeviceClass().toString();
          records.add(record);
          record = new OpenHABConfigurationRecord(domain, "SpecificClass", "Specific Device Class", true);
          record.value = devClass.getSpecificDeviceClass().toString();
          records.add(record);
        }
      } else if (arg.equals("status/")) {
        record = new OpenHABConfigurationRecord(domain, "LastSent", "Last Packet Sent", true);
        if(node.getLastSent() == null) {
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.