Commit Graph

1236 Commits

Author SHA1 Message Date
Christoph Weitkamp
ea4315adaf
[hue] Changed default color mode for color commands to XY (#10608)
* Changed default color mode for color commands to XY

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>

* Incorporated comments from review

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-05-09 20:08:18 +02:00
Pawel Pieczul
f652e329f7
[loxone] Implementation of EIB Dimmer (#10585)
Signed-off-by: Pawel Pieczul <pieczul@gmail.com>
2021-05-09 19:32:48 +02:00
Stephan Brunner
d674814440
[MongoDB Persistence] Fix error 500 and various improvements (#10584)
* [MongoDB Persistence] Rename connectToDatabase to tryConnectToDatabase.

Currently, the implementation throws a RuntimeException.
This fails horribly in query() and store(), because the exception is never caught and connection reestablishment won't happen.

Signed-off-by: Stephan Brunner <s.brunner@stephan-brunner.net>

* [MongoDB Persistence] Fix JavaDoc

Signed-off-by: Stephan Brunner <s.brunner@stephan-brunner.net>

* [MongoDB Persistence] Fix Bundle name

The correct database name is "MongoDB" without a space.

Signed-off-by: Stephan Brunner <s.brunner@stephan-brunner.net>

* [MongoDB Persistence] Also check for connection validity in isConnected()

When the connection was established successfully once, and the server goes down (e. g. a restart of the DB server), the connection still seems to be OK.
This would throw an exception later on, which is not caught and connection reestablishment won't happen.

Signed-off-by: Stephan Brunner <s.brunner@stephan-brunner.net>

* [MongoDB Persistence] Disconnect from database before reconnecting to database.

Signed-off-by: Stephan Brunner <s.brunner@stephan-brunner.net>

* [MongoDB Persistence] Disconnect from database when connection procedure fails.

When, for example, the creation of the index fails (disk full, ...), the connection is still there, but the collection isn't created with it's appropriate indices.
Thus, disconnect when the procedure fails to ensure no database connection remains valid.

Signed-off-by: Stephan Brunner <s.brunner@stephan-brunner.net>

* [MongoDB Persistence] Fix logic

Create the shared collection with its indices when collectionPerItem is disabled, not enabled.

Signed-off-by: Stephan Brunner <s.brunner@stephan-brunner.net>

* [MongoDB Persistence] Access database via getDatabase()

Preparation for synchronization.

Signed-off-by: Stephan Brunner <s.brunner@stephan-brunner.net>

* [MongoDB Persistence] Remove global mongoCollection variable.

This allows to easify implementing necessary multithreading locks.

Signed-off-by: Stephan Brunner <s.brunner@stephan-brunner.net>

* [MongoDB Persistence] Codestyle improvements.

Signed-off-by: Stephan Brunner <s.brunner@stephan-brunner.net>

* [MongoDB Persistence] Move isConnected-Check into tryConnectToDatabase.

Signed-off-by: Stephan Brunner <s.brunner@stephan-brunner.net>

* [MongoDB Persistence] Synchronize all connection handling methods.

Though the MongoDB driver is thread-safe, we still need to synchronize connection establishment/closing/...

Signed-off-by: Stephan Brunner <s.brunner@stephan-brunner.net>

* [MongoDB Persistence] Remove all unnecessary @NonNullByDefault attributes.

The given attributes should not be NotNullByDefault, because some may be null, too.

Signed-off-by: Stephan Brunner <s.brunner@stephan-brunner.net>

* [MongoDB Persistence] Remove duplicate logging.

Signed-off-by: Stephan Brunner <s.brunner@stephan-brunner.net>

* [MongoDB Persistence] Test the db connection after creating the MongoClient.

The mongo always succeeds in creating the connection.
We have to actually force it to test the connection to try to connect to the server.

Signed-off-by: Stephan Brunner <s.brunner@stephan-brunner.net>

* [MongoDB Persistence] Fix date query.

Issues:
- Second should have been getEndDate, not getBeginDate
- Send a Date object as the other version wasn't serializable.
- EndDate would have overridden beginDate.

Fixes #10574

Signed-off-by: Stephan Brunner <s.brunner@stephan-brunner.net>

* [MongoDB Persistence] Add debug log for MongoDB query sent to the server.

Signed-off-by: Stephan Brunner <s.brunner@stephan-brunner.net>

* [MongoDB Persistence] Reorder index on collections.

The order (Item, Timestamp) makes much more sense and should be better for performance.
All queries are always done with an item, and the dates are optional.
Also, the database server can now execute a range query for the date.

Existing indices are not dropped for backwards compatibility with other systems analyzing the data.

Signed-off-by: Stephan Brunner <s.brunner@stephan-brunner.net>

* [MongoDB Persistence] Add @author JavaDoc as per developer guidelines.

Signed-off-by: Stephan Brunner <s.brunner@stephan-brunner.net>

* [MongoDB Persistence] Improve logging

Signed-off-by: Stephan Brunner <s.brunner@stephan-brunner.net>

* [MongoDB Persistence] Add @NonNullByDefault

This was removed in 1f8e4525 by mistake.

Signed-off-by: Stephan Brunner <s.brunner@stephan-brunner.net>

* [MongoDB Persistence] Do not use isConnected() to test the connection.

The new method throws the real underlying exception instead of a generic one. This allows for detailed logging.

Signed-off-by: Stephan Brunner <s.brunner@stephan-brunner.net>

* [MongoDB Persistence] Remove useless @inheritDoc as per code analysis tool.

Signed-off-by: Stephan Brunner <s.brunner@stephan-brunner.net>
2021-05-09 19:27:19 +02:00
grro
8a21f9b715
[WebThing] If WebThing network connection is crashed, WebThing will not be reconnected. (#10579)
* Unnecessary NonNull annotations removed

Signed-off-by: Gregor Roth <gregor.roth@web.de>
Signed-off-by: gregor roth <gregor.roth@web.de>

* Bugfix  "If network connection is interrupted, WebThing will not be reconnected." Due to the variable webThingURI is unset, re connection fails

Signed-off-by: Gregor Roth <gregor.roth@web.de>
Signed-off-by: gregor roth <gregor.roth@web.de>

* webThingURI will be loaded in a lazy way

Signed-off-by: Gregor Roth <gregor.roth@web.de>
Signed-off-by: gregor roth <gregor.roth@web.de>
2021-05-09 19:18:39 +02:00
Wouter Born
cfea5a2185
Update remaining Paper UI and HABmin references (#10637)
Fixes #8607

Signed-off-by: Wouter Born <github@maindrain.net>
2021-05-06 22:26:05 +02:00
2wyck3d
0b630bed2d
Update README.md (#10639)
Fixed what I believe were typos. Making similar adjustments to my setup allowed the Harmony integration to work for me.
2021-05-06 22:23:53 +02:00
Wouter Born
f907bf37f9
[jsscripting] Fix build and cleanup (#10654)
Related to #8516

Signed-off-by: Wouter Born <github@maindrain.net>
2021-05-06 22:19:59 +02:00
Jonathan Gilbert
9912e1afc2
[jsscripting] ES6+ Support (#8516)
Signed-off-by: Jonathan Gilbert <jpg@trillica.com>
2021-05-06 09:08:47 +02:00
Christoph Weitkamp
a1ebab11c5
[neeo] Fixed event nullness (#10651)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-05-06 07:07:32 +02:00
Thomas Weißschuh
e510244cb6
[linuxinput] fixes to thing properties (#10634)
* Do not discover on ENTRY_MODIFY

ENTRY_MODIFY is triggered on each keypress multiple times, so we should
not trigger on it.

The usecase for ENTRY_MODIFY triggers where detecting permission changes
of the event nodes.
Inotify does have a dedicate event ("ATTRIB") for that but Java
WatchService normalizes this to a ENTRY_MODIFY event
(See LinuxWatchService.java)

After permission changes users now have to trigger a scan manually.

* Use proper representation property

* Show event node in label

This makes it easier to figure out which thing is which device in the
presence of symlinks or multiple identical devices.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2021-05-05 22:22:18 +02:00
lolodomo
4efccacb10
[sonos] Play notification while playing virtual line-in (#10599)
* Play notification while playing virtual line-in

Fix #10569

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2021-05-05 22:16:21 +02:00
Jan Gustafsson
ffa17c76c1
[verisure] Add channel for low battery warning for supported thing types (#10406) (#10580)
- Add channel for low battery warning for supported thing types

Closes #10406

Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
2021-05-05 21:27:53 +02:00
Wouter Born
940e1e53d1
Use activation-api 1.2.1_3 (#10646)
Fixes #10642

Signed-off-by: Wouter Born <github@maindrain.net>
2021-05-05 21:08:09 +02:00
Wouter Born
f5f922eaf4
Fix or suppress SAT CompareObjectsWithEquals findings (#10631)
* Fix or suppress SAT CompareObjectsWithEquals findings

Signed-off-by: Wouter Born <github@maindrain.net>
2021-05-05 21:06:04 +02:00
pravussum
582ef280e5
[io.metrics] Fix MetricsService breaking REST API #10640 (#10644)
* [io.metrics] Fix MetricsService breaking REST API #10640

Signed-off-by: Robert Bach <openhab@mortalsilence.net>
2021-05-04 21:24:01 +02:00
mlommers
9441cfffe8
[openweathermap] Updated string formatting example for UVindex (#10633)
Fixes #10629

Signed-off-by: mlommers <mlommers@hotmail.com>
2021-05-02 23:02:46 +02:00
pravussum
6ac0d4c788
[metrics] Fix io metrics documentation references (#10630)
* Fix broken image & dashboard links in rendered online documentation
* Fix prerequisite version in documentation (do not use milestone version)

Signed-off-by: Robert Bach <openhab@mortalsilence.net>
2021-05-02 22:07:25 +02:00
Kai Kreuzer
f1cbbbe562
Fixed location of additional documentation folder so that it is picked up for the website (#10638)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-05-02 22:00:03 +02:00
Bernd Weymann
e69a65d8e7
[BMW ConnectedDrive] initial contribution (#8576)
Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
Signed-off-by: Norbert Truchsess <norbert.truchsess@t-online.de>
2021-05-01 18:14:54 +02:00
Marcel
c7218c6d29
[miio] update & improve readability value mappings for readme (#10610)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-05-01 15:35:07 +02:00
ardanedh
4dbb449a14
[digitalSTROM] Shade angle support for GR things (#10444)
Signed-off-by: Rouven Schürch <r.schuerch@gmx.ch>
2021-05-01 14:20:46 +02:00
Christoph Weitkamp
79d3ff1ec1
Only upload properties files from i18n folder to Croedin (#10626)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-05-01 10:58:35 +02:00
David
2bb7c62dec
[enocean] Fix discovery of D2-50 devices (#10577)
This change accepts a new message type which is sent by some air ventilation devices durin teach in. This is required for the search feature to detect these devices correctly.

Signed-off-by: David Schumann <david@dev-core.org>
2021-05-01 10:24:23 +02:00
Wouter Born
e6d8dfb7e1
Reduce dependency on commons-io and commons-codec (#10614)
Signed-off-by: Wouter Born <github@maindrain.net>
2021-04-30 16:53:44 +02:00
Stewart Cossey
02b4943a11
[hccrubbishcollection] HCC Rubbish Collection Binding - Initial Contribution (#9975)
Signed-off-by: Stewart Cossey <stewart.cossey@gmail.com>
2021-04-30 16:23:07 +02:00
Sönke Küper
710aa760d0
[ahawastecollection] Initial Contribution (#10387)
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
2021-04-30 15:59:05 +02:00
chingon007
7fb7c65306
[haassohnpelletstove] Initial contribution (#10595)
Signed-off-by: Christian Feininger <tron81@gmx.de>
2021-04-29 20:59:37 +02:00
Wouter Born
e74cb82be7
Fix Crowdin URL in issue template configuration (#10616)
The URL is: https://crowdin.com/project/openhab-addons

Signed-off-by: Wouter Born <github@maindrain.net>
2021-04-29 18:57:45 +02:00
aurelio1
315964a55a
[airq] Air-Q binding Initial contribution (#10048)
Signed-off-by: Aurelio Caliaro <aurelio@caliaro.net>
2021-04-29 18:23:35 +02:00
Christoph Weitkamp
541a71d1a1
[velux] Removed license header from properties files (#10613)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-04-29 15:12:34 +02:00
Thomas Lauterbach
44964df4a5
[espmilighthub] Describe group 0 handling (#10473)
Signed-off-by: Thomas Lauterbach <lauterbachthomas@gmail.com>
Co-authored-by: Matthew Skinner <matt@pcmus.com>
2021-04-29 09:55:04 +02:00
Marcel
c157e395dc
[miio] add support for yeelink.light.lamp15 Yeelight Screen Light Bar (#10603)
closes #10589

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-04-28 12:26:29 +02:00
Andrew Fiddian-Green
8ac7eeb999
[neohub] thermostats now support setpoints in steps of 0.5 celsius (#10598)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2021-04-28 12:25:24 +02:00
Wouter Born
aaeddc8119
Update Netty dependencies to 4.1.63.Final (#10606)
Signed-off-by: Wouter Born <github@maindrain.net>
2021-04-28 12:22:11 +02:00
Dan Cunningham
9810995d09
[openhabcloud] Accept all Jetty supported http method types (#10600)
* Accept all Jetty supported http method types
This fixes a number of open issues due to the fact that we were only accepting a limited number of http method types.  The effect of this was some functionality like DELETE or HEAD requests would just not work when using the cloud service, which madee our UI look broken in different ways,  also it poluted the users log with a lot of messages.

Fixes https://github.com/openhab/openhab-core/issues/2312
Fixes https://github.com/openhab/openhab-cloud/issues/328

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2021-04-28 09:12:01 +02:00
Marcel
eda5346a50
[miio] add support several new roborock vacuums (#10602)
new vacuums:
  "roborock.vacuum.a14": "Roborock T7S",
  "roborock.vacuum.a15": "Roborock S7",
  "roborock.vacuum.a19": "Roborock S4 Max",
  "roborock.vacuum.a23": "Roborock T7S Plus",

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-04-28 09:04:27 +02:00
lolodomo
4ead304da0
[sonos] Suppress the channel publicaddress from models without any line input (#10597)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2021-04-28 09:01:13 +02:00
Marcel
84bd5ad5d8
[miio] add support Mi Smart LED Bulb Essential (yeelink.light.color5) (#10531)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-04-27 22:32:39 +02:00
Marcel
da916ca4a5
[miio] update device names list (#10605)
Refresh of the device name list from Xiaomi

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-04-27 22:28:55 +02:00
Marcel
52b05085aa
[miio] handle invalid rssi response (#10601)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-04-27 22:27:24 +02:00
Sebastian Held
7d13795380
[ecotouch] add Waterkotte EcoTouch binding (ported from OH1) (#10010)
Signed-off-by: Sebastian Held <sebastian.held@gmx.de>
2021-04-27 22:23:32 +02:00
quidam
9a0ad98f44
[avmfritz] Corrected typo in German translation and added documentation for Becker BoxCTRL (#10593)
- Corrected typo in German translation and added documentation for Becker BoxCTRL

Signed-off-by: Ulrich Mertin <mail@ulrich-mertin.de>
2021-04-27 21:36:46 +02:00
lolodomo
61e8b09bf4
[sonos] Add support for Sonos Roam (#10596)
Fix #10588

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2021-04-27 19:15:09 +02:00
Marcel
61a3705f0f
[miio] Support of Smartmi Air Purifier zhimi.airpurifier.za1 (#10534)
Closes #10526

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-04-27 16:45:10 +02:00
antroids
2110e13d1b
[jinja] Empty string result when binding is missing (#10581)
Signed-off-by: Anton Kharuzhy <antroids@gmail.com>
2021-04-27 14:20:09 +02:00
mabosch74
5d63fb1689
[miio] added functions for Vacuums P2009/2036/2157 (#10269)
* Fixed typo for starting sequence
* Added support for "find me" & "test sound" function
* Added clear names for faults

Signed-off-by: Marcel Bossert-Schwab <mbossertschwab@gmx.de>
2021-04-26 12:13:30 +02:00
Jamie Townsend
a611393285
[luxtronikheatpump] Add Support for HeatpumpType 81 (#10559)
Signed-off-by: Jamie Townsend <jamie_townsend@hotmail.com>
2021-04-26 10:33:01 +02:00
antroids
c0f70749d9
[Jinja] Update JinJava version and embed dependencies #10496 (#10578)
Signed-off-by: Anton Kharuzhy <antroids@gmail.com>
2021-04-25 22:03:12 +02:00
Wouter Born
8397f938b3
Resolve runbundles for Aries JAX-RS Whiteboard upgrade (#10575)
Signed-off-by: Wouter Born <github@maindrain.net>
2021-04-25 15:54:43 +02:00
Christoph Weitkamp
6cfcfaad48
Added Crowdin badge (#10576)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-04-25 11:50:48 +02:00