Commit Graph

134 Commits

Author SHA1 Message Date
Holger Friedrich
64e4bad8e6
[knx] Upgrade calimero-device to 2.6-rc1 (#17830)
Upgrade library which was not included in #16588.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-12-02 21:38:35 +01:00
Holger Friedrich
7b1c44547e
[knx] Improve logging for serial gateways (#17793)
* Logger in SerialAdapter respects the log setting for the binding.
* Additional warning if open port is detected.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-11-24 10:19:33 +01:00
Holger Friedrich
8bc89612c1
[knx] Readme: Troubleshooting, Logger, kBerry (#17797)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-11-24 00:39:16 +01:00
Jacob Laursen
b4fb5a1f1b
Fix DateTimeType tests (#17764)
* Refactor test to verify UTC timestamp independently of time-zone

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-11-20 23:00:20 +01:00
Holger Friedrich
10b3f0ae6c
[knx] Improve handling of unknown encrypted frames (#17721)
* Show encrypted frames without a matching key using console command
  "openhab:knx list-unknown-ga"; sort output numerically by GA.
* Add trace logging to show decryption error due to missing key.
  Previously, those frames were silently dropped unless logging for
  Calimero was explicitly enabled as well.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-11-10 19:35:14 +01:00
lsiepel
20b889c029
Markdown Documentation fixes (#17526)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2024-10-10 22:42:51 +02:00
lsiepel
1a42353cc9
Multiple binding markdown fixes (#17422)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2024-09-28 17:46:53 +02:00
Holger Friedrich
2d403dc158
[knx] Code rework (#17420)
* [knx] Code rework

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-09-15 22:48:34 +02:00
Holger Friedrich
dbc607abcf
[knx] Allow decoding of KNX Data Secure frames (#12434)
* [knx] Allow decoding of KNX Data Secure frames

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-09-15 21:55:30 +02:00
lsiepel
5e0e9ce51e
Update lastnpe EEA to 2.4.0 (#16875)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2024-07-11 13:51:10 +02:00
lsiepel
71a208b91b
Apply Spotless after release (#17016)
* Spotless

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2024-07-07 23:20:16 +02:00
openhab-bot
4b5e4646ac [unleash-maven-plugin] Preparation for next development cycle. 2024-07-07 18:09:31 +00:00
Holger Friedrich
051a186cf5
[knx] Add JaCoCo test-coverage (#16507)
Test coverage analysis is based on JaCoCo tool.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-04-07 10:29:51 +02:00
Holger Friedrich
1dd8fd10a6
[knx] Upgrade Calimero to 2.6-rc1 (#16588)
* [knx] Upgrade Calimero to 2.6-rc1
- Bugfixes and new subtypes for DPTs 20, 21, 22.
- Remove workarounds for issues in v2.5.1.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-03-31 10:44:16 +02:00
Holger Friedrich
99d1b423c9
[knx] Increase test coverage (#16511)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-03-16 11:51:53 +01:00
Holger Friedrich
2c1a08679a
[knx] Fix DPT 243.600 and 249.600 when time>=1000s (#16481)
* [knx] Fix DPT 243.600 and 249.600 when time>=1000s

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-03-04 18:56:34 +01:00
Holger Friedrich
3d9ac22fe3
[knx] Add list of supported DPTs (#16452)
* [knx] Add list of supported DPTs

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-02-25 14:00:25 +01:00
Holger Friedrich
51caca3008
[knx] Fix DPT 6.020 and 8.010 (#16453)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-02-25 11:59:19 +01:00
Holger Friedrich
dc1211b267
[knx] Fix warnings in test (#16434)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-02-21 19:24:28 +01:00
Holger Friedrich
f8e0bfd256
[knx] Add test for DPT 7.600 (#16433)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-02-20 18:42:29 +01:00
J-N-K
e1e6d715b4
Fix KNX dimmer channels (#16421)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2024-02-18 22:03:24 +01:00
Holger Friedrich
2e5a6c9d9f
[knx] Fix scale when sending DPT 7.002 or DPT 7.003 (#16395)
* [knx] Fix scale when sending DPT 7.002 or DPT 7.003

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-02-14 21:21:27 +01:00
Holger Friedrich
667461c6c5
[knx] Fix warnings and remove TODOs (#16394)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-02-14 21:17:59 +01:00
Holger Friedrich
500ccb6b25
[knx] Add tests for DPT 9 and DPT 14 (#16402)
* [knx] Add tests for DPT 9 and DPT 14

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>

* remove import

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>

---------

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-02-14 13:38:58 +01:00
Holger Friedrich
4c4f29283c
[knx] Add tests for DPT 5, DPT 6, DPT 8, DPT 13 (#16396)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-02-11 21:40:09 +01:00
J-N-K
8c0db0a4ee
[knx] Fix dimmer channels (#16364)
* [knx] Fix dimmer channels

Signed-off-by: Jan N. Klug <github@klug.nrw>
2024-02-05 23:15:54 +01:00
Kai Kreuzer
7671f4b9b1
[knx] Correctly support state sub-types for DPTs (#16337)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2024-02-02 20:13:11 +01:00
Holger Friedrich
d5fc6950dc
[knx] postUpdate for contact-control sends to bus (#16263)
contact-control items need to send to the bus like a switch item,
to trigger a state update in the external device.

* Add a new profile for contact-control items
* Add a profile factory and a profile advisor class
* Handle postUpdate like a command and send message on KNX bus

Fixes #16115.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-01-28 21:44:09 +01:00
Holger Friedrich
e68897c0a1
[knx] Add support for RGBW represented by HSBType (#16078)
Allow lossy conversion from RGBW to HSBType and back instead
of using separate items for RGB and W.
Select via DPT 251.60600.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-01-26 21:57:17 +01:00
Holger Friedrich
e62bcf5db4
[knx] Allow receiving DPT 235.001 (#16094)
* [knx] Allow receiving DPT 235.001

Composed type not yet supported by Calimero, thus only receiving
data is implemented.
Configure DPT 235.001 to receive ActiveEnergy.
Configure DPT 235.61001 to receive Tariff information.

Fixes #15159

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-01-22 22:37:46 +01:00
Holger Friedrich
ba35e8d84a
[knx] DPT 1 to support Switch and Contact (#16238)
* Allow assigning Switch or Contact to most of the DPT 1 subtypes
(exceptions 1.008 UpDownType, 1.010 StopMoveType, 1.022 DecimalType).
* Tests for all published subtypes for DPT 1.
* Fix sending of DPT 1.022.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-01-21 21:43:21 +01:00
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