Package org.openhab.binding.zwave.internal.protocol

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


      int value = extractValue(serialMessage.getMessagePayload(), offset + 3, size);

      logger.debug(String.format("NODE %d: Node configuration report, parameter = %d, value = 0x%02X", this
          .getNode().getNodeId(), parameter, value));

      ConfigurationParameter configurationParameter = new ConfigurationParameter(parameter, value, size);
     
      this.configParameters.put(parameter, configurationParameter);
     
      ZWaveConfigurationParameterEvent zEvent = new ZWaveConfigurationParameterEvent(this.getNode().getNodeId(),
          configurationParameter);
View Full Code Here


          // Loop through the parameters and add to the records...
          for (ZWaveDbConfigurationParameter parameter : configList) {
            record = new OpenHABConfigurationRecord(domain, "configuration" + parameter.Index,
                parameter.Index + ": " + database.getLabel(parameter.Label), false);

            ConfigurationParameter configurationParameter = configurationCommandClass
                .getParameter(parameter.Index);

            // Only provide a value if it's stored in the node
            // This is the only way we can be sure of its real value
            if (configurationParameter != null)
              record.value = Integer.toString(configurationParameter.getValue());

            // If the value is in our PENDING list, then use that instead
            Integer pendingValue = PendingCfg.Get(ZWaveCommandClass.CommandClass.CONFIGURATION.getKey(), nodeId, parameter.Index);
            if(pendingValue != null) {
              record.value = Integer.toString(pendingValue);
View Full Code Here

          logger.debug("Set parameter index '{}' to '{}'", paramIndex, value);

          PendingCfg.Add(ZWaveCommandClass.CommandClass.CONFIGURATION.getKey(), nodeId, paramIndex, Integer.valueOf(value));

          ConfigurationParameter configurationParameter = new ConfigurationParameter(paramIndex,
              Integer.valueOf(value), size);
          // Set the parameter
          this.zController.sendData(configurationCommandClass.setConfigMessage(configurationParameter));
          // And request a read-back
          this.zController.sendData(configurationCommandClass.getConfigMessage(paramIndex));
View Full Code Here

TOP

Related Classes of org.openhab.binding.zwave.internal.protocol.ConfigurationParameter

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.