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
dependabot[bot]
070a11e593
Upgrade commons-net to 3.9.0 ( #3200 )
...
* Bump commons-net from 3.7.2 to 3.9.0 in /bom/runtime
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-07 18:03:15 +01:00
J-N-K
d10cae0631
Improve UoM handling ( #3201 )
...
Also-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-07 15:55:02 +01:00
Jerome Luckenbach
0e468d898e
Add doc code examples ( #3203 )
...
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2022-12-07 10:45:31 +01:00
Cody Cutrer
ac7378d1bb
ScriptFileWatcher fixes for entire directories ( #3185 )
...
* handle entire directories being moved in and out of a watched script path
* ensure sorted scripts when ScriptFileWatcher restarts or new directories are added
Signed-off-by: Cody Cutrer <cody@cutrer.us>
2022-12-06 19:01:49 +01:00
J-N-K
e90811cfd7
DSL support for sharedCache/privateCache ( #3187 )
...
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-05 22:08:42 +01:00
Wouter Born
2cb8f148ef
Upgrade Californium to 2.7.4 ( #3147 )
...
For release notes see:
* https://projects.eclipse.org/projects/iot.californium/releases/2.7.4
Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-05 17:44:17 +01:00
J-N-K
b481ee73c9
Fix CME when creating SCRIPT transformations ( #3188 )
...
When updating file-based script transformations used in item state-descripting a CME can occur during reload. This is fixed by using thread-safe implementation of `HashMap`.
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-04 17:56:20 +01:00
J-N-K
61bb5b3a31
Fix DSL action classes regression ( #3197 )
...
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-03 21:07:15 +01:00
Kai Kreuzer
b52ea9e73e
Prevent NPE in SseResource ( #3194 )
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2022-12-03 20:07:29 +01:00
GiviMAD
e48902132a
[voice] Fix start dialog with non default voice (broken recently) ( #3190 )
...
Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
2022-12-03 15:13:03 +01:00
J-N-K
028724a73f
Add an access-tracking cache to be used in rules ( #2887 )
...
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-02 09:47:00 +01:00
J-N-K
dc2f5d54f4
Fix transformRaw validation errors in DSL rules ( #3178 )
...
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-11-30 23:12:12 +01:00
GiviMAD
d7f8ec2375
[voice] New voice manager dialog methods ( #3142 )
...
Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
2022-11-30 22:46:38 +01:00
Cody Cutrer
ff75505e70
Wrap ScriptEngine executions in a SafeCaller ( #3180 )
...
Fixes #3179
Signed-off-by: Cody Cutrer <cody@cutrer.us>
2022-11-30 22:36:49 +01:00
Дилян Палаузов
f64874e226
Fix a/an typos ( #3184 )
2022-11-30 21:16:18 +01:00
dependabot[bot]
952b11560a
Bump jackson to 2.12.7(.1) ( #3163 )
...
* Bump jackson-databind from 2.12.6.1 to 2.12.7.1 in /bom/runtime
Bumps [jackson-databind](https://github.com/FasterXML/jackson ) from 2.12.6.1 to 2.12.7.1.
- [Release notes](https://github.com/FasterXML/jackson/releases )
- [Commits](https://github.com/FasterXML/jackson/commits )
---
updated-dependencies:
- dependency-name: com.fasterxml.jackson.core:jackson-databind
dependency-type: direct:production
...
Also-by: Wouter Born <github@maindrain.net>
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-30 19:36:30 +01:00
J-N-K
4bcc15daad
Refactor script dependency tracking ( #3168 )
...
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-11-29 20:59:08 +01:00