Commit Graph

3625 Commits

Author SHA1 Message Date
Jacob Laursen
23f3374ea9
Fix color tests after HSBType changes (#14629)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-03-18 13:59:59 +01:00
J-N-K
0f5dfa5088
Fix "empty range" exception when querying InfluxDB2 (#14627)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-03-18 13:31:41 +01:00
goopilot
979ecb0f98
Add Sptrip6 device (#14584)
Signed-off-by: Alexandr Salamatov <goopilot@gmail.com>
2023-03-18 10:25:10 +01:00
GiviMAD
7268442c25
[watsonstt] Upgrade library (#14626)
Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
2023-03-18 07:33:33 +01:00
GiviMAD
9a6b23fbec
[voskstt] Upgrade library (#14625)
Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
2023-03-18 07:32:58 +01:00
Jacob Laursen
4d47f33012
Initial contribution (#14529)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-03-17 22:06:06 +01:00
Holger Friedrich
aae63e9488
[knx] Refactoring of KnxCoreTypeMapper and UOM Support (#14534)
* [knx] Refactoring, add basic support for UOM

Preparation for refactoring KnxCoreTypeMapper.
Carryover from smarthomej/addons#107.
Merge UOM implementations.

* [knx] Adapt tests

DPT strings for QuantityType now strip off a tailing .0 when decimals
are converted.

* [knx] Refactoring

Use pattern matching with instanceof operator (new Java17 feature).

* [knx] Refactoring, performance improvements

Introduce KNXChannel class.
Carryover from smarthomej/addons#114.

* [knx] Add warning for incompatible DPT type

Configuring incompatible DPT/channel combinations (e.g. DPT 1.005 (alarm) on Contact channels
or DPT 1.019 (windows/door) on Switch channels) is not allowed but was silently ignored.
This PR adds a warning in case incompatible configurations are detected.

Carryover from smarthomej/addons#203.

* [knx] Add full support for UoM

Replace UoM handling with the implementation from smarthome/j.
Carryover from smarthomej/addons#206.

* [knx] Refactor KNXCoreTypeMapper, add RGBW and xyY

Carryover from smarthomej/addons#208.

* [knx] Fix RGB conversion

Carryover from smarthomej/addons#219.

* [knx] Remove workarounds obsoleted by Calimero 2.5

Carryover from smarthomej/addons#226.

* [knx] Add parameter for disabling incoming UoM

Carryover from smarthomej/addons#230.

* [knx] Fix fallback to DecimalType in number conversion

Carryover from smarthomej/addons#279.

* [knx] Fix DPT 251.600 decoding

Carryover from smarthomej/addons#349.

* [knx] Fix UoM handling for special types
* [knx] Add test for KNXChannelFactory
* [knx] Update CODEOWNERS for knx
* [knx] Default conversion for DPT 5.001 and 6.001
* [knx] Fix write blocked forever after read from bus

Carryover from smarthomej/addons#299 and smarthomej/addons#330.

* [knx] Use new class ColorUtil from core for HSB conversion

Also-by: Jan N. Klug <github@klug.nrw>
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-03-17 12:50:13 +01:00
Mark Hilbush
b395d0e227
Fix typo (#14607)
Signed-off-by: Mark Hilbush <mark@hilbush.com>
2023-03-15 16:41:49 +01:00
Mark Hilbush
d4b68b2df4
Fix for NPE when getting network interface name (#14603)
Signed-off-by: Mark Hilbush <mark@hilbush.com>
2023-03-14 22:32:03 +01:00
Stian Kjoglum
596324635d
Add channel for lastMeterProduction (#14583)
Signed-off-by: kjoglum <stiankj@online.no>
2023-03-14 08:34:48 +01:00
openhab-bot
a6a801c28f
New Crowdin updates (#14597)
* New translations openweathermap.properties (Italian)
* New translations netatmo.properties (Italian)
* New translations qolsysiq.properties (Italian)
* New translations astro.properties (German)
* New translations astro.properties (Italian)
* New translations danfossairunit.properties (Danish)
2023-03-13 22:22:53 +01:00
Doug Culnane
b3d3d20b8b
[renault] Improve handling of HTTP 502 responses. (#14586)
Signed-off-by: Doug Culnane <doug@culnane.net>
2023-03-13 07:51:27 +01:00
Wouter Born
9aa72abd82
Resolve runbundles and fix tests (#14588)
Related to:

* openhab/openhab-core#3433
* openhab/openhab-core#3446
* openhab/openhab-core#3450

Some tests were updated because private lifecycle methods (annotated with @BeforeAll, @AfterAll, @BeforeEach, or @AfterEach) now lead to an exception.

See: https://junit.org/junit5/docs/current/release-notes/index.html#deprecations-and-breaking-changes-3

Signed-off-by: Wouter Born <github@maindrain.net>
2023-03-12 23:00:58 +01:00
Kai Kreuzer
9fedfc5d61
[metrics] Remove outdated precondition (#14594) 2023-03-12 22:01:08 +01:00
Wouter Born
2b63b984dc
[shelly] Fix missing /shelly/manager (#14592)
Using Whiteboard annotations seems to fix this issue.

Signed-off-by: Wouter Born <github@maindrain.net>
2023-03-12 20:42:12 +01:00
openhab-bot
6e0fe0e0ad
New translations bluetooth.properties (Italian) (#14591) 2023-03-12 19:29:46 +01:00
Jacob Laursen
63c65e72de
[danfossairunit] Unify thing labels (#14577)
* Unify thing labels
* Specify connection type

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-03-12 17:33:28 +01:00
joerg1985
709dc49fbe
Support for RadonEye with v2.x.x firmware (#14549)
Signed-off-by: Jörg Sautter <joerg.sautter@gmx.net>
2023-03-12 10:48:45 +01:00
Wouter Born
59b3ed33df
[groovyscripting] Update Groovy to 4.0.9 and support slurpers (#14499)
Updates Groovy from 4.0.7 to 4.0.9.

For release notes, see:

https://groovy-lang.org/changelogs/changelog-4.0.8.html
https://groovy-lang.org/changelogs/changelog-4.0.9.html

Adds dependencies and service loader config so JSON, XML and YAML can be more easily parsed using the JsonSlurper, XmlSlurper and YamlSlurper.

Signed-off-by: Wouter Born <github@maindrain.net>
2023-03-11 21:15:06 +01:00
Stian Kjoglum
ac7993d329
Enhancement: Query for subscription url every reconnect attempt (#14573)
Signed-off-by: kjoglum <stiankj@online.no>
2023-03-11 17:55:42 +01:00
Wouter Born
d70e2c6294
Instruct contributors to always use "main" branch for PRs (#14574)
* Instruct contributors to always use "main" branch for PRs
* Fix a typo too

This helps to prevent some frustration between contributors/maintainers.

Signed-off-by: Wouter Born <github@maindrain.net>
2023-03-11 12:26:53 +01:00
Jacob Laursen
75d195465e
[renault] Add instructions for adding channels (#14572)
* Add instruction for adding channel

---------

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-03-11 10:55:49 +01:00
Mike Major
53bbda267f
[dlinksmarthome] Reboot device daily following shutdown of cloud service (#14479)
* Reboot device

---------

Signed-off-by: Mike Major <mike_j_major@hotmail.com>
2023-03-11 10:49:30 +01:00
lsiepel
38915f5009
Remove org.apache.common (#14437)
Signed-off-by: lsiepel <leosiepel@gmail.com>
2023-03-10 23:39:18 +01:00
lsiepel
039e3aa73a
[bsblan] Remove org.apache.commons (#14515)
* Replace org.apache.commons with org.unbescape

Signed-off-by: lsiepel <leosiepel@gmail.com>
2023-03-10 23:37:45 +01:00
fifipil909
8e9bc3124e
[renault] Add channel for pausing/resuming charging (#14527)
* Adding Pause-Resume Endpoint

Signed-off-by: fifipil909 <vincent.pilate@gmail.com>
2023-03-10 23:32:24 +01:00
openhab-bot
505a651992
New translations mynice.properties (Italian) (#14569) 2023-03-10 23:31:26 +01:00
Felix Schneider
13ab221e09
Remove unused headings (#14571)
Remove the unused headings for generation 2. There is probably a manual missing for gen 2, but while this is the case the headlines can be removed

Signed-off-by: Felix Schneider <fs@felix-schneider.org>
2023-03-10 23:31:07 +01:00
Simon Spielmann
f138cd35e2
[iCloud] Ignore HTTP errors != 400 & >= 500 for 2-FA authentication (#14563)
* Ignore HTTP errors != 400 for 2-FA authentication

---------

Signed-off-by: Simon Spielmann <simon.spielmann@gmx.de>
2023-03-10 21:53:35 +01:00
Jacob Laursen
dfb172df2a
Add instruction for channel removal (#14473)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-03-10 15:28:52 +01:00
Gaël L'hopital
c385ac0772
[Netatmo] Netatmo documentation (#14567)
* Updating Netatmo documentation

---------

Signed-off-by: clinique <gael@lhopital.org>
2023-03-10 13:17:48 +01:00
Gaël L'hopital
3b5dfb11a0
[mynice] Binding for IT4Wifi module (Nice gate doors) (#12940)
Signed-off-by: clinique <gael@lhopital.org>
2023-03-10 10:33:39 +01:00
Gaël L'hopital
d130595f85
[Netatmo] Modification of the tokenRefresh handling process (#14548)
* Modification of the tokenRefresh handling process
* Storing refreshToken in userdata/netatmo

---------

Signed-off-by: clinique <gael@lhopital.org>
2023-03-10 10:18:30 +01:00
Jacob Laursen
013422af32
Add missing addon.xml (#14559)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-03-09 17:19:06 +01:00
Zhivka Dimova
4069d854fb
[enocean] Fix condition in getPositionData-D2_05_00 (#14558)
Fix #14528

Signed-off-by: Zhivka Dimova <zhivka.dimova@myforest.net>
2023-03-09 13:08:36 +01:00
mueller-ma
cc51400bbd
Update docs of androiddebugbridge (#14553)
* Use code fence for intents
* Fix Item type of awake-state
* Pretty print JSON and add Netflix

Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>
2023-03-09 08:22:27 +01:00
jimtng
afebf08042
[jrubyscripting] Upgrade JRuby to 9.4.2.0 (#14556)
This is a major version upgrade from 9.3.x, raising the compatibility level up from Ruby 2.6 to Ruby 3.1

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2023-03-09 08:19:10 +01:00
Wouter Born
81f87385f6
[neeo] Fix Servlet exceptions due to non-unique names (#14554)
It seems that Pax Web nowadays checks that the Servlet names are unique.

Fixes #14545

Signed-off-by: Wouter Born <github@maindrain.net>
2023-03-08 20:19:13 +01:00
Gaël L'hopital
90b2279a29
[Netatmo] Adding Carbon Monoxide sensor (#14543)
* Added Carbon Monoxide detector

---------

Signed-off-by: clinique <gael@lhopital.org>
2023-03-08 19:27:35 +01:00
Wouter Born
50cdd02447
[ipcamera] Make sure created Servlet supports async (#14552)
Fixes the folowing errors:

```
HTTP ERROR 500 java.lang.IllegalStateException: !asyncSupported: NotAsync:org.ops4j.pax.web.service.spi.servlet.OsgiInitializedServlet@536b0858
URI:	/ipcamera/192168493/ipcamera.jpg
STATUS:	500
MESSAGE:	java.lang.IllegalStateException: !asyncSupported: NotAsync:org.ops4j.pax.web.service.spi.servlet.OsgiInitializedServlet@536b0858
SERVLET:	org.openhab.binding.ipcamera.internal.servlet.CameraServlet
CAUSED BY:	java.lang.IllegalStateException: !asyncSupported: NotAsync:org.ops4j.pax.web.service.spi.servlet.OsgiInitializedServlet@536b0858
Powered by Jetty:// 9.4.50.v20221201
```

See:

* https://community.openhab.org/t/openhab-4-0-snapshot-discussion/142322/226
* https://groups.google.com/g/ops4j/c/E9p7tPydPmo
* https://github.com/ops4j/org.ops4j.pax.web/issues/1767

Signed-off-by: Wouter Born <github@maindrain.net>
2023-03-08 17:20:08 +01:00
lsiepel
5c0b5711a8
[gpstracker] Add (optional) altitude to location channel (#14396)
* Add (optional) altitude to location channel
* Add null annotations
* Extend toString with altitude

Signed-off-by: lsiepel <leosiepel@gmail.com>
2023-03-07 23:23:30 +01:00
Andrew Fiddian-Green
c9d5784d36
[velux] Update documentation (#14478)
* [velux] update documentation

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2023-03-07 23:17:52 +01:00
Mark Hilbush
dba5550ae6
[sleepiq] Add thing type update instructions (#14460)
* Add thing type update instructions
* Move thingTypeVersion to correct thing type
* Add groupIds to update instructions

Signed-off-by: Mark Hilbush <mark@hilbush.com>
2023-03-07 23:13:18 +01:00
lolodomo
c8cdd2dfa5
[tesla] Stop the WebSocket client when disposing the thing handler (#14483)
Fix #14341

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-03-07 20:50:37 +01:00
Cody Cutrer
22b28bf674
[mqtt.generic] separate command parsing from cached value updating (#12238)
* [mqtt.generic] separate command parsing from cached value updating

fixes #12150

Previously, Value.update would parse the command, _and_ update the cached
value with that command. Which means that when sending a command towards
MQTT (instead of processing an update from MQTT), the cached value was
unintentionally updated. This prevented the REFRESH command from returning
the most recent value received from the device.

Separating the two concerns also makes the test more obvious what they are
testing, and vastly simplified a kludgy workaround that RollershutterValue
was using to be able to process Commands that aren't States.

Signed-off-by: Cody Cutrer <cody@cutrer.us>

* [mqtt.generic] split Value::parseCommand into parseMessage

so that a particular value type subclass can have varying implementations
if it desires

---------

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2023-03-07 19:33:17 +01:00
Holger Friedrich
7bd99df364
[knx] Improve reading of device properties (#14050)
* [knx] Improve reading of device properties
* [knx] DD2 logging only in debug mode

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-03-07 19:31:39 +01:00
Holger Friedrich
7ec7de55e3
[knx] Improve thread safety, null-analysis (#14509)
Carryover from smarthomej/addons#13 and smarthomej/addons#46, smarthomej/addons#60.

Also-by: Jan N. Klug <github@klug.nrw>
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-03-06 22:34:16 +01:00
lsiepel
539f49e4ec
[bluetooth] Null annotations and SAT (#13967)
* null annotation, checkstyle, dependency

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2023-03-06 09:38:57 +01:00
lsiepel
ca09f71a6c
[bluetooth.bluegiga] Refactored and added null annotations (#13974)
* All SAT warnings

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2023-03-05 21:29:10 +01:00
openhab-bot
a3c621fffc
New Crowdin updates (#14541)
* New translations iCloud.properties (German)
* New translations miele.properties (German)
* New translations jruby.properties (German)
* New translations mqtt.properties (German)
* New translations influxdb.properties (German)
* New translations homekit.properties (German)
* New translations amazonechocontrol.properties (German)
* New translations amazonechocontrol.properties (German)
2023-03-05 20:25:51 +01:00