Sami Salonen
ef34e5b0b4
QuantityType.as(PercentType.class) fixes with dimensionless units ( #3297 )
...
* QuantityType.as(PercentType.class) fixes with dimensionless units
Signed-off-by: Sami Salonen <ssalonen@gmail.com>
2023-01-05 18:51:58 +01:00
stefan-hoehn
084f9779a7
Add method to get namespaces to MetadataRegistry and ItemResource ( #3298 )
...
* add retrieve namespaces for item
Signed-off-by: Stefan Höhn <stefan.hoehn@nfon.com>
2023-01-03 18:27:17 +01:00
Cody Cutrer
8be306a5bc
Cleanup event filtering and improve EventFilter usage ( #3295 )
...
* don't use event.topics OSGi service property
* use TopicPrefixEventFilter
Signed-off-by: Cody Cutrer <cody@cutrer.us>
2023-01-03 16:30:12 +01:00
J-N-K
8d64ecfd8d
Update license header to 2023 ( #3294 )
...
* Update license header to 2023
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-01-03 09:45:42 +01:00
J-N-K
062e4a1758
[rest] Allow invoking ThingActions via API ( #2810 )
...
* [rest] Allow invoking ThingActions via API
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-01-01 21:13:39 +01:00
Wouter Born
07d09c5a7a
Update Jackson to 2.14.1 ( #3284 )
...
Updates Jackson from 2.12.7 to 2.14.1
For release notes, see:
https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.13
https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.14
Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-30 22:46:51 +01:00
Jacob Laursen
100aa6e838
Add method to DateTimeType for returning Instant ( #3287 )
...
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-12-30 20:40:58 +01:00
Wouter Born
5e23b0e231
Fix Marketplace add-on range pattern matching ( #3288 )
...
* Fix Marketplace add-on range pattern matching
With this fix it will use the correct string for pattern matching add-on version ranges introduced in #2811 .
Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-30 20:32:00 +01:00
J-N-K
98b4902c4a
Remove AccessController.doPrivileged calls ( #3271 )
...
The `AccessController` and the `SecurityManager` is deprecated for removal in Java 17. We don't make use of the `SecurityManager` anyway, so we can safely remove it.
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-30 16:32:34 +01:00
J-N-K
d115032940
Add JavaDoc for the ThingBuilder ( #3285 )
...
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-30 16:24:43 +01:00
jimtng
ab96a6ba55
[voice ]Only call getVolume when necessary ( #3280 )
...
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2022-12-29 12:19:45 +01:00
Wouter Born
a3dc57784a
Remove wrong DataAmount units ( #3261 )
...
These wrong DataAmount units were added in #3208 for backwards compatibility.
In OH4 we can clean them up because this major version allows for breaking changes.
Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-23 23:51:28 +01:00
Wouter Born
abbba4adc7
Use JavaSE-17 JVM ( #3263 )
...
For some reason Eclipse did not update these BOM .classpath files in #3250 .
Related to #2994
Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-23 16:44:52 +01:00
Wouter Born
80770161ac
Fix several compiler warnings ( #3260 )
...
Fixes a deprecation, unused imports and some raw type warning.
Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-23 16:41:46 +01:00
Wouter Born
4a49cb419c
Add missing new line to org.openhab.core.storage.json.tests/itest.bndrun ( #3259 )
...
Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-23 12:28:36 +01:00
Wouter Born
0a755e8f08
Use HTTPS with website URL in pom.xml ( #3256 )
...
Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-22 21:43:38 +01:00
Wouter Born
7888da1684
Fix some recently introduced SAT and NPE issues ( #3251 )
...
Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-22 15:11:49 +01:00
Wouter Born
687688db7e
Update Eclipse .classpath files ( #3250 )
...
Also adds some missing files for recently added projects.
Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-22 14:14:35 +01:00
J-N-K
41ba3ff854
Raise minimum JDK version to 17 ( #2994 )
...
* Raise source level to Java 17 (except for model classes)
* Remove Nashorn script engine
* Upgrade spotless and add jvm options
See https://github.com/diffplug/spotless/issues/834
* Add suppression for findBugs false positive error
* Upgrade xtext to 2.29.0
* Adjust JNA
* Resolve itests
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-19 19:52:43 +01:00
Дилян Палаузов
d48ac20377
typo: successful ( #3236 )
2022-12-19 15:45:17 +01:00
J-N-K
5a9fb679ef
Remove redundant ctor in DecimalType ( #3240 )
...
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-19 15:44:18 +01:00
J-N-K
3fc4d23734
Fix spotless and resolve itests ( #3239 )
...
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-19 11:09:31 +01:00
openhab-bot
35254b3a0a
[unleash-maven-plugin] Preparation for next development cycle.
2022-12-18 23:08:22 +00:00
openhab-bot
97299c7dcb
New Crowdin updates ( #3237 )
...
* New translations DefaultSystemChannels.properties (French)
* New translations restauth.properties (French)
* New translations voice.properties (French)
2022-12-18 14:03:51 +01:00
openhab-bot
92040d6b22
New Crowdin updates ( #3229 )
...
* New translations voice.properties (Hungarian)
* New translations automation.properties (Dutch)
2022-12-14 23:01:45 +01:00
Cody Cutrer
1d8d04f75e
Revert "Wrap ScriptEngine executions in a SafeCaller ( #3180 )" ( #3227 )
...
This reverts commit ff75505e70
.
Signed-off-by: Cody Cutrer <cody@cutrer.us>
2022-12-13 19:16:27 +01:00
openhab-bot
d4ea62b983
New Crowdin updates ( #3221 )
...
* New translations DefaultSystemChannels.properties (Dutch)
* New translations restauth.properties (Dutch)
* New translations units.properties (Portuguese)
* New translations units.properties (Portuguese)
* New translations units.properties (Portuguese, Brazilian)
* New translations units.properties (Portuguese, Brazilian)
* New translations voice.properties (Dutch)
* New translations voice.properties (German)
* New translations voice.properties (Hebrew)
* New translations voice.properties (Italian)
* New translations voice.properties (Polish)
2022-12-12 22:23:13 +01:00
J-N-K
b842c87f98
Fix wrong websocket topics ( #3223 )
...
* Fix wrong websocket topics
The topics of the websocket event did not follow the openHAB convention of starting with `openhab/` followed by the component.
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-12 20:49:42 +01:00
J-N-K
b39f735b9d
[rest] Fix missing backward compatibility in rules/runNow ( #3225 )
...
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-12 20:48:45 +01:00
J-N-K
32ea8dddd0
Fix BasicAuthentication for websockets ( #3219 )
...
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-12 08:56:25 +01:00
Kai Kreuzer
1523a1f2ab
Fix nullable errors in the IDE ( #3220 )
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2022-12-11 23:17:09 +01:00
Wouter Born
24cc559fa4
GitHub Actions workflow upgrades ( #3218 )
...
* Upgrade actions to fix deprecation warnings
* Use ubuntu-22.04 for builds
Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-11 17:35:54 +01:00
GiviMAD
e7ebc79897
[audio|voice] Add actions/commands to synthesize melodies and add configurable melody to the dialog processor ( #3139 )
...
* [voice] Add notification sounds to dialog processor
* [audio] add actions and commands to play melodies
Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
2022-12-11 16:13:59 +01:00
J-N-K
53861794de
Fix AbstractScriptFileWatcher missing deletes on Windows ( #3216 )
...
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-11 16:11:53 +01:00
J-N-K
5bb31074b5
Fix NPE in PersistentInbox ( #3215 )
...
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-11 15:49:09 +01:00
Cody Cutrer
e2bcdcc8f3
Allow profiles to access the entire context of the link they're applied to ( #3151 )
...
So that they can vary their processing based on the item or channeluid itself,
instead of (or in addition to) solely on the prior states passing through it.
Signed-off-by: Cody Cutrer <cody@cutrer.us>
2022-12-11 13:30:16 +01:00
jimtng
979e2c2d3e
Add countStateChangesSince/countStateChangesBetween to persistence extensions ( #3211 )
...
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2022-12-11 12:55:42 +01:00
J-N-K
08d7d13c9b
Fix default unit for Energy ( #3213 )
...
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-11 12:06:49 +01:00
J-N-K
94b8c2a540
Fix DataAmount dimension units ( #3208 )
...
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-11 11:00:50 +01:00
Kai Kreuzer
015fed7a18
Prevent null warnings/errors in the IDE ( #3209 )
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2022-12-11 02:02:09 +01:00
Kai Kreuzer
664fb559a4
Prevent compiler error in Eclipse due to potential null value ( #3210 )
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2022-12-11 01:33:10 +01:00
J-N-K
0d9b678f36
Add countSince/countBetween to persistence extensions ( #3145 )
...
* Add countSince/countBetween to persistence extensions
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-11 00:14:06 +01:00
J-N-K
6479e4f818
[REST] allow running rules with context ( #3160 )
...
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-11 00:01:46 +01:00
GiviMAD
5e6770749e
[voice] Avoid build a context to stop a dialog ( #3206 )
...
Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
2022-12-10 16:48:58 +01:00
J-N-K
1b8280812b
Fix AVG calculation in GroupFunction ( #3202 )
...
Reported on the forum. Due to selection of the `RoundingMode` instead of a `MathContext` the average calculation is returning unexpected results: 19.0 °C / 19.5 °C results in 19.3 °C (instead of 19.25 °C) which might be acceptable, but 19.5 °C / 19.5 °C results in 20 °C (instead of 19.5 °C) which is obviously not what we want or expect. Setting the `MathContext` fixes this problem. I also corrected the same calculation for non-dimensional groups.
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-10 16:02:35 +01:00
GiviMAD
c6b1fe266a
[voice] Use a builder to configure the dialog context and remove some deprecated method usages ( #3195 )
...
Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
2022-12-10 13:49:42 +01:00
J-N-K
da2d6a8a21
Add EventWebSocket ( #2891 )
...
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-10 12:28:58 +01:00
Hilbrand Bouwkamp
207c4a04da
Fix bug in migrateThingType to not call managed thing provider directly ( #3162 )
...
The `migrateThingType` call the managed thing provider directly instead of checking if it's actually a managed thing.
This check is done in the `thingUpdated` method. Changed the code so it makes the same call as in `thingUpdated`.
Also-by: Jan N. Klug <github@klug.nrw>
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2022-12-10 10:12:04 +01:00
J-N-K
9c3e2f3f06
Upgrade bnd to 6.4.0 ( #3205 )
...
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-09 20:07:51 +01:00
J-N-K
987cf221d3
Fix timer cancellation in automation cache ( #3204 )
...
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-08 21:38:32 +01:00