public static RkZWaveDeviceType getByPattern(int generic, int specific) { for (RkZWaveDeviceType value : values()) { if (value.getGeneric() == generic && value.getSpecific() == specific) return value; } return Unknown; }
public static RkLibraryDeviceType convertToLibraryFromZWave(RkZWaveDeviceType zwaveType) { return RkLibraryDeviceType.valueOf(getByPattern(zwaveType.getGeneric(), 0x00).name()); }