Commit Graph

3200 Commits

Author SHA1 Message Date
openhab-bot
d62aabeda8 [unleash-maven-plugin] Preparation for next development cycle. 2023-01-08 22:12:29 +00:00
Jacob Laursen
8d56678711 Revert "[netatmo] Adding the ability to append a postfix to registered webhook. (#14123)"
This reverts commit 171711a4dd.
2023-01-02 18:07:19 +01:00
Gaël L'hopital
171711a4dd
[netatmo] Adding the ability to append a postfix to registered webhook. (#14123)
* Adding the ability to append a postfix to registered webhook.

Signed-off-by: clinique <gael@lhopital.org>
2023-01-01 10:37:18 +01:00
mlobstein
99d956630e [bondhome] Fix fatal Null Pointer errors (#14103)
* Fix fatal Null Pointer errors

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
2022-12-30 14:30:46 +01:00
lsiepel
9f7be410cb [bondhome] compile warnings and sat (#13986)
* fix some compile warnings and checkstyle
* replace deprecated gson calls
* Refactor config init

Signed-off-by: lsiepel <leosiepel@gmail.com>
2022-12-30 14:30:07 +01:00
lsiepel
8c175ba4bc [bosesoundtouch] Fix regression and add tests (#14097)
* Fix regression and add tests

Signed-off-by: lsiepel <leosiepel@gmail.com>
2022-12-30 14:26:32 +01:00
jimtng
390c790936 [chromecast] Fix constant disconnections (#14105)
When ipv6 is configured on the network, Chromecast devices will randomly
return ipv4 and/or multiple ipv6 addresses during mdns discovery.
This would trigger a thingUpdated call which will call dispose/initialize,
causing the thing to go offline/online.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2022-12-29 12:15:11 +01:00
Jacob Laursen
70135abe5b Skip loading/migrating items with invalid name (#14054)
Fixes #14053

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-12-27 11:52:30 +01:00
Holger Friedrich
c4a8304c13 [rrd4j] Improve logging of exceptions thrown by getDB (#14068)
Add exception message for better identification of root cause.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2022-12-27 11:32:43 +01:00
Jørgen Austvik
7c0716edef [nanoleaf] More robust caching of layout (#13998)
* [nanoleaf] More robust caching of layout

This is a bugfix/enhancement to make sure the caching of the layout
(to save it from being recalculated) works better:
- Only save previous layout if indeed painted
- Only save layout from the layout update, not the display state
- Recalculate anyway if current state is null

* Bugfix: Update colors

When Stefan runs, the getBridge() returns null, when Jørgen runs, is doesn't. But it isn't needed, because we
are already in the handler, so just call own methods.

Improvement: Less draws when updating colors

Instead of drawing the picture for each panel (which gave a cool effect), draw only once when we have parsed all color data.

Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
2022-12-27 09:21:00 +01:00
Cody Cutrer
e0e9131726
[lifx] Handle and provide QuantityType for color-temperature-abs channel (#14025)
See https://github.com/openhab/openhab-core/pull/3129

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2022-12-24 00:01:39 +01:00
Cody Cutrer
547800b737 [homekit] update AuthInfo objects when blockUserDeletion changes (#14017)
* [homekit] update AuthInfo objects when blockUserDeletion changes

Signed-off-by: Cody Cutrer <cody@cutrer.us>

* [homekit] general cleanup of redundant method call and unused local vars

Signed-off-by: Cody Cutrer <cody@cutrer.us>

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2022-12-23 00:41:26 +01:00
Cody Cutrer
5c1bb0038b [homekit] implement List-Pairings method (#13982)
* [homekit] implement List-Pairings method
* [homekit] fix listUsers() method
* [homekit] bump HAP-java to 2.0.5

refs #13949

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2022-12-23 00:18:15 +01:00
Cody Cutrer
2f9e84a2df [nanoleaf] Handle and provide QuantityType for color-temperature-abs channel (#14026)
* [nanoleaf] handle and provide QuantityType for color-temperature-abs channel

see https://github.com/openhab/openhab-core/pull/3129

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2022-12-22 16:26:51 +01:00
Christoph Weitkamp
f97e1397e9 [hue] Allow handling of QuantityType for color temperature channel (#14024)
* Allow handling of QuantityType for color temperature channel
* Fixed log messages and reduce log level.

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-12-22 16:26:03 +01:00
Cody Cutrer
96ee097e43 [dali] tweak color temperature abs QuantityType fix (#14029)
adds an example of usage of the channel to the README, and
simplifies one method call

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2022-12-22 16:24:25 +01:00
Cody Cutrer
44d906cfe0 [dali] handle and provide QuantityType for color-temperature-abs channel (#14021)
see openhab/openhab-core#3129

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2022-12-22 16:24:18 +01:00
Kai Kreuzer
a2af1970c1 Bump snapshot version
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2022-12-20 10:10:44 +01: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