Commit Graph

2794 Commits

Author SHA1 Message Date
Wouter Born
8eb0d2c16e
[rrd4j] Use RrdDbPool to prevent ClosedByInterruptException (#13332)
Using the pool prevents exceptions like:

```
java.nio.channels.ClosedByInterruptException: null
	at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:199) ~[?:?]
	at sun.nio.ch.FileChannelImpl.endBlocking(FileChannelImpl.java:162) ~[?:?]
	at sun.nio.ch.FileChannelImpl.size(FileChannelImpl.java:388) ~[?:?]
	at org.rrd4j.core.RrdNioBackend.<init>(RrdNioBackend.java:94) ~[?:?]
	at org.rrd4j.core.RrdNioBackendFactory.open(RrdNioBackendFactory.java:163) ~[?:?]
	at org.rrd4j.core.RrdBackendFactory.getBackend(RrdBackendFactory.java:521) ~[?:?]
	at org.rrd4j.core.RrdDb.<init>(RrdDb.java:627) ~[?:?]
	at org.rrd4j.core.RrdDb.of(RrdDb.java:500) ~[?:?]
	at org.openhab.persistence.rrd4j.internal.RRD4jPersistenceService.getDB(RRD4jPersistenceService.java:323) ~[?:?]
	at org.openhab.persistence.rrd4j.internal.RRD4jPersistenceService.store(RRD4jPersistenceService.java:141) ~[?:?]
	at org.openhab.persistence.rrd4j.internal.RRD4jPersistenceService.lambda$0(RRD4jPersistenceService.java:211) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
	at java.lang.Thread.run(Thread.java:829) [?:?]
```

Fixes #13297

Also includes a few code improvements.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-08-29 17:15:17 +02:00
Haavar Valeur
07e2b69e79
[Konnected] Fixed null pointer exception on state update with missing state (#13329)
* Fixed null pointer exception on state update with missing state
* Added variable for state. Changed onvalue configuration type to integer.

Signed-off-by: Haavar Valeur <haavar@haavar.com>
2022-08-29 12:45:25 +02:00
Cody Cutrer
449d3518f6
[jrubyscripting] avoid polluting environment when auto-installing gems (#13328)
fixes https://github.com/boc-tothefuture/openhab-jruby/issues/634;
regression from https://github.com/openhab/openhab-addons/pull/13151

Signed-Off-By: Cody Cutrer <cody@cutrer.us>
2022-08-28 21:45:35 +02:00
Andreas Berger
a327167a58
[fineoffsetweatherstation] Add information about unsupported devices (#13307)
* [fineoffsetweatherstation] add information about unsupported devices

Signed-off-by: Andreas Berger <andreas@berger-freelancer.com>
2022-08-28 14:05:51 +02:00
Andrew Fiddian-Green
f7295bd00f
[hdpowerview] Battery channels visible only when required (#13324)
* [hdpowerview] add batteryKind field
* [hdpowerview] battery channels visible depending on batteryKind

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2022-08-28 13:55:18 +02:00
Jørgen Austvik
c825171caf
Nobø hub addon: Add more component types with serial numbers. (#13326)
Minor change which gives more properties to detected things, which
should make a little easyer for users with these devices to identify them.

Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
2022-08-28 13:50:56 +02:00
Pumpur
5abbf2df7e
[myStrom] Corrected readMe, mystrompir is not a bulb. (#13322)
* Corrected ReadMe, mystrompir is not a bulb.

Signed-off-by: Stefan Navratil <stefan@navratil.ch>
2022-08-26 22:32:33 +02:00
billfor
5bc4bb794e
[wemo] Add Wemo Outdoor plug (#13319)
Signed-off-by: bill <git@billforsyth.net>
2022-08-26 22:28:29 +02:00
openhab-bot
e656c1f4df
New translations mqtt.properties (Italian) (#13323) 2022-08-26 20:06:56 +02:00
Wouter Born
cfa20db227
[mqtt] Add missing broker connection configuration parameters (#13303)
Allows to configure the following broker connection configuration parameters:

* Protocol: TCP (default), WEBSOCKETS
* MQTT Version: V3 (default), V5
* Hostname Validation: true (default), false

The defaults are chosen to remain backwards compatible.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-08-26 08:53:00 +02:00
Mark Herwege
c21d3061ec
[mail] Correct action names (#13318)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2022-08-25 22:30:21 +02:00
Pete
34bdc21370
[bluetooth] Add support for service data (#10278)
Signed-off-by: Peter Rosenberg <prosenb.dev@gmail.com>
2022-08-25 21:36:21 +02:00
openhab-bot
d4c472a04c
New translations mercedesme.properties (Italian) (#13312) 2022-08-24 11:05:35 +02:00
Bernd Weymann
704000eda9
[mercedesme] Initial contribution (#13044)
Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
2022-08-23 22:42:39 +02:00
Andrew Fiddian-Green
0a41c3f2f6
[hdpowerview] Channels are visible depending on shade capabilities (#13275)
* [hdpowerview] create channels dynamically
* [hdpowerview] revert from channel creation to channel removal
* [hdpowerview] add category

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2022-08-23 22:03:43 +02:00
Espen Fossen
bc9cf8e07a
[nobohub] Initial contribution (#12937)
* Added NoboHub binding.

Signed-off-by: Espen Fossen <espenaf@junta.no>
2022-08-22 23:27:24 +02:00
Bob A
9c2070f748
[lutron] Add mDNS discovery for RadioRA 3 processor (#13299)
Signed-off-by: Bob Adair <bob.github@att.net>
2022-08-22 19:37:07 +02:00
Cody Cutrer
c215dfede4
[jrubyscripting] document how to use Ruby in a transformation (#13286)
using the core ScriptTransformationService. See
https://github.com/openhab/openhab-addons/pull/13255 for prior
discussion on this.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2022-08-22 15:46:18 +02:00
Jacob Laursen
19659b6e05
Adapt to AccessTokenResponse API change (#13278)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-08-22 12:08:14 +02:00
Anders Alfredsson
29fb142e6a
[smhi] Prepare for easier translation (#13305)
Signed-off-by: Anders Alfredsson <andersb86@gmail.com>
2022-08-22 10:47:44 +02:00
Haavar Valeur
ed3642da84
Setting auto discovered callback URL in configuration. Cleaned up callback URL handling (#13295)
Signed-off-by: Haavar Valeur <haavar@haavar.com>
2022-08-21 12:21:44 +02:00
openhab-bot
1b5e766b55
New translations fineoffsetweatherstation.properties (Italian) (#13300) 2022-08-21 12:15:40 +02:00
Haavar Valeur
d8c07ebde7
[Konnected] Refreshed readme to include latest changes (#13294)
* Refreshed readme to include latest changes

Signed-off-by: Haavar Valeur <haavar@haavar.com>
2022-08-20 23:02:05 +02:00
Sami Salonen
ac23965c7d
[transformation.jinja] Update jinjava to 2.6.0 from 2.5.7 (#13296)
Signed-off-by: Sami Salonen <ssalonen@gmail.com>
2022-08-20 10:05:21 +02:00
openhab-bot
a99199720a
New Crowdin updates (#13291)
* New translations shelly.properties (German)
* New translations goecharger.properties (Italian)
2022-08-18 22:04:39 +02:00
Andreas Berger
e49cde0cce
[fineoffsetweatherstation] Add channel for the sensors battery voltage (#13284)
* [fineoffsetweatherstation] add channel for the sensors battery voltage

Signed-off-by: Andreas Berger <andreas@berger-freelancer.com>
2022-08-18 12:14:21 +02:00
Gaël L'hopital
4fb528901f
Solves issue #13196 (#13281)
Signed-off-by: clinique <gael@lhopital.org>
2022-08-18 09:15:41 +02:00
Sascha Kloß
47b004f227
Add transaction to Go-Echarger (#13105)
Signed-off-by: Sascha Kloß <sascha.kloss@gmx.de>
2022-08-17 22:36:56 +02:00
jimtng
3de0f79d9a
[jrubyscripting] Update to jruby 9.3.7.0 to fix BootstrapMethodError (#13280)
* [jrubyscripting] Update to jruby 9.3.7.0
* [jrubyscripting] Exception fixed in jruby 9.3.7.0

The BootstrapMethodError should no longer be thrown by jruby since 9.3.7. Fixed in https://github.com/jruby/jruby/pull/7271

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2022-08-17 16:36:12 +02:00
vich-667
7e9e0dbdf2
return rollershutter pos (#13191)
Signed-off-by: Tobias Lange <vich-667@gmx.de>
2022-08-17 10:15:23 +02:00
Dan Cunningham
b63e420abf
[Hydrawise] concurrent error (#13268)
* Fixes a concurrent modification exception, cleans up handler on dispose, fixes totally broken last contact channel
Fixes #13094

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2022-08-17 10:07:04 +02:00
Andrew Fiddian-Green
8baa500998
[tado] Fix AC target temperature reading and writing bugs (#13272)
* [tado] fix npe when target temperature json element is missing
* [tado] apply temperature command/value restrictions

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2022-08-17 09:32:17 +02:00
Boris Krivonog
801895e2d2
Refresh token if expired (#13274)
Signed-off-by: Boris Krivonog <boris.krivonog@inova.si>
2022-08-16 22:11:49 +02:00
Boris Krivonog
0a79b8574c
[automower] Adapt login due to Husqvarna API change (#13263)
* The Automower Connect API Authentication does not work anymore as they moved to a new authentication method. (AppKey and AppSecret) - adopted. Fixes issue #12980.

Signed-off-by: Boris Krivonog <boris.krivonog@inova.si>
2022-08-15 21:02:00 +02:00
openhab-bot
932346a091
New translations boschindego.properties (Danish) (#13269) 2022-08-15 20:55:45 +02:00
lolodomo
8e8eb059fd
[serial] Allow custom baudrate and add option 2400 (#13265)
Fix #13131

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-08-15 17:31:47 +02:00
Andrew Fiddian-Green
41fcdd6c71
[velux] Add an action to simultaneously set main and vane positions (#13199)
* [velux] add moveMainAndVane action
* [velux] add claridications to read me
* [velux] refactor actions and translate
* [velux] fix thing lookup

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2022-08-15 12:36:25 +02:00
Tiller
bb3be91981
[miio] adding support for ijai.vacuum.v19 : Xiaomi Vacuum Mop 2S (#12723)
Signed-off-by: Tiller <github.me@tiller.fr>
2022-08-14 23:00:21 +02:00
Björn Lange
51ff29116f
[mielecloud] Adapt to inbox api changes (#13185)
* No unneccessary calls to thingRegistry.get
* Handle Inbox.add now returning CompletableFuture

Signed-off-by: Björn Lange <bjoern.lange@itemis.de>
2022-08-14 21:31:31 +02:00
CyborgAndy
5d1e3f9efd
[pwm] Fix handling of "maxDutyCycle" parameter value (#12197)
* [pwm] Fix handling of "maxDutyCycle" parameter value

Signed-off-by: Andriy Yemets <cyborg.andy@gmail.com>

* [pwm] Clarify behavior of the parameters

Signed-off-by: Andriy Yemets <cyborg.andy@gmail.com>

* [pwm] Update README.md (#12196)

Fixed description for maxDutycycle parameter
Added two new parameters: equateMinToZero and equateMaxToHundred

Signed-off-by: Andriy Yemets <cyborg.andy@gmail.com>

* Update bundles/org.openhab.automation.pwm/src/main/java/org/openhab/automation/pwm/internal/handler/PWMTriggerHandler.java

Signed-off-by: Fabian Wolter <github@fabian-wolter.de>

* Update bundles/org.openhab.automation.pwm/src/main/java/org/openhab/automation/pwm/internal/handler/PWMTriggerHandler.java

Signed-off-by: Fabian Wolter <github@fabian-wolter.de>

Signed-off-by: Andriy Yemets <cyborg.andy@gmail.com>
Signed-off-by: Fabian Wolter <github@fabian-wolter.de>
Co-authored-by: Fabian Wolter <github@fabian-wolter.de>
2022-08-14 14:53:12 +02:00
Jacob Laursen
6853fe84b9
Support one decimal for pressure value (#13257)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-08-14 09:24:58 +02:00
openhab-bot
d0f12a7fd5
New translations gardena.properties (German) (#13256) 2022-08-14 00:00:40 +02:00
Haavar Valeur
4b5bbab009
[Konnected] Adding base URL to config to allow for manually adding thing (#13251)
* Adding base URL to config to allow for manually adding thing
* Simplified reading of the base URL configuration. Renamed field to baseUrl to be consistent.
* Changed config parameters to camel case

Signed-off-by: Haavar Valeur <haavar@haavar.com>
2022-08-13 10:34:39 +02:00
Andrew Fiddian-Green
bff2298b20
[gardena] synchronized (#13253)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2022-08-12 17:32:51 +02:00
Gerhard Riegler
2d53243de7
[gardena] Fixed connection tracker (#13238)
* Removed provider header, no longer necessary
* Fixed connection tracker not starting after some websocket restarts

Signed-off-by: Gerhard Riegler <gerhard.riegler@gmail.com>
2022-08-12 16:54:24 +02:00
lolodomo
2f808bc8dd
[rotel] Set model and firmware properties (#13240)
For all models providing these information and relying on ASCII protocol.
The binding now supports reading of status message containing variable length content.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-08-12 16:51:54 +02:00
Hans-Jörg Merk
9b128c2f7d
Add RSSI channel to intesisHome and fixed some NPEs (#13244)
Signed-off-by: Hans-Jörg Merk <github@hmerk.de>
2022-08-12 10:51:42 +02:00
Cody Cutrer
e4c9a40d03
[homekit] allow multiple bridge instances to break the 150 limit (#13226)
fixes #11508, #12927

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2022-08-12 09:55:39 +02:00
Andrew Fiddian-Green
b075d3781c
[velux] Implement new API, and log critical device errors (#13212)
* [velux] use new API, and log StatusReply codes
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2022-08-12 09:26:51 +02:00
openhab-bot
d5e3ab797c
New translations sonos.properties (French) (#13250) 2022-08-12 07:00:44 +02:00