]> git.basschouten.com Git - openhab-addons.git/log
openhab-addons.git
3 years agoSolves issue #11691 (#13758)
Gaël L'hopital [Mon, 21 Nov 2022 19:38:37 +0000 (20:38 +0100)]
Solves issue #11691 (#13758)

Signed-off-by: clinique <gael@lhopital.org>
3 years agoNew translations boschshc.properties (Italian) (#13757)
openhab-bot [Mon, 21 Nov 2022 10:08:49 +0000 (11:08 +0100)]
New translations boschshc.properties (Italian) (#13757)

3 years ago[boschshc] Support smart light bulbs (#13725)
David Pace [Sun, 20 Nov 2022 21:12:49 +0000 (22:12 +0100)]
[boschshc] Support smart light bulbs (#13725)

* [boschshc] Support smart light bulbs (#13707)

* add thing type definition for smart bulbs using system channels
* add constants for thing type and channels
* implement and register handler
* implement binary switch service (to switch on/off)
* implement multi-level switch service (allows to get/set brightness
from 0-100%)
* implement service to get and set colors
* add unit tests for handler and state classes
- update documentation

Signed-off-by: David Pace <dev@davidpace.de>
3 years ago[jsscripting] Reimplement timer creation method of `ScriptExecution` (#13695)
Florian Hotze [Sun, 20 Nov 2022 21:08:19 +0000 (22:08 +0100)]
[jsscripting] Reimplement timer creation method of `ScriptExecution` (#13695)

* [jsscripting] Refactor ThreadsafeTimers to create futures inline instead of in an extra methods
* [jsscripting] Introduce utility class for providing easy access to script services
* [jsscripting] Reimplement timer creation methods from ScriptExecution for thread-safety
* [jsscripting] Add missing JavaDoc for reimplement timer creation methods
* [jsscripting] Remove the future from the map when setTimeout expires
* [jsscripting] Rename `GraalJSScriptServiceUtil` to `JSScriptServiceUtil`
* [jsscripting] Remove the `createTimerWithArgument` method
* [jsscripting] Replace the OSGi workaround of `JSScriptServiceUtil` with an injection mechanism
* [jsscripting] Use constructor to inject `JSScriptServiceUtil` into `GraalJSScriptEngineFactory`
* [jsscripting] Minor improvements by @J-N-K (#1)
* [jsscripting] Minor changes related to last commit to keep flexibility of `JSRuntimeFeatures`
* [jsscripting] Upgrade openhab-js to v2.1.1
* [jsscripting] Remove unused code

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Co-authored-by: Jan N. Klug <github@klug.nrw>
3 years ago[pwm] Fix NPE when disabling and improve logging (#13755)
Fabian Wolter [Sun, 20 Nov 2022 19:38:00 +0000 (20:38 +0100)]
[pwm] Fix NPE when disabling and improve logging (#13755)

* [pwm] Fix exception when disabling the module
* Improve logging

Signed-off-by: Fabian Wolter <github@fabian-wolter.de>
3 years ago[jsscripting] Fix the `console.trace` polyfill to log a stack trace & Stringify JS...
Florian Hotze [Sun, 20 Nov 2022 19:30:42 +0000 (20:30 +0100)]
[jsscripting] Fix the `console.trace` polyfill to log a stack trace & Stringify JS `Error` (#13749)

* [jsscripting] Fix the `console.trace` polyfill to log a stack trace & Stringify JS `Error`
* [jsscripting] Add myself to the codeowners

Fixes #12646

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
3 years ago[homekit] simplify settings page, resize doc images (#13741)
eugen [Sun, 20 Nov 2022 19:07:45 +0000 (20:07 +0100)]
[homekit] simplify settings page, resize doc images (#13741)

* simplify config, resize images

Signed-off-by: Eugen <eugen@relotrust.com>
3 years agoNew translations sensebox.properties (German) (#13748)
openhab-bot [Sun, 20 Nov 2022 16:35:58 +0000 (17:35 +0100)]
New translations sensebox.properties (German) (#13748)

3 years ago[jsscripting] Fix maven build (#13747)
Florian Hotze [Sun, 20 Nov 2022 16:30:23 +0000 (17:30 +0100)]
[jsscripting] Fix maven build (#13747)

This fixed the maven build, that fails because webpack-cli version 5.0.0 doesn’t properly process the given entrypoint.
Instead, webpack tries to use the entrypoint from openhab-js‘ webpack config file.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
3 years agoFix PostgreSQL query for storing timestamps (#13745)
Jacob Laursen [Sat, 19 Nov 2022 19:57:51 +0000 (20:57 +0100)]
Fix PostgreSQL query for storing timestamps (#13745)

Fixes #13121

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years agoFix wrong textual format. (#13742)
Matthew Skinner [Sat, 19 Nov 2022 08:22:58 +0000 (19:22 +1100)]
Fix wrong textual format. (#13742)

Signed-off-by: Matthew Skinner <matt@pcmus.com>
3 years ago[dscalarm] Fix broken link in README (#13743)
mlobstein [Sat, 19 Nov 2022 08:18:32 +0000 (02:18 -0600)]
[dscalarm] Fix broken link in README (#13743)

* Update README

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
3 years agoMake itemsManageTable configurable (#13737)
Jacob Laursen [Fri, 18 Nov 2022 16:34:10 +0000 (17:34 +0100)]
Make itemsManageTable configurable (#13737)

Fixes #9637

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years agoNew translations juicenet.properties (Italian) (#13736)
openhab-bot [Thu, 17 Nov 2022 21:56:36 +0000 (22:56 +0100)]
New translations juicenet.properties (Italian) (#13736)

3 years ago[harmonyhub] Fix reliability issues (#13702)
Jacob Laursen [Thu, 17 Nov 2022 19:48:28 +0000 (20:48 +0100)]
[harmonyhub] Fix reliability issues (#13702)

* Fix compiler info

Unsafe interpretation of method return type as '@NonNull' based on the receiver type 'java.util.Enumeration<java.net.@NonNull NetworkInterface>'. Type 'java.util.Enumeration<E>' doesn't seem to be designed with null type annotations in mind

* Improve robustness of job rescheduling and handler disposal

Handler tried updating thing although the handler was already disposed

Fixes #13701

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[jdbc] Add warning about using tableCaseSensitiveItemNames without dedicated schema...
Jacob Laursen [Thu, 17 Nov 2022 19:05:10 +0000 (20:05 +0100)]
[jdbc] Add warning about using tableCaseSensitiveItemNames without dedicated schema (#13732)

* Add warning about using tableCaseSensitiveItemNames without dedicated schema
* Move warning to extended description
* Rephrase explanation
* Fix commands

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years agoDo not modify index or create tables when uninitialized (#13728)
Jacob Laursen [Thu, 17 Nov 2022 19:00:31 +0000 (20:00 +0100)]
Do not modify index or create tables when uninitialized (#13728)

Fixes #13727

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years agoAdd console command for reloading index/schema (#13733)
Jacob Laursen [Thu, 17 Nov 2022 18:52:54 +0000 (19:52 +0100)]
Add console command for reloading index/schema (#13733)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[awattar] Fix that allows bridge to be added via UI. (#13730)
Doug Culnane [Thu, 17 Nov 2022 18:46:57 +0000 (19:46 +0100)]
[awattar] Fix that allows bridge to be added via UI. (#13730)

Signed-off-by: Doug Culnane <doug@culnane.net>
3 years agoFix NoSuchElementException when there are no tables (#13731)
Jacob Laursen [Wed, 16 Nov 2022 23:58:14 +0000 (00:58 +0100)]
Fix NoSuchElementException when there are no tables (#13731)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[miio] Fix dimming channels for several yeelights (#13724)
Marcel [Wed, 16 Nov 2022 12:26:26 +0000 (13:26 +0100)]
[miio] Fix dimming channels for several yeelights (#13724)

The majority of brightness channels were already converted to dimmer.
This PR applies same to the 'other'brightness channels like nightlight
and/or ambient

close: #9936

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
3 years ago[jdbc] Improve error handling safety (#13726)
Jacob Laursen [Wed, 16 Nov 2022 08:28:46 +0000 (09:28 +0100)]
[jdbc] Improve error handling safety (#13726)

* Wrap YankSQLException into checked exception for all Yank calls

* Move files into internal

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years agoAdd missing status (#13729)
mlobstein [Wed, 16 Nov 2022 07:14:10 +0000 (01:14 -0600)]
Add missing status (#13729)

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
3 years ago[jdbc] Improve error handling (#13719)
Jacob Laursen [Tue, 15 Nov 2022 07:44:12 +0000 (08:44 +0100)]
[jdbc] Improve error handling (#13719)

* Enable wrapped exceptions being thrown by Yank

Fixes #13718

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* Fix SAT warning about hashCode implementation

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years agofix system_buttonpress not populating (#13721)
mlobstein [Mon, 14 Nov 2022 23:30:34 +0000 (17:30 -0600)]
fix system_buttonpress not populating (#13721)

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
3 years ago[tesla] Add steering wheel heater command support for Model 3/Y (#13704)
Konstantin Polihronov [Mon, 14 Nov 2022 20:33:21 +0000 (22:33 +0200)]
[tesla] Add steering wheel heater command support for Model 3/Y (#13704)

* Add steering wheel heater channel for Model Y
* Add command for steering wheel heater

Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
3 years ago[ecobee] Add air quality channels for Ecobee Smart Thermostat Premium (#13705)
robnielsen [Mon, 14 Nov 2022 20:29:34 +0000 (14:29 -0600)]
[ecobee] Add air quality channels for Ecobee Smart Thermostat Premium (#13705)

* [ecobee] Add air quality channels for Ecobee Smart Thermostat Premium

Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com>
3 years ago[jsscripting] Fix failure on some platforms & JDKs (#13714)
Florian Hotze [Mon, 14 Nov 2022 19:30:44 +0000 (20:30 +0100)]
[jsscripting] Fix failure on some platforms & JDKs (#13714)

* [jsscripting] Downgrade GraalVM to fix issue with armv7l & OpenJDK 11.0.16

The community reported several cases where JS Scripting was not working due to some issue with the injection of the global script.
This issue seems to only occur on armv7l (e.g. Raspberry Pi 32bit) and OpenJDK 11.0.16.
Investigation showed that the occurrence of the problem depends on the GraalJS version.

See https://community.openhab.org/t/js-scripting-all-scripts-stop-working-when-upgrading-to-3-4-0-m4/140837.

* [jsscripting] Add logging for injection of JSRuntimeFeatures
* [jsscripting] Lint `@jsscripting-globals.js` with semistandard
* [jsscripting] Remove ICU4J as it moved to `org.graalvm.truffle`

Reference https://github.com/oracle/graaljs/blob/f5661d46554c5f1dc8651dca2614da20e0326031/CHANGELOG.md#version-2200.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
3 years ago[tapocontrol] fixed configuration error (#13677)
Christian Wild [Mon, 14 Nov 2022 09:13:05 +0000 (10:13 +0100)]
[tapocontrol] fixed configuration error (#13677)

* improved response logging and error handling

Signed-off-by: Christian Wild <christian@wildclan.de>
3 years ago[evcc] Fix data type issues in DTO (#13710)
Florian Hotze [Sun, 13 Nov 2022 11:54:00 +0000 (12:54 +0100)]
[evcc] Fix data type issues in DTO (#13710)

* [evcc] Change DTO from double to float as the higher precision is not required
* [evcc] Change DTO from int/long to float
* [evcc] Update JavaDoc & small improvements
* [evcc] `EvccHandler`: Add exception message to the debug log

Fixes https://github.com/openhab/openhab-addons/issues/13646.
Avoids problems with changed data types in the future by generally using float instead of int.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
3 years ago[juicenet] Initial contribution (#10768)
jsjames [Sun, 13 Nov 2022 11:27:43 +0000 (03:27 -0800)]
[juicenet] Initial contribution (#10768)

Signed-off-by: Jeff James <jeff@james-online.com>
3 years ago[Nanoleaf] Visualize layout (#13552)
Jørgen Austvik [Sat, 12 Nov 2022 22:00:08 +0000 (23:00 +0100)]
[Nanoleaf] Visualize layout (#13552)

* Visualize Nanoleaf layout
* Only calculate image if channel is linked
* White background image
* Render more shapes

Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
3 years ago[nuvo] Add zone actions for rules (#13658)
mlobstein [Sat, 12 Nov 2022 15:57:22 +0000 (09:57 -0600)]
[nuvo] Add zone actions for rules (#13658)

* Add zone actions for rules
* Don't scan for NuvoNet source messages if openHAB NuvoNet sources are not being used

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
3 years ago[mqtt.homeassistant] Fix binding crash when home assistant discovery topics update...
Sami Salonen [Sat, 12 Nov 2022 11:46:43 +0000 (13:46 +0200)]
[mqtt.homeassistant] Fix binding crash when home assistant discovery topics update with content (#13518)

* [mqtt.homeassistant] Fix for discovery topics that update with content

Fixes #13517
Possibly resolves #9711 and #12295 as well.

* [mqtt.homeassistant] Sort channels before changing thing
* [mqtt.homeassistant] logging + removed unnecessary synchronization
* Resolve bunch of warnings in homeassistant bundle
* [mqtt.homeassistant] Handling null warnings and unnecessary null checks
* [mqtt.homeassistant] Removing unnecessary null checks

Signed-off-by: Sami Salonen <ssalonen@gmail.com>
Co-Authored-by: @antroids github handle
3 years ago[jdbc] Add console maintenance commands (#13662)
Jacob Laursen [Sat, 12 Nov 2022 11:30:53 +0000 (12:30 +0100)]
[jdbc] Add console maintenance commands (#13662)

* Add console command for listing tables
* Query row counts only when needed and while generating output
* Add cleanup command
* Add documentation

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years agoIf for some reason HP response fails to properly parse, i.e. `java.lang.NumberFormatE...
Boris Krivonog [Sat, 12 Nov 2022 09:44:45 +0000 (10:44 +0100)]
If for some reason HP response fails to properly parse, i.e. `java.lang.NumberFormatException: For input string: "##"` exception is not handled and scheduler is not re-triggered (polling stops).Fixed build warnings. (#13685)

Signed-off-by: Boris Krivonog <boris.krivonog@inova.si>
3 years ago[Systeminfo] Add comment on temperature readings on Windows (#13696)
Mark Herwege [Fri, 11 Nov 2022 22:17:52 +0000 (23:17 +0100)]
[Systeminfo] Add comment on temperature readings on Windows (#13696)

* Add comment on temperature readings on Windows

Signed-off-by: Mark Herwege mark.herwege@telenet.be
3 years ago[avmfritz] Decode alarm state for blinds (#13672)
quidam [Fri, 11 Nov 2022 22:13:05 +0000 (23:13 +0100)]
[avmfritz] Decode alarm state for blinds (#13672)

* [avmfritz] Decode alarm state for blinds
Signed-off-by: Ulrich Mertin <mail@ulrich-mertin.de>
3 years agoNew translations jdbc.properties (German) (#13697)
openhab-bot [Fri, 11 Nov 2022 21:36:39 +0000 (22:36 +0100)]
New translations jdbc.properties (German) (#13697)

3 years ago[monopriceaudio] Update README (#13688)
mlobstein [Fri, 11 Nov 2022 12:07:59 +0000 (06:07 -0600)]
[monopriceaudio] Update README (#13688)

* Update README

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
3 years ago[lcn] Fix setting of variables (#13690)
Fabian Wolter [Fri, 11 Nov 2022 09:12:32 +0000 (10:12 +0100)]
[lcn] Fix setting of variables (#13690)

Signed-off-by: Fabian Wolter <github@fabian-wolter.de>
3 years ago[boschshc] Support obtaining battery states (#13461) (#13631)
David Pace [Fri, 11 Nov 2022 07:23:48 +0000 (08:23 +0100)]
[boschshc] Support obtaining battery states (#13461) (#13631)

This change adds support for obtaining the battery state for the
following devices:

* Motion Detector
* Thermostat
* Twinguard
* Wall Thermostat
* Window/Door Contact

The following changes were made:

* Add system.battery-level and system.low-battery channels to Motion
Detector, Thermostat, Twinguard, Wall Thermostat and Window/Door Contact
* Add constant for battery-level and low-battery channels in
BoschSHCBindingConstants
* Implement abstract handler and service for battery-powered devices
* Let appropriate devices inherit the abstract implementation
* Add missing super calls in initializeServices() methods
* Rename existing getServiceURL() to getServiceStateURL() in HTTP client
* Add methods to retrieve service states without the suffix "/state" in
the URL
* Rename DeviceStatusUpdate to DeviceServiceData
* Let DeviceServiceData extend BoschSHCServiceState
* Extend DeviceServiceData DTO with model for faults
* Enhance bridge handler: handle updates without state sub-objects,
extract methods to enhance readability
* Add unit tests for all affected devices
* Minor code enhancements
* Update documentation

Signed-off-by: David Pace <dev@davidpace.de>
3 years agoUpdates for breaking API changes (#13680)
Stian Kjoglum [Thu, 10 Nov 2022 19:57:45 +0000 (20:57 +0100)]
Updates for breaking API changes (#13680)

Signed-off-by: kjoglum <stiankj@online.no>
3 years ago[jdbc] Upgrade MariaDB connector to 3.0.8 (#13659)
Jacob Laursen [Wed, 9 Nov 2022 22:01:15 +0000 (23:01 +0100)]
[jdbc] Upgrade MariaDB connector to 3.0.8 (#13659)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years agoNew translations jdbc.properties (German) (#13686)
openhab-bot [Wed, 9 Nov 2022 09:52:30 +0000 (10:52 +0100)]
New translations jdbc.properties (German) (#13686)

3 years agoNew translations jdbc.properties (German) (#13678)
openhab-bot [Tue, 8 Nov 2022 10:07:37 +0000 (11:07 +0100)]
New translations jdbc.properties (German) (#13678)

3 years ago[vesync] Add author in CODEOWNERS (#13676)
lolodomo [Mon, 7 Nov 2022 17:48:51 +0000 (18:48 +0100)]
[vesync] Add author in CODEOWNERS (#13676)

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
3 years ago[mercedesme] New API Migration (#13670)
Bernd Weymann [Mon, 7 Nov 2022 17:48:48 +0000 (18:48 +0100)]
[mercedesme] New API Migration (#13670)

* adjust servers and scope
* ensure IPv4 address for callback

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
3 years ago[mercedesme] Add author in CODEOWNERS (#13675)
lolodomo [Mon, 7 Nov 2022 17:45:19 +0000 (18:45 +0100)]
[mercedesme] Add author in CODEOWNERS (#13675)

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
3 years ago[easee] Add author in CODEOWNERS (#13674)
lolodomo [Mon, 7 Nov 2022 17:44:56 +0000 (18:44 +0100)]
[easee] Add author in CODEOWNERS (#13674)

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
3 years agoNew Crowdin updates (#13671)
openhab-bot [Mon, 7 Nov 2022 12:25:06 +0000 (13:25 +0100)]
New Crowdin updates (#13671)

* New translations meater.properties (Danish)

3 years agoFix bridge initialization when parameter quoteList is not configured (#13667)
Jacob Laursen [Mon, 7 Nov 2022 08:20:20 +0000 (09:20 +0100)]
Fix bridge initialization when parameter quoteList is not configured (#13667)

Fixes #13666

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[kodi] Fix bridge initialization when parameter group is not configured (#13669)
Jacob Laursen [Mon, 7 Nov 2022 05:49:05 +0000 (06:49 +0100)]
[kodi] Fix bridge initialization when parameter group is not configured (#13669)

Fixes #13668

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[groheondus] Upgrade dependencies (#13665)
Wouter Born [Sun, 6 Nov 2022 19:22:08 +0000 (20:22 +0100)]
[groheondus] Upgrade dependencies (#13665)

* Upgrade commons-text to 1.10.0 (prevents CVE-2022-42889)
* Upgrade commons-lang3 to 3.12.0
* Remove commons-text, wrap from feature because it is embedded into the bundle

Signed-off-by: Wouter Born <github@maindrain.net>
3 years ago[jsscripting] Update openhab-js version to 2.1.0 (#13664)
Florian Hotze [Sun, 6 Nov 2022 19:15:10 +0000 (20:15 +0100)]
[jsscripting] Update openhab-js version to 2.1.0 (#13664)

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
3 years ago[miio] Fix warning messages and discovery on newer robots (#13111)
Marcel [Sun, 6 Nov 2022 09:03:51 +0000 (10:03 +0100)]
[miio] Fix warning messages and discovery on newer robots (#13111)

also includes update to latest devicenames list

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
3 years ago[jdbc] Fix MySQL deprecation notice on startup (#13660)
Jacob Laursen [Sat, 5 Nov 2022 19:27:38 +0000 (20:27 +0100)]
[jdbc] Fix MySQL deprecation notice on startup (#13660)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[mqtt.homeassistant] support non-RGB lights (#13413)
Cody Cutrer [Sat, 5 Nov 2022 15:57:06 +0000 (09:57 -0600)]
[mqtt.homeassistant] support non-RGB lights (#13413)

* [mqtt.homeassistant] support non-RGB lights

dynamically decide which type of channel to expose. also send "down-typed"
commands to the proper topic. this also sets the groundwork for supporting
template and JSON schemas

Signed-off-by: Cody Cutrer <cody@cutrer.us>
3 years ago[tellstick] Avoid updates duplication after communication errors (#13479)
lolodomo [Sat, 5 Nov 2022 15:11:06 +0000 (16:11 +0100)]
[tellstick] Avoid updates duplication after communication errors (#13479)

* [tellstick] Avoid updates duplication after communication errors

Fix #13453

Do not register the same device handler many times as listener in the bridge handler
Unregister the device handler from the bridge handler when disposing device handler

HTTP timeout set to 15s
Remove the retry mechanism related to the timeout
Check HTTP status code
Fix discovery service unregistration
Log statistics about request/refresh durations and number of timeouts/errors
Change logging in case of exception
Also change few logs level (remove usage of logger.error)
Execute one refresh at bridge initialization and not 2
Small enhancement of the bridge/things status management
implement discovery service unregistration
Fix few code analysis findings

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
* Use a set for deviceStatusListeners to avoid duplications

Review comment: @NonNullByDefault for TellstickHandlerFactory

Review comment: use ThingStatusDetail.CONFIGURATION_ERROR if no bridge
is defined

Review comment: use 1_000_000 instead of 1000000

Review comment: use Instant instead of LocalDateTime

Review comment: Thread.currentThread().interrupt()

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
3 years ago[jsscripting] Reimplement timer polyfills to conform standard JS (#13623)
Florian Hotze [Sat, 5 Nov 2022 14:26:46 +0000 (15:26 +0100)]
[jsscripting] Reimplement timer polyfills to conform standard JS (#13623)

* [jsscripting] Reimplement timers to conform standard JS
* [jsscripting] Name scheduled jobs by loggerName + id
* [jsscripting] Update timer identifiers
* [jsscripting] Update identifiers for scheduled jobs
* [jsscripting] Synchronize method that is called when the script is reloaded
* [jsscripting] Cancel all scheduled jobs when the engine is closed
* [jsscripting] Ensure that a timerId is never reused by a subsequent call & Use long primitive type instead of Integer
* [jsscripting] Use an abstraction class to inject features into the JS runtime
* [jsscripting] Make ThreadsafeTimers threadsafe for concurrent access to the class itself
* [jsscripting] Move the locking for `invokeFunction` to `OpenhabGraalJSScriptEngine`

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
3 years ago[jrubyscripting] don't manually filter presets. (#13548)
Cody Cutrer [Sat, 5 Nov 2022 14:23:02 +0000 (08:23 -0600)]
[jrubyscripting] don't manually filter presets. (#13548)

simply just don't overwrite any constants that already exist

refs https://github.com/openhab/openhab-core/pull/3113

Signed-off-by: Cody Cutrer <cody@cutrer.us>
3 years ago[verisure] Avoid updates duplication after communication errors (#13652)
lolodomo [Sat, 5 Nov 2022 13:42:01 +0000 (14:42 +0100)]
[verisure] Avoid updates duplication after communication errors (#13652)

Avoid registering several times the same device status listener.
It is called by the thing handler each time the bridge status changed to ONLINE.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
3 years ago[kostalinverter] Fix for the Kostal inverter binding to work with different firmware...
basse04 [Sat, 5 Nov 2022 12:50:49 +0000 (13:50 +0100)]
[kostalinverter] Fix for the Kostal inverter binding to work with different firmware releases regarded to PIKO 10-20 V. 221004 (#13490)

* [kostalinverter] Fix for the Kostal inverter binding to work with
different firmware releases regarded to PIKO 10-20 Version 221004

This is the next version regarded to Closed PR #13464

* [kostalinverter] Changes done 20221019
Regarded to Thread.....

* Proper handling of InterruptedException

Also removbe a useless call to return

Signed-off-by: Örjan Backsell <orjan.backsell@gmail.com>
Co-authored-by: Laurent Garnier <lg.hc@free.fr>
3 years agoAdd support for Dreame L10 Pro (#12803)
Leif Bladt [Sat, 5 Nov 2022 12:10:08 +0000 (13:10 +0100)]
Add support for Dreame L10 Pro (#12803)

Signed-off-by: Leif Bladt <leif.bladt@gmx.de>
3 years ago[jdbc] Add support for case sensitive table names reflecting item names 1:1 (#13544)
Jacob Laursen [Sat, 5 Nov 2022 09:41:31 +0000 (10:41 +0100)]
[jdbc] Add support for case sensitive table names reflecting item names 1:1 (#13544)

* Do not append number when using real item names
* Extract getTableName to separate class
* Add initial test coverage
* Extract migration logic to separate class
* Support migration from real names back to numbered
* Simplify zero-padding
* Fix NullPointerException
* Fix MySQL compatibility when CLIENT_MULTI_STATEMENTS option is not set
* Add option for case sensitive table names
* Add real name with suffix mode for backwards compatibility
* Remove real name in lower case without suffix mode
* Map directly from item name to table name
* Fix ambiguous table name scenario
* Add additional testcase
* Add migration path for changed table prefix
* Drop items table when using direct mapping
* Add configuration note
* Fix table alignment
* Extend description as more migration paths are now supported
* Do not stop halfway through a migration
* For clarity, do not use abbreviation for operating system

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years agoadopted date parser due to changes in EASEE API (#13654)
alexf2015 [Fri, 4 Nov 2022 18:56:30 +0000 (19:56 +0100)]
adopted date parser due to changes in EASEE API (#13654)

Signed-off-by: Alexander Friese <af944580@googlemail.com>
3 years ago[paradoxalarm] Handle multiple panels (#13641)
Silviu Chingaru [Fri, 4 Nov 2022 18:01:39 +0000 (20:01 +0200)]
[paradoxalarm] Handle multiple panels (#13641)

* Fixes #13640

Working with multiple Paradox panels

Tested with:
- rename things files;
- thing disable / enable on same instance of OpenHab;
- disable on one OpenHab instance > enable on other;

Everything works as espected.
All test passed even if no Login/Logout commands were sent to IP module

Signed-off-by: Silviu Chingaru <silviuchingaru@yahoo.com>
3 years ago[homeconnect] Fix login for simulator environment (#13653)
bruestel [Fri, 4 Nov 2022 17:28:40 +0000 (18:28 +0100)]
[homeconnect] Fix login for simulator environment (#13653)

* Add redirect URI to oAuth request

Signed-off-by: Jonas Brüstel <jonas@bruestel.net>
3 years ago[hdpowerview] Restructure DTO classes (#13630)
Jacob Laursen [Fri, 4 Nov 2022 17:24:39 +0000 (18:24 +0100)]
[hdpowerview] Restructure DTO classes (#13630)

* Extract nested DTO's to separate classes
* Rename api to dto
* Move test classes into internal
* Finish moving of files and fix namespaces

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[systeminfo] dynamic channels (#13562)
Mark Herwege [Fri, 4 Nov 2022 12:28:27 +0000 (13:28 +0100)]
[systeminfo] dynamic channels (#13562)

* Dynamic channels
* Status messages i8n
* Format fix
* Cache process load values
* Restore channel configs
* Fix test
* Stabilize tests
* Fix CpuLoad1-5-15 update
* Fix test bndrun
* String equals cleanup
* Fix potential null pointer in test

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
3 years ago[mercedesme] Fix unstable ConfigurationTest (#13650)
Wouter Born [Thu, 3 Nov 2022 21:16:07 +0000 (22:16 +0100)]
[mercedesme] Fix unstable ConfigurationTest (#13650)

* Make sure IPv4 is used with default callback URL
* Use a more reasonable timeout

Fixes #13531

Signed-off-by: Wouter Born <github@maindrain.net>
3 years agoSome HM devices are using relative humidity (% rH/rF) as units (#13626)
Martin Herbst [Thu, 3 Nov 2022 18:21:13 +0000 (19:21 +0100)]
Some HM devices are using relative humidity (% rH/rF) as units (#13626)

Fix #13553

Signed-off-by: Martin Herbst <develop@mherbst.de>
3 years agoUpdate README.md (#13642)
Andrea Cioni [Wed, 2 Nov 2022 07:20:58 +0000 (08:20 +0100)]
Update README.md (#13642)

`color_mode` is not recognized as a channel parameter, instead, `colorMode` is

3 years ago[netatmo] eventBuffer in SecurityCapability should not be static (#13636)
lolodomo [Wed, 2 Nov 2022 07:16:25 +0000 (08:16 +0100)]
[netatmo] eventBuffer in SecurityCapability should not be static (#13636)

Also fix few findings by code analysis

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
3 years ago[sagercaster] Fix all code analysis findings (#13637)
lolodomo [Tue, 1 Nov 2022 14:33:54 +0000 (15:33 +0100)]
[sagercaster] Fix all code analysis findings (#13637)

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
3 years ago[lifx] Fix all code analysis findings (#13638)
lolodomo [Tue, 1 Nov 2022 14:31:37 +0000 (15:31 +0100)]
[lifx] Fix all code analysis findings (#13638)

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
3 years ago[vigicrues] Fix few code analysis findings (#13639)
lolodomo [Tue, 1 Nov 2022 14:30:29 +0000 (15:30 +0100)]
[vigicrues] Fix few code analysis findings (#13639)

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
3 years ago[linuxinput] handle keys not known by libevdev (#13632)
Thomas Weißschuh [Tue, 1 Nov 2022 13:06:58 +0000 (08:06 -0500)]
[linuxinput] handle keys not known by libevdev (#13632)

* [linuxinput] handle keys not known by libevdev

Previously if libevdev could not resolve a numeric event code to a
symbolic name the name "null" was used.
This is useless for the user and may lead to duplicate-channel errors if
multiple unknown keys are encountered.

Instead use the numeric code itself as channel name if no symbolic code
could be determined.

Reported-in: https://community.openhab.org/t/linuxinput-binding-and-mouse-capture/122612/8
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
* [linuxinput] add channel description

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
3 years agoNew Crowdin updates (#13635)
openhab-bot [Tue, 1 Nov 2022 13:03:15 +0000 (14:03 +0100)]
New Crowdin updates (#13635)

* New translations hue.properties (French)

* New translations lgwebos.properties (French)

* New translations lgwebos.properties (French)

3 years agoNew translations hue.properties (German) (#13634)
openhab-bot [Tue, 1 Nov 2022 09:55:11 +0000 (10:55 +0100)]
New translations hue.properties (German) (#13634)

3 years ago[netatmo] No restriction on max value for rain quantity (#13620)
lolodomo [Mon, 31 Oct 2022 19:55:26 +0000 (20:55 +0100)]
[netatmo] No restriction on max value for rain quantity (#13620)

* [netatmo] No max value for rain quantity

Fix #13619

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
3 years ago[lgwebos] Actions: sendButton updated, sendRCButton removed, sendKeyboard added ...
lolodomo [Mon, 31 Oct 2022 18:57:46 +0000 (19:57 +0100)]
[lgwebos] Actions: sendButton updated, sendRCButton removed, sendKeyboard added (#13618)

* README: make the list of remote control buttons less specific to a model

Fix #13600

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
3 years agoFixes #13628 (#13629)
Konstantin Polihronov [Mon, 31 Oct 2022 17:11:15 +0000 (19:11 +0200)]
Fixes #13628 (#13629)

* Change static config in bridge handler to non-static (fixes #13628)

Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
3 years ago[boschshc] Support for Compact Smart Plugs (#13528) (#13533)
David Pace [Mon, 31 Oct 2022 16:21:25 +0000 (17:21 +0100)]
[boschshc] Support for Compact Smart Plugs (#13528) (#13533)

* add thing definition with ID "smart-plug-compact"
* add constant for thing type UID
* extract abstract implementation for devices with power switch and
energy monitoring
* let in-wall switch handler and smart plug handler extend the abstract
implementation
* register new handler
* add method with boolean parameter to fetch initial state actively
* make BoschSHCDeviceHandler abstract
* add documentation
* add unit tests

closes #13528

Signed-off-by: David Pace <dev@davidpace.de>
3 years agoNew translations hue.properties (Italian) (#13627)
openhab-bot [Mon, 31 Oct 2022 08:22:35 +0000 (09:22 +0100)]
New translations hue.properties (Italian) (#13627)

3 years ago[miio] Update yeelink.light.light15.json (#13554)
Michi [Sun, 30 Oct 2022 19:41:13 +0000 (20:41 +0100)]
[miio] Update yeelink.light.light15.json (#13554)

* Update yeelink.light.light15.json

changed Datatype form "Number" to "Dimmer" at channel "ambientBrightness"
same issue openhab#9936 (but already fixed)

Signed-off-by: Michi <michael.schmidts@online.de>
3 years ago[hue] Check HTTPS connection (download of PEM certificate) (#13617)
lolodomo [Sun, 30 Oct 2022 12:04:09 +0000 (13:04 +0100)]
[hue] Check HTTPS connection (download of PEM certificate) (#13617)

* [hue] Check HTTPS connection (download of PEM certificate)

Fix #13586

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
3 years ago[kaleidescape] update README (#13593)
mlobstein [Sat, 29 Oct 2022 08:43:32 +0000 (03:43 -0500)]
[kaleidescape] update README (#13593)

* update README

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
3 years agoAdd console extension for showing IDs (#13615)
Jacob Laursen [Fri, 28 Oct 2022 17:11:24 +0000 (19:11 +0200)]
Add console extension for showing IDs (#13615)

Fixes #13614

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years agoFix missing web resource unregistration (#13613)
Björn Lange [Fri, 28 Oct 2022 10:58:16 +0000 (12:58 +0200)]
Fix missing web resource unregistration (#13613)

Signed-off-by: Björn Lange <bjoern.lange@itemis.de>
3 years ago[groheondus] Fix missing automatic refresh ++ (#11955)
Arne Seime [Thu, 27 Oct 2022 07:03:17 +0000 (09:03 +0200)]
[groheondus] Fix missing automatic refresh ++ (#11955)

* Fix scheduling of thing and token update, tries to avoid service rate limiting. Added more logging. Added some missing null checks. Ensure recent data is fetched, not data from yesterday

Signed-off-by: Arne Seime <arne.seime@gmail.com>
* Updated to latest versio of API lib

Signed-off-by: Arne Seime <arne.seime@gmail.com>
* Added new channel waterconsumption_since_midnight that sums todays water consumption (same as in the Grohe app)

Signed-off-by: Arne Seime <arne.seime@gmail.com>
* Add more debug logging

Signed-off-by: Arne Seime <arne.seime@gmail.com>
* More null checks, also set channels to Undef if a value is missing

Signed-off-by: Arne Seime <arne.seime@gmail.com>
* Fixed missing embedding of commons-text as it is a dependency of the api lib

Signed-off-by: Arne Seime <arne.seime@gmail.com>
* Refresh token 1 hour before expiry

Signed-off-by: Arne Seime <arne.seime@gmail.com>
* Re-login in case token refresh fails

Signed-off-by: Arne Seime <arne.seime@gmail.com>
* Factor in timezone when calculating consum since midnight

Signed-off-by: Arne Seime <arne.seime@gmail.com>
* Use QuantityType<Volume> for water consumption

Signed-off-by: Arne Seime <arne.seime@gmail.com>
* Minor

Signed-off-by: Arne Seime <arne.seime@gmail.com>
* i18n of dynamic error messages

Signed-off-by: Arne Seime <arne.seime@gmail.com>
* More i18n. Plus retry of failed refresh token - with a delay to possibly avoid rate limiting

Signed-off-by: Arne Seime <arne.seime@gmail.com>
* Adjust refresh token timeout to 5 minutes before expire. Also retry with username/pwd login if token login fails (could be an expired token)

Signed-off-by: Arne Seime <arne.seime@gmail.com>
* Clear old discovery results

Signed-off-by: Arne Seime <arne.seime@gmail.com>
* Fetch data further back to ensure battery device has been online

Signed-off-by: Arne Seime <arne.seime@gmail.com>
* Updated README with old data warning

Signed-off-by: Arne Seime <arne.seime@gmail.com>
* Typo

Signed-off-by: Arne Seime <arne.seime@gmail.com>
* Do not allow polling interval less than 900 as rate limiting most likely will block the calls

Signed-off-by: Arne Seime <arne.seime@gmail.com>
* Fix failed token refresh giving up

Signed-off-by: Arne Seime <arne.seime@gmail.com>
* Removed refresh token login webpage. Another attempt at handling token refresh

Signed-off-by: Arne Seime <arne.seime@gmail.com>
* Fix status detail

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

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* Fix newly introduced warnings

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* Remove redundant logging

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Arne Seime <arne.seime@gmail.com>
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Co-authored-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[mqtt] set the proper unit in the state description (#13604)
Cody Cutrer [Thu, 27 Oct 2022 06:34:50 +0000 (00:34 -0600)]
[mqtt] set the proper unit in the state description (#13604)

So that other pieces of openhab can know what unit it's going to be,
without it having a value yet. Importantly, any necessary conversion
that need to be applied to the other portion of the state description -
min, max, and step.

See also https://github.com/openhab/openhab-core/pull/3132

Signed-off-by: Cody Cutrer <cody@cutrer.us>
3 years ago[ipcamera] Fix multiple WARNs when HIK camera does not support alarm inputs (#13606)
Matthew Skinner [Thu, 27 Oct 2022 06:28:27 +0000 (17:28 +1100)]
[ipcamera] Fix multiple WARNs when HIK camera does not support alarm inputs (#13606)

* Fix never ending WARN when HIK camera does not support alarm inputs.
* Streamline code.

Signed-off-by: Matthew Skinner <matt@pcmus.com>
3 years ago[jrubyscripting] Update to JRuby 9.3.9.0 (#13605)
jimtng [Wed, 26 Oct 2022 12:30:10 +0000 (22:30 +1000)]
[jrubyscripting] Update to JRuby 9.3.9.0 (#13605)

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
3 years ago[freebox] Console command completion (#13591)
lolodomo [Tue, 25 Oct 2022 07:32:34 +0000 (09:32 +0200)]
[freebox] Console command completion (#13591)

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
3 years ago[lgwebos] Console command completion (#13590)
lolodomo [Tue, 25 Oct 2022 07:31:09 +0000 (09:31 +0200)]
[lgwebos] Console command completion (#13590)

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
3 years ago[linky] Console command completion (#13589)
lolodomo [Tue, 25 Oct 2022 07:29:58 +0000 (09:29 +0200)]
[linky] Console command completion (#13589)

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
3 years ago[hue] Console command completion (#13597)
lolodomo [Tue, 25 Oct 2022 07:29:12 +0000 (09:29 +0200)]
[hue] Console command completion (#13597)

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
3 years ago[powermax] Console command completion (#13588)
lolodomo [Tue, 25 Oct 2022 07:27:28 +0000 (09:27 +0200)]
[powermax] Console command completion (#13588)

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
3 years ago[somfytahoma] Console command completion (#13598)
lolodomo [Tue, 25 Oct 2022 07:25:40 +0000 (09:25 +0200)]
[somfytahoma] Console command completion (#13598)

Signed-off-by: Laurent Garnier <lg.hc@free.fr>