Commit Graph

1333 Commits

Author SHA1 Message Date
Christoph Weitkamp
3c494677b7
Improve description of REST API for deleting data from persistence (#2870)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-03-25 18:43:01 +01:00
Wouter Born
b5e0ccfa6a
Add missing default translations for add-ons/marketplace configuration options (#2868)
This makes it possible to use Crowdin for translating the new configuration options introduced in #2811.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-23 17:45:23 +01:00
openhab-bot
7e13f7f4bd
New Crowdin updates (#2863)
* New translations addons.properties (Chinese Simplified)
* New translations addons.properties (Czech)
* New translations addons.properties (Dutch)
* New translations addons.properties (Finnish)
* New translations addons.properties (French)
* New translations addons.properties (German)
* New translations addons.properties (Greek)
* New translations addons.properties (Hebrew)
* New translations addons.properties (Hungarian)
* New translations addons.properties (Italian)
* New translations addons.properties (Polish)
* New translations addons.properties (Portuguese, Brazilian)
* New translations addons.properties (Russian)
* New translations addons.properties (Spanish)
* New translations addons.properties (Ukrainian)
* New translations i18n.properties (Danish)
* New translations magic.properties (Dutch)
* New translations marketplace.properties (Dutch)
* New translations marketplace.properties (Hebrew)
* New translations marketplace.properties (Hungarian)
* New translations marketplace.properties (Italian)
* New translations network.properties (Danish)
* New translations SystemThingStatusInfos.properties (Dutch)
* New translations units.properties (Danish)
* New translations validation.properties (Danish)
* New translations validation.properties (Dutch)
* New translations voice.properties (Dutch)
2022-03-22 21:27:45 +01:00
J-N-K
41abd57161
Increase allowed deviation in PeriodicSchedulerImplTest (#2867)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-22 20:46:50 +01:00
J-N-K
5746a1ff2c
Fix enabling/disabling CommunityMarketplace (#2864)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-21 22:02:34 +01:00
Wouter Born
7fbd9768a7
Cleanup BundleVersion (#2861)
Fixes a few SAT findings in the BundleVersion class.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-21 08:19:27 +01:00
J-N-K
4577562f08
[addonservices] Add version filtering (#2811)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-20 18:43:07 +01:00
J-N-K
79e070c7ac
Improve ScriptFileWatcherTest (#2857)
Most of the tests add a timeout of 1s to account for small delays in async processing in the AbstractWatchService. This adds some more timeouts for tests which were missing those.

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-19 21:08:00 +01:00
J-N-K
3d17049d52
Improve PeridodicSchedulerImplTest (#2856)
* Improve PeridodicSchedulerImplTest

The old implementation truncated timestamps to 1/10 s. Under some circumstances this could result in a failed tests:

offset = 201 -> truncatedOffset = 2
200ms delay expected, adjustment calculation results in an actual delay of 198ms
time = 399 -> truncatedTime = 3

expected: truncatedOffset + expected => 2 + 2 = 4
actual: truncatedTime = 3

The new implementation allows for an error of +/- 10ms which is far more than needed.

* increase tolerance
* fix consecutive executions build up errors

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-19 21:07:08 +01:00
J-N-K
91614c2b12
Fix ServiceException when add-on handlers are not fully initialized (#2830)
* Fix ServiceException when add-on handlers are not fully initialized

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-18 07:47:27 +01:00
Wouter Born
9e33db6702
Remove MQTT system broker leftovers (#2842)
The MqttService was used to keep track of the system MQTT brokers.
Since there are none it can be removed as well as the observer, tests, configuration and translations.

Fixes #2841

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-17 19:35:35 +01:00
Wouter Born
7ae37f810b
Fix typo in ScriptImpl exception message (#2847)
Fixes #2846

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-17 11:50:20 +01:00
J-N-K
2686102f20
[thing] Show config validation messages in thing status (#2829)
* Show config validation messages in thing status

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-17 11:49:08 +01:00
J-N-K
dd5df810c8
Fix config validation for decimal parameters with limited options (#2844)
* Fix config validation for decimal parameters with limited options

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-17 10:02:23 +01:00
J-N-K
0dcd57e7d8
Fix KAR installed check (#2845)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-16 09:24:43 +01:00
J-N-K
437b31dbe9
Fix things in REMOVING state initialize instead of getting removed (#2828)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-14 15:49:26 +01:00
Wouter Born
b62b2e1c90
Update bnd.bnd for CertificateGenerator package change (#2840)
There is also a bnd.bnd file referencing the CertificateGenerator so it also needs to be updated for the change in #2838

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-13 16:44:44 +01:00
J-N-K
ea68ae0163
[rest] Allow binary MediaType for RawType item states (#2825)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-13 16:27:26 +01:00
J-N-K
794e925253
[discovery] keep format of thing properties (#2740)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-13 15:54:05 +01:00
J-N-K
0c73547046
Fix exception during startup when kar is not yet loaded (#2753)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-13 14:33:23 +01:00
Wouter Born
ba4e73ccf4
Run org.openhab.core tests in forks to reduce build time (#2837)
This saves about 1 minute when building this bundle.
Most bundles depend on org.openhab.core so cores would stay idle until this bundle is build in a parallel builds.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-13 12:11:11 +01:00
J-N-K
c6fe634b0a
[test] Fix PersistenceExtensionTest (#2835)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-13 11:52:19 +01:00
J-N-K
73b76fa01d
[profile] Add accepted types to ProfileContext (#2814)
* Add accepted types to ProfileContext

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-13 11:21:02 +01:00
Wouter Born
9eef6a3b6d
Fix CertificateGenerator package (#2838)
The class is in a package that does not match the bundle name.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-13 10:42:06 +01:00
Wouter Born
92a6c1c283
Fix trigger channels not found (#2833)
Trigger channel types failed to load because the item type became required with the changes in #2775.
Also adds a unit test for the ThingDescriptionReader to prevent future regressions.

Fixes #2831

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-12 21:49:25 +01:00
Wouter Born
e6ddeccd78
Add more null annotations to XML processing classes (#2775)
This adds null annotations to many XML processing classes and a few others.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-10 19:57:31 +01:00
J-N-K
c7aec15290
Fix missing STARTLEVEL_COMPLETE ReadyMarker (#2755)
Since no requirements are defined for `STARTLEVEL_COMPLETE´ no `ReadyMarker` was added to the map of `ReadyMarker`s.

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-09 22:05:30 +01:00
openhab-bot
b2d3cdba1e
New Crowdin updates (#2816)
* New translations validation.properties (Hungarian)

* New translations voice.properties (Hungarian)

* New translations SystemThingStatusInfos.properties (Hungarian)
2022-03-09 09:07:36 +01:00
lolodomo
23d43604ca
[voice] New optional arguments for console command voice startdialog (#2823)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-03-09 09:07:06 +01:00
lolodomo
dab0a59b87
[standardinterpreter] Update french syntax (#2827)
Use "imperatif" grammatical mode for commands

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-03-09 09:03:39 +01:00
GiviMAD
f0664b3a0c
[standardinterpreter] spanish: fix text tokenization and on/off rule (#2826)
Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>
2022-03-09 09:02:06 +01:00
J-N-K
11c0ed53d0
Fix PersistentInbox tries to updated unmanaged things (#2824)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-09 08:59:33 +01:00
lolodomo
379287690e
[voice] New console commands to list the voice services (#2822)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-03-07 13:15:46 +01:00
Wouter Born
44f9baff18
Upgrade Xtext/Xtend to 2.26.0, LSP4J to 0.12.0 (#2786)
For release notes, see:

https://www.eclipse.org/Xtext/releasenotes.html#/releasenotes/2022/02/28/version-2-26-0

This release adds initial support for Java 17.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-05 11:28:56 +01:00
dalgwen
7f2edc6f93
[Voice] fix checklocale with RuleHumanLanguageInterpreter (#2813)
Check for  emptyness and not for null. No service returns null.
But RuleHumanLanguageInterpreter returns an empty set to tell it has no locale preference.

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
2022-03-03 15:55:48 +01:00
GiviMAD
b4a5cd331a
[Voice] Fix "best match" format resolution and language check for services involved in dialog (#2809)
Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>
2022-02-28 09:10:41 +01:00
Wouter Born
738149d44b
Remove unused local variable (#2807)
Signed-off-by: Wouter Born <github@maindrain.net>
2022-02-27 11:10:41 +01:00
J-N-K
f79d85da87
Re-introduce removed DecimalType ctors to maintain compatibility (#2803)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-02-26 13:30:56 +01:00
J-N-K
c267e8f876
Fix missing feature (#2804)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-02-26 12:51:56 +01:00
J-N-K
0ba4de3594
Fix deadlock when removing ScriptEngine (#2785)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-02-26 10:29:38 +01:00
J-N-K
013e317b6b
Log the remote address of failed login attempts (#2800)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-02-26 10:00:00 +01:00
GiviMAD
b57a8c3beb
[Voice] restore getBestMatch method (#2802)
Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>
2022-02-26 09:32:06 +01:00
J-N-K
7c3f49ab42
Fix proxy can't handle requests with forwarded host list (#2799)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-02-25 18:20:50 +01:00
Wouter Born
9ff7ad43b9
Add more null annotations to automation bundles (#2763)
* Add more null annotations to automation bundles. This adds null annotations to many classes in the automation bundles and a few dimension classes.
* Further cleanup AutomationCommandExport
* Remove null from RuleStatusInfo JavaDocs. This should be clear from how the class is now annotated.
* Validate deserialized RuleStatusInfo
* Allow TriggerHandlerCallback to be triggered without providing a context

Signed-off-by: Wouter Born <github@maindrain.net>
2022-02-25 16:40:02 +01:00
J-N-K
44f7b00c45
[rest] Add ability to change loggers and expose package names of addons (#2772)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-02-25 16:34:37 +01:00
kippAndMost
9e721dca36
[openhab.core] DecimalType-ctor with Number argument (#2596)
The expectation is, that when a `DecimalType` was constructed with a
`float` value, the precision of its `doubleValue()`, `floatValue()`,
`toBigDecimal()` and `toString()` is preserved. But there are `float`
values like `4.2f` or `37.1f` that cannot directly converted to `double`
without precision loss.

This commit replaces all the numerical constructors of `DecimalType`
with a single constructor with a `Number` argument, so that all `float`
values can be used without precision loss.

NOTE: There is some special handling needed for `QuantityType` and
`HSBType` because these types has a special none convential `toString`
implementation.

Signed-off-by: Ringo Frischmann <ringo.frischmann@kiwigrid.com>
2022-02-24 21:27:45 +01:00
openhab-bot
03d8489ddd
New Crowdin updates (#2783)
* New translations validation.properties (Czech)

* New translations voice.properties (Czech)

* New translations SystemThingStatusInfos.properties (Czech)
2022-02-24 21:22:02 +01:00
J-N-K
2565b5cbe4
[expiry] extend ExpiryManager to allow ignoring state updates (#2739)
* [expiry] extend ExpiryManager to allow ignoring state updates

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-02-24 21:21:23 +01:00
J-N-K
e420cf1647
Make ConfigDescription for thing and channels available to ThingHandler (#2773)
* Make ConfigDescription for thing and channels available to ThingHandler

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-02-24 21:18:55 +01:00
GiviMAD
534be1d3ad
[Voice] get audio format refactor (#2795)
Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>
2022-02-23 22:17:00 +01:00
lolodomo
c0b5f09c2b
[rule] New actions to start/stop dialog processing (#2791)
* [rule] New actions to start/stop dialog processing

Related to #2688

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-02-23 22:15:30 +01:00
J-N-K
192e4a2347
Add a profile for linking trigger channels to String items (#2769)
* Add a profile for linking trigger channels to String items

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-02-23 21:17:11 +01:00
James Melville
e94de3f860
Rename Thing status variables to be more explicit (#2796)
Signed-off-by: James Melville <jamesmelville@gmail.com>
2022-02-23 21:09:46 +01:00
lolodomo
473198f964
[audio] Add missing method getSource with sourceId as parameter (#2792)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-02-20 20:45:12 +01:00
Wouter Born
2e0b242099
Fix rules stay uninitialized when using Java 17 (#2787)
On Java 17 there is no Nashorn scripting engine so it takes a bit longer before ScriptEngines are available.
Rules would stay uninitialized forever because the ScriptModuleTypeProvider did not notify its listeners whenever script.ScriptAction, script.ScriptCondition became available.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-02-20 20:42:32 +01:00
Christoph Weitkamp
355c1345ea
[rest] Improve metadata query parameter description (#2790)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-02-20 17:48:01 +01:00
lolodomo
79ec0396b3
[voice] Check that the provided locale is supported by KS/STT/HLI services (#2789)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-02-20 15:47:28 +01:00
GiviMAD
417098e1ad
[DialogProcessor] fix race condition (#2761)
Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>
2022-02-20 14:35:41 +01:00
Christoph Weitkamp
7997e2636a
Prevent errors in log when client closes the HTTP connection (#2781)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-02-20 11:18:32 +01:00
GiviMAD
0e0adcbb8f
[DialogProcessor] update say method nullability (#2780)
Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>
2022-02-19 14:01:41 +01:00
Wouter Born
f411561b70
Flush old JsonStorage to file before recreating a new one (#2778)
Fixes #2774

Signed-off-by: Wouter Born <github@maindrain.net>
2022-02-17 21:41:41 +01:00
J-N-K
dd537c21cb
Fix dispose is called on handlers for disabled things (#2762)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-02-17 21:36:03 +01:00
Wouter Born
92917946d4
Add even more null annotations (#2752)
This PR adds even more missing null annotations which did not fit in #2742 as it grew too big.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-02-17 21:30:51 +01:00
Christoph Weitkamp
9bf181bf0a
Fixed config validation message for parameter options (#2777)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-02-17 20:33:37 +01:00
J-N-K
69069270a9
Fix context being re-used for next execution (#2760)
Trigger information is inserted in the execution context. This information is changed to the new information each time the context is updated with the same keys. If the context of the next execution does not contain values for each key, the old key is re-used, leading e.g. to wrong event information in the context.

The solution is to re-set the individual context after each execution.

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-02-17 20:32:58 +01:00
Christoph Weitkamp
44da7a4e0e
Avoid URISyntaxException in tests (#2770)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-02-15 17:33:59 +01:00
Wouter Born
69c63703c3
Stop catching Throwables in DefaultMetricsRegistration (#2767)
Looks like this workaround introduced in #2480 is unnecessary nowadays because #2484 addressed the root cause.
This fixes the AvoidCatchingThrowable SAT findings.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-02-15 16:38:10 +01:00
Wouter Born
fb6ef20cd9
Move Java only tests from org.openhab.core.tests to org.openhab.core (#2768)
These tests only require Java and not OSGi.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-02-15 16:34:14 +01:00
J-N-K
8f5d703ceb
Improve log message for invalid configuration updates by handler (#2766)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-02-15 12:31:18 +01:00
Wouter Born
3d7be0ffa7
Avoid throwing raw exception types (#2747)
* Avoid throwing raw exception types

This fixes all 36 AvoidThrowingRawExceptionTypes SAT findings.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-02-14 16:14:25 +01:00
Wouter Born
ad936cd83f
Add more null annotations (#2742)
* Add more null annotations
* Fix mock name

Adds null annotations to most of the tests as well as a few other classes.
Also fixes a few other SAT findings.
Fixes ~300 SAT findings in total.


Signed-off-by: Wouter Born <github@maindrain.net>
2022-02-14 11:33:50 +01:00
lolodomo
999dab5fb2
[voice] New REST API to start/stop dialog processing (#2731)
Related to #2688

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-02-13 20:44:17 +01:00
James Melville
805f223fa9
Add triggeringThing name to DSL rules (#2756)
* Add triggeringThing name to DSL rules
* Include previous and new statuses

Signed-off-by: James Melville <jamesmelville@gmail.com>
2022-02-13 10:34:08 +01:00
James Melville
b594d0a8b7
Add new Imperial Pressure unit psi (#2758)
Signed-off-by: James Melville <jamesmelville@gmail.com>
2022-02-13 10:02:37 +01:00
James Melville
92679aa6fd
Add bearingTo method for PointType (#2757)
Signed-off-by: James Melville <jamesmelville@gmail.com>
2022-02-13 10:01:21 +01:00
J-N-K
9a9217eab8
Expose three classes used as bindings in JSR-223 rules as interfaces (#2723)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-02-13 09:57:22 +01:00
J-N-K
c0b033b95c
Fix WatchQueueReader cancelling jobs too early (#2745)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-02-12 10:10:23 +01:00
J-N-K
719f66835e
[rest] show start level in /systeminfo (#2749)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-02-12 10:08:36 +01:00
openhab-bot
cc11e0ccd6
New Crowdin updates (#2743)
* New translations validation.properties (German)

* New translations validation.properties (Finnish)

* New translations validation.properties (Italian)

* New translations validation.properties (Hebrew)

* New translations SystemProfiles.properties (French)

* New translations validation.properties (French)
2022-02-12 09:56:54 +01:00
Wouter Born
b36f292dcd
Prevent JsonStorage backup corruption when disk is full (#2746)
Fixes #2267

Signed-off-by: Wouter Born <github@maindrain.net>
2022-02-10 19:27:56 +01:00
Christoph Weitkamp
9cda2c8de8
[config] Add config validator for parameter options (#2691)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-02-09 09:00:36 +01:00
GiviMAD
9b438d7e12
[javasound/dialogprocessor] Not share mic ref on javasound + close audio streams and use RecognitionStartEvent on dialogprocessor (#2732)
* [javasound] not share targetdataline

Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>
2022-02-08 19:27:43 +01:00
GiviMAD
75252cf4aa
[voice] remove unused stt events (#2741)
Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>
2022-02-08 16:36:12 +01:00
J-N-K
d6f63e7500
[thing] Fix removal of thing properties (single and bulk) (#2735)
* fix removal of thing properties (single and bulk)

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-02-07 19:32:22 +01:00
J-N-K
ea6f21f74d
allow multiple listeners for same directory in WatchService (#2724)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-02-07 10:14:41 +01:00
J-N-K
e1962843d5
fix recursive membership throws StackOverflowException on REST API call (#2736)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-02-06 21:19:36 +01:00
GiviMAD
d48bdf4260
[StandardInterpreter] Add Spanish language (#2728)
Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>
2022-02-06 21:17:54 +01:00
Christoph Weitkamp
87ecfade74
[config] Add nullness annotations to config validation (#2690)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-02-06 20:30:20 +01:00
openhab-bot
5a4b6fedce
New Crowdin updates (#2725)
* New translations validation.properties (German)

* New translations validation.properties (Italian)

* New translations voice.properties (French)

* New translations hli.properties (French)

* New translations validation.properties (French)

* New translations validation.properties (Italian)

* New translations SystemThingStatusInfos.properties (French)

* New translations validation.properties (Hebrew)

* New translations validation.properties (Finnish)
2022-02-06 12:47:43 +01:00
J-N-K
c4e1b14d00
[addonservices] allow uninstalling of removed addons and fix other issues (#2607)
* [addonservices] allow uninstalling of removed addons

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-02-06 09:48:55 +01:00
lolodomo
3e94dd6e30
[voice] Minor changes requested during review of PR #2693 (#2729)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-02-03 20:25:32 +01:00
J-N-K
8c16cb6e93
[config] Enable missing validations (#2720)
* enable validation for multipleLimit
* remove unused validation messages

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-02-01 16:41:56 +01:00
openhab-bot
dec2d7c296
New Crowdin updates (#2717)
* New translations validation.properties (Italian)

* New translations validation.properties (Finnish)

* New translations validation.properties (German)

* New translations validation.properties (Hebrew)

* New translations voice.properties (Italian)

* New translations validation.properties (Luxembourgish)

* New translations voice.properties (German)

* New translations voice.properties (Finnish)

* New translations voice.properties (Hebrew)
2022-02-01 10:14:46 +01:00
J-N-K
61f5e7f57d
[config] Enable config validation for updates by handler (#2712)
* Enable config validation for updates by handler

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-02-01 10:10:37 +01:00
Christoph Weitkamp
9520bfdfe7
Do not throw CertificateParsingException all the time, fixed pinned certificate creation (#2695)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-02-01 09:21:26 +01:00
lolodomo
8f0dd94343
[voice] Update dialog processing (#2693)
Related to #2688

Updated methods startDialog
New method stopDialog
Null annotations added to the class DialogProcessor

Allow translation of sentences "said" by the dialog processor in case of error

2 console commands added to start and stop a dialog

Enhanced integration tests

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-01-30 18:27:51 +01:00
Christoph Weitkamp
6edc413640
Fixed NPE and exceptiion while parsing config value (#2718)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-01-30 13:20:11 +01:00
J-N-K
6193aa966e
[config] improve type validation message (#2713)
* [config] improve type validation message

The message did not contain the detected wrong type which makes it harder to define what the actual error is.

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-01-30 09:42:31 +01:00
Jonathan Gilbert
290ad08107
[automation] ScriptFileWatcher Initial import now only processes dir (#2708)
Signed-off-by: Jonathan Gilbert <jpg@trillica.com>
2022-01-29 23:53:56 +01:00
lolodomo
a4c39d5ba0
[voice] Fix wrong check for defaultSTT (#2714)
Fix #2696

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-01-29 23:43:49 +01:00
Christoph Weitkamp
16bc9321f1
Allow String values for other Types (#2699)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-01-29 14:01:16 +01:00
J-N-K
fd16210ee6
[config] Added log message with validation errors for things (#2711)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-01-29 10:57:31 +01:00
openhab-bot
265c0be444
New Crowdin updates (#2701)
* New translations SystemThingStatusInfos.properties (Italian)

* New translations SystemThingStatusInfos.properties (German)

* New translations SystemThingStatusInfos.properties (Hebrew)

* New translations SystemThingStatusInfos.properties (Finnish)

* New translations marketplace.properties (Czech)

* New translations voice.properties (French)

* New translations sitemap.properties (French)
2022-01-27 14:20:27 +01:00
Christoph Weitkamp
b849dd144a
Fixed wrong openAPI schema for /inbox (#2709)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-01-26 12:01:26 +01:00
J-N-K
5a067ec55b
[config] make configuration value parser available for export (#2703)
* Refactor and expose `ConfigMapper` to `ConfigParser`

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-01-26 08:27:25 +01:00
Jonathan Gilbert
59bc10a2af
Script Engines now removed from manager when closed (#2706)
Signed-off-by: Jonathan Gilbert <jpg@trillica.com>
2022-01-25 09:12:02 +01:00
J-N-K
1fff165cb0
[thing] Enable config validation for thing creation and update (#2682)
* Enable config validation for thing creation and update

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-01-20 10:20:16 +01:00
Cody Cutrer
57ed7ef5a7
Include full exception when WatchQueueReader thread dies (#2538)
See #2537

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2022-01-18 13:46:36 +01:00
Flole998
b6bac8d3d1
Implement new "System reached start level XX"-Trigger for DSL-rules (#2658)
Signed-off-by: Flole <flole@flole.de>
2022-01-17 23:28:57 +01:00
Christoph Weitkamp
0dbc2b2ef4
[rest] Do not reuse FilterCriteria instance for more than one query (#2668)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-01-15 17:07:25 +01:00
Christoph Weitkamp
0709933061
[automation] Log warning for equals condition for DecimalTypes and QuantityTypes (#2653)
* Allow equals comparison for DecimalTypes and QuantityTypes

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-01-15 15:39:51 +01:00
J-N-K
dff5fde979
Fix broken config validation for required parameters (#2683)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-01-15 14:25:04 +01:00
Jonathan Gilbert
22c28595ab
Script engines now unloaded if replaced, and closed if AutoCloseable (#2681)
Signed-off-by: Jonathan Gilbert <jpg@trillica.com>
2022-01-15 13:15:46 +01:00
Christoph Weitkamp
d693302190
[config] Added nullness annotations and suppress 'ConfigStatusInfoEvent' if list of 'ConfigStatusMessage's is empty (#2680)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-01-14 11:47:52 +01:00
Wouter Born
029151d787
Update org.openhab.core.io.http.auth .classpath (#2679)
This prevents local changes whenever you update this Maven project in Eclipse.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-01-11 07:46:00 +01:00
Kai Kreuzer
a8126bc886
Fix NPE of AddonServices during startup (#2678)
* Fix NPE of JSONAddonService during startup
* Add same fix for CommunityMarketplaceAddonService

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2022-01-10 11:05:44 +01:00
dalgwen
fa029b265c
[audio] Remove 'clac' noise when playing wave (javasound) (#2670)
* [audio] Remove 'clac' noise when playing wav (javasound)

A 'clac' can be heard at the beginning of a wav file when playing on the javasound sink.

Close #2669
Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
2022-01-10 08:56:38 +01:00
Wouter Born
0a778df0ad
Update groovy license headers to 2022 (#2675)
* Update groovy license headers to 2022
* Reuse existing header file and use Groovy 3.0.9

Updates the year in a few groovy file headers that were missed in #2671.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-01-08 17:03:39 +01:00
Jonathan Gilbert
89aae83b64
[automation] ScriptFileWatcher subdirectory loading upon startup no longer hardcoded to true (#2664)
Signed-off-by: Jonathan Gilbert <jpg@trillica.com>
2022-01-08 10:19:38 +01:00
openhab-bot
dbb1382f65
New Crowdin updates (#2667)
* New translations marketplace.properties (Finnish)

* New translations addons.properties (German)

* New translations marketplace.properties (German)
2022-01-08 10:18:15 +01:00
Christoph Weitkamp
cabb3f7315
Update license headers to 2022 (#2671)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-01-07 13:16:42 +01:00
dalgwen
c240c6f4f8
[audio] Fix hardcoded value for WAV file (#2650)
* Fix hardcoded value for WAV file (#2649)

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
2022-01-06 14:06:06 +01:00
Christoph Weitkamp
824c0bb77c
Align parsing of startlevel config (#2661)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-01-04 21:03:16 +01:00
Christoph Weitkamp
378aacbbdd
Do not log a warning if QuantityState has unit AbstractUnit.ONE (#2662)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-01-04 21:01:17 +01:00
Yannick Schaus
96e8d3648b
Force English locale to parse marketplace UI components timestamp (#2663)
Related to https://community.openhab.org/t/error-installing-widgets-from-community-in-user-interfaces/128729/16

When the locale is not English the timestamp might fail to be deserialized into a Date:

```
2022-01-02 21:01:42.260 [ERROR] [munity.CommunityUIWidgetAddonHandler] - Unable to parse YAML: Cannot deserialize value of type `java.util.Date` from String "Oct 2, 2021, 9:24:59 PM": not a valid representation (error: Failed to parse Date value 'Oct 2, 2021, 9:24:59 PM': Unparseable date: "Oct 2, 2021, 9:24:59 PM")

 at [Source: (StringReader); line: 36, column: 12] (through reference chain: org.openhab.core.ui.components.RootUIComponent["timestamp"])

2022-01-02 21:01:42.261 [ERROR] [munity.CommunityUIWidgetAddonHandler] - Widget from marketplace is invalid: Unable to parse YAML
```

Signed-off-by: Yannick Schaus <github@schaus.net>
2022-01-04 12:25:15 +01:00
Wouter Born
0bdaeef789
[persistence] Use ZonedDateTime instead of Date in ModifiablePersistenceService interface (#2660)
If PRs are created to implement this interface, it would be better if we can prevent the propagation of old APIs like Date.

Related to:

* https://github.com/openhab/openhab-addons/pull/11922
* https://github.com/openhab/openhab-addons/pull/11923
* https://github.com/openhab/openhab-core/issues/2618#issuecomment-1003544762

Signed-off-by: Wouter Born <github@maindrain.net>
2022-01-02 20:45:10 +01:00
Christoph Weitkamp
33a553fa4d
[core] Added nullness annotations and suppress warning for 'AuthenticationException' (#2659)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-01-02 11:33:16 +01:00
J-N-K
d420bee30e
[addonservices] allow offline mode (#2633)
* allow offline mode

Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2022-01-01 11:43:26 +01:00
Benjamin Lafois
842eaa5981
allows the use of an HTTP proxy (#2641)
Signed-off-by: LAFOIS Benjamin <mrs.blafois@cma-cgm.com>
2021-12-30 23:18:29 +01:00
Christoph Weitkamp
adde43c311
Prevent errors in log when client closes the HTTP connection (#2655)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-12-30 11:37:00 +01:00
Christoph Weitkamp
33f6651972
[mdns] Cancel removal task on manual scan (#2647)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-12-30 10:18:13 +01:00
Christoph Weitkamp
646640094a
Prevent errors in log when there is a connection timeout (#2654)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-12-30 10:10:38 +01:00
Kai Kreuzer
e61db5a11a
[rest] Make SSEResource robust against missing parameters (#2652)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-12-29 16:35:51 +01:00
Christoph Weitkamp
9609ffb9b6
[tls] Add a PEMTrustManager to deal with different PEM files (e.g. self-signed or global CA certificates) (#2622)
* Added a PEMTrustManager to deal with different PEM files (e.g.
self-signed or global CA certificates)

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-12-29 09:45:40 +01:00
openhab-bot
670c64b5c4
New Crowdin updates (#2639)
* New translations units.properties (Romanian)

* New translations ephemeris.properties (Romanian)
2021-12-27 07:20:13 +01:00
Kai Kreuzer
e3b07782b4
pom reference update from http to https (#2644)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-12-23 22:55:20 +01:00
Christoph Weitkamp
8074ea7dfe
Replaced Runnable by lambda expression (#2642)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-12-23 09:44:14 +01:00
Christoph Weitkamp
5b7227c35e
Use constructor injection (#2643)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-12-23 09:39:44 +01:00
Andrew Fiddian-Green
459dac9702
[discovery.mdns] Devices may apply a grace period for removal from the Inbox (#2635)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2021-12-22 20:24:48 +01:00
Jacob Laursen
68ff739a50
Fix parameter description. (#2638)
Signed-off-by: Jacob Laursen <jacob@vindvejr.dk>
2021-12-22 07:14:00 +01:00
Christoph Weitkamp
9963d02048
Added nullness annotations to io.net.http (#2621)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-12-21 22:29:36 +01:00
Christoph Weitkamp
2d79990d53
Use static BigDecimal values (#2620)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-12-21 22:13:22 +01:00
Jacob Laursen
e72de44351
Fix wrong argument name in javadoc (#2637)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2021-12-21 22:12:27 +01:00
Kai Kreuzer
1ebf7395d9 Apply spotless
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-12-20 06:59:22 +01:00
openhab-bot
5ac05c4968 [unleash-maven-plugin] Preparation for next development cycle. 2021-12-19 21:49:34 +00:00
Yannick Schaus
fa682c551e
Improve logic to choose a script engine preferred MIME type (#2629)
As discussed in https://github.com/openhab/openhab-addons/issues/11818.
This should select `application/x-python` for Jython (instead of `application/python` currently)
and allow other script engines to advertise their MIME type:
- JRuby: `application/x-ruby`
- Groovy: `application/x-groovy`

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-12-19 20:01:48 +01:00
openhab-bot
13d2596998
New translations DefaultSystemChannels.properties (French) (#2627) 2021-12-19 12:14:07 +01:00
J-N-K
ece54ae81f
[addonservices] fix JsonAddonService (#2626)
* [addonservices] fix JsonAddonService

Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2021-12-18 19:48:44 +01:00
openhab-bot
de7b176dc4
New Crowdin updates (#2609)
* New translations addons.properties (Italian)
* New translations brokerConnectionInstance.properties (Italian)
* New translations i18n.properties (Italian)
* New translations inbox.properties (Italian)
* New translations marketplace.properties (German)
* New translations marketplace.properties (Hebrew)
* New translations marketplace.properties (Hungarian)
* New translations marketplace.properties (Italian)
* New translations restauth.properties (Italian)
* New translations tags.properties (Italian)
* New translations tags.properties (Polish)
* New translations validation.properties (Italian)
2021-12-15 22:14:37 +01:00
J-N-K
f0c5aac29f
[marketplace] fix re-installation of marketplace addons (#2615)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2021-12-15 14:05:17 +01:00