payloadSubstring = "1";
// special case for display info query: convert to human readable string
if( cmdType.getCommandRef() == IpControlCommandRef.DISPLAY_INFO_QUERY )
{
IpControlDisplayInformation displayInfo = new IpControlDisplayInformation( payloadSubstring );
payloadSubstring = displayInfo.getInfoText();
logger.debug("DisplayInfo: converted value '{}' to string '{}'", data, payloadSubstring );
}
if (itemType == SwitchItem.class) {
index = Integer.parseInt(payloadSubstring);