// 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);