Esempio n. 1
0
    public static RkZWaveDeviceType getByPattern(int generic, int specific) {

        for (RkZWaveDeviceType value : values()) {
            if (value.getGeneric() == generic && value.getSpecific() == specific)
                return value;
        }

        return Unknown;
    }
Esempio n. 2
0
 public static RkLibraryDeviceType convertToLibraryFromZWave(RkZWaveDeviceType zwaveType) {
     return RkLibraryDeviceType.valueOf(getByPattern(zwaveType.getGeneric(), 0x00).name());
 }