Commit Graph

107 Commits

Author SHA1 Message Date
Jacob Laursen
8ebd4e9047
[wemo] Improve GENA subscription reliability and error handling (#12148)
* Consolidate service subscriptions in base class.
* Remove unsynchronized and unneeded cache of subscriptions.
* Do not unregister participant when removing subscription.
* Fix status wrongly set to ONLINE when exception is thrown.
* Refactor error handling for WemoHttpCall.
* Adjust log level for communication errors.
* Add automatic subscription renewal.
* Fix more ONLINE/OFFLINE status transition issues.
* Adjust log level when getWemoURL fails because device is offline.
* Remove redundant logging.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-02-05 18:56:58 +01:00
Jacob Laursen
7b3a1c9fc2
Create concrete handlers for Insight, Motion and Socket/Light Switch. (#12120)
No logic/code changes yet, just extraction/separation.

Fixes #12105

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-01-28 08:23:24 +01:00
Hans-Jörg Merk
d9c31e626a
[wemo] make UPnP more robust and fix polling/portscan (#12001)
* [wemo] make UPnP more robust
* [wemo] change thing status updates

Signed-off-by: Hans-Jörg Merk <github@hmerk.de>
2022-01-23 22:49:52 +01:00
Christoph Weitkamp
caa3359f53
Fixed build by improve config handling (#12078)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-01-21 14:04:43 +01:00
Wouter Born
b0765271d3
Upgrade to Karaf 4.3.6 (#12058)
* Syncs the karaf.version so the new Maven plugin is used
* Resolves itest runbundles for the new runtime dependencies

Signed-off-by: Wouter Born <github@maindrain.net>
2022-01-16 14:25:19 +01:00
Wouter Born
bfe059c585
[mielecloud] Fix tests by adding missing email configuration parameter (#12056)
The validation did not fail previously because it was broken and fixed in https://github.com/openhab/openhab-core/pull/2683

Signed-off-by: Wouter Born <github@maindrain.net>
2022-01-15 21:27:59 +01:00
Hilbrand Bouwkamp
da59cdd255
Update license headers to 2022 (#11973)
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2022-01-06 18:14:47 +01:00
Björn Lange
45ce201813
[mielecloud] Fix mockito concurrency issues in integration tests (#11742)
* Move bridge and thing setup into individual integration tests
* Ensure that mocks used by ThingHandlers are fully initialized prior to
creating the thing handlers
* Ensure that bridge and thing are linked together after thing creation in
integration tests

Signed-off-by: Björn Lange <bjoern.lange@tu-dortmund.de>
2022-01-03 16:16:01 +01:00
Christoph Weitkamp
167f8ebc49
Avoid UnsupportedEncodingException & use const from StandardCharsets (#11948)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-01-03 16:05:08 +01:00
Marcel
cc47ef7f3e
pom update from http to https reference (#11833)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-12-23 19:40:44 +01:00
Kai Kreuzer
48746f5e3f Apply spotless
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-12-20 09:07:55 +01:00
Christoph Weitkamp
0f2d9367e4
Resolve itest runbundles for snapshot 3.3.0 (#11819)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-12-20 08:10:52 +01:00
openhab-bot
6dc031e6cf [unleash-maven-plugin] Preparation for next development cycle. 2021-12-20 00:30:46 +00:00
Wouter Born
a490f0626c
Upgrade to Karaf 4.3.4 (#11750)
* Syncs the karaf.version so the new Maven plugin is used
* Resolves itest runbundles for the new runtime dependencies

Signed-off-by: Wouter Born <github@maindrain.net>
2021-12-18 13:01:38 +01:00
Wouter Born
2726a7ab71
Resolve runbundles for Whiteboard downgrade (#11744)
Signed-off-by: Wouter Born <github@maindrain.net>
2021-12-11 10:01:40 +01:00
Christoph Weitkamp
95a2b333dd
Added support for HAN-FUN Color and Dimmable bulbs (#11723)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-12-07 09:32:39 +01:00
Christoph Weitkamp
7c8a197e17
[avmfritz] Exclude other Powerline products from discovery (#11682)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-12-02 09:07:17 +01:00
Wouter Born
a45b40d6c3
Update bnd to 6.1.0 (#11650)
For release notes, see:

https://github.com/bndtools/bnd/wiki/Changes-in-6.1.0

Related to openhab/openhab-core#2583

Signed-off-by: Wouter Born <github@maindrain.net>
2021-11-28 21:58:08 +01:00
Wouter Born
e223c599c0
Resolve runbundles for JUnit and Mockito dependency upgrades (#11617)
Signed-off-by: Wouter Born <github@maindrain.net>
2021-11-23 23:05:09 +01:00
Wouter Born
926240770b
Resolve runbundles for UoM dependency upgrades (#11610)
Signed-off-by: Wouter Born <github@maindrain.net>
2021-11-21 12:40:56 +01:00
Wouter Born
d4510f3fef
Always run OSGi HTTP service on random port in itests (#11523)
It is probably always a good idea to run the OSGi HTTP service on a random available port in itests.
So when this is always done it prevents future issues and removes a bit of duplication.

Signed-off-by: Wouter Born <github@maindrain.net>
2021-11-06 10:13:40 +01:00
Wouter Born
589400e223
Fix/suppress PMD CompareObjectsWithEquals findings (#11476)
Newer PMD versions discover more CompareObjectsWithEquals findings.

Related to https://github.com/openhab/static-code-analysis/pull/423

Signed-off-by: Wouter Born <github@maindrain.net>
2021-11-02 10:43:53 +01:00
Wouter Born
b15433d0b7
Resolve runbundles for JAX-RS Whiteboard and CXF upgrades (#11421)
Related to openhab/openhab-core#2532

Signed-off-by: Wouter Born <github@maindrain.net>
2021-10-25 17:47:36 +02:00
Björn Lange
a1f2e236e1
[mielecloud] Run integration tests on random unoccupied port (#11448)
Signed-off-by: Björn Lange <bjoern.lange@tu-dortmund.de>
2021-10-25 14:02:16 +02:00
Christoph Weitkamp
58a094b09a
[avmfritz] Added support for DECT500 and HAN-FUN bulbs (#11348)
* Added support for DECT500 and HAN-FUN bulbs

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>

* Incorporated comment from review

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-10-16 07:27:27 +02:00
Wouter Born
5132d939c6
Update bnd to 6.0.0 (#11359)
For release notes, see:

https://github.com/bndtools/bnd/wiki/Changes-in-6.0.0

Related to openhab/openhab-core#2514

Signed-off-by: Wouter Born <github@maindrain.net>
2021-10-09 19:57:33 +02:00
Björn Lange
0d5ecd3417
[mielecloud] Increase timeout for integration tests (#11306)
Signed-off-by: Björn Lange <bjoern.lange@tu-dortmund.de>
2021-09-26 19:05:35 +02:00
Wouter Born
20f8a56560
[systeminfo] Upgrade OSHI dependency for latest fixes/improvements (#11274)
Upgrades OSHI from 4.5.2 to 5.8.2.

For all OSHI fixes and improvements, see:

https://github.com/oshi/oshi/blob/master/CHANGELOG.md#580-2021-07-18-581-2021-08-22-582-2021-09-05

Signed-off-by: Wouter Born <github@maindrain.net>
2021-09-20 14:49:32 +02:00
Wouter Born
4aa1f14600
Upgrade to Karaf 4.3.3 (#11261)
* Syncs the karaf.version so the new Maven plugin is used
* Resolves itest runbundles for the new runtime dependencies

Signed-off-by: Wouter Born <github@maindrain.net>
2021-09-18 19:33:18 +02:00
Wouter Born
088e2f08ab
Resolve runbundles for XStream upgrade (#11236)
Related to openhab/openhab-core#2482

Signed-off-by: Wouter Born <github@maindrain.net>
2021-09-12 11:44:58 +02:00
jlaur
8f836a08ea
[wemo] Add dimensions for power/energy channel types for Insight Switch. (#11208)
* Add dimensions for power/energy channel types for Insight Switch.

Fixes #11207

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2021-09-08 20:36:03 +02:00
Björn Lange
699b7712c3
[mielecloud] Remove e-mail parameter validation (#11073)
Signed-off-by: Björn Lange <bjoern.lange@tu-dortmund.de>
2021-08-02 21:45:41 +02:00
Christoph Weitkamp
2cc08ba8bd
Resolve itest runbundles for snapshot 3.2.0 (#10909)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-06-28 13:44:38 +02:00
Kai Kreuzer
bebab9ce29 applied spotless
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-06-27 23:25:35 +02:00
jenkins
8c5c81e256 [unleash-maven-plugin] Preparation for next development cycle. 2021-06-27 17:35:01 +00:00
Wouter Born
6296eba14c
[nest] Add support for Smart Device Management (SDM) API (#8947)
* [nest] Add support for Smart Device Management (SDM) API

* Reworks WWN implementation so that the thing types have a wwn_ prefix and the classes have a WWN prefix and reside in a 'wwn' package
* Adds an SDM implementation which is also based on: https://github.com/bhigg-code/openhab-addons/tree/2.5.x/bundles/org.openhab.binding.nestdeviceaccess
* Adds unit tests for (de)serialization of the SDM and Pub/Sub API requests and responses
* Updates the binding documentation for the changes and additions

Fixes #8664

Also-by: Brian Higginbotham <brianhigginbothamtx@gmail.com>
Signed-off-by: Wouter Born <github@maindrain.net>

* Fix and improve documentation

Signed-off-by: Wouter Born <github@maindrain.net>

* Always use UTF8 when decoding SDM events

Signed-off-by: Wouter Born <github@maindrain.net>
2021-06-20 19:59:46 +02:00
Kai Kreuzer
6d68746b60
upgrade to JUPnP 2.6.0 (#10801)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-06-04 11:15:29 +02:00
Kai Kreuzer
cf34ba23a0
updated JmDNS dependency version (#10780)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-05-31 20:31:23 +02:00
Christoph Weitkamp
04507d98fc
Added support for HAN-FUN outlets / simple on-off devices (#10760)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-05-29 14:25:36 +02:00
Björn Lange
705f5c577c
[mielecloud] Initial contribution of the Miele Cloud binding (#9146)
Also-by: Bert Plonus <bert.plonus@miele.com>
Also-by: Martin Lepsy <martin.lepsy@miele.com>
Also-by: Benjamin Bolte <benjamin.bolte@itemis.de>
Signed-off-by: Björn Lange <bjoern.lange@itemis.de>
2021-05-25 22:06:49 +02:00
Wouter Born
27d5bb11c7
Resolve itest runbundles for XStream upgrade (#10713)
Signed-off-by: Wouter Born <github@maindrain.net>
2021-05-21 07:34:47 +02:00
Christoph Weitkamp
5a836b82cb
Added alternative handling for UnmarshalException (#10715)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-05-20 20:26:51 +02:00
Wouter Born
7d2c8755eb
Upgrade to Karaf 4.3.2 (#10693)
* Syncs the karaf.version so the new Maven plugin is used
* Resolves itest runbundles for the new runtime dependencies

Signed-off-by: Wouter Born <github@maindrain.net>
2021-05-18 07:37:57 +02:00
Wouter Born
c3a6aa5814
Upgrade Units of Measurement dependencies (#10583)
* Fix code/tests for upgrade
* Resolve runbundles
* Update Checkstyle ruleset for changed packages

Signed-off-by: Wouter Born <github@maindrain.net>
2021-05-11 08:31:03 +02:00
Wouter Born
aaeddc8119
Update Netty dependencies to 4.1.63.Final (#10606)
Signed-off-by: Wouter Born <github@maindrain.net>
2021-04-28 12:22:11 +02:00
Wouter Born
8397f938b3
Resolve runbundles for Aries JAX-RS Whiteboard upgrade (#10575)
Signed-off-by: Wouter Born <github@maindrain.net>
2021-04-25 15:54:43 +02:00
Sami Salonen
265fd30ba1
[modbus] Gain-offset profile (QuantityType support) and writing of individual bits of holding registers (#9980)
* [modbus] gainOffset and bitMask profiles for working with modbus data

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] README trailing whitespaces

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] README and some final renaming

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] log error with incompatible units

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] gainOffset profile: test for incompatible unit

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] example renamed

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] Remove unused fields

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] gainOffset profile: make configuration parameters optional

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] xml indentantion fix

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] static code analysis fixes

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] Minor fixes for null checking

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] remove comment

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] bit profile README disclaimer with many commands

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] Grammar fixes in README

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] Fix bit profile UI configuration

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] Bit profile: Added possibility to invert value on read/write

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] fix typo with explanation of inverted

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] bit profile: unit tests for inverted parameter

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] spotless:apply

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] static checker fixes

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] write bit feature in data thing

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* wip

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] resolve itest

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] fixes

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] Remove bit profile

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] Fix data thing readStart validation

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] readme fix

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] Remove bit profile test

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] Invalidate REFRESH data cache with cacheful writes

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] cleanup

- abort if command is not convertible to 0/1 (previously wrote the
  cached data)
- fail fast conditionals instead of deep if's

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] README Fix typo in example

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] fix data thing write when child of endpoint

Also added regression test

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* Update bundles/org.openhab.binding.modbus/src/main/resources/OH-INF/config/gainOffset.xml

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

Co-authored-by: Fabian Wolter <github@fabian-wolter.de>

* [modbus] performance-optimized logging

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] README: Removing xtend syntax hint, not needed anymore

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] generics typing added

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] dead code

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] avoid supressing generic type warnings

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] unnecessary generics

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] rename type parameter name

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] QU (short for quantity output) generic type instead of Q2

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] Remove unused localization

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] profile constant visibility harmonized

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

* [modbus] spotless:apply

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

Co-authored-by: Fabian Wolter <github@fabian-wolter.de>
2021-04-16 22:59:55 +02:00
Wouter Born
b42101addc
Remove unused local variables (#10528)
Fixes 26 SAT UnusedLocalVariable findings

Signed-off-by: Wouter Born <github@maindrain.net>
2021-04-16 22:35:01 +02:00
quidam
18989d7ab7
[avmfritz] Added support for HAN-FUN blinds (#10492)
* Added support for HAN-FUN blinds

Closes #10430 

Signed-off-by: Ulrich Mertin <mail@ulrich-mertin.de>
2021-04-15 17:50:11 +02:00
Hans-Jörg Merk
fdada9a155
[wemo] add annotations and remove usage of apache.commons.* (#9829)
* [wemo] add annotations and remove usage of apache.commons.*

Also-by: Wouter Born <github@maindrain.net>
Signed-off-by: Hans-Jörg Merk <github@hmerk.de>
2021-04-08 22:46:46 +02:00