Commit Graph

166 Commits

Author SHA1 Message Date
J-N-K
990700de8d
[mapdb] Make serialization asynchronous (#14900)
* [mapdb] Make serialization asynchronous

---------

Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-05-01 09:10:28 +02:00
Jacob Laursen
b21913f5be
[hue] Fix NUPnP discovery (#14871)
* Fix NUPnP discovery

Fixes #14852

* Declare hybrid connection due to cloud discovery

---------

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-04-22 22:42:35 +02:00
Björn Lange
e3efe0cc86
[mielecloud] Fix failing integration tests (#14791)
* Revert "Disable mielecloud tests (#14762)"

This reverts commit 09c394b928.

* Configuration flow integration tests only resolve redirect URL

Signed-off-by: Björn Lange <bjoern.lange@itemis.de>
2023-04-13 12:32:12 +02:00
J-N-K
09c394b928
Disable mielecloud tests (#14762)
As they always fail and therefore CI builds fail.

Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-04-08 12:24:18 +02:00
Sami Salonen
18e7d81e4d
[mqtt] Support Ruuvitags via Ruuvi Gateway (#13315)
Signed-off-by: Sami Salonen <ssalonen@gmail.com>
2023-03-27 14:11:07 +02:00
Björn Lange
fbcb412353
[mielecloud] Add channels energy and water consumption (#14456)
* Add POJOs for ecoFeedback from Miele REST API
* DeviceState offers  water and energy consumption
* Convert Quantity to State for channel population
* Add eco feedback channels to devices
* Fix item types and categories
* Add update instructions for eco feedback channels

Signed-off-by: Björn Lange <bjoern.lange@itemis.de>
2023-03-24 23:15:28 +01: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
Wouter Born
6f7366de7f
[nest] Cleanup test code (#14642)
* Fix SAT issues
* Start Jetty Server in same thread to improve stability
* Cleanup some code

Signed-off-by: Wouter Born <github@maindrain.net>
2023-03-20 22:14:38 +01:00
Wouter Born
9aa72abd82
Resolve runbundles and fix tests (#14588)
Related to:

* openhab/openhab-core#3433
* openhab/openhab-core#3446
* openhab/openhab-core#3450

Some tests were updated because private lifecycle methods (annotated with @BeforeAll, @AfterAll, @BeforeEach, or @AfterEach) now lead to an exception.

See: https://junit.org/junit5/docs/current/release-notes/index.html#deprecations-and-breaking-changes-3

Signed-off-by: Wouter Born <github@maindrain.net>
2023-03-12 23:00:58 +01:00
Wouter Born
59b3ed33df
[groovyscripting] Update Groovy to 4.0.9 and support slurpers (#14499)
Updates Groovy from 4.0.7 to 4.0.9.

For release notes, see:

https://groovy-lang.org/changelogs/changelog-4.0.8.html
https://groovy-lang.org/changelogs/changelog-4.0.9.html

Adds dependencies and service loader config so JSON, XML and YAML can be more easily parsed using the JsonSlurper, XmlSlurper and YamlSlurper.

Signed-off-by: Wouter Born <github@maindrain.net>
2023-03-11 21:15:06 +01:00
Wouter Born
c7f7dbdc07
Resolve itest runbundles for JUPnP upgrade (#14538)
Related to openhab/openhab-core#3421

Signed-off-by: Wouter Born <github@maindrain.net>
2023-03-05 13:12:49 +01:00
Wouter Born
b2bf7256db
Upgrade to Karaf 4.4.3 (#14040)
* Rework Servlets to use Http Whiteboard annotations in favor of proprietary `org.openhab.core.io.http.servlet` classes
* Resolve itest runbundles
* Fix dependency issues
* Catch proper exception when starting hueemulation UpnpServer

Also-by: Jan N. Klug <github@klug.nrw>
Signed-off-by: Wouter Born <github@maindrain.net>
2023-03-01 18:33:50 +01:00
J-N-K
ec3f5369be
Resolve itests after core changes (#14498)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-02-25 12:37:37 +01:00
J-N-K
cb07f3e2f0
Fix build after core-changes (#14431)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-02-18 15:24:58 +01:00
J-N-K
d613641bbd
Adapt addons to core watch service changes (#14004)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-02-13 16:37:57 +01:00
Jacob Laursen
0e65903216
[wemo] Fix stability issues (#14163)
* Stabilize UPnP subscription handling
* Remove unused UpnpService
* Fix integration test

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-01-28 09:35:30 +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
Jacob Laursen
4dd6d3a8a2
Update license headers to 2023 (#14154)
* Update copyright year in configuration
* Update license headers

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-01-06 09:49:54 +01:00
Wouter Born
6e6bd3701c
Update Jackson version to 2.14.1 (#14116)
This is the version used in the feature provided by openhab-core.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-30 22:48:12 +01:00
Wouter Born
88c0b720c6
[jsscriptingnashorn] JavaScript Scripting Nashorn Automation (#14013)
* [jsscriptingnashorn] JavaScript Scripting Nashorn Automation

This add-on allows you to use your older JavaScript (ECMAScript 5.1) rules on newer Java versions until they are migrated to JavaScript (ECMAScript 2021+).
The add-on uses a standalone [Nashorn Engine](https://github.com/openjdk/nashorn) which was part of Java until it was removed in Java 15.

* Update parent to 3.4.0-SNAPSHOT and nashorn-core to 15.4

For the Nashorn changelog, see:

https://github.com/openjdk/nashorn/blob/main/CHANGELOG.md

* Update parent to 4.0.0-SNAPSHOT
* Remove removeUnsupportedNashornArgs
* Update scriptTypes
* Add CODEOWNERS entry
* Recycle ScriptScopeOSGiTest.java

It got removed in openhab/openhab-core#2994

* Remove redundant new line from pom.xml

Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-26 15:27:03 +01:00
J-N-K
cd9e1b0590
Fix build / Resolve itests (#14018)
* Fix build / Resolve itests
* Remove Java 11 from GHA matrix

Also-by: Wouter Born <github@maindrain.net>
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-20 08:11:31 +01:00
J-N-K
9f3b8e1c04
Raise minimum JDK version to 17 (#13276)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-19 20:39:42 +01:00
J-N-K
4d6d6443ef
fix spotless after release (#14014)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-19 15:22:17 +01:00
openhab-bot
7993786dc9 [unleash-maven-plugin] Preparation for next development cycle. 2022-12-19 00:55:11 +00:00
lolodomo
831443334e
[mielecloud] Fix integration tests (#13935)
Code change provided by @BjoernLange

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-12-13 09:04:16 +01:00
Mark Herwege
d0681251cb
[systeminfo] QuantityTypes and state descriptions cleanup (#13804)
* State descriptions cleanup
* Converted channels to QuantityType, adjusted default translations
* Channel definitions and percent to QuanityType
* Changed default state descriptions from MB to MiB

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2022-12-10 23:32:25 +01:00
Björn Lange
92310fab2f
[mielecloud] Remove things after each integration test (#13875)
Signed-off-by: Björn Lange <bjoern.lange@itemis.de>
2022-12-10 09:40:50 +01:00
J-N-K
61b5c26b58
Upgrade bnd to 6.4.0 (#13890)
* Upgrade bnd to 6.4.0

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-09 21:23:53 +01:00
Wouter Born
3c936dbda9
Upgrade commons-net to 3.9.0 (#13869)
Related to openhab-core#3200

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

Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-08 07:09:46 +01:00
Wouter Born
76e6ae80f7
[tradfri] Resolve runbundles for Californium upgrade (#13673)
Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-05 20:49:12 +01:00
Mark Herwege
cf2a1afd56
[systeminfo] dynamic channels (#13562)
* Dynamic channels
* Status messages i8n
* Format fix
* Cache process load values
* Restore channel configs
* Fix test
* Stabilize tests
* Fix CpuLoad1-5-15 update
* Fix test bndrun
* String equals cleanup
* Fix potential null pointer in test

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2022-11-04 13:28:27 +01:00
Christoph Weitkamp
ee34d92c17
[hue] Changed discovery to mDNS; added HTTPS handling; refactor HTTPClient to use jetty shared client (#11842)
* Changed discovery to MDNS; added HTTPS handling; refactor HTTPClient to use jetty shared client

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-10-22 23:39:51 +02:00
Wouter Born
487811fdfd
Update Shelly and Tradfri bindings for upgrade to Californium 2.7.3 (#13407)
* Update Shelly and Tradfri bindings for upgrade to Californium 2.7.3

* Fixes deprecated API usages
* Resolves itest runbundles

Signed-off-by: Wouter Born <github@maindrain.net>
2022-09-21 12:19:19 +02:00
Mark Herwege
909d390581
[systeminfo] Add CPU load channel, update dependencies (#13292)
* Add CPU load channel, update dependencies
* use PercentType, correct process CPU load
* Add and fix test

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2022-09-11 11:06:52 +02:00
Björn Lange
51ff29116f
[mielecloud] Adapt to inbox api changes (#13185)
* No unneccessary calls to thingRegistry.get
* Handle Inbox.add now returning CompletableFuture

Signed-off-by: Björn Lange <bjoern.lange@itemis.de>
2022-08-14 21:31:31 +02:00
J-N-K
7855f81760
Fix build (#13150)
* Fix build
* fix itest

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-07-20 20:40:42 +02:00
Wouter Born
949848723a
[tradfri] Update jmdns bundle in itest (#13084)
This fixes the build as jmdns got updated in openhab/openhab-core#3029.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-07-05 12:23:00 +02:00
Kai Kreuzer
440f603e88
Apply spotless and resolver (#13027)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2022-06-27 16:00:37 +02:00
openhab-bot
ed4858ebbb [unleash-maven-plugin] Preparation for next development cycle. 2022-06-26 18:18:40 +00:00
Wouter Born
e4a3a43345
Update bnd to 6.3.0 (#12864)
For release notes, see:

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

Related to openhab/openhab-core#2991

Signed-off-by: Wouter Born <github@maindrain.net>
2022-06-02 21:44:20 +02:00
Jacob Laursen
d83a036e1a
Disable unstable test (#12829)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-05-27 18:18:16 +02:00
J-N-K
87023da9e3
Fix issues with tests after core-changes (#12817)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-05-27 09:07:15 +02:00
Jacob Laursen
a30bb59400
[mqtt.homie] Disable unstable test (#12812)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-05-26 08:22:56 +02:00
Kai Kreuzer
ae5009154d
Resolve itests after jUPnP upgrade (#12808)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2022-05-25 22:57:42 +02:00
Wouter Born
1408899ed3
Upgrade to Karaf 4.3.7 (#12660)
* 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-04-28 22:03:04 +02:00
Wouter Born
62c30d034f
[mqtt] Revive disabled itests (#12431)
This fixes all the compilation/dependency issues in the MQTT itests so they can be reenabled again.
The tests now create and use their own Moquette instance instead of the removed embedded MQTT broker.
The moquette-broker JAR is also included in the test bundles as workaround for its missing OSGi bundle manifest headers.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-04-26 20:24:11 +02:00
Jacob Laursen
241a613d65
[wemo] Fix UPnP resubscription after lost network connection (#12648)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-04-25 11:16:47 +02:00
Wouter Born
972149fb3f
[modbus] Make tests more stable (#12584)
This fixes the issue of the integration tests sometimes failing because channels have not yet been linked causing item state to remain null.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-04-08 14:32:32 +02:00
Wouter Born
707ecaf47b
Reduce Mockito stubbing warnings (#12576)
See also: openhab/openhab-core#2893

Signed-off-by: Wouter Born <github@maindrain.net>
2022-04-05 00:06:49 +02:00
Jacob Laursen
1239dda691
[wemo] Prevent excessive currentPower channel updates (#12461)
* Introduce algorithm for preventing excessive currentPower updates
* Increase calculation accuracy
* Rename currentPowerAccurate to currentPowerRaw
* Remove duplicated line
* Use interface when declaring double ended queue
* Reformat README to one sentence per line
* Rename constants for consistency and readability

Fixes #12460

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-04-02 12:46:26 +02:00