]> git.basschouten.com Git - openhab-addons.git/log
openhab-addons.git
3 years ago[jdbc] Update org.xerial/sqlite-jdbc to 3.40.0.0 (#14003)
Kai Takac [Sun, 18 Dec 2022 18:04:43 +0000 (19:04 +0100)]
[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>
3 years agotypos: success, successful (#13997)
Дилян Палаузов [Sun, 18 Dec 2022 13:18:24 +0000 (15:18 +0200)]
typos: success, successful (#13997)

3 years agoNew Crowdin updates (#13999)
openhab-bot [Sun, 18 Dec 2022 13:02:15 +0000 (14:02 +0100)]
New Crowdin updates (#13999)

* New translations iCloud.properties (French)

* New translations openwebnet.properties (Italian)

* New translations plugwise.properties (Dutch)

3 years agofixed potential StringIndexOutOfBoundsExceptions (#14000)
MikeTheTux [Sun, 18 Dec 2022 12:35:08 +0000 (13:35 +0100)]
fixed potential StringIndexOutOfBoundsExceptions (#14000)

fixed compiler warnings

Signed-off-by: Michael Weger <weger.michael@gmx.net>
3 years ago[wolfsmartset] Fix link to external documentation (#13996)
Holger Friedrich [Sun, 18 Dec 2022 10:55:59 +0000 (11:55 +0100)]
[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>
3 years agoFix alignment/indentation (#13994)
Jacob Laursen [Sun, 18 Dec 2022 09:22:07 +0000 (10:22 +0100)]
Fix alignment/indentation (#13994)

Fixes #13882

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years agoShow add-on intros in Main UI (#13992)
Wouter Born [Sat, 17 Dec 2022 22:53:57 +0000 (23:53 +0100)]
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>
3 years agoFix Zigbee name stylization (#13954)
Jacob Laursen [Sat, 17 Dec 2022 16:25:38 +0000 (17:25 +0100)]
Fix Zigbee name stylization (#13954)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years agoNew Crowdin updates (#13990)
openhab-bot [Sat, 17 Dec 2022 15:51:35 +0000 (16:51 +0100)]
New Crowdin updates (#13990)

* New translations tr064.properties (German)
* New translations jsscripting.properties (Danish)
* New translations jsscripting.properties (Italian)

3 years ago[yamaha] README: Recommend correct binding for specific model (#13985)
Florian Hotze [Sat, 17 Dec 2022 14:42:23 +0000 (15:42 +0100)]
[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>
3 years ago[jsscripting] Update add-on name in default translation (#13984)
Florian Hotze [Sat, 17 Dec 2022 12:40:12 +0000 (13:40 +0100)]
[jsscripting] Update add-on name in default translation (#13984)

Leftover from #13764.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
3 years agoNew Crowdin updates (#13971)
openhab-bot [Sat, 17 Dec 2022 11:13:24 +0000 (12:13 +0100)]
New Crowdin updates (#13971)

* New translations knx.properties (German)
* New translations yamahamusiccast.properties (German)
* New translations hdpowerview.properties (Danish)
* New translations jsscripting.properties (Danish)

3 years ago[mapdb] Fix "a" typo and use "-" for bullets in docs (#13966)
Wouter Born [Fri, 16 Dec 2022 10:22:48 +0000 (11:22 +0100)]
[mapdb] Fix "a" typo and use "-" for bullets in docs (#13966)

Signed-off-by: Wouter Born <github@maindrain.net>
3 years ago[hydrawise] fixes null pointer error for some sprinkler controllers (#13965)
Dan Cunningham [Fri, 16 Dec 2022 07:31:02 +0000 (23:31 -0800)]
[hydrawise] fixes null pointer error for some sprinkler controllers (#13965)

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
3 years ago[mapdb] Add some documentation (#13964)
Wouter Born [Thu, 15 Dec 2022 22:39:37 +0000 (23:39 +0100)]
[mapdb] Add some documentation (#13964)

This is based on the original OH1 documentation.

Signed-off-by: Wouter Born <github@maindrain.net>
3 years agoNew Crowdin updates (#13962)
openhab-bot [Thu, 15 Dec 2022 22:36:49 +0000 (23:36 +0100)]
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)

3 years ago[wundergroundupdatereceiver] Prevent 😕 showing in documentation (#13963)
Wouter Born [Thu, 15 Dec 2022 21:40:52 +0000 (22:40 +0100)]
[wundergroundupdatereceiver] Prevent 😕 showing in documentation (#13963)

See: https://www.openhab.org/addons/bindings/wundergroundupdatereceiver/

Signed-off-by: Wouter Born <github@maindrain.net>
3 years ago[knx] Minor documentation update (#13918)
Holger Friedrich [Thu, 15 Dec 2022 15:22:43 +0000 (16:22 +0100)]
[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>
3 years agoPrevent Markdown rendering issues in Main UI (#13958)
Wouter Born [Thu, 15 Dec 2022 11:28:32 +0000 (12:28 +0100)]
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>
3 years ago[rrd4j] Error handling for broken rrd4j files (#13955)
Holger Friedrich [Thu, 15 Dec 2022 10:31:20 +0000 (11:31 +0100)]
[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>
3 years ago[icloud] Rework authentication to reflect changes in iCloud API (#13691)
Simon Spielmann [Thu, 15 Dec 2022 08:18:11 +0000 (09:18 +0100)]
[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>
3 years ago[jsscripting] Fix broken event object table (#13952)
Wouter Born [Thu, 15 Dec 2022 06:51:22 +0000 (07:51 +0100)]
[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>
3 years ago[nanoleaf] Bugfix: Handle non-integer panel ids (#13951)
Jørgen Austvik [Wed, 14 Dec 2022 19:15:47 +0000 (20:15 +0100)]
[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>
3 years ago[jsscripting] Extend synchronization to common ScriptEngine methods (#13924)
Florian Hotze [Wed, 14 Dec 2022 19:12:54 +0000 (20:12 +0100)]
[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>
3 years ago[Documentation] Markdown improvements n to s (#13948)
Jerome Luckenbach [Wed, 14 Dec 2022 15:52:43 +0000 (16:52 +0100)]
[Documentation] Markdown improvements n to s (#13948)

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
3 years ago[mqtt.generic] Change color example (#13861)
Udo Hartmann [Wed, 14 Dec 2022 07:21:34 +0000 (08:21 +0100)]
[mqtt.generic] Change color example (#13861)

Change color example to fit to the real parameters.

3 years ago[jrubyscripting] remove some development logging that crept in (#13947)
Cody Cutrer [Tue, 13 Dec 2022 22:28:55 +0000 (15:28 -0700)]
[jrubyscripting] remove some development logging that crept in (#13947)

Signed-off-by: Cody Cutrer <cody@cutrer.us>
3 years ago[mielecloud] Fix integration tests (#13935)
lolodomo [Tue, 13 Dec 2022 08:04:16 +0000 (09:04 +0100)]
[mielecloud] Fix integration tests (#13935)

Code change provided by @BjoernLange

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
3 years ago[airq] fix table in readme that broke rendering markup (#13937)
Hilbrand Bouwkamp [Tue, 13 Dec 2022 07:40:10 +0000 (08:40 +0100)]
[airq] fix table in readme that broke rendering markup (#13937)

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
3 years agoNew Crowdin updates (#13932)
openhab-bot [Tue, 13 Dec 2022 06:27:26 +0000 (07:27 +0100)]
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)

3 years agoFix examples after migration of time channels (#13933)
Jacob Laursen [Mon, 12 Dec 2022 21:55:38 +0000 (22:55 +0100)]
Fix examples after migration of time channels (#13933)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[nest] Add missing enable SDM API configuration step to README.md (#13931)
Wouter Born [Mon, 12 Dec 2022 21:12:24 +0000 (22:12 +0100)]
[nest] Add missing enable SDM API configuration step to README.md (#13931)

Fixes #11814

Signed-off-by: Wouter Born <github@maindrain.net>
3 years agoFix dimension for powerConsumption channel (#13930)
Jacob Laursen [Mon, 12 Dec 2022 21:10:48 +0000 (22:10 +0100)]
Fix dimension for powerConsumption channel (#13930)

Fixes #13929

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[goecharger] Consider correct channel ID (maxCurrentTemp) (#13927)
lolodomo [Mon, 12 Dec 2022 19:28:59 +0000 (20:28 +0100)]
[goecharger] Consider correct channel ID (maxCurrentTemp) (#13927)

Fix #13891

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
3 years ago[somfytahoma] fix the smoke sensor documentation (#13919)
Ondrej Pecta [Sun, 11 Dec 2022 22:17:52 +0000 (23:17 +0100)]
[somfytahoma] fix the smoke sensor documentation (#13919)

Signed-off-by: Ondrej Pecta <opecta@gmail.com>
3 years agoFix console command 'tables clean' (#13916)
Jacob Laursen [Sun, 11 Dec 2022 21:47:37 +0000 (22:47 +0100)]
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>
3 years agoFix wrong image and website build. (#13917)
Jerome Luckenbach [Sun, 11 Dec 2022 20:43:42 +0000 (21:43 +0100)]
Fix wrong image and website build. (#13917)

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
3 years agoGitHub Actions workflow upgrades (#13915)
Wouter Born [Sun, 11 Dec 2022 16:38:47 +0000 (17:38 +0100)]
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>
3 years ago[homekit] Simplify start level handling (#13914)
Kai Kreuzer [Sun, 11 Dec 2022 16:09:31 +0000 (17:09 +0100)]
[homekit] Simplify start level handling (#13914)

Signed-off-by: Kai Kreuzer <kai@openhab.org>
3 years ago[siemensrds] Update to documentation (#13913)
Andrew Fiddian-Green [Sun, 11 Dec 2022 15:21:25 +0000 (15:21 +0000)]
[siemensrds] Update to documentation (#13913)

* [siemensrds] resolve issue #13906
* [siemensrds] add chapter to readme

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
3 years ago[nanoleaf] More color for less network calls (#13893)
Jørgen Austvik [Sun, 11 Dec 2022 15:09:53 +0000 (16:09 +0100)]
[nanoleaf] More color for less network calls (#13893)

* [nanoleaf] More color for less network calls

This is a refactoring that moves the "get panel color" out of the
panel handler and into a separate class, with callbacks.

This makes us do only one REST call to get colors instead of one per
panel that is a thing. It also lets us retrieve colors for all panels -
 also those that doesn't have a thing in OpenHAB,

While testing this out, I found a bug where solid colors set in the app
wasn't reflected in neither the controller nor panel channels, and that
should also be fixed now.

Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
3 years ago[homekit] delay starting until a particular StartLevel (#13877)
Cody Cutrer [Sun, 11 Dec 2022 14:54:10 +0000 (07:54 -0700)]
[homekit] delay starting until a particular StartLevel (#13877)

* [homekit] delay starting until a particular StartLevel

instead of a blind "delay by seconds", the new default won't even
attempt to start until items are loaded (both file-based and UI-based),
with an additional config to let the user delay it any further (in
case they have items coming from JSR223 scripts that can't run until
at least SL20 anyway).

Signed-off-by: Cody Cutrer <cody@cutrer.us>
3 years ago[jsscripting] Upgrade openhab-js & Remove SharedCache (#13908)
Florian Hotze [Sun, 11 Dec 2022 14:25:39 +0000 (15:25 +0100)]
[jsscripting] Upgrade openhab-js & Remove SharedCache (#13908)

Upgrades the included openhab-js version to 3.1.0, which uses the new
caches from core (introduced in
https://github.com/openhab/openhab-core/pull/2887) and provides many
doc improvements.

Removes the SharedCache from the addon because this functionality is
now provided by core (see
https://github.com/openhab/openhab-core/pull/2887).

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
3 years ago[knx] Improve handling of serial gateways (#13897)
Holger Friedrich [Sun, 11 Dec 2022 11:47:55 +0000 (12:47 +0100)]
[knx] Improve handling of serial gateways (#13897)

* [knx] Improve handling of serial gateways

Take over initialization logic from KNX IP gateway for serial gateway.
Properly re-initialize serial gateway after configuration changes done in UI.
Fixes #13892.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
3 years ago[somfytahoma] added support for the control over the LAN (local mode) (#13411)
Ondrej Pecta [Sun, 11 Dec 2022 11:07:25 +0000 (12:07 +0100)]
[somfytahoma] added support for the control over the LAN (local mode) (#13411)

* [somfytahoma] added support for the control over the LAN (local mode)

Signed-off-by: Ondrej Pecta <opecta@gmail.com>
3 years ago[jrubyscripting] Reverses order of class imports and ScriptEngine puts calls to fix...
boc-tothefuture [Sun, 11 Dec 2022 10:00:13 +0000 (05:00 -0500)]
[jrubyscripting] Reverses order of class imports and ScriptEngine puts calls to fix incompatability introduced after M5 (#13904)

Signed-off-by: Brian OConnell <broconne@gmail.com>
3 years ago[transform/scale] Make unit tests compatible with Windows (#13910)
lolodomo [Sun, 11 Dec 2022 09:57:57 +0000 (10:57 +0100)]
[transform/scale] Make unit tests compatible with Windows (#13910)

Fix #13900

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
3 years agoDont set read only temp file (#13905)
Jørgen Austvik [Sun, 11 Dec 2022 09:10:37 +0000 (10:10 +0100)]
Dont set read only temp file (#13905)

Because it breaks windows builds

Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
3 years ago[systeminfo] QuantityTypes and state descriptions cleanup (#13804)
Mark Herwege [Sat, 10 Dec 2022 22:32:25 +0000 (23:32 +0100)]
[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>
3 years agoMigrate time channels from DateTime to Number:Time (#13841)
Jacob Laursen [Sat, 10 Dec 2022 22:05:59 +0000 (23:05 +0100)]
Migrate time channels from DateTime to Number:Time (#13841)

Fixes #13840

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years agoNew Crowdin updates (#13901)
openhab-bot [Sat, 10 Dec 2022 15:54:00 +0000 (16:54 +0100)]
New Crowdin updates (#13901)

* New translations boschshc.properties (Italian)

* New translations ecowatt.properties (French)

3 years ago[tapocontrol] add L610, L630 Spot and L930 LightStrip (#13814)
Christian Wild [Sat, 10 Dec 2022 15:53:30 +0000 (16:53 +0100)]
[tapocontrol] add L610, L630 Spot and L930 LightStrip (#13814)

* fix color change bug*

Signed-off-by: Christian Wild <christian@wildclan.de>
3 years agoNew translations boschshc.properties (Italian) (#13899)
openhab-bot [Sat, 10 Dec 2022 13:51:09 +0000 (14:51 +0100)]
New translations boschshc.properties (Italian) (#13899)

3 years ago[vitotronic] Fix few thing/channel labels/descriptions (#13898)
lolodomo [Sat, 10 Dec 2022 13:29:53 +0000 (14:29 +0100)]
[vitotronic] Fix few thing/channel labels/descriptions (#13898)

Follow-up #13739

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
3 years ago[ipcamera] Add a check to see if FFmpeg is frozen for mjpeg creation (#13896)
Matthew Skinner [Sat, 10 Dec 2022 12:54:22 +0000 (23:54 +1100)]
[ipcamera] Add a check to see if FFmpeg is frozen for mjpeg creation (#13896)

* check if ffmpegMjpeg is frozen

Signed-off-by: Matthew Skinner <matt@pcmus.com>
3 years ago[vitotronic] Add channel "currentmode" to thing "circuit" (#13739)
Fejitatete [Sat, 10 Dec 2022 12:08:41 +0000 (13:08 +0100)]
[vitotronic] Add channel "currentmode" to thing "circuit" (#13739)

* [vitotronic] Add channel "currentmode" to thing "circuit"

Signed-off-by: Fejitatete <fejitatete@msn.com>
3 years ago[boschshc] Support smoke detector (#13760)
Gerd Zanker [Sat, 10 Dec 2022 10:18:13 +0000 (11:18 +0100)]
[boschshc] Support smoke detector (#13760)

* Add smoke detector service and add it to twinguard handler
* Add handler for smoke detector
* Support for smoke detector

added smoke detector device with SmokeDetectorCheckService
added SmokeDetectorCheckService to TwinguardHandler

added tests for smoke detector code
updated smoke detector code to latest boschshc version after cherry-picks of initial code from Christian Oeing

* re-generate i18n file, refactoring of smoke detector code to use abstract base classes
* Fix typos
* Add unit test for PlayPauseType commands
* Add unit test for SmokeDetectorCheckState
* Re-add null annotation
* Fix warning

Signed-off-by: Christian Oeing <christian.oeing@slashgames.org>
Signed-off-by: Gerd Zanker <gerd.zanker@web.de>
Signed-off-by: David Pace <dev@davidpace.de>
3 years ago[bosesoundtouch] Improve SAT errors and remove dependency (#13842)
lsiepel [Sat, 10 Dec 2022 08:42:09 +0000 (09:42 +0100)]
[bosesoundtouch] Improve SAT errors and remove dependency (#13842)

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
3 years ago[mielecloud] Remove things after each integration test (#13875)
Björn Lange [Sat, 10 Dec 2022 08:40:50 +0000 (09:40 +0100)]
[mielecloud] Remove things after each integration test (#13875)

Signed-off-by: Björn Lange <bjoern.lange@itemis.de>
3 years ago[siemensrds] Binding no longer fails if thermostat does not use optional features...
Andrew Fiddian-Green [Sat, 10 Dec 2022 08:02:11 +0000 (08:02 +0000)]
[siemensrds] Binding no longer fails if thermostat does not use optional features (#13888)

* [siemensrds] fix charset; ansi => utf-8
* [siemensrds] refactor class so CI build runs tests w/o errors
* [siemensrds] add missing UoM; fix compiler error
* [siemensrds] fix issue #13887

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
3 years ago[TR064] Fix pattern excluding some valid ip-addresses (#13894)
lsiepel [Sat, 10 Dec 2022 07:48:33 +0000 (08:48 +0100)]
[TR064] Fix pattern excluding some valid ip-addresses (#13894)

* Improve logging and adjusted timeout
* Fix wanBlockIPs regex

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
3 years agoUpgrade bnd to 6.4.0 (#13890)
J-N-K [Fri, 9 Dec 2022 20:23:53 +0000 (21:23 +0100)]
Upgrade bnd to 6.4.0 (#13890)

* Upgrade bnd to 6.4.0

Signed-off-by: Jan N. Klug <github@klug.nrw>
3 years agoAdd channel return temp (#13833)
lsiepel [Fri, 9 Dec 2022 18:30:08 +0000 (19:30 +0100)]
Add channel return temp (#13833)

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
3 years ago[homekit] add BasicFan accessory (#13564)
Cody Cutrer [Fri, 9 Dec 2022 18:17:51 +0000 (11:17 -0700)]
[homekit] add BasicFan accessory (#13564)

* [homekit] add BasicFan accessory

This is Fan v1. It's a subset of FanV2, except that Home allows you
to customize the icon to show a ceiling fan.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
3 years ago[plugwiseha] Fix set the scene for a zone (#13832)
lsiepel [Fri, 9 Dec 2022 18:08:41 +0000 (19:08 +0100)]
[plugwiseha] Fix set the scene for a zone (#13832)

* Fix request body

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
3 years agoUpdate README (#13868)
mlobstein [Fri, 9 Dec 2022 11:32:47 +0000 (05:32 -0600)]
Update README (#13868)

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
3 years ago[astro] Fix IllegalArgumentException in debug message (#13884)
Hilbrand Bouwkamp [Fri, 9 Dec 2022 11:31:49 +0000 (12:31 +0100)]
[astro] Fix IllegalArgumentException in debug message (#13884)

Formatter should get Date object.

Closes #13871

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
3 years ago[livisismarthome] Fix checkstyle (#13883)
lsiepel [Fri, 9 Dec 2022 08:57:17 +0000 (09:57 +0100)]
[livisismarthome] Fix checkstyle (#13883)

* Minor fixes and refactoring
* Fix checkstyle warnings
* Fix new ConcurrentHashMap

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
3 years ago[homekit] implement basic command completion (#13878)
Cody Cutrer [Fri, 9 Dec 2022 07:56:27 +0000 (00:56 -0700)]
[homekit] implement basic command completion (#13878)

just the sub-commands.

since the show command is already a "search", I didn't feel it's super
important to implement on that

Signed-off-by: Cody Cutrer <cody@cutrer.us>
3 years ago[TR064] Fix SAT warnings (#13873)
lsiepel [Thu, 8 Dec 2022 21:44:44 +0000 (22:44 +0100)]
[TR064] Fix SAT warnings (#13873)

* Fix SAT warnings
* Fix markdown
* Properly annotate PhonebookProfileTest

Also-by: Wouter Born <github@maindrain.net>
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
3 years ago[Nanoleaf] Support lines (#13881)
Jørgen Austvik [Thu, 8 Dec 2022 21:39:45 +0000 (22:39 +0100)]
[Nanoleaf] Support lines (#13881)

Lines is a Nanoleaf shape we haven't been able to test earlier.

Now we have tested them, and added support for painting them as well.

They do unfortunately not support touch gestures.

Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
3 years ago[Documentation] Markdown improvements f to m (#13866)
Jerome Luckenbach [Thu, 8 Dec 2022 20:36:05 +0000 (21:36 +0100)]
[Documentation] Markdown improvements f to m (#13866)

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
3 years ago[insteon] Binding Documentation: Updated I/O Linc Section (#13811)
Hawkinzw [Thu, 8 Dec 2022 20:17:45 +0000 (14:17 -0600)]
[insteon] Binding Documentation: Updated I/O Linc Section (#13811)

* Update I/O Linc Documentation

The I/O Linc has a feature to match or invert the status of the contact with its control messages. The binding was written expecting the messages to be inverted. This is the opposite of how insteon recommends setting up the garage kit, and not described well by the original "Note" at the bottom of the section. Updated the instructions to specify the input is OFF when linking, and changed the note to better describe what happens if you don't. All based off of my own experience with the sensor: https://community.openhab.org/t/insteon-io-linc-garage-door-contact-slow-update/141469

3 years agoTypos a/an (#13876)
Дилян Палаузов [Thu, 8 Dec 2022 20:12:49 +0000 (22:12 +0200)]
Typos a/an (#13876)

3 years ago[Nanolaef] Visual State Bugfix (#13880)
Jørgen Austvik [Thu, 8 Dec 2022 20:00:11 +0000 (21:00 +0100)]
[Nanolaef] Visual State Bugfix (#13880)

* Nanoleaf Visual State fix

Fix the visual state channel name.

Also:
- Better name (from state to visual state) of the (new) channel
- Better logs which has helped us debug the problem
- Some more information on when it will work in the README

Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
3 years ago[homekit] persist all known accessories, to prevent loss of homekit information ...
Cody Cutrer [Thu, 8 Dec 2022 12:52:30 +0000 (05:52 -0700)]
[homekit] persist all known accessories, to prevent loss of homekit information (#13484)

* [homekit] persist all known accessories, to prevent loss of homekit information

See the readme for more details, but basically this keeps track of every
accessory we've ever created, and if it no longer exists, presents a dummy
accessory instead. If the accessory comes back, nothing is lost in the Home
app; if you meant to prune it permanently, you have to run a console command.

there are also several fixes to prevent presenting the device with missing data -
such as when the bundle stops, _don't_ explicitly remove the accessories until
the server has stopped.

we also don't increment the configuration version unless the configuration
has _actually_ changed (so removing and re-adding the exact same thing
won't trigger the device to reconnect). this even works across restarts
of the bundle, because we're persisting all the accessory information
for dummy information anyway.

* [homekit] Address review comments for accessory persistence

* update hap-java to 2.0.4
* remove unused local variable
* [homekit] ensure accessories are replaced in a batch

so that HAP-Java can maintain subscriptions with the new objects

* [homekit] log individual dummy accessories up to 5
* [homekit] Tweak readme for dummy accessories slightly.

 * Be consistent with proper usage of useDummyAccessories.
 * Make the sentence more clear about the effects of having dummy accessories.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
3 years agoUpgrade commons-net to 3.9.0 (#13869)
Wouter Born [Thu, 8 Dec 2022 06:09:46 +0000 (07:09 +0100)]
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>
3 years ago[atlona] Update README (#13867)
mlobstein [Wed, 7 Dec 2022 20:33:00 +0000 (14:33 -0600)]
[atlona] Update README (#13867)

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
3 years ago[Documentation] Markdown improvements for bindings a to e (#13859)
Jerome Luckenbach [Wed, 7 Dec 2022 20:09:32 +0000 (21:09 +0100)]
[Documentation] Markdown improvements for bindings a to e (#13859)

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
3 years ago[ahawastecollection] Fixed unstable test (#13864)
Sönke Küper [Wed, 7 Dec 2022 09:22:51 +0000 (10:22 +0100)]
[ahawastecollection] Fixed unstable test (#13864)

* Added Constructor parameter to pass custom ScheduledExecutorService, that allows deterministic execution in test cases.
* Fixed some codestyles.

Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
3 years ago[nanoleaf] add LONG_PRESSED tap detection (#13865)
stefan-hoehn [Wed, 7 Dec 2022 04:49:04 +0000 (05:49 +0100)]
[nanoleaf] add LONG_PRESSED tap detection (#13865)

* [nanoleaf] add LONG_PRESSED tap detection

Signed-off-by: Stefan Höhn <stefan.hoehn@nfon.com>
3 years agoNew Crowdin updates (#13863)
openhab-bot [Tue, 6 Dec 2022 15:10:01 +0000 (16:10 +0100)]
New Crowdin updates (#13863)

* New translations openwebnet.properties (Italian)
* New translations bluetooth.properties (Italian)
* New translations vesync.properties (Italian)

3 years ago[vizio] Vizio TV binding - Initial contribution (#13309)
mlobstein [Tue, 6 Dec 2022 14:37:54 +0000 (08:37 -0600)]
[vizio] Vizio TV binding - Initial contribution (#13309)

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
3 years ago[jsscripting] Fix "Error removing engine" context already closed (#13855)
Florian Hotze [Tue, 6 Dec 2022 12:15:47 +0000 (13:15 +0100)]
[jsscripting] Fix "Error removing engine" context already closed (#13855)

In recent PR #13824, I added closing the context when the engine is closed, but core seems to have problems with that.

It logs: "[ERROR] [ipt.internal.ScriptEngineManagerImpl] - Error removing ScriptEngine
java.lang.IllegalStateException: The Context is already closed."

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
3 years ago[mqtt] Avoid parallel streams with common thread pool to avoid deadlocks (#13621)
Sami Salonen [Tue, 6 Dec 2022 12:02:45 +0000 (14:02 +0200)]
[mqtt] Avoid parallel streams with common thread pool to avoid deadlocks (#13621)

To mitigate issue https://github.com/openhab/openhab-core/issues/3125
(common thread pool exhaustion when combining parallel streams with
synchronization or locks)

Signed-off-by: Sami Salonen <ssalonen@gmail.com>
3 years agoUse message for HTTP error code when response payload is not valid JSON (#13854)
Jacob Laursen [Tue, 6 Dec 2022 07:45:31 +0000 (08:45 +0100)]
Use message for HTTP error code when response payload is not valid JSON (#13854)

Fixes #13853

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years agoSync Jackson to 2.12.7 (#13852)
Wouter Born [Mon, 5 Dec 2022 22:15:10 +0000 (23:15 +0100)]
Sync Jackson to 2.12.7 (#13852)

Related to openhab/openhab-core#3163

Signed-off-by: Wouter Born <github@maindrain.net>
3 years ago[tradfri] Resolve runbundles for Californium upgrade (#13673)
Wouter Born [Mon, 5 Dec 2022 19:49:12 +0000 (20:49 +0100)]
[tradfri] Resolve runbundles for Californium upgrade (#13673)

Signed-off-by: Wouter Born <github@maindrain.net>
3 years ago[jsscripting] Refactor log formatting & Respect toString polyfills (#13844)
Florian Hotze [Mon, 5 Dec 2022 19:46:17 +0000 (20:46 +0100)]
[jsscripting] Refactor log formatting & Respect toString polyfills (#13844)

* [jsscripting] Refactor log formatting & Respect toString polyfills
* [jsscripting] Catch errors in log formatting & Improve handling of Java obj
* [jsscripting] Update log format failure message

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
3 years agoCorrect item type for state item in readme.md (#13845)
Simon Spielmann [Mon, 5 Dec 2022 18:11:52 +0000 (19:11 +0100)]
Correct item type for state item in readme.md (#13845)

Signed-off-by: Simon Spielmann <simon@MacBook-Pro.fritz.box>
3 years agoTypos a/an (#13846)
Дилян Палаузов [Mon, 5 Dec 2022 17:47:43 +0000 (19:47 +0200)]
Typos a/an (#13846)

3 years ago[jsscripting] Add an alternative MIME type/alias (#13851)
Florian Hotze [Mon, 5 Dec 2022 17:40:15 +0000 (18:40 +0100)]
[jsscripting] Add an alternative MIME type/alias (#13851)

The alternative MIME type text/javascript is also used by Nashorn, therefore we add the same extension as for the main MIME type.
The alias is introduced to simplify the usage in SCRIPT transformation profiles.

* Fix syntax problems in the bndtools file
* Add null check to avoid potential NPE
  In some cases during testing, a NPE occured, this should solve it.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
3 years ago[bondhome] Initial contribution (#13459)
Cody Cutrer [Mon, 5 Dec 2022 16:19:35 +0000 (09:19 -0700)]
[bondhome] Initial contribution (#13459)

* First commit on newly created branch, taking code from c8b8e210dfd23f98526763782eadbca49509baf9
* [bondhome] update snapshot version, and some typos
* [bondhome] Address (most) comments from prior review from #7260
* [bondhome] simplify channels

 * lastUpdate is unnecessary; turn on persistence or add a rule on update if
   you care to keep track of it
 * use a single string command channel for all shoot-and-forget commands, instead
   of multiple switch channels
 * use a rollershutter channel for shades (accepting UP, DOWN, STOP, 0%, and 100%)
 * on all dimmer channels, accept ON and OFF, as well as 0% to imply OFF, instead
   of having to write rules to control ON/OFF state separately.
 * if the dimmer channel exists, prune the corresponding power channel, since
   the dimmer channel is now a pure superset of its functionality
 * overload fan#speed to be ceiling fan or a fireplace's fan, depending on the
   device type
* [bondhome] add bundle to the BOM pom
* [bondhome] clean up BondDeviceHandler a bit

 * there's no need to delay initialization; ThingManager won't
   even attempt to initialize a child thing until its bridge is online
 * Remove some extra initialization checks that can never be false
 * slightly refactor some methods to return early, rather than
   nest a giant `else`
 * remove some info logging that will get triggered in normal usage
* [bondhome] fix bridge discovery

 * Bridge property and config serial number need to be the same name
 * Don't arbitrarily delay the BPUPListener
 * Automatically update the IP if the BPUPListener finds it
 * Provide the new bridge with its discovered IP to avoid an additional
   DNS query
 * Don't get the bridge version after every keep-alive response
* [bondhome] trigger end-device discovery as soon as the bridge comes online
* [bondhome] remove internal binding version
* [bondhome] change addr property to string

Certain values seen in the wild when interpreted as a long are too big for that
storage. Also, the Bond API documentation describes the addr property on a
device to be a string.

OpenHAB already has infrastructure to have things update their
channel definitions when a binding is updated.

* [bondhome] ignore any device that starts with _

In v3 of their API, Bond added a new special entry of __. Because no valid
device id would start with an underscore, ignore everything that starts with an
underscore to fix v3 and maybe futureproof.

* address review comments

mostly adding i18n to error states, and cleaning up error handling of
HTTP requests.

* use builtin translation services

instead of plumbing our own provider through

* use System.nanoTime instead of currentTimeMillis

so that it will be a monotonic clock, not (as) susceptible to the clock
changing

* [bondhome] ignore BPUP messasges that aren't state

In recent firmware, bond is now sending action messages via BPUP as well as state.
This change ignores all messages that aren't state.

* [bondhome] Improve error handling, and remove dummy constants

Just use a single BondException class to communicate any sort of
error from within bond, and avoid throwing, catching, and re-throwing
the same (or slightly modified) exception.

Also remove dummy constants that might give the wrong impression
of the details of your Bond device. Then implement proper null checks,
especially setting a configuration error if key config properties
aren't set on the thing.

* [bondhome] avoid setting device status when bridge just went offline

* address static analysis tool problems

Also-by: Sara Damiano <sdamiano@stroudcenter.org>
Also-by: Keith T. Garner <kgarner@kgarner.com>
Signed-off-by: Cody Cutrer <cody@cutrer.us>
3 years ago[jdbc] Fix date filter to be inclusive (Derby) (#13850)
Jacob Laursen [Mon, 5 Dec 2022 16:09:13 +0000 (17:09 +0100)]
[jdbc] Fix date filter to be inclusive (Derby) (#13850)

Fixes #9906

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years agoNew Crowdin updates (#13848)
openhab-bot [Mon, 5 Dec 2022 14:56:34 +0000 (15:56 +0100)]
New Crowdin updates (#13848)

* New translations miele.properties (Danish)
* New translations jruby.properties (Italian)
* New translations ecowatt.properties (Italian)
* New translations webexteams.properties (Italian)

3 years ago[openwebnet] Add support for Alarm (WHO=5) (#13694)
M Valla [Mon, 5 Dec 2022 11:57:25 +0000 (12:57 +0100)]
[openwebnet] Add support for Alarm (WHO=5) (#13694)

* [openwebnet] first changes for Alarm support
* [openwebnet] added first version Alarm handler
* [openwebnet] added ownIdTest for Alarm
* [openwebnet] added things def for Alarm and discovery for alarm zone
* [openwebnet] refreshDevice
* [openwebnet] fix text formatting
* [openwebnet] fixes
* [openwebnet] added other alarm channels
* [openwebnet] Alarm: codestyle and null checks
* [openwebnet] updated Alarm examples in README and some cleanup
* [openwebnet] changed zone channel from armed to state, cleaned README

Signed-off-by: Massimo Valla <mvcode00@gmail.com>
3 years ago[lifx] Set tagged flag accordingly for unicast and broadcast messages (#13744)
pali [Mon, 5 Dec 2022 09:00:10 +0000 (11:00 +0200)]
[lifx] Set tagged flag accordingly for unicast and broadcast messages (#13744)

* Set tagged flag accordingly
* Update packets

Also-by: Wouter Born <github@maindrain.net>
Signed-off-by: Pauli Anttila <pauli.anttila@gmail.com>
3 years ago[shelly] Plus 1/1PM Add-On support; fix roller pos on open/close state (#13520)
Markus Michels [Mon, 5 Dec 2022 07:51:31 +0000 (08:51 +0100)]
[shelly] Plus 1/1PM Add-On support; fix roller pos on open/close state (#13520)

* Added #13493 Plus 1/1PM addon support; Fixed #13515 pos for roller in
open/close state; various null warnings removed; README updated

Signed-off-by: Markus Michels <markus7017@gmail.com>
* digitalInput, analogInput and voltage added for Add-On; README updated

Signed-off-by: Markus Michels <markus7017@gmail.com>
* shelly2-roller re-added (wrong assumption that Shelly 2 doesn't support
roller mode, because it has no power meter)

Signed-off-by: markus7017 <markus7017@gmail.com>
Signed-off-by: Markus Michels <markus7017@gmail.com>
* Initialization for Californium 2.7.3 fixed (no multicast packets where
received)

Signed-off-by: Markus Michels <markus7017@gmail.com>
* Analogous input support for Plus Addon changed; Allterco made a format
change in the beta firmware

Signed-off-by: Markus Michels <markus7017@gmail.com>
* changes applied

Signed-off-by: Markus Michels <markus7017@gmail.com>
* README updated; Shelly Plus addon handling adjusted to latest firmware
(before was beta)

Signed-off-by: Markus Michels <markus7017@gmail.com>
* Update bundles/org.openhab.binding.shelly/README.md

Signed-off-by: Fabian Wolter <github@fabian-wolter.de>
* fix JSON for Shelly1 - ext_switch_enable is a boolean, not an int

Signed-off-by: Markus Michels <markus7017@gmail.com>
Signed-off-by: Markus Michels <markus7017@gmail.com>
Signed-off-by: markus7017 <markus7017@gmail.com>
Signed-off-by: Fabian Wolter <github@fabian-wolter.de>
Co-authored-by: Fabian Wolter <github@fabian-wolter.de>
3 years ago[jrubyscripting] Implement dependency tracking (#13810)
Cody Cutrer [Mon, 5 Dec 2022 07:19:51 +0000 (00:19 -0700)]
[jrubyscripting] Implement dependency tracking (#13810)

* [jrubyscripting] implement dependency tracking

watchers had to be refactored similar to jsscripting.
it supports watching any directory referenced from RUBYLIB,
as well as the gem home. it properly excludes lib and gem home
(as well as other gem homes if you have multiple jruby versions
installed) from loading as regular scripts.

this is a breaking change if you don't have RUBYLIB explicitly
configured, and you are using the old default directory.

it's expected that the detection of what files and gems any
given script uses will be self-identified by the script, presumably
by the helper library.

JRubyScriptEngineConfiguration was largely refactored as part of this.
 * CONFIGURATION_PARAMETERS was renamed, and is no longer static, since
   it's modified every time the configuration is changed
 * OptionalConfigurationElement was simplified since default values
   are always provided now. this also simplified lots of other code
   that accesses the current settings.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
3 years agoFix date filter to be inclusive (PostgreSQL) (#13843)
Jacob Laursen [Sun, 4 Dec 2022 23:27:54 +0000 (00:27 +0100)]
Fix date filter to be inclusive (PostgreSQL) (#13843)

Fixes #9906

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