openhab/openhab — pull request #1290 by Snickermicker (2014-07-25 14:00:05+00:00)
Title: Knx type mapper improvements

- Adding logout (debug lvl) to KNXBinding. Goal: show what KNX bus messages are ignored by KNXTypeMapper implementations.
- Improved handling of bogus and/or unsupported KNX raw data. KNXCoreTypeMapper will return null and provide log info instead of propagating KNXFormatException or KNXIllegalArgumentException. KNXCoreTypeMapperTest adjusted accordingly and boundary checks regarding number of supplied raw bytes included.
- Added testcase for datataype 5.003 DPTXlator8BitUnsigned.DPT_ANGLE
- KNXCoreTypeMapper can now handle data type 10.001 when the "no-day" field is set in the KNX raw data.
- Added support for datatypes 7.002 (DPT_TIMEPERIOD), 7.003 (DPT_TIMEPERIOD_10), 7.004 (DPT_TIMEPERIOD_100), 7.005 (DPT_TIMEPERIOD_SEC), 7.006 (DPT_TIMEPERIOD_MIN) and 7.011 (DPT_LENGTH) and respective testcases.
- KNXCoreTypeMapper can now handle data type 10.001 when the "no-day" field is set in the KNX raw
data.
- Replaced test case for data type 14.xxx with a comprehensive testcase including testing output based on different locales. Added a workaround for a calimero shortcoming where the String output of calimero (4-byte) float translator can't be parsed by openHAB depending on default locale being used.
- Added support for data types 17.001 (DPT_SCENE_NUMBER) and 19.001 (DPT_DATE_TIME) and respective test cases.