Commit Graph
92 Commits
Author SHA1 Message Date
Andrew Fiddian-GreenandGitHub a5a74fd085 [ci build] Apply spotless to fix poms (#21115)
* fix poms
* change version on itests

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2026-07-06 21:54:17 +02:00
openhab-bot 6c4bd00559 [unleash-maven-plugin] Preparation for next development cycle. 2026-07-05 14:04:45 +00:00
openhab-botandGitHub f5b20ea0a6 New Crowdin updates (#21087)
* New translations astro.properties (German)
* New translations nanoleaf.properties (German)
* New translations openweathermap.properties (German)
* New translations openhabcloud.properties (German)
* New translations map.properties (German)
* New translations jsonpath.properties (German)
* New translations regex.properties (German)
* New translations scale.properties (German)
* New translations xpath.properties (German)
* New translations xslt.properties (German)
* New translations influxdb.properties (German)
* New translations exec.properties (German)
* New translations network.properties (German)
* New translations picotts.properties (German)
* New translations froniuswattpilot.properties (German)
* New translations math.properties (German)
2026-07-01 14:37:06 +02:00
Jacob Laursenandlsiepel a3cce8efd7 Update license headers
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2026-01-02 10:51:48 +01:00
lsiepelandGitHub 2fc036812e Fix documentation, grammar, and spelling in bindings N (#19549)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2025-12-25 16:41:53 +01:00
Holger FriedrichandGitHub 207ca71fc4 Prepare for OH 5.2.0 (#19868)
* Fix spotless after unleash
* Resolve itest runbundles

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-12-23 00:01:46 +01:00
openhab-bot ee3817accd [unleash-maven-plugin] Preparation for next development cycle. 2025-12-22 17:11:00 +00:00
openhab-botandGitHub 20c1ae1849 New Crowdin updates (#19802)
* New translations lgwebos.properties (French)

* New translations sonos.properties (French)

* New translations exec.properties (French)

* New translations network.properties (French)

* New translations sagercaster.properties (French)

* New translations gridbox.properties (French)
2025-12-13 18:54:33 +01:00
Holger FriedrichandGitHub 87027e88d8 Fix SAT warnings (#19731)
* Fix SAT warnings

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-11-29 20:18:27 +01:00
NadaharandGitHub c30d9d9cd7 Restore discovery tests (#19562)
* Restore tests

Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
2025-10-26 19:24:33 +01:00
NadaharandGitHub 9b5d188a4e [network] Use a threaded consumer for Process output consumption (#19398)
* Use a threaded consumer for Process output consumption

Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
2025-10-03 17:17:13 +02:00
a5fcfe40c4 [network] Fix discovery performance causing a slow openHAB start (#17972)
* Fix performance
* Improvements
* Add logging
* Improve logging
* Update bundles/org.openhab.binding.network/src/main/java/org/openhab/binding/network/internal/utils/NetworkUtils.java
* Improve thread handling
* Improve shutdown
* thread cleanup
* Improve per thread allocation
* Stop on finishing all interfaces
* Change Arping to make use of completeablefeature
* Seperate presence detection from lifecycle
* Improve logging and filtering
* Create seperate ScheduledExecutorService
* Fix review comment
* Improve network address checks
* Improve interrupthandling
* Revert threadlocal
* Refactor Presencedetection
* Make LatencyParser accept Windows' <1ms syntax for minimal latency
* Remove misleading reference to non-existing NetworkHandlerBuilder
* Handle thread-safety of NetworkDiscoveryService.executorService
* Fix network interface exclusion
* Make PresenceDetectionValue thread-safe
* Partial refactoring of PresenceDetection

Fixes:
  - Synchronization of lastSeen
  - Joining of async tasks
  - Minor logging improvements
Addition:
  - Create setIcmpPingMethod()

* Partial refactoring of NetworkDiscoveryService

Fixes:
  - Correct the number of addresses in a /24 subnet.
  - Restructure task creation so that one less thread is needed per scanned address, and so that startScan() is guaranteed to return quickly.
  - Create independent threads for posting discovery results, as this can take a long time and might not finish before the executor shuts down.

* Make NetworkHandler thread-safe
* Make SpeedTestHandler thread-safe
* Make sure that process output is consumed
* Implement tool-specific latency parsing
* Fix NetworkDiscoveryService configuration and make the thread pool size configurable
* i18n
* Fix test

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
Co-authored-by: Wouter Born <github@maindrain.net>
Co-authored-by: Ravi Nadahar <nadahar@rediffmail.com>
2025-09-07 19:51:15 +02:00
lsiepelandGitHub 90b3d12aa3 Spotless after release (#19002)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2025-07-21 20:21:58 +02:00
openhab-bot d779c17335 [unleash-maven-plugin] Preparation for next development cycle. 2025-07-21 09:29:14 +00:00
Andrew Fiddian-GreenandGitHub 886c170631 Cherry pick approved addons from #18585 (#18664)
* cherry pick approved addons from #18585

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2025-06-15 14:33:52 +02:00
openhab-botandGitHub d33d2dbac2 New Crowdin updates (#18700)
* New translations lgwebos.properties (French)
* New translations sagercaster.properties (French)
* New translations network.properties (French)
2025-05-19 07:07:34 +02:00
Wouter BornandGitHub 8a7a411ccc Use Spotless sortpom plug-in (#18318)
Similar to openhab/openhab-core#4618

Signed-off-by: Wouter Born <github@maindrain.net>
2025-02-23 20:23:16 +01:00
Mark HerwegeandGitHub 3c90a0dcf9 [network] Make icmp ping and arp ping optional by presence thing (#18083)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2025-01-11 11:28:56 +01:00
Wouter BornandGitHub 8672ed0208 Start license headers with /* instead of /** (#18061)
Prevents JavaDoc tooling issues because these tools check comments starting with `/**`.

Signed-off-by: Wouter Born <github@maindrain.net>
2025-01-07 22:33:03 +01:00
Wouter BornandGitHub d6476042ec Update license headers to 2025 (#18015)
* Update license headers to 2025

Signed-off-by: Wouter Born <github@maindrain.net>
2025-01-02 00:30:12 +01:00
lsiepelandGitHub 50e3ca62c0 [network] Fix last-seen channel being set to UNDEF at startup (#17971)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2024-12-24 15:37:16 +01:00
Jacob Laursenandlsiepel d871b66d3c Simplify DateTimeType handling for Network
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Holger FriedrichandGitHub 639a1cb263 Prepare for OH 5.0.0 (#17906)
* Switch to 5.0.0-SNAPSHOT
* Fix spotless after unleash
* resolve itest runbundles

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-12-15 20:30:05 +01:00
openhab-bot f80fd3d18c [unleash-maven-plugin] Preparation for next development cycle. 2024-12-15 13:46:58 +00:00
Andrew Fiddian-GreenandGitHub 388dc6bde3 Normalize thread names (2) (#17849)
* Normalize thread names

Signed-off-by: AndrewFG <software@whitebear.ch>
2024-12-05 22:32:29 +01:00
Neil GreatorexandGitHub cd099cceef [network] Modify iOS port knock to use a valid mDNS packet (#17687)
Signed-off-by: Neil Greatorex <neil@greatorex.me.uk>
2024-11-04 19:58:08 +01:00
Jacob LaursenandGitHub 85b165208c Make Markdown code block languages consistent (#17480)
* Make Markdown code block languages consistent

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Fix indentation

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

---------

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-09-29 12:47:18 +02:00
lsiepelandGitHub 1a42353cc9 Multiple binding markdown fixes (#17422)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2024-09-28 17:46:53 +02:00
lsiepelandGitHub 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
openhab-botandGitHub 7a3a5d36a2 New Crowdin updates (#16918)
* New translations network.properties (French)

* New translations volumio.properties (French)

* New translations plex.properties (French)

* New translations pipertts.properties (French)

* New translations rotel.properties (French)

* New translations netatmo.properties (French)
2024-06-23 17:21:15 +02:00
Stephan RichterandGitHub ec5b511a81 [network] Fix NumberFormatException for ping when locale has comma as decimal separator (#16636)
* fixing bug:
LatencyParser fails to parse ping times on systems with comma (,) set as decimal separator

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
2024-04-12 21:49:11 +02:00
Wouter BornandGitHub 7a5802b09a [network] Improve threading (#16315)
* [network] Improve threading

* Use timeouts with CompletableFutures
* Use seperate executor when waiting for results
* Catch exceptions when joining CompletableFutures
* Stop previous detection when starting a new one

Fixes #16305

Signed-off-by: Wouter Born <github@maindrain.net>
2024-02-06 17:18:02 +01:00
lsiepelandGitHub 84d4dd3ef4 [network] Add configuration parameter for using iOS wake-up (#16259)
Fixes #9575

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2024-01-15 22:37:38 +01:00
Wouter BornandGitHub f73818da83 [network] Cleanup code (#16235)
* Reuse ExpiringCacheAsync from Core
* Use Duration and Instant
* Replace Optional with null annotations
* Cleanup JavaDocs
* Improve logging
* Add missing null annotations
* Simplify code

Signed-off-by: Wouter Born <github@maindrain.net>
2024-01-11 17:55:23 +01:00
Wouter BornandGitHub 4fe00bb2bf Remove redundant feature dependencies (#16204)
* Remove redundant feature dependencies

The following features are already dependencies of openhab-runtime-base:

* openhab-core-base
* openhab-core-model-item
* openhab-core-model-script
* openhab-transport-mdns

See also: https://github.com/openhab/openhab-addons/pull/16202#issuecomment-1876875456

* Remove redundant openhab.tp-jackson and openhab.tp-jaxb feature dependencies

Signed-off-by: Wouter Born <github@maindrain.net>
2024-01-05 20:00:24 +01:00
Wouter BornandGitHub 18da5075f9 [network] Add parameter for limiting network interfaces to fix performance issues (#16145)
* [network] Add parameter for limiting network interfaces to fix performance issues
* Use last known reachable interface

---------

Signed-off-by: Wouter Born <github@maindrain.net>
2024-01-03 19:28:23 +01:00
J-N-KandGitHub 3136425b39 Adapt to core changes (ThingHandlerService) (#16107)
Related to: https://github.com/openhab/openhab-core/pull/3957

Signed-off-by: Jan N. Klug <github@klug.nrw>
2024-01-03 11:50:55 +01:00
Jacob LaursenandGitHub 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
Wouter BornandGitHub c58d894bf0 Use OnOffType.from to reduce code (#16101)
You can create an `OnOffType` using a boolean nowadays which reduces the amount of code.

Signed-off-by: Wouter Born <github@maindrain.net>
2023-12-23 19:06:21 +01:00
Holger FriedrichandGitHub 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 FriedrichandGitHub 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 FriedrichandGitHub cbf4411034 Improve javadoc for all addons (#15667)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-09-30 21:49:12 +02:00
Holger FriedrichandGitHub ab58f4ffb4 Java 17 features (N-S) (#15565)
- 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

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-09-13 08:03:31 +02:00
Wouter BornandGitHub c71a24f8a1 Link to Java 17 documentation (#15406)
This prevents issues because older documentation may not apply to Java 17.

Signed-off-by: Wouter Born <github@maindrain.net>
2023-08-13 13:44:05 +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
Wouter BornandGitHub 83cbe746d0 Remove redundant modifiers from interfaces (#14843)
Signed-off-by: Wouter Born <github@maindrain.net>
2023-04-18 13:07:04 +02:00
Wouter BornandGitHub f21f7bc8b3 Add more connection details to add-ons (#14813)
* Add more connection details to add-ons

Signed-off-by: Wouter Born <github@maindrain.net>
2023-04-15 21:23:24 +02:00