Commit Graph

103 Commits

Author SHA1 Message Date
Wouter Born
a2868bb0dc
Use diamond operator and remove redundant type arguments (#16249)
Signed-off-by: Wouter Born <github@maindrain.net>
2024-01-09 23:46:15 +01:00
Wouter Born
3415397a83
Remove unnecessary semicolons (#16214)
This helps with stopping the proliferation of unnecessary semicolons.

Signed-off-by: Wouter Born <github@maindrain.net>
2024-01-05 23:56:58 +01:00
Holger Friedrich
ce1f366a39
[knx] Code cleanup (#16199)
- Enhance trace logging
- Remove unused file
- Null annotations

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-01-03 21:54:21 +01:00
Jacob Laursen
f4596f581e
Update license headers to 2024 (#16168)
* Update copyright year in configuration
* Update license headers
* Manually update nibeheatpump headers (.cpp/.h/.ino)
* Manually update smsmodem header
* Manually update hueemulation header
* Manually update addon-header.xml header

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-01-01 18:14:57 +01:00
Holger Friedrich
533cc666ab
Apply spotless after release (#16097)
* Apply spotless after release
* itests: resolve bundles

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-12-22 23:30:38 +01:00
openhab-bot
83e0485219 [unleash-maven-plugin] Preparation for next development cycle. 2023-12-22 14:37:48 +00:00
Holger Friedrich
4ee3a68f37
[knx] Metadata for discovery (#16055)
* [knx] Metadata for discovery

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-12-17 13:13:42 +01:00
Holger Friedrich
4ba325d0df
[knx] Add integration tests (#15727)
* [knx] Add integration tests
* [knx] Adapt handling of DPTs

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-12-16 12:51:14 +01:00
Holger Friedrich
e6982e71bb
[knx] Add discovery service (#16033)
* [knx] Add discovery service

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-12-16 11:37:57 +01:00
Holger Friedrich
157d3d0141
addoninfo for new add-on suggestion finder "process" (#16031)
* addoninfo for new add-on suggestion finder "process"

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-12-16 10:53:37 +01:00
Holger Friedrich
969518a077
[knx] Refine GA documentation (#16058)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-12-13 22:01:26 +01:00
Holger Friedrich
992f65d8e2
[knx] New modifier to set mainGA write-only (#16042)
* [knx] New modifier to set mainGA write-only

Co-authored-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-12-13 09:17:00 +01:00
J-N-K
c44c9dc67e
[knx] Fix IOOB exception with missing DPT in number channels (#15730)
* Fix IOOB exception with missing DPT in number channels

Also improves test messages for DPT unit tests

Signed-off-by: Jan N. Klug <github@klug.nrw>
Co-authored-by: Holger Friedrich <mail@holger-friedrich.de>
2023-12-06 07:53:16 +01:00
Holger Friedrich
6196de7742
[knx] Fix all compiler warnings (#15840)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-11-05 19:46:18 -08:00
Holger Friedrich
1ca0f643a0
[knx] Fix typos in code comments (#15839)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-11-03 23:16:41 +01:00
Marco Müller
06d8e750f2
[knx] Bugfix problem with DPT 251.600 (#15723)
* Fix problem with DPT 251.600.
In the old implementation the datatype was implemented with byte 0-255.
The DPT 251.600 is defined with 0-100%, change this from byte to
PercentType.

Signed-off-by: Marco Mueller <marco@ms.mueller.ch>
2023-10-10 09:58:49 +02:00
Holger Friedrich
f24a4305b8
Improve javadoc for some addons (#15701)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-10-08 00:25:04 +02:00
Holger Friedrich
d0b161aca1
[knx] Adapt to core, temperature differences (#15573)
Special handling for temperature differences in °F and °F/%,
DPT 9.002 and 9.003, needs to be adapted due to change in core.

Refs openhab/openhab-core#3792.

Implementation is valid for 4.0 and 4.x snapshot.

Fixes #15567.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-09-13 20:23:59 +02:00
Holger Friedrich
c775792896
[knx] Disable tests failing due to QuantityType change in core (#15568)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-09-09 15:53:39 +02:00
Holger Friedrich
edaf17b345
Java 17 features (H-M) (#15520)
- add missing @override
- Java style array syntax
- remove redundant modifiers
- always move String constants to left side in comparisons
- simplify lambda expressions and return statements
- use replace instead of replaceAll w/o regex
- instanceof matching and multiline strings
- remove null check before instanceof

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-09-08 14:36:59 +02:00
J-N-K
4c9f207a38
[knx] Refactor manufacturer map (#15297)
* [knx] Refactor manufacturer map

This makes adding new manufacturers easy.

Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-07-24 23:09:46 +02:00
Kai Kreuzer
72607d3bee Apply spotless
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2023-07-24 01:20:31 +02:00
openhab-bot
809fceaff3 [unleash-maven-plugin] Preparation for next development cycle. 2023-07-23 19:19:01 +00:00
Holger Friedrich
985f89315d
[knx] Code cleanup (#15141)
* cleanup
* [knx] Replace StringBuffer with StringBuilder

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-06-27 20:22:06 +02:00
Holger Friedrich
5e010db738
[knx] Implement console commands (#15064)
* [knx] Implement console commands

Add commands knx:* to openHAB console.
Initial implementation of knx:show_unknown_ga, which shows group
addresses which are seen in the installation but not used by
openHAB.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-06-13 17:30:17 +02:00
J-N-K
47eaf63698
[knx] dynamic channel-types (#15072)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-06-11 21:04:09 +02:00
Karel Goderis
14726013b1
[knx] Fix DPT 10 handling (#15082)
Signed-off-by: Karel Goderis <karel.goderis@me.com>
2023-06-11 12:15:23 +02:00
openhab-bot
4584b82a46
New Crowdin updates (#14930)
* New translations jruby.properties (German)
* New translations knx.properties (German)
* New translations openwebnet.properties (Italian)
* New translations anthem.properties (Italian)
2023-05-05 23:23:26 +02:00
Holger Friedrich
0437595678
[knx] Fix decoding of DPT 242.600 and add tests (#14875)
* [knx] Fix decoding of DPT 242.600 and add tests

Correct handling of parameter Y for DPT 242.600.

Add back to back tests of DPT 232.600 and 242.600,
testing color conversion from raw bytes to HSB and
back to Calimero color representation as String.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-04-30 14:03:54 +02:00
Holger Friedrich
fb551b6b6a
[knx] Add list of DPTs documenting implementation status (#14851)
Carryover from smarthomej/addons#107.
Update to match current implementation in KNX binding
and Calimero 2.5.1.

Also-by: Jan N. Klug <github@klug.nrw>
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-04-20 20:33:38 +02:00
Wouter Born
83cbe746d0
Remove redundant modifiers from interfaces (#14843)
Signed-off-by: Wouter Born <github@maindrain.net>
2023-04-18 13:07:04 +02:00
Holger Friedrich
ec30333314
[knx] Adapt to ColorUtil changes in core (#14808)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-04-15 10:25:51 +02:00
Holger Friedrich
b3dfba8cf5
[knx] Improve rounding when encoding DPT 232.60000 (#14772)
* [knx] Improve rounding when encoding DPT 232.60000
* [knx] SAT and warnings

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-04-14 20:23:32 +02:00
Holger Friedrich
38cba518cd
Declare connection on few bindings (#14777)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-04-10 15:52:58 +02:00
Holger Friedrich
3cd9c6c86c
Adapt to ColorUtil changes in core (#14724)
* [deconz][dmx][mqtt.generic][mqtt.homeassistant][tado][tradfri][webthing] Adapt to core change (ColorUtil)

openhab/openhab-core#3479

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-04-08 11:42:18 +02:00
Holger Friedrich
36a594842e
[knx] Improve config description for GAs (#14624)
* [knx] Improve config description for GAs

Carryover from smarthomej/addons#257.

Also-by: Jan N. Klug <github@klug.nrw>
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-04-07 14:43:31 +02:00
Holger Friedrich
bc03e8c5cf
[knx] Code cleanup (#14719)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-03-29 09:22:23 +02:00
Holger Friedrich
dba83a33e5
[knx] Java17 instanceof pattern matching (#14718)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-03-28 20:49:31 +02:00
J-N-K
8e902f6324
Bump spotless to 2.35 and Eclipse Java Formatter to 4.26 (#14645)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-03-21 21:03:05 +01:00
Holger Friedrich
aae63e9488
[knx] Refactoring of KnxCoreTypeMapper and UOM Support (#14534)
* [knx] Refactoring, add basic support for UOM

Preparation for refactoring KnxCoreTypeMapper.
Carryover from smarthomej/addons#107.
Merge UOM implementations.

* [knx] Adapt tests

DPT strings for QuantityType now strip off a tailing .0 when decimals
are converted.

* [knx] Refactoring

Use pattern matching with instanceof operator (new Java17 feature).

* [knx] Refactoring, performance improvements

Introduce KNXChannel class.
Carryover from smarthomej/addons#114.

* [knx] Add warning for incompatible DPT type

Configuring incompatible DPT/channel combinations (e.g. DPT 1.005 (alarm) on Contact channels
or DPT 1.019 (windows/door) on Switch channels) is not allowed but was silently ignored.
This PR adds a warning in case incompatible configurations are detected.

Carryover from smarthomej/addons#203.

* [knx] Add full support for UoM

Replace UoM handling with the implementation from smarthome/j.
Carryover from smarthomej/addons#206.

* [knx] Refactor KNXCoreTypeMapper, add RGBW and xyY

Carryover from smarthomej/addons#208.

* [knx] Fix RGB conversion

Carryover from smarthomej/addons#219.

* [knx] Remove workarounds obsoleted by Calimero 2.5

Carryover from smarthomej/addons#226.

* [knx] Add parameter for disabling incoming UoM

Carryover from smarthomej/addons#230.

* [knx] Fix fallback to DecimalType in number conversion

Carryover from smarthomej/addons#279.

* [knx] Fix DPT 251.600 decoding

Carryover from smarthomej/addons#349.

* [knx] Fix UoM handling for special types
* [knx] Add test for KNXChannelFactory
* [knx] Update CODEOWNERS for knx
* [knx] Default conversion for DPT 5.001 and 6.001
* [knx] Fix write blocked forever after read from bus

Carryover from smarthomej/addons#299 and smarthomej/addons#330.

* [knx] Use new class ColorUtil from core for HSB conversion

Also-by: Jan N. Klug <github@klug.nrw>
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-03-17 12:50:13 +01:00
Holger Friedrich
7bd99df364
[knx] Improve reading of device properties (#14050)
* [knx] Improve reading of device properties
* [knx] DD2 logging only in debug mode

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-03-07 19:31:39 +01:00
Holger Friedrich
7ec7de55e3
[knx] Improve thread safety, null-analysis (#14509)
Carryover from smarthomej/addons#13 and smarthomej/addons#46, smarthomej/addons#60.

Also-by: Jan N. Klug <github@klug.nrw>
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-03-06 22:34:16 +01:00
Holger Friedrich
60d70efce6
[knx] Improve documentation for DPT 1.009 (#14510)
Carryover from smarthomej/addons#73.

Also-by: Jan N. Klug github@klug.nrw

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-02-26 18:56:16 +01:00
Holger Friedrich
b023e5ac47
[knx] Fix DPT 3.007 (Control Dimming) for non -control channels (#14504)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
Also-by: Jan N. Klug <github@klug.nrw>
2023-02-26 12:19:15 +01:00
Holger Friedrich
984914f1bf
[knx] Remove workaround for DPT 14 (#14503)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-02-26 10:42:26 +01:00
Holger Friedrich
4f1dd5792f
[knx] FT12: Autodetect cEMI on Weinzierl devices (#14454)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-02-21 19:36:52 +01:00
Holger Friedrich
f795abbce7
[knx] Replace gnu.io dependency with serial transport (#14051)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-02-19 15:45:42 +01:00
J-N-K
89d0689e36
fix i18n for bindings (#14235)
Also-By: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-01-21 12:14:51 +01:00
J-N-K
5f8214f08a
Adapt to core changes (addon.xml) (#13289)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-01-15 20:31:42 +01:00
Holger Friedrich
0f272d8523
[knx] Fix javadoc errors (#14174)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-01-14 13:02:31 +01:00