Commit Graph

1298 Commits

Author SHA1 Message Date
J-N-K
ffba442225
Bump maven-shade-plugin to 3.3.0 (#2992)
This is necessary for Java 17 source level.

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-06-02 10:49:42 +02:00
GiviMAD
214fda0a7b
[javasound] Fix invalid cast on non windows os (#2988)
Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
2022-05-30 22:59:34 +02:00
J-N-K
d6c269d95a
[i18n] Allow generation of default translations for automation modules (#2966)
* Allow generation of default translations for automation modules

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-05-29 18:26:23 +02:00
J-N-K
344a9ae018
Fix log levels and duplicate implementation warning in tests (#2982)
* Fix log levels and duplicate implementation warning in tests

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-05-26 23:33:08 +02:00
J-N-K
40c7772af1
Fix NPE in ItemUIRegistry (#2955)
Reported on the forum. Also some code-cleanup.

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-05-26 09:25:30 +02:00
GiviMAD
f5da311608
[voice] Fix try all interpreters (#2980)
* fix try all interpreters
* add test

Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
2022-05-26 07:47:28 +02:00
J-N-K
dd13da5d32
Add DateTimeTrigger to DSL rule model (#2963)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-05-25 21:50:48 +02:00
J-N-K
7027e1e139
[test] Allow intercepting logs and make assertions for log messages (#2939)
* [test] Allow intercepting logs and make assertions for log messages

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-05-25 21:13:40 +02:00
J-N-K
6c72972b16
Prevent non-profile links for trigger channels (#2771)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-05-25 18:09:59 +02:00
Wouter Born
86ee4dc2b5
Fix null type mismatch errors (#2976)
This fixes the null type errors in Eclipse which were introduced by #2906.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-05-23 16:30:08 +02:00
J-N-K
ad3a3c1caf
Assume installed addons are compatible (#2975)
It was reported that after an upgrade from aprevious version installed addons from marketplaces are not shown in the add-ons pages. This is a result of the new compatibility check which excludes incompatible add-ons by default. Already installed add-ons must be excluded from this check otherwise they can't be uninstalled.

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-05-23 09:04:10 +02:00
lolodomo
e5ec888330
[voice] Add voice parameter to startDialog and listenAndAnswer (#2971)
* [voice] Add voice parameter to startDialog and listenAndAnswer

Fix #2819

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-05-21 10:50:00 +02:00
J-N-K
792b7511bf
Fix item name checking in ItemUtil (#2941)
* Fix item name checking in ItemUtil

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-05-21 09:29:42 +02:00
J-N-K
c96ce5b5a8
Fix namespace "channel" is added to item metadata (#2957)
* Fix namespace "channel" is added to item metadata

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-05-21 09:27:29 +02:00
lolodomo
103098c630
Fix interpret actions description (#2969)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-05-21 09:15:48 +02:00
J-N-K
bf54474b03
Fix MQTT status message when disconnected while connecting (#2951)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-05-20 20:45:01 +02:00
J-N-K
fe5b1ed6ac
Reduce levels of modbus connection logger (#2972)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-05-20 20:40:50 +02:00
J-N-K
b52d9f2e4f
Fix "openhab --help" and "help openhab" in Karaf console (#2953)
* Enable "openhab --help" and "help openhab" in Karaf console

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-05-16 22:39:45 +02:00
J-N-K
910047355c
Fix console extension output to wrong console (#2961)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-05-16 22:35:20 +02:00
J-N-K
d8ebbb5857
Allow sub-directories for icons (#2946)
* Allow sub-directories for icons

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-05-16 22:33:32 +02:00
J-N-K
d4a68c83fe
Add processing of Accept header to AudioServlet (#2960)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-05-16 22:31:36 +02:00
J-N-K
b11086ef45
Fix spaces in options not properly handled in i18n-maven-plugin (#2964)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-05-16 22:26:51 +02:00
J-N-K
d523275004
Fix resource leaks in AudioServlet (#2959)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-05-16 22:25:12 +02:00
Sami Salonen
09b9b33cc0
[expire] Allow ignoring commands (#2954)
* [expiry] [expire] bool configuration parameters parsing as util method
* [expiry] [expire] extend ExpiryManager to allow ignoring commands

Similar to ignoreStateUpdates parameter, this introduces new optional
parameter ignoreCommands.

Signed-off-by: Sami Salonen <ssalonen@gmail.com>
2022-05-11 18:30:53 +02:00
GiviMAD
5753627c02
[voice] Allow list of HLIs in dialog function (#2906)
* [Voice] Allow hli list

Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>
2022-05-11 17:42:06 +02:00
J-N-K
de1f850e10
Fix EphemerisManager crashing on invalid configuration (#2949)
It has been reported in the past (and in the forum) that the EphemerisManagerImpl can't handle illegal configurations. Due to dependencies in other bundles this results in the whole automation component to be unavailable.

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-05-05 21:25:30 +02:00
J-N-K
53a072d685
Fix transformations not removed if file deleted (#2945)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-05-05 21:13:29 +02:00
J-N-K
ad3a0848db
Add support for automatic creation of ManagedProviders for UI components (#2948)
* Add support for automatic creation of ManagedProviders for UI components

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-05-05 08:50:56 +02:00
openhab-bot
b5673e1050
New translations DefaultSystemChannels.properties (French) (#2944) 2022-05-01 14:32:58 +02:00
Wouter Born
8f7db68d1a
Fix a few SAT findings (#2936)
Signed-off-by: Wouter Born <github@maindrain.net>
2022-04-27 23:09:37 +02:00
Wouter Born
13d2edb43e
Add spaces to Magic service labels (#2935)
This adds some spaces to the Magic service labels so they look nicer in UIs.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-04-27 23:06:29 +02:00
Jonathan Gilbert
1bd70ef909
Add ManagedProviders to UIRegistry (#2617)
* UIRegistry now extensible, like other Registries

Signed-off-by: Jonathan Gilbert <jpg@trillica.com>

* Fix comments and more

Signed-off-by: Wouter Born <github@maindrain.net>

Co-authored-by: Wouter Born <github@maindrain.net>
2022-04-27 01:20:01 +02:00
GiviMAD
89bc6592da
[Javasound] Fix microphone data line sharing on Windows OS (#2890)
Fix microphone dataline sharing on Windows OS

Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>
2022-04-26 20:06:29 +02:00
openhab-bot
bb634b9189
New Crowdin updates (#2930)
* New translations DefaultSystemChannels.properties (Italian)

* New translations DefaultSystemChannels.properties (Dutch)

* New translations DefaultSystemChannels.properties (Polish)

* New translations DefaultSystemChannels.properties (Finnish)

* New translations DefaultSystemChannels.properties (Hebrew)

* New translations DefaultSystemChannels.properties (German)

* New translations DefaultSystemChannels.properties (Hungarian)

* New translations addons.properties (Hungarian)

* New translations marketplace.properties (Hungarian)
2022-04-26 17:25:51 +02:00
J-N-K
86960f243f
[automation] Allow using * as wildcard in thing status triggers (#2832)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-04-25 14:16:44 +02:00
jimtng
26596ecc25
[Semantics] Return parent Location and Equipment (#2928)
* [Semantics] Return parent Location and Equipment

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2022-04-25 13:04:57 +02:00
J-N-K
3135017895
Properly close script engines in script transformation (#2932)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-04-24 19:40:43 +02:00
J-N-K
b331066ea9
Allow changing watched directory of a WatchService (#2894)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-04-24 19:01:33 +02:00
J-N-K
a192a1dfc6
Add a generic script transformation (#2883)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-04-24 19:00:03 +02:00
J-N-K
a42e798c8d
Fix "recursive membership detected" for plain items (#2918)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-04-24 14:38:41 +02:00
J-N-K
ca94fd57b0
Add new module DateTimeTrigger for triggering on a DateTime state (#2923)
* Add DateTimeTrigger

This adds a new module that triggers at the time given by the state of an item.

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-04-24 11:29:55 +02:00
Łukasz Dywicki
c09db50d46
[modbus] Add configurable after connection delay (#2927)
Fixes #2926

Signed-off-by: Łukasz Dywicki <luke@code-house.org>
2022-04-23 13:49:43 +02:00
Gaël L'hopital
af6a6c6ac4
Adding missing system channels descriptions. (#2912)
* Adding missing system channels descriptions.
Removing some redundant null checks of the same package.

Signed-off-by: clinique <gael@lhopital.org>
2022-04-22 23:02:24 +02:00
J-N-K
ee7095d96d
Improve SaferCallerImplTest (#2922)
Failed to to unnecessary stubbing exception in https://ci.openhab.org/job/PR-openHAB-Core/4556/

Also removes unnecessary code.

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-04-22 10:52:28 +02:00
J-N-K
0e7e7a37b7
Improve SchedulerImplTest (#2919)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-04-20 10:06:39 +02:00
J-N-K
7e641e12f8
Fix Metadata can't be deserialized (#2921)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-04-18 22:06:29 +02:00
Wouter Born
05fdc81b27
Improve test stability and OS compatibility (#2878)
This fixes the build being broken when building on Windows.
It also contains many fixes for timing issues which seem to impact macOS and Windows more than Linux.

* Fix .gitattributes and add *.xml_gen to fix line ending issues on Windows
* Derive fork count from CPU details in org.openhab.core tests for more stable tests on machines with fewer cores
* Adjust SafeCallerImplTest timings
* Increase ExecUtilTest timeout
* Increase SchedulerImplTest timeouts
* Increase AudioConsoleTest serveStream timeout
* Increase AudioServletTest serveStream timeout
* Increase SchedulerImplTest test timeouts
* Increase ExpireManagerTest timeout used for checking published events
* Increase PeriodicSchedulerImplTest max allowed delta
* Increase SchedulerImplTest timeouts
* Fix BundleInfoReader file stream not closed causing temp dir deletion issues on Windows
* Fix GenerateDefaultTranslationsMojoTest Windows line endings issues
* Fix GenerateDefaultTranslationsMojoTest Windows temp dir deletion problem
* Fix GenericItemProviderTest tearDown sometimes fails because of queued events
* Fix ChannelLinkNotifierOSGiTest wait for channel link events
* Fix ChannelCommandDescriptionProviderOSGiTest fails if provider not immediately registered
* Fix ChannelStateDescriptionProviderOSGiTest fails if provider not immediately registered
* Fix GenericItemChannelLinkProviderTest not waiting for async updated state to become true
* Fix GenericThingProviderTest failing due to events of previous test
* Fix InboxOSGiTest sometimes fails because of queued events
* Fix ScriptEngineOSGiTest failing because items are not yet added to registry
* Fix ThingManagerOSGiTest failing due to async handleRemoval call

Signed-off-by: Wouter Born <github@maindrain.net>
2022-04-14 23:00:33 +02:00
Wouter Born
a4353ee5ca
Fix UnitUtils.getDimensionName returns Angle instead of Dimensionless (#2895)
An Angle is also Dimensionless and because it is the first compatible unit it is always returned instead of any other Dimensionless unit.
With these changes `getDimensionName` will prefer the dimension of equal units over those of compatible units.

Fixes #2880

Signed-off-by: Wouter Born <github@maindrain.net>
2022-04-14 22:57:18 +02:00
J-N-K
4fbd4c5960
Do not allow empty last segment in UID (#2901)
* Fix empty segment in UID

Segments are not allowed to be empty. Also adds tests for UID construction.

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-04-14 22:55:19 +02:00
J-N-K
afd8768340
Extend ProfileContext to allow data type changing profiles (#2852)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-04-14 22:52:52 +02:00