Commit Graph

4140 Commits

Author SHA1 Message Date
lsiepel
1519cb4b1c
nul annotations, checkstyle, forbidden packagel (#13981)
Signed-off-by: lsiepel <leosiepel@gmail.com>
2022-12-20 00:04:43 +01:00
lsiepel
40b8b77840
Very minor checkstyle (#13973)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2022-12-20 00:01:50 +01:00
Jacob Laursen
127f998a69
Upgrade MySQL Connector/J to 8.0.31 (#13991)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-12-19 23:49:51 +01:00
Holger Friedrich
3bec273910
[rrd4j] Upgrade base library from 3.8.1 to 3.8.2 (#13956)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2022-12-19 22:58:43 +01:00
Holger Friedrich
3aefefbbb5
[knx] Upgrade Calimero library to release 2.5.1 (#14015)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2022-12-19 22:49:40 +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
Jacob Laursen
c5b68d0248
Fix NullPointerException (#14010)
Fixes #13961

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-12-18 23:22:40 +01:00
Wouter Born
4871d6dab1
[shelly] Remove broken images (#14007)
See also #13993

Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-18 19:50:23 +01:00
Wouter Born
8d65371844
[shelly] Remove broken images (#14007)
See also #13993

Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-18 19:49:42 +01:00
Kai Takac
36137992a5
[jdbc] Update org.xerial/sqlite-jdbc to 3.40.0.0 (#14003)
* [jdbc] Update org.xerial/sqlite-jdbc to 3.40.0.0

Co-authored-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Kai Takac <kai.takac@gmail.com>
2022-12-18 19:04:43 +01:00
Дилян Палаузов
ef836a15dc
typos: success, successful (#13997) 2022-12-18 14:18:24 +01:00
openhab-bot
6b1354f9ba
New Crowdin updates (#13999)
* New translations iCloud.properties (French)

* New translations openwebnet.properties (Italian)

* New translations plugwise.properties (Dutch)
2022-12-18 14:02:15 +01:00
MikeTheTux
6dd8cd52c5
fixed potential StringIndexOutOfBoundsExceptions (#14000)
fixed compiler warnings

Signed-off-by: Michael Weger <weger.michael@gmx.net>
2022-12-18 13:35:08 +01:00
Holger Friedrich
debdfa5f8b
[wolfsmartset] Fix link to external documentation (#13996)
Update link to current document from Wolf download center.
Fixes #13995.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2022-12-18 11:55:59 +01:00
Jacob Laursen
9b891302c8
Fix alignment/indentation (#13994)
Fixes #13882

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-12-18 10:22:07 +01:00
Wouter Born
d03d3e4342
Show add-on intros in Main UI (#13992)
Using these Markdown tweaks a small intro will show in Main UI instead of emptyness and a "more" button.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-17 23:53:57 +01:00
Jacob Laursen
6753234e32
Fix Zigbee name stylization (#13954)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-12-17 17:25:38 +01:00
openhab-bot
d20b10317c
New Crowdin updates (#13990)
* New translations tr064.properties (German)
* New translations jsscripting.properties (Danish)
* New translations jsscripting.properties (Italian)
2022-12-17 16:51:35 +01:00
Florian Hotze
15e6bebb6c
[yamaha] README: Recommend correct binding for specific model (#13985)
This doc improvement tries to avoid future issue like #10838.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2022-12-17 15:42:23 +01:00
Florian Hotze
11e2c4fc31
[jsscripting] Update add-on name in default translation (#13984)
Leftover from #13764.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2022-12-17 13:40:12 +01:00
openhab-bot
4a13e1a68f
New Crowdin updates (#13971)
* New translations knx.properties (German)
* New translations yamahamusiccast.properties (German)
* New translations hdpowerview.properties (Danish)
* New translations jsscripting.properties (Danish)
2022-12-17 12:13:24 +01:00
Wouter Born
23875a6ae3
[mapdb] Fix "a" typo and use "-" for bullets in docs (#13966)
Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-16 11:22:48 +01:00
Dan Cunningham
ab504bc69e
[hydrawise] fixes null pointer error for some sprinkler controllers (#13965)
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2022-12-16 08:31:02 +01:00
Wouter Born
15ad22b5ad
[mapdb] Add some documentation (#13964)
This is based on the original OH1 documentation.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-15 23:39:37 +01:00
openhab-bot
d6db72774a
New Crowdin updates (#13962)
* New translations chromecast.properties (Italian)
* New translations sonos.properties (Italian)
* New translations exec.properties (Italian)
* New translations knx.properties (German)
* New translations jsscripting.properties (German)
* New translations yamahamusiccast.properties (German)
2022-12-15 23:36:49 +01:00
Wouter Born
c75b04e976
[wundergroundupdatereceiver] Prevent 😕 showing in documentation (#13963)
See: https://www.openhab.org/addons/bindings/wundergroundupdatereceiver/

Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-15 22:40:52 +01:00
Holger Friedrich
9318f6f336
[knx] Minor documentation update (#13918)
Slightly change wording of docs related to localSourceAddress to avoid
address conflicts during initial setup.
Add remark about knxd.
Fixes #13602.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2022-12-15 16:22:43 +01:00
Wouter Born
83f0f7aa4c
Prevent Markdown rendering issues in Main UI (#13958)
Some add-ons use `---` separators which causes issues when rendering the documentation in Main UI.

Fixes #13953

Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-15 12:28:32 +01:00
Holger Friedrich
6ab0561382
[rrd4j] Error handling for broken rrd4j files (#13955)
* [rrd4j] Error handling for broken rrd4j files

Catch exceptions thrown by getDB(..) and print the name of the affected
database file. This allows to identify a broken rrd4j file.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2022-12-15 11:31:20 +01:00
Simon Spielmann
04f059c455
[icloud] Rework authentication to reflect changes in iCloud API (#13691)
* Implement Authentication (WIP)
* Validation Code accepted
* Refactor session state
* RefreshClient working
* Implement session persistence in openhab store
* Integration in binding
* Remove persistent cookies, which break authentication
* Bugfixing
* Add code configuration to UI
* Improve documentation, error-handling and cleanup
* Rework auth order
* Rework auth process
* Add 2-FA-auth to documentation
* Set bridge to online if data refresh works
* Case-sensitive rename ICloudAPIResponseException
* Include authentication in refresh flow
* Fix regression for data not being updated
* Fix typo in i18n props
* Fix review and checkstyle.
* More javadoc, new RetryException
* Introduce @NonNullByDefault
* Introduce server for RetryException, add NonNullbyDefault, fix warnings
* Rework for contribution, e.g. null checks, ...
* Fix checkstyle
* Move JsonUtils to utilities package
* Async initialize bridge handler.
* Report Device OFFLINE if Bridge is OFFLINE
* Set bridge thing status to UNKOWN in init
* Move refresh init into async init
* Cancel init task in dispose

Also-by: Leo Siepel <leosiepel@gmail.com>
Signed-off-by: Simon Spielmann <simon.spielmann@gmx.de>
2022-12-15 09:18:11 +01:00
Wouter Born
6e8b35c4c1
[jsscripting] Fix broken event object table (#13952)
The table is not properly rendered when reading the documentation in Main UI.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-15 07:51:22 +01:00
Jørgen Austvik
79060f3c8f
[nanoleaf] Bugfix: Handle non-integer panel ids (#13951)
Panel ids are sometimes returned as BigInteger

We haven't been able to understand why this happens somewhere and
somewhere not, but this is an sledgehammer attempt to fix it quickly
to unblock users, and then we will try to understand it later.

Discussions:
https://community.openhab.org/t/java-lang-classcastexception-class-java-math-bigdecimal-cannot-be-cast-to-class-java-lang-integer/142035/16
https://community.openhab.org/t/nanoleaf-binding-oh3-stabilization-update/116300/61

Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
2022-12-14 20:15:47 +01:00
Florian Hotze
d4ec220925
[jsscripting] Extend synchronization to common ScriptEngine methods (#13924)
* [jsscripting] Extend synchronization to common ScriptEngine methods

This extends the multi-thread synchronization to "eval" and "invokeMethod" and moves synchronization for "invokeFunction" to the DelegatingScriptEngineWithInvocableAndAutocloseableAndSynchronization class. Fixes the multi-thread access requested warnings described in the community (https://community.openhab.org/t/openhab-3-4-milestone-discussion/138093/130) and related to https://github.com/openhab/openhab-core/pull/3180.

* Revert "[jsscripting] Extend synchronization to common ScriptEngine methods"

This reverts commit aadd21e45879c10aad29bf279ddbb0afd789b0aa.

* [jsscripting] Extend synchronization to common ScriptEngine methods & Switch to ReentrantLock

This extends the multi-thread synchronization to "eval" and "invokeMethod" and moves synchronization for "invokeFunction" to the InvocationInterceptingScriptEngineWithInvocableAndAutoCloseable class.
The synchronization mechanism changed from using synchronized to using a ReentrantLock together with catch_finally to avoid having deadlocks when an exception is thrown.
Fixes the multi-thread access requested warnings described in the community (https://community.openhab.org/t/openhab-3-4-milestone-discussion/138093/130) and related to https://github.com/openhab/openhab-core/pull/3180.

* [jsscripting] Reduce compiler warnings
* [jsscripting] Replace finally blocks & Wrap returns in afterInvocation
* [jsscripting] Fix deadlock caused by NoSuchMethodException in Invocable interface methods

During testing my latest changes, I noticed that there is a deadlock when invokeFunction or invokeMethod are called on a non-existing method.
This happens because the NoSuchMethodException keeps afterInvocation from running and therefore the lock never gets released.

* [jsscripting] Also rethrow NPE & Fix PMD warnings/errors
* [jsscripting] Wrap and rethrow other exceptions instead of returning them
* [jsscripting] Address review comment from @jpg0

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2022-12-14 20:12:54 +01:00
Jerome Luckenbach
1ca9baf157
[Documentation] Markdown improvements n to s (#13948)
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2022-12-14 16:52:43 +01:00
Udo Hartmann
d73218d882
[mqtt.generic] Change color example (#13861)
Change color example to fit to the real parameters.
2022-12-14 08:21:34 +01:00
Cody Cutrer
4aca2c6976
[jrubyscripting] remove some development logging that crept in (#13947)
Signed-off-by: Cody Cutrer <cody@cutrer.us>
2022-12-13 23:28:55 +01: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
Hilbrand Bouwkamp
e9473caebc
[airq] fix table in readme that broke rendering markup (#13937)
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2022-12-13 08:40:10 +01:00
openhab-bot
9c3ec387e5
New Crowdin updates (#13932)
* New translations boschshc.properties (Italian)

* New translations ecowatt.properties (French)

* New translations nikohomecontrol.properties (Dutch)

* New translations systeminfo.properties (Dutch)

* New translations upnpcontrol.properties (Dutch)
2022-12-13 07:27:26 +01:00
Jacob Laursen
bd087f1c1c
Fix examples after migration of time channels (#13933)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-12-12 22:55:38 +01:00
Wouter Born
286a27db5b
[nest] Add missing enable SDM API configuration step to README.md (#13931)
Fixes #11814

Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-12 22:12:24 +01:00
Jacob Laursen
518272a731
Fix dimension for powerConsumption channel (#13930)
Fixes #13929

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-12-12 22:10:48 +01:00
lolodomo
e027932349
[goecharger] Consider correct channel ID (maxCurrentTemp) (#13927)
Fix #13891

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-12-12 20:28:59 +01:00
Ondrej Pecta
712262fb1e
[somfytahoma] fix the smoke sensor documentation (#13919)
Signed-off-by: Ondrej Pecta <opecta@gmail.com>
2022-12-11 23:17:52 +01:00
Jacob Laursen
a3fccc6390
Fix console command 'tables clean' (#13916)
NullPointerException was thrown because index table was not provided

Fixes #13911

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-12-11 22:47:37 +01:00
Jerome Luckenbach
73b6e886f2
Fix wrong image and website build. (#13917)
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2022-12-11 21:43:42 +01:00
Wouter Born
74edb5377c
GitHub Actions workflow upgrades (#13915)
* Upgrade actions to fix deprecation warnings
* Use ubuntu-22.04 for builds

Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-11 17:38:47 +01:00
Kai Kreuzer
260f58904f
[homekit] Simplify start level handling (#13914)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2022-12-11 17:09:31 +01:00