]> git.basschouten.com Git - openhab-addons.git/log
openhab-addons.git
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>
3 years agoFix person reauth (#13839)
Tom Deckers [Sun, 4 Dec 2022 18:16:07 +0000 (19:16 +0100)]
Fix person reauth (#13839)

* add null checks
* fix/improve account.html

Signed-off-by: Tom Deckers <tom@ducbase.com>
3 years ago[groupepsa] Add missing code owner (#13838)
Wouter Born [Sun, 4 Dec 2022 16:23:27 +0000 (17:23 +0100)]
[groupepsa] Add missing code owner (#13838)

This seems to have been forgotten as part of #10332.

Signed-off-by: Wouter Born <github@maindrain.net>
3 years agoNew Crowdin updates (#13836)
openhab-bot [Sun, 4 Dec 2022 16:13:46 +0000 (17:13 +0100)]
New Crowdin updates (#13836)

* New translations smsmodem.properties (French)

* New translations webexteams.properties (French)

* New translations smsmodem.properties (Italian)

3 years ago[ecowatt] Add channels for D+2 and D+3 (#13823)
lolodomo [Sun, 4 Dec 2022 15:32:26 +0000 (16:32 +0100)]
[ecowatt] Add channels for D+2 and D+3 (#13823)

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
3 years agoFix console command 'tables' for SQLite (#13837)
Jacob Laursen [Sun, 4 Dec 2022 13:54:12 +0000 (14:54 +0100)]
Fix console command 'tables' for SQLite (#13837)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[tibber] Fix SAT warnings (#13835)
lsiepel [Sun, 4 Dec 2022 11:18:20 +0000 (12:18 +0100)]
[tibber] Fix SAT warnings (#13835)

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
3 years ago[webexteams] Initial contribution (#13492)
Tom Deckers [Sun, 4 Dec 2022 11:15:42 +0000 (12:15 +0100)]
[webexteams] Initial contribution (#13492)

* [webexteams] Initial contribution

Signed-off-by: Tom Deckers <tom@ducbase.com>
3 years ago[nibeheatpump] Readme for NibeGW for Arduino with Hardware and compilation hints...
mschlenstedt [Sun, 4 Dec 2022 10:52:47 +0000 (11:52 +0100)]
[nibeheatpump] Readme for NibeGW for Arduino with Hardware and compilation hints (#13787)

* Hints for compiling and connecting hardware

3 years ago[smsmodem] Add codeowners (#13834)
Gwendal Roulleau [Sun, 4 Dec 2022 10:30:00 +0000 (11:30 +0100)]
[smsmodem] Add codeowners (#13834)

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
3 years agoNew Crowdin updates (#13830)
openhab-bot [Sat, 3 Dec 2022 23:41:16 +0000 (00:41 +0100)]
New Crowdin updates (#13830)

* New translations avmfritz.properties (German)
* New translations androiddebugbridge.properties (Italian)

3 years ago[wundergroundupdatereceiver] Use html entities where in normal body (#13831)
Daniel Demus [Sat, 3 Dec 2022 23:39:14 +0000 (00:39 +0100)]
[wundergroundupdatereceiver] Use html entities where in normal body (#13831)

Fix spelling

Signed-off-by: Daniel Demus <daniel-github@demus.dk>
3 years ago[smsmodem] Initial contribution (#12250)
Gwendal Roulleau [Sat, 3 Dec 2022 20:35:30 +0000 (21:35 +0100)]
[smsmodem] Initial contribution (#12250)

* [smsmodem] Initial contribution

This binding connects to a USB serial GSM modem (or a network exposed one, a.k.a ser2net) and allows openHAB to send and receive SMS through it.

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
* [smsmodem] README fix

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
* [smsmodem] build/spotless fix

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
* [smsmodem] compliance with 3rd party license

And long running thread naming convention
And treated some code warning

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
* [smsmodem] i18n

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
* [smsmodem] Small fixes

update channel
rename action to avoid colision with other binding and a too generic name

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
* [smsmodem] Use of standard Thing properties

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
* [smsmodem] Fix sender identifier error with special character

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
* [smsmodem] Add encoding parameter

For non latin character in SMS

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
* [smsmodem] Apply review

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
* [smsmodem] Split local and remote modem in two thing-types

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
* [smsmodem] Apply review

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
* [smsmodem] Apply review

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
* [smsmodem] Apply code review (removing unnecessary method)

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
Co-authored-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
3 years ago[androiddebugbridge] Fix volume channel for android 11/12 (#13828)
GiviMAD [Sat, 3 Dec 2022 16:40:29 +0000 (17:40 +0100)]
[androiddebugbridge] Fix volume channel for android 11/12 (#13828)

* [androiddebugbridge] Fix volume channel for android 11/12
* [androiddebugbridge] Try get max volume level from device properties
* [androiddebugbridge] Fixes reported code analysis
* [androiddebugbridge] Fix comparison

Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
3 years ago[resol] Fix handling of WeekTime fields on vbus (#13753)
Raphael Mack [Sat, 3 Dec 2022 13:59:26 +0000 (14:59 +0100)]
[resol] Fix handling of WeekTime fields on vbus (#13753)

* correct handling of WeekTime fields from and update vbus library, fixes #13447

Signed-off-by: Raphael Mack <ramack@raphael-mack.de>
3 years ago[homematic] Fix min/max values for rollershutters (#13821)
maniac103 [Sat, 3 Dec 2022 12:29:52 +0000 (13:29 +0100)]
[homematic] Fix min/max values for rollershutters (#13821)

* [homematic] Fix min/max values for rollershutters

For dimmers, the 1.0 max value sent by CCU was already converted to
percent values in the item state description. Do the same thing also for
roller shutters.

Signed-off-by: Danny Baumann <dannybaumann@web.de>
3 years agoMigrate uptime channels to support UoM (#13827)
Jacob Laursen [Sat, 3 Dec 2022 11:36:28 +0000 (12:36 +0100)]
Migrate uptime channels to support UoM (#13827)

Fixes #13826

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[ipcamera] Instar API updates for new 2k+ range (#13805)
Matthew Skinner [Sat, 3 Dec 2022 09:20:11 +0000 (20:20 +1100)]
[ipcamera] Instar API updates for new 2k+ range (#13805)

* Instar updates
* Detect which API to use from reply.
* Add handling of REFRESH to instar.

Signed-off-by: Matthew Skinner <matt@pcmus.com>
3 years agoNew Crowdin updates (#13825)
openhab-bot [Fri, 2 Dec 2022 23:47:36 +0000 (00:47 +0100)]
New Crowdin updates (#13825)

* New translations openwebnet.properties (Italian)
* New translations unifi.properties (Dutch)

3 years ago[jsscripting] Fix memory leak that crashes openHAB (#13824)
Florian Hotze [Fri, 2 Dec 2022 23:17:39 +0000 (00:17 +0100)]
[jsscripting] Fix memory leak that crashes openHAB (#13824)

* [jsscripting] Fix memory-leak caused by com.oracle.truffle.host.HostObject

Fixes this memory leak by making the HostAccess for the GraalJSScriptEngine available in a static final variable instead of creating it for each new engine.
Solution proposed in https://github.com/oracle/graaljs/issues/121#issuecomment-690179954.

Sharing a single engine across all Contexts (as proposed in https://github.com/oracle/graaljs/issues/121#issuecomment-880056648) is not possible, because core expects a ScriptEngine.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
* [jsscripting] Update JavaDoc

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
* [jsscripting] Close `GraalJSScriptEngine` when `OpenhabGraalJSScriptEngine` is closed

My breakpoint inside the close method of GraalJSScriptEngine did not trigger until this change was made.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
3 years ago[miio] add support Xiaomi Smart Air Purifier 4 Compact (#13806)
Marcel [Fri, 2 Dec 2022 20:44:33 +0000 (21:44 +0100)]
[miio] add support Xiaomi Smart Air Purifier 4 Compact (#13806)

* [miio] add support zhimi.airp.cpa4 WIP
* [miio] add support Xiaomi Smart Air Purifier 4 Compact

Adding support for the following models:
* Xiaomi Smart Air Purifier 4 Compact (modelId: zhimi.airp.cpa4)

Minor typo fixing (note: no breaking channel changes)

close: #13763

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
3 years ago[groovyscripting] Update Groovy to 3.0.13 (#13822)
Wouter Born [Fri, 2 Dec 2022 20:17:25 +0000 (21:17 +0100)]
[groovyscripting] Update Groovy to 3.0.13 (#13822)

Updates Groovy from 3.0.9 to 3.0.13.

For all bugfixes and improvements, see:

* https://groovy-lang.org/changelogs/changelog-3.0.10.html
* https://groovy-lang.org/changelogs/changelog-3.0.11.html
* https://groovy-lang.org/changelogs/changelog-3.0.12.html
* https://groovy-lang.org/changelogs/changelog-3.0.13.html

Signed-off-by: Wouter Born <github@maindrain.net>
3 years ago[Nanoleaf] New Channel: State (#13746)
Jørgen Austvik [Fri, 2 Dec 2022 20:14:53 +0000 (21:14 +0100)]
[Nanoleaf] New Channel: State (#13746)

* [Nanoleaf] New Channel: State

Shows an image of the state of the panels with color.

Also makes the layout slightly prettier. This is less functional than the layout, and more eyecandy.

Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
3 years agofix typos in plugwise plugin examples (#13820)
batje [Fri, 2 Dec 2022 12:09:04 +0000 (13:09 +0100)]
fix typos in plugwise plugin examples (#13820)

3 years agoTypos a/an (#13819)
Дилян Палаузов [Fri, 2 Dec 2022 12:07:31 +0000 (14:07 +0200)]
Typos a/an (#13819)

3 years agoFix Derby/H2/HSQLDB/SQLite queries for storing timestamps (#13817)
Jacob Laursen [Fri, 2 Dec 2022 07:14:23 +0000 (08:14 +0100)]
Fix Derby/H2/HSQLDB/SQLite queries for storing timestamps (#13817)

Fixes #13816

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[nibeheatpump] Support 16-bit addressing (#13752)
pali [Thu, 1 Dec 2022 22:15:34 +0000 (00:15 +0200)]
[nibeheatpump] Support 16-bit addressing (#13752)

* [nibeheatpump] Support for 16-bit addressing

Signed-off-by: Pauli Anttila <pauli.anttila@gmail.com>
3 years ago[tplinksmarthome] Add support for TP-Link KP401 Smart WiFi Outdoor Plug (#13818)
Øystein Bedin [Thu, 1 Dec 2022 21:50:28 +0000 (14:50 -0700)]
[tplinksmarthome] Add support for TP-Link KP401 Smart WiFi Outdoor Plug (#13818)

* [tplinksmarthome] Adding support for tp-link KP401 Smart WiFi Outdoor Plug

Signed-off-by: Øystein Bedin <oybed78@gmail.com>
3 years ago[wundergroundupdatereceiver] Bugfixes: Regenerate trigger channel with proper type...
Daniel Demus [Thu, 1 Dec 2022 21:47:11 +0000 (22:47 +0100)]
[wundergroundupdatereceiver] Bugfixes: Regenerate trigger channel with proper type and more metadata. Normalize channel names. It might be easiest to delete and allow recreation of channels. (#13327)

* [wundergroundupdatereceiver] LAST_QUERY parameter should not be mapped automatically
* [wundergroundupdatereceiver] All channeltype props need to be applied
Especially the channel kind
* [wundergroundupdatereceiver] Remove illegal characters from channel name

Additionally expand the channel naming test to assert the generated channelUID and test that _ in names isn't inadvertently replaced

* [wundergroundupdatereceiver] Don't default AutoUpdatePolicy on creation
* [wundergroundupdatereceiver] Migrate changed channel to trigger type

Signed-off-by: Daniel Demus <daniel-github@demus.dk>
3 years ago[jdbc] Update PostgreSQL JDBC driver to 42.4.3 (#13770)
dependabot[bot] [Thu, 1 Dec 2022 21:32:55 +0000 (22:32 +0100)]
[jdbc] Update PostgreSQL JDBC driver to 42.4.3 (#13770)

* Bump postgresql in /bundles/org.openhab.persistence.jdbc

Bumps [postgresql](https://github.com/pgjdbc/pgjdbc) from 42.4.1 to 42.4.3.
- [Release notes](https://github.com/pgjdbc/pgjdbc/releases)
- [Changelog](https://github.com/pgjdbc/pgjdbc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pgjdbc/pgjdbc/compare/REL42.4.1...REL42.4.3)

---
updated-dependencies:
- dependency-name: org.postgresql:postgresql
  dependency-type: direct:production
...

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years agoTypos a/an (#13812)
Дилян Палаузов [Thu, 1 Dec 2022 13:30:50 +0000 (15:30 +0200)]
Typos a/an (#13812)

3 years ago[enocean] Handle messages with MSC RORG (#13786) (#13792)
Zhivka Dimova [Wed, 30 Nov 2022 19:55:36 +0000 (20:55 +0100)]
[enocean] Handle messages with MSC RORG (#13786) (#13792)

Setting senderId for MSC RORG and set rorg to Unknown when there is no
mach with the supported(handled) RORG types.
Fixes #13786

Signed-off-by: Zhivka Dimova <zhivka.dimova@myforest.net>
3 years ago[jsscripting] Refactor dependency tracking (#13756)
J-N-K [Tue, 29 Nov 2022 20:59:58 +0000 (21:59 +0100)]
[jsscripting] Refactor dependency tracking (#13756)

Signed-off-by: Jan N. Klug <github@klug.nrw>