]> git.basschouten.com Git - openhab-addons.git/log
openhab-addons.git
3 years agoAdapt to core changes (addon.xml) (#13289)
J-N-K [Sun, 15 Jan 2023 19:31:42 +0000 (20:31 +0100)]
Adapt to core changes (addon.xml) (#13289)

Signed-off-by: Jan N. Klug <github@klug.nrw>
3 years ago[knx] Fix javadoc errors (#14174)
Holger Friedrich [Sat, 14 Jan 2023 12:02:31 +0000 (13:02 +0100)]
[knx] Fix javadoc errors (#14174)

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
3 years agoAdjust channel min state (#14219)
lsiepel [Sat, 14 Jan 2023 11:43:34 +0000 (12:43 +0100)]
Adjust channel min state (#14219)

Signed-off-by: lsiepel <leosiepel@gmail.com>
3 years agoImprove multicast implementation (#14199)
Jacob Laursen [Sat, 14 Jan 2023 11:26:38 +0000 (12:26 +0100)]
Improve multicast implementation (#14199)

Fixes #14198

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[gree] Allow wider temperature range (#14217)
lsiepel [Sat, 14 Jan 2023 11:14:09 +0000 (12:14 +0100)]
[gree] Allow wider temperature range (#14217)

* Fix checkstyle
* Allow wider temp range
* Remaining checkstyle

Signed-off-by: lsiepel <leosiepel@gmail.com>
3 years ago[mimictts] Fix ssml and playing from audiosinks using the audio servlet (#14120)
Gwendal Roulleau [Sat, 14 Jan 2023 08:39:59 +0000 (09:39 +0100)]
[mimictts] Fix ssml and playing from audiosinks using the audio servlet (#14120)

* [mimictts] Fix ssml and playing from an audiosink using the audio servlet

Fix :
- ssml not working
- add an option to store the audio on a file before sending it to openhab. It enables audiosink based on the audio servlet to play the sound (the servlet requires the getClonedStream method, unavailable with a pure streaming approach). The files are stored in the user data directory and deleted as soon as possible (stream close detection).
- fix error with voice name not encoded

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
3 years ago[homekit] Implement IrrigationSystem Accessory (#14209)
Cody Cutrer [Fri, 13 Jan 2023 19:25:06 +0000 (12:25 -0700)]
[homekit] Implement IrrigationSystem Accessory (#14209)

* [homekit] Implement IrrigationSystem

Fairly trivial now, except that a ServiceLabelService has to be added
to the accessory.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
3 years agoFix SAT warnings (#14214)
Holger Friedrich [Fri, 13 Jan 2023 18:10:59 +0000 (19:10 +0100)]
Fix SAT warnings (#14214)

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
3 years ago[homematic] Fix updating enum config values (#14213)
maniac103 [Fri, 13 Jan 2023 15:25:26 +0000 (16:25 +0100)]
[homematic] Fix updating enum config values (#14213)

When changing an enum value in the configuration, we used the wrong data
type: while the value in the OH config is a string (the 'option value' -
see HomematicThingHandler::getValueForConfiguration), internally we use
an integer (the 'option index'), so we have to do the option value ->
option index conversion when applying the new value.
This especially was a problem for HM-MOD-EM-8 devices, which check the
CHANNEL_FUNCTION enum value as part of their initialization routine.
When disabling/enabling them after changing the CHANNEL_FUNCTION enum
value, they went offline, because their initialization failed due to a
NumberFormatException (via
HomematicThingHandler::doInitializeInBackground ->
HmChannel::checkForChannelFunctionChange ->
HmChannel::getCurrentFunction)

Signed-off-by: Danny Baumann <dannybaumann@web.de>
3 years agoFix SAT warnings (#14202)
Holger Friedrich [Fri, 13 Jan 2023 07:11:06 +0000 (08:11 +0100)]
Fix SAT warnings (#14202)

* Fix SAT warnings

- checkstyle.ModifierOrderCheck
- checkstyle.OneStatementPerLineCheck
- checkstyle.NeedBracesCheck
- PMD.UseStandardCharsets
- PMD.UseCollectionIsEmpty
- PMD.UnusedLocalVariable
- PMD.SimplifyBooleanReturns where reasonable, suppress where
readability is better without change
- PMD.SimplifyBooleanExpressions

* Include StandardCharsets

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
3 years ago[scripting] Adjust to core changes (#14043)
J-N-K [Thu, 12 Jan 2023 21:23:20 +0000 (22:23 +0100)]
[scripting] Adjust to core changes (#14043)

* [scripting] Adjust to core changes

Signed-off-by: Jan N. Klug <github@klug.nrw>
3 years ago[bsblan] Minor SAT fixes (#14138)
lsiepel [Thu, 12 Jan 2023 20:07:31 +0000 (21:07 +0100)]
[bsblan] Minor SAT fixes (#14138)

* Minor SAT fixes

Signed-off-by: lsiepel <leosiepel@gmail.com>
3 years ago[homekit] Add support for TV accessory (#14055)
Cody Cutrer [Thu, 12 Jan 2023 14:29:50 +0000 (07:29 -0700)]
[homekit] Add support for TV accessory (#14055)

* [homekit] TV accessory

Now possible since we support multiple secondary services. Just need to explicitly
declare that InputSource is a linked service to a Television, not just a secondary
service.

Note also that since TV and related services have so many mandatary characteristics
that are often static, I introduced a new way to declare characteristics -
via metadata on the service's item. Honestly, I feel like it's a lot cleaner to
have a factory create the mandatory characteristics the same way as the optional
characteristics, and then construct the service ourselves instead of basing the
service on the specific accessory interface. But this commit is already big enough,
I didn't want to go refactoring _all_ of the accessories to do it that way just
yet. This is why I have "unused" metadata characteristic factory methods for
AirQuality, HeaterCooler, and Thermostat - I started to make those configurable
via metadata, then realized they were mandatory characteristics that couldn't
be found from metadata via the current infrastructure.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
3 years ago[bondhome] Add raw speed channel (#14155)
Keith T. Garner [Thu, 12 Jan 2023 06:42:15 +0000 (00:42 -0600)]
[bondhome] Add raw speed channel (#14155)

* [bondhome] add raw speed channel

* Add a channel for the raw speed value from the bond api

Signed-off-by: Keith T. Garner <kgarner@kgarner.com>
3 years ago[gardena] Fix server ping timeout logic (#14203)
maniac103 [Wed, 11 Jan 2023 14:05:19 +0000 (15:05 +0100)]
[gardena] Fix server ping timeout logic (#14203)

On server timeouts, it's possible for multiple minutes to elapse
between receiving the last pong on the old connection and attempting to
send the next ping on the new connection. If that time span exceeded 5
minutes, the binding went into a minutely reconnection loop, because it
never attempted to send a ping anymore, which led to lastPong not being
updated anymore.
To fix this, replace the timing dependent timestamp handling by a simple
counter which counts how many consecutive ping attempts didn't receive
an answer, and closing the connection after 5 unsuccessful ping
attempts. That new counter is now also reset whenever the connection is
restarted.

Fixes #14188

Signed-off-by: Danny Baumann <dannybaumann@web.de>
3 years ago[squeezebox] Add new channels for additional tags (#14201)
Mark Hilbush [Wed, 11 Jan 2023 12:56:40 +0000 (07:56 -0500)]
[squeezebox] Add new channels for additional tags (#14201)

* New channels for additional tags

Signed-off-by: Mark Hilbush <mark@hilbush.com>
3 years agoUpgrade maven-javadoc-plugin to release 3.2.0 (#14173)
Holger Friedrich [Wed, 11 Jan 2023 07:59:46 +0000 (08:59 +0100)]
Upgrade maven-javadoc-plugin to release 3.2.0 (#14173)

* Switch to version used by openhab-core
* Apply patch from #2359 for upgrading dependency on plexus

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
3 years agoAdd accuracy moon tests (#14182)
lsiepel [Wed, 11 Jan 2023 07:58:13 +0000 (08:58 +0100)]
Add accuracy moon tests (#14182)

Signed-off-by: lsiepel <leosiepel@gmail.com>
3 years agoFix for NPE when playerState is null (#14191)
Mark Hilbush [Tue, 10 Jan 2023 14:02:40 +0000 (09:02 -0500)]
Fix for NPE when playerState is null (#14191)

Signed-off-by: Mark Hilbush <mark@hilbush.com>
3 years ago[velux] tweak read me (#14196)
Andrew Fiddian-Green [Tue, 10 Jan 2023 07:14:54 +0000 (07:14 +0000)]
[velux] tweak read me (#14196)

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
3 years agoFix Markdown warnings in README.md (#14187)
Holger Friedrich [Mon, 9 Jan 2023 16:51:12 +0000 (17:51 +0100)]
Fix Markdown warnings in README.md (#14187)

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
3 years ago[ecobee] Fix issue with UTC and local dates (#14170)
Mark Hilbush [Sun, 8 Jan 2023 22:35:01 +0000 (17:35 -0500)]
[ecobee] Fix issue with UTC and local dates (#14170)

* Correctly handle UTC and local date/times
* Eliminate use of Date class

Signed-off-by: Mark Hilbush <mark@hilbush.com>
3 years ago[doorbird] Add audiosink (#14122)
Gwendal Roulleau [Sun, 8 Jan 2023 09:57:04 +0000 (10:57 +0100)]
[doorbird] Add audiosink (#14122)

* [doorbird] Add audiosink

Add audiosink capability to a doorbird thing

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
3 years ago[miio] add support Xiaomi Smart Air Purifier 4 Pro zhimi.airp.vb4 (#13941)
Marcel [Sat, 7 Jan 2023 10:19:12 +0000 (11:19 +0100)]
[miio] add support Xiaomi Smart Air Purifier 4 Pro zhimi.airp.vb4 (#13941)

* [miio] add support Xiaomi Smart Air Purifier 4 Pro zhimi.airp.vb4

Adding support for the following models:
* Xiaomi Smart Air Purifier 4 Pro (modelId: zhimi.airp.vb4)
close

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
3 years ago[chromecast] Fix thing go offline after stop command (#14158)
lsiepel [Sat, 7 Jan 2023 08:51:20 +0000 (09:51 +0100)]
[chromecast] Fix thing go offline after stop command (#14158)

* Restructure commander
* Improve thing status handling on error

Signed-off-by: lsiepel <leosiepel@gmail.com>
3 years agoFix incorrectly formatted license headers (#14171)
Jacob Laursen [Fri, 6 Jan 2023 23:01:27 +0000 (00:01 +0100)]
Fix incorrectly formatted license headers (#14171)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years agoFix namespaces for tests (#14156)
Jacob Laursen [Fri, 6 Jan 2023 17:56:53 +0000 (18:56 +0100)]
Fix namespaces for tests (#14156)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[sonos] Correct identification of tuneIn started from Alexa (#14164)
lolodomo [Fri, 6 Jan 2023 15:28:38 +0000 (16:28 +0100)]
[sonos] Correct identification of tuneIn started from Alexa (#14164)

Contained URL is now HTTPS instead of HTTP before.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
3 years ago[homekit] properly expose services from dummy accessories (#14169)
Cody Cutrer [Fri, 6 Jan 2023 15:25:42 +0000 (08:25 -0700)]
[homekit] properly expose services from dummy accessories (#14169)

Signed-off-by: Cody Cutrer <cody@cutrer.us>
3 years agoMake more channels advanced (#14168)
Mark Hilbush [Fri, 6 Jan 2023 11:49:30 +0000 (06:49 -0500)]
Make more channels advanced (#14168)

Signed-off-by: Mark Hilbush <mark@hilbush.com>
3 years agoUpdate license headers to 2023 (#14154)
Jacob Laursen [Fri, 6 Jan 2023 08:49:54 +0000 (09:49 +0100)]
Update license headers to 2023 (#14154)

* Update copyright year in configuration
* Update license headers

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years agoExclude 3rdparty directories from license header generation (#14165)
Jacob Laursen [Fri, 6 Jan 2023 08:44:20 +0000 (09:44 +0100)]
Exclude 3rdparty directories from license header generation (#14165)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[renault] Add new channels 'batterystatusupdated' and 'locked' (#14076)
Doug Culnane [Thu, 5 Jan 2023 22:55:38 +0000 (23:55 +0100)]
[renault] Add new channels 'batterystatusupdated' and 'locked' (#14076)

Signed-off-by: Doug Culnane <doug@culnane.net>
3 years ago[bigassfan] Null annotations (#13903)
lsiepel [Thu, 5 Jan 2023 22:08:07 +0000 (23:08 +0100)]
[bigassfan] Null annotations (#13903)

* Null annotations and some refactoring
* Fix synchronized block
* Fix remaining warnings

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
3 years ago[jsscripting] Update docs for code caching (#14166)
Florian Hotze [Thu, 5 Jan 2023 22:04:07 +0000 (23:04 +0100)]
[jsscripting] Update docs for code caching (#14166)

... and fix the table of contents.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
3 years ago[hueemulation] Fix tests after core change (#14161)
Florian Hotze [Thu, 5 Jan 2023 12:28:28 +0000 (13:28 +0100)]
[hueemulation] Fix tests after core change (#14161)

Fixes #14153.
This fixes the Hue Emulation tests (and in consequence the full addons build) after core change https://github.com/openhab/openhab-core/pull/3298.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
3 years ago[homekit] Add additional troubleshooting steps for homekit (#14046)
Tim Harper [Wed, 4 Jan 2023 19:32:29 +0000 (12:32 -0700)]
[homekit] Add additional troubleshooting steps for homekit (#14046)

* [homekit] Add additional troubleshooting steps for homekit

Signed-off-by: Tim Harper <timcharper@gmail.com>
3 years ago[neohub] Recover faster if NeoHub produces empty responses (#13889)
Andrew Fiddian-Green [Wed, 4 Jan 2023 06:26:22 +0000 (06:26 +0000)]
[neohub] Recover faster if NeoHub produces empty responses (#13889)

* [neohub] resolve issue #13829
* [neohub] harmonise exceptions and logging
* [neohub] improve field name, and log messages

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
3 years agoImplement missing 'Light' device type (#14150)
mlobstein [Wed, 4 Jan 2023 06:25:14 +0000 (00:25 -0600)]
Implement missing 'Light' device type (#14150)

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
3 years ago[homekit] Improve multiple instance management (#14016)
Cody Cutrer [Tue, 3 Jan 2023 22:10:42 +0000 (15:10 -0700)]
[homekit] Improve multiple instance management (#14016)

* [homekit] improve instance management

 * allow addressing individual instances for most console commands
 * don't restart all instances if simply adding/removing instances on
   config change
 * clear stored info when removing instances

* [homekit] reset instance identity when clearing pairings
* [homekit] log the actual interface we looked up

Signed-off-by: Cody Cutrer <cody@cutrer.us>
3 years ago[jsscripting] Fix regressions from #14135 & Log stack on `IllegalArgumentException...
Florian Hotze [Tue, 3 Jan 2023 19:45:23 +0000 (20:45 +0100)]
[jsscripting] Fix regressions from #14135 & Log stack on `IllegalArgumentException` (#14142)

* [jsscripting] Fix bundling of global script & regression from #14135

Fixes the regression from https://github.com/openhab/openhab-addons/pull/14135#issuecomment-1369231126.

While working on this, I also noticed that the cache openhab-js does not work because of wrong webpack commandline args in the pom (wrong entrypoint).

* [jsscripting] Enable stack logging for IllegalArgumentExceptions
* [jsscripting] Upgrade openhab-js to 3.2.4
* [jsscripting] Update README for recent PR

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
3 years agofix typo (#14146)
Johannes Velde [Tue, 3 Jan 2023 17:58:19 +0000 (18:58 +0100)]
fix typo (#14146)

Signed-off-by: veldhaenchen <jo.velde@gmx.de>
3 years ago[ism8] Fix SAT warnings (#14141)
Holger Friedrich [Tue, 3 Jan 2023 07:47:51 +0000 (08:47 +0100)]
[ism8] Fix SAT warnings (#14141)

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
3 years ago[homematic] Add hints about using docker (#14121)
Moritz 'Morty' Strübe [Mon, 2 Jan 2023 19:51:22 +0000 (20:51 +0100)]
[homematic] Add hints about using docker (#14121)

Signed-off-by: Moritz 'Morty' Strübe <morty@gmx.net>
3 years ago[jsscripting] Cache openhab-js injection to improve performance (#14135)
Florian Hotze [Mon, 2 Jan 2023 19:41:35 +0000 (20:41 +0100)]
[jsscripting] Cache openhab-js injection to improve performance (#14135)

* [jsscripting] Extend comments for wraprequire
* [jsscripting] Enable openhab-js caching to improve performance

On my dev system (which I guess is much more powerful than most openHAB servers), cached openhab-js injection takes 100-200 ms.
openhab-js injection from file system takes about 1000 ms.

* [jsscripting] Update configuration language
* [jsscripting] Upgrade openhab-js version to 3.2.1 for required webpack changes

Documentation updates will follow in another PR to keep this one clean.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
3 years ago[chromecast] Improve documentation (#14136)
lsiepel [Mon, 2 Jan 2023 18:53:42 +0000 (19:53 +0100)]
[chromecast] Improve documentation (#14136)

Signed-off-by: lsiepel <leosiepel@gmail.com>
3 years agoPushing PR #14123 to OH4 (#14140)
Gaël L'hopital [Mon, 2 Jan 2023 18:06:24 +0000 (19:06 +0100)]
Pushing PR #14123 to OH4 (#14140)

Signed-off-by: clinique <gael@lhopital.org>
3 years agoUpdate URL to Loxwiki (#14131)
Norbert Klasen [Sun, 1 Jan 2023 20:11:42 +0000 (21:11 +0100)]
Update URL to Loxwiki (#14131)

Loxwiki has moved into the Atlassian cloud: https://loxwiki.atlassian.net/wiki/spaces/LOX/pages/1622769957/Planung+bersiedelung+zu+loxwiki.atlassian.net

3 years agoNew Crowdin updates (#14130)
openhab-bot [Sun, 1 Jan 2023 13:50:12 +0000 (14:50 +0100)]
New Crowdin updates (#14130)

* New translations deconz.properties (Italian)
* New translations atlona.properties (Italian)

3 years agoSynchronize access to account to avoid concurrency issues (#14128)
Kai Kreuzer [Sun, 1 Jan 2023 11:02:15 +0000 (12:02 +0100)]
Synchronize access to account to avoid concurrency issues (#14128)

Signed-off-by: Kai Kreuzer <kai@openhab.org>
3 years ago[velbus] Add modules VMBKP, VMBIN, VMB4PB (#13939)
Daniel Rosengarten [Sat, 31 Dec 2022 16:25:03 +0000 (17:25 +0100)]
[velbus] Add modules VMBKP, VMBIN, VMB4PB (#13939)

* [velbus] Add new functionality PRESSED and LONG PRESSED and fix bug

New functionnality :
Add the the possibility to simulate the PRESSED and LONG PRESSED message of an input.

Module supported with button simulation :
VMB1RYS (button : CH6)
VMB6IN (buttons : CH1 ... CH6)
VMB2PBN, VMB6PBN, VMB7IN, VMB8IR, VMB8PB, VMB8PBU, VMBEL1, VMBEL2, VMBEL4, VMBGP1, VMBGP1-2, VMBGP2, VMBGP2-2, VMBGP4, VMBGP4-2, VMBGP4PIR, VMBGP4PIR-2 (buttons : CH1 ... CH8)
VMBELO, VMBGPOD, VMBGPOD-2 (buttons : CH1 ... CH32)

Fix bug :

The channels names were not correctly assigned to the thing properties. The last channel had the default name, not the one retrieved from the module.

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
* Update bundles/org.openhab.binding.velbus/README.md

Co-authored-by: cedricboon <cedric.boon@hotmail.com>
Signed-off-by: Daniel Rosengarten <github@praetorians.be>
* Update bundles/org.openhab.binding.velbus/README.md

Co-authored-by: cedricboon <cedric.boon@hotmail.com>
Signed-off-by: Daniel Rosengarten <github@praetorians.be>
* Update bundles/org.openhab.binding.velbus/README.md

Co-authored-by: cedricboon <cedric.boon@hotmail.com>
Signed-off-by: Daniel Rosengarten <github@praetorians.be>
* Add trigger on channel when using button simulation

Remove uneeded  Thread.sleep in code.
Trigger the events PRESSED, LONG_PRESSED, RELEASED on the linked trigger channel when using the button simulation.

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
* Fix redundant superinterface DiscoveryService

Redundant superinterface DiscoveryService for the type VelbusThingDiscoveryService, already defined by AbstractDiscoveryService.

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
* Fix bug #11521

Typo in the Counter Channel name for VMB7IN.

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
* [velbus] Add VMBELPIR module

Add the module VMBELPIR

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
* [velbus] VMBELPIR added to discovery service

Forgot to add the module VMBELPIR in the discovery service.

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
* [velbus] Updates clock alarms management

Changes the clocks alarm management :
- Global alarms are now set from the bridge thing.
- Local alarms are still set from the module thing, but the alarm type channels on modules are now readonly.

Reduces the flooding of the bus by adding a delay of 10 seconds before sending the update on the bus :
- Removes the send on the bus after each update of a clock alarm value.
- Sends only the values of the last update after 10 seconds.

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
* [velbus] PR modifications

Modifications asked in PR review.

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
* [velbus] PR modifications 2

Modifications asked in PR review 2.

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
* [velbus] Add modules VMBKP, VMBIN, VMB4PB

New functionnality : Add the support of the modules VMBKP, VMBIN, VMB4PB

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
* [velbus] Fix code style error

Fix code style error in VelbusSensorWithAlarmClockHandler.java

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
Signed-off-by: Daniel Rosengarten <github@praetorians.be>
Co-authored-by: cedricboon <cedric.boon@hotmail.com>
3 years ago[miio] add support ROIDMI EVA - roidmi.vacuum.v66 (#13940)
Marcel [Sat, 31 Dec 2022 16:15:16 +0000 (17:15 +0100)]
[miio] add support ROIDMI EVA - roidmi.vacuum.v66 (#13940)

Adding support for the following models:
* ROIDMI EVA (modelId: roidmi.vacuum.v66)

close #13813

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
3 years agoSimplify name to deCONZ (#14125)
Jacob Laursen [Sat, 31 Dec 2022 15:42:22 +0000 (16:42 +0100)]
Simplify name to deCONZ (#14125)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[astro] Fix returning wrong sun phase name (#14078)
lsiepel [Sat, 31 Dec 2022 14:04:06 +0000 (15:04 +0100)]
[astro] Fix returning wrong sun phase name (#14078)

* Add tests and fix very minor bug
* Correct wrong test
* Update tests and fix sorting
* Some checkstyle improvements

Signed-off-by: lsiepel <leosiepel@gmail.com>
3 years ago[miele] Add categories and semantic tags (#14086)
Jacob Laursen [Sat, 31 Dec 2022 14:01:58 +0000 (15:01 +0100)]
[miele] Add categories and semantic tags (#14086)

* Add categories and tags

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[miele] Add categories and semantic tags (#14086)
Jacob Laursen [Sat, 31 Dec 2022 14:01:11 +0000 (15:01 +0100)]
[miele] Add categories and semantic tags (#14086)

* Add categories and tags

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[unifi] Fix bug with combination of other data/ports (#14060)
Hilbrand Bouwkamp [Sat, 31 Dec 2022 10:03:56 +0000 (11:03 +0100)]
[unifi] Fix bug with combination of other data/ports (#14060)

- It seems to throw an exception when updating internal cache. It can happen if you have a switch that has both PoE ports and other PoE ports or data in the port override.
- Fixed logout, should be POST instead of GET.
- Fixed typo in channel-type.config.unifi.poeEnable.mode.option.pasv24 should be without appending v.
- Removed compiler warnings.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
3 years ago[tesla] Fix discovery of Tesla vehicles from account (#14070)
Kai Kreuzer [Sat, 31 Dec 2022 09:22:39 +0000 (10:22 +0100)]
[tesla] Fix discovery of Tesla vehicles from account (#14070)

* Fix discovery of Tesla vehicles from account

Signed-off-by: Kai Kreuzer <kai@openhab.org>
3 years ago[atlona] Add support for AT-PRO3HD44M (#14080)
mlobstein [Sat, 31 Dec 2022 09:18:03 +0000 (03:18 -0600)]
[atlona] Add support for AT-PRO3HD44M (#14080)

* Add support for AT-PRO3HD44M

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
3 years ago[jsscripting] Improve performance & reduce memory usage (#14113)
Florian Hotze [Fri, 30 Dec 2022 22:34:35 +0000 (23:34 +0100)]
[jsscripting] Improve performance & reduce memory usage (#14113)

* [jsscripting] Share org.graalvm.polyglot.Engine across all OpenhabGraalJSScriptEngine instances

See https://github.com/oracle/graaljs/issues/121#issuecomment-880056648, it is not required to have one engine per GraalJSScriptEngine.

This might improve performance a bit on less powerful systems (Raspberry Pi) and decreases heap usage:
With 5 GraalJS UI scripts, heap usage is now below 100 MB. Before this change, it was over 100 MB.

* [jsscripting] Extend debug logging
* [jsscripting] Cache `@jsscripting-globals.js` across all engines

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
3 years ago[jsscripting] Upgrade to ECMAScript 2022 & Dependency improvements (#14093)
Florian Hotze [Fri, 30 Dec 2022 22:04:43 +0000 (23:04 +0100)]
[jsscripting] Upgrade to ECMAScript 2022 & Dependency improvements (#14093)

* [jsscripting] Remove asm from dependencies in pom

GraalJS >= 20.3.0 doesn't require org.ow2.asm as compile dependency anymore, see https://mvnrepository.com/artifact/org.graalvm.js/js/20.3.0.

* [jsscripting] Remove dependency org.graalvm.js/js-launcher as it is not required

js-launcher is GraalVM's JavaScript command line interpreter and not required in the addon.
See https://www.graalvm.org/22.1/reference-manual/js/RunOnJDK/.

* [jsscripting] Add missing com.ibm.icu dependency

GraalJS changelog says that it is not required for GraalJS >= 22.0.0 (see https://github.com/oracle/graaljs/blob/685e5873af80a59636b697c949a172d8a7d694c3/CHANGELOG.md#version-2200).
But GraalJS 22.3.0 attempts to load classes from it during runtime.

* [jsscripting] Update GraalJS engine options

Compat, as its additional functionality is not used by openhab-js and user code is not expected to use it.

* [jsscripting] Remove com.ibm.icu/icu4j dependency
* [jsscripting] Don't disable Nashorn compat mode as openhab-js requires it for accessors

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
3 years agoUpdate Jackson version to 2.14.1 (#14116)
Wouter Born [Fri, 30 Dec 2022 21:48:12 +0000 (22:48 +0100)]
Update Jackson version to 2.14.1 (#14116)

This is the version used in the feature provided by openhab-core.

Signed-off-by: Wouter Born <github@maindrain.net>
3 years ago[knx] add color channel to knx binding docu (#14114)
Michael Geramb [Fri, 30 Dec 2022 18:46:58 +0000 (19:46 +0100)]
[knx] add color channel to knx binding docu (#14114)

add color channel to knx binding docu

3 years ago[bosesoundtouch] Fix regression and add tests (#14097)
lsiepel [Fri, 30 Dec 2022 12:58:27 +0000 (13:58 +0100)]
[bosesoundtouch] Fix regression and add tests (#14097)

* Fix regression and add tests

Signed-off-by: lsiepel <leosiepel@gmail.com>
3 years agoFix MQTT shutdownRetain default value (#14099)
jimtng [Fri, 30 Dec 2022 08:34:13 +0000 (18:34 +1000)]
Fix MQTT shutdownRetain default value (#14099)

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
3 years ago[bondhome] Fix fatal Null Pointer errors (#14103)
mlobstein [Fri, 30 Dec 2022 08:23:45 +0000 (02:23 -0600)]
[bondhome] Fix fatal Null Pointer errors (#14103)

* Fix fatal Null Pointer errors

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
3 years ago[groovyscripting] Update Groovy to 4.0.7 (#14115)
Wouter Born [Thu, 29 Dec 2022 20:59:12 +0000 (21:59 +0100)]
[groovyscripting] Update Groovy to 4.0.7 (#14115)

Updates Groovy from 3.0.13 to 4.0.7.

For Groovy 4.0 release notes, see:

https://groovy-lang.org/releasenotes/groovy-4.0.html#releasenotes

Signed-off-by: Wouter Born <github@maindrain.net>
3 years ago[jsscripting] Use `application/javascript` as MIME type (#14096)
Florian Hotze [Thu, 29 Dec 2022 20:01:22 +0000 (21:01 +0100)]
[jsscripting] Use `application/javascript` as MIME type (#14096)

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
3 years ago[influxdb] Upgrade Gson to 2.9.1 (#14090)
Jacob Laursen [Thu, 29 Dec 2022 19:59:10 +0000 (20:59 +0100)]
[influxdb] Upgrade Gson to 2.9.1 (#14090)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[dbquery] Upgrade Gson to 2.9.1 (#14089)
Jacob Laursen [Thu, 29 Dec 2022 19:58:24 +0000 (20:58 +0100)]
[dbquery] Upgrade Gson to 2.9.1 (#14089)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[bluetooth.generic] Upgrade Gson to 2.9.1 (#14092)
Jacob Laursen [Thu, 29 Dec 2022 19:57:41 +0000 (20:57 +0100)]
[bluetooth.generic] Upgrade Gson to 2.9.1 (#14092)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[watsonstt] Upgrade Gson to 2.9.1 (#14091)
Jacob Laursen [Thu, 29 Dec 2022 19:57:03 +0000 (20:57 +0100)]
[watsonstt] Upgrade Gson to 2.9.1 (#14091)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years agoRename handler to fix case and make consistent with corresponding channel selector...
Jacob Laursen [Thu, 29 Dec 2022 19:07:31 +0000 (20:07 +0100)]
Rename handler to fix case and make consistent with corresponding channel selector (#14095)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years agoAdd Stale configuration (#14109)
Wouter Born [Thu, 29 Dec 2022 18:32:45 +0000 (19:32 +0100)]
Add Stale configuration (#14109)

Similar to openhab/openhab-core#2974

See also: https://github.com/marketplace/stale

Signed-off-by: Wouter Born <github@maindrain.net>
3 years ago[daikin] Add support for Alira X (#14108)
lsiepel [Thu, 29 Dec 2022 17:41:17 +0000 (18:41 +0100)]
[daikin] Add support for Alira X (#14108)

* Add support for Alira X
* Fix checkstyle
* Move changes AirbaseControlInfo =>  ControlInfo
* Send seperated values conditionally

Signed-off-by: lsiepel <leosiepel@gmail.com>
3 years ago[chromecast] Fix constant disconnections (#14105)
jimtng [Thu, 29 Dec 2022 10:52:25 +0000 (20:52 +1000)]
[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>
3 years agoNew translations danfossairunit.properties (Danish) (#14098)
openhab-bot [Wed, 28 Dec 2022 23:59:57 +0000 (00:59 +0100)]
New translations danfossairunit.properties (Danish) (#14098)

3 years ago[bondhome] compile warnings and sat (#13986)
lsiepel [Wed, 28 Dec 2022 18:40:19 +0000 (19:40 +0100)]
[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>
3 years agoRemove deprecated channel (#14030)
Jacob Laursen [Wed, 28 Dec 2022 18:20:29 +0000 (19:20 +0100)]
Remove deprecated channel (#14030)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years agoNew translations hdpowerview.properties (Danish) (#14079)
openhab-bot [Wed, 28 Dec 2022 00:03:31 +0000 (01:03 +0100)]
New translations hdpowerview.properties (Danish) (#14079)

3 years agoUpdate i18n command version number (#14077)
Holger Friedrich [Tue, 27 Dec 2022 21:53:03 +0000 (22:53 +0100)]
Update i18n command version number (#14077)

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
3 years ago[bluetooth.daikinmadoka] null annotations (#13975)
lsiepel [Tue, 27 Dec 2022 16:12:58 +0000 (17:12 +0100)]
[bluetooth.daikinmadoka] null annotations (#13975)

* null annotations - sat warnings
* refactor handleResponses

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
3 years ago[hueemulation] Fix for Alexa failing to discover all devices. (#13923)
Mike Major [Tue, 27 Dec 2022 15:58:37 +0000 (15:58 +0000)]
[hueemulation] Fix for Alexa failing to discover all devices. (#13923)

* Fix for Alexa failing to discover all devices.

Signed-off-by: Mike Major <mike_j_major@hotmail.com>
3 years agoRemove deprecated channels (#14033)
Jacob Laursen [Tue, 27 Dec 2022 15:50:38 +0000 (16:50 +0100)]
Remove deprecated channels (#14033)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[bluetooth.am43] null annotations (#13972)
lsiepel [Tue, 27 Dec 2022 15:27:19 +0000 (16:27 +0100)]
[bluetooth.am43] null annotations (#13972)

* null annotations forbidden package
* improve createChecksum
* spotless + typo

Signed-off-by: lsiepel <leosiepel@gmail.com>
3 years agonull annotations - checkstyle (#13979)
lsiepel [Tue, 27 Dec 2022 15:16:55 +0000 (16:16 +0100)]
null annotations - checkstyle (#13979)

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
3 years agominro checkstyle (#13977)
lsiepel [Tue, 27 Dec 2022 15:13:12 +0000 (16:13 +0100)]
minro checkstyle (#13977)

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
3 years ago[velux] Updated Discovery instructions for scenes and actuators (#14009)
Jiri Kraus [Tue, 27 Dec 2022 15:08:12 +0000 (16:08 +0100)]
[velux] Updated Discovery instructions for scenes and actuators (#14009)

* Updated Discovery instructions for scenes and actuators

Updated Discovery instructions as after KLF200 is auto discovered and configured discovery of scenes and actuators need to be manually triggered.

* @jirikraus Updated Discovery instructions for scenes and actuators

Formatting update to address comment from @andrewfg.

3 years ago[astro] Added moon phase precision (#14067)
lsiepel [Tue, 27 Dec 2022 11:56:43 +0000 (12:56 +0100)]
[astro] Added moon phase precision (#14067)

* add more precision to MoonPhase.Age

Signed-off-by: lsiepel <leosiepel@gmail.com>
3 years ago[nuvo] Auto update source channel for grouped zones (#14012)
mlobstein [Tue, 27 Dec 2022 11:54:26 +0000 (05:54 -0600)]
[nuvo] Auto update source channel for grouped zones (#14012)

* Auto update source channel for grouped zones

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
3 years ago[homekit] support Rollershutter items for HoldPosition (#14045)
Cody Cutrer [Tue, 27 Dec 2022 10:55:12 +0000 (03:55 -0700)]
[homekit] support Rollershutter items for HoldPosition (#14045)

* [homekit] support Rollershutter items for HoldPosition

just send STOP to them

* [homekit] log a warning for incompatible HoldPosition items

Signed-off-by: Cody Cutrer <cody@cutrer.us>
3 years agoSkip loading/migrating items with invalid name (#14054)
Jacob Laursen [Tue, 27 Dec 2022 10:41:59 +0000 (11:41 +0100)]
Skip loading/migrating items with invalid name (#14054)

Fixes #14053

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[rrd4j] Improve logging of exceptions thrown by getDB (#14068)
Holger Friedrich [Tue, 27 Dec 2022 09:55:15 +0000 (10:55 +0100)]
[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>
3 years ago[tplinksmarthome] Document sending raw commands to devices (#14062)
Tim Harper [Tue, 27 Dec 2022 09:25:28 +0000 (02:25 -0700)]
[tplinksmarthome] Document sending raw commands to devices (#14062)

Signed-off-by: Tim Harper <timcharper@gmail.com>
Signed-off-by: Tim Harper <timcharper@gmail.com>
3 years ago[airvisualnode] Add null annotations (#13895)
lsiepel [Mon, 26 Dec 2022 16:00:53 +0000 (17:00 +0100)]
[airvisualnode] Add null annotations (#13895)

* Add null annotation

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
3 years ago[jsscriptingnashorn] JavaScript Scripting Nashorn Automation (#14013)
Wouter Born [Mon, 26 Dec 2022 14:27:03 +0000 (15:27 +0100)]
[jsscriptingnashorn] JavaScript Scripting Nashorn Automation  (#14013)

* [jsscriptingnashorn] JavaScript Scripting Nashorn Automation

This add-on allows you to use your older JavaScript (ECMAScript 5.1) rules on newer Java versions until they are migrated to JavaScript (ECMAScript 2021+).
The add-on uses a standalone [Nashorn Engine](https://github.com/openjdk/nashorn) which was part of Java until it was removed in Java 15.

* Update parent to 3.4.0-SNAPSHOT and nashorn-core to 15.4

For the Nashorn changelog, see:

https://github.com/openjdk/nashorn/blob/main/CHANGELOG.md

* Update parent to 4.0.0-SNAPSHOT
* Remove removeUnsupportedNashornArgs
* Update scriptTypes
* Add CODEOWNERS entry
* Recycle ScriptScopeOSGiTest.java

It got removed in openhab/openhab-core#2994

* Remove redundant new line from pom.xml

Signed-off-by: Wouter Born <github@maindrain.net>
3 years agoSet openHAB to correct version in binding skeleton scripts. (#14061)
Hilbrand Bouwkamp [Mon, 26 Dec 2022 09:17:42 +0000 (10:17 +0100)]
Set openHAB to correct version in binding skeleton scripts. (#14061)

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
3 years ago[nanoleaf] More robust caching of layout (#13998)
Jørgen Austvik [Sun, 25 Dec 2022 19:56:04 +0000 (20:56 +0100)]
[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>
3 years ago[knx] Fix SAT warnings (#14052)
Holger Friedrich [Sat, 24 Dec 2022 11:11:28 +0000 (12:11 +0100)]
[knx] Fix SAT warnings (#14052)

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
3 years ago[lifx] Handle and provide QuantityType for color-temperature-abs channel (#14025)
Cody Cutrer [Fri, 23 Dec 2022 23:00:57 +0000 (16:00 -0700)]
[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>