Commit Graph

385 Commits (6922d60fd99562103f9f67f8b254f932a3d70759)

Author SHA1 Message Date
Vita 6922d60fd9
Extends updateThing method warning message. (#4558)
Fixes #4557

Signed-off-by: Vita Tucek <vita.tucek@seznam.cz>
2025-01-19 12:19:09 +01:00
Wouter Born f00c7700cb
Start license headers with `/*` instead of `/**` (#4544)
Prevents JavaDoc tooling issues because these tools check comments starting with `/**`.

Signed-off-by: Wouter Born <github@maindrain.net>
2025-01-07 21:48:56 +01:00
Holger Friedrich 40d079ae80
Java 21 language features (#4535)
* Java 21 language features

* use getFirst and getLast methods
* replace new Locale by Locale.of
* replace Paths.get by Path.of
* use ThreadLocalRandom.current().nextDouble()
* add @Serial annotations

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-01-06 23:22:43 +01:00
Wouter Born 979e4a7409
Update license headers to 2025 (#4532)
Signed-off-by: Wouter Born <github@maindrain.net>
2025-01-01 16:40:04 +01:00
Wouter Born db72021460
Update Eclipse files (#4514)
Signed-off-by: Wouter Born <github@maindrain.net>
2024-12-24 07:02:47 +01:00
Holger Friedrich 8d837f9823
Prepare for OH 5.0.0 (#4496)
* Prepare for OH 5.0.0

* Switch to 5.0.0-SNAPSHOT
* Fix spotless after unleash
* resolve itest runbundles
* Fix linux-specific pom

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-12-15 18:49:23 +01:00
openhab-bot 0f2e56f39d [unleash-maven-plugin] Preparation for next development cycle. 2024-12-15 11:41:19 +00:00
openhab-bot 31e28380e1
New Crowdin updates (#4485)
* New translations systemprofiles.properties (Catalan)
* New translations systemprofiles.properties (Czech)
* New translations systemprofiles.properties (French)
* New translations systemprofiles.properties (Danish)
* New translations systemprofiles.properties (Finnish)
* New translations systemprofiles.properties (Hebrew)
* New translations systemprofiles.properties (Hungarian)
* New translations systemprofiles.properties (Italian)
* New translations systemprofiles.properties (Dutch)
* New translations systemprofiles.properties (Norwegian)
* New translations systemprofiles.properties (Polish)
2024-12-09 20:36:18 +01:00
Jacob Laursen b31ff66bba
[core] Switch `DateTimeType` to `Instant` internally for consistent time-zone handling (#3583)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-08 16:06:29 +01:00
openhab-bot 0c93cc0456
New Crowdin updates (#4480)
* New translations addons.properties (Catalan)
* New translations addons.properties (Czech)
* New translations audio.properties (Catalan)
* New translations automation.properties (Catalan)
* New translations automation.properties (Czech)
* New translations chart.properties (Catalan)
* New translations chart.properties (Czech)
* New translations defaultsystemchannels.properties (Catalan)
* New translations defaultsystemchannels.properties (Czech)
* New translations ephemeris.properties (Catalan)
* New translations firmware.properties (Catalan)
* New translations hli.properties (Catalan)
* New translations i18n.properties (Catalan)
* New translations inbox.properties (Catalan)
* New translations jsonstorage.properties (Catalan)
* New translations jsr223.properties (Catalan)
* New translations jsr223.properties (Czech)
* New translations languagesupport.properties (Catalan)
* New translations languagesupport.properties (Portuguese)
* New translations languagesupport.properties (Portuguese, Brazilian)
* New translations lsp.properties (Catalan)
* New translations magic.properties (Catalan)
* New translations marketplace.properties (Catalan)
* New translations messages.properties (Catalan)
* New translations network.properties (Catalan)
* New translations persistence.properties (Catalan)
* New translations restauth.properties (Catalan)
* New translations scriptprofile.properties (Catalan)
* New translations scriptprofile.properties (Czech)
* New translations sitemap.properties (Catalan)
* New translations systemprofiles.properties (Catalan)
* New translations systemprofiles.properties (Czech)
* New translations systemthingstatusinfos.properties (Catalan)
* New translations tags.properties (Catalan)
* New translations units.properties (Catalan)
* New translations units.properties (Czech)
* New translations validation.properties (Catalan)
* New translations validation.properties (Czech)
* New translations voice.properties (Catalan)
* New translations voice.properties (Czech)
2024-12-08 11:45:41 +01:00
lolodomo be003029b0
Add unit hint to color-temperature-abs system channel type (#4451)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-11-17 08:58:59 +01:00
openhab-bot 963a8d1a5f
New Crowdin updates (#4408)
* New translations tags.properties (Hungarian)
* New translations addons.properties (Spanish)
* New translations units.properties (Spanish)
* New translations validation.properties (Norwegian)
* New translations addons.properties (Norwegian)
* New translations voice.properties (Norwegian)
* New translations systemprofiles.properties (Norwegian)
* New translations chart.properties (Norwegian)
* New translations defaultsystemchannels.properties (Norwegian)
* New translations i18n.properties (Finnish)
* New translations i18n.properties (Norwegian)
* New translations automation.properties (Hebrew)
* New translations languagesupport.properties (Portuguese)
* New translations languagesupport.properties (Portuguese, Brazilian)
2024-10-08 01:28:25 +02:00
Florian Hotze 437a885d82
[thing] Add toString overrides to ThingImpl & BridgeImpl (#4382)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-19 18:53:26 +02:00
openhab-bot 92f5baea10
New Crowdin updates (#4379)
* New translations defaultsystemchannels.properties (Italian)
* New translations i18n.properties (Italian)
2024-09-15 21:14:45 +02:00
J-N-K 53889cdcdb
Add a PersistenceService bundle tracker (#4324)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2024-09-09 20:06:15 +02:00
jimtng 5cf91cde1b
Filter out blank lines and comments in a multi-line transformations (#4357)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-09-07 06:59:22 +02:00
jimtng 8a59844451
Add isTransform(), isEmpty() and isPresent() to ChannelTransformation (#4355)
* Add isEmpty() and isPresent() to ChannelTransformation
* Add isValidTransformation helper method

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-08-30 18:47:55 +02:00
jimtng e8e55443c3
Add tests for null-returning transformations in ChannelTransformationTest (#4356)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-08-24 10:59:21 +02:00
jimtng 17ad247519
Rename parameter of ChannelHandler (#4361)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-08-24 10:58:19 +02:00
jimtng 506ccd4f4d
Support channel transformation chaining with a list (#4353)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-08-18 18:36:36 +02:00
jimtng bb2a2d10dc
Support channel transformations with parentheses (#4352)
* Support channel transformations with parentheses

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-08-18 17:05:32 +02:00
Holger Friedrich fc454883c2
Reduce SAT warnings (#4339)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-08-11 10:04:26 +02:00
joerg1985 f502e9d4e3
Use a precompiled pattern in ChannelUID.validateSegment (#4327)
Signed-off-by: Jörg Sautter <joerg.sautter@gmx.net>
2024-07-23 08:30:24 +02:00
J-N-K 8557666f0a
Add test to ensure full mapping of types in AbstractStorageBasedProvider (#4318)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2024-07-22 15:07:28 +02:00
J-N-K 6f0add09ba
Add missing system profile types and UIDs (#4320)
* Add missing system profile types and UIDs

Signed-off-by: Jan N. Klug <github@klug.nrw>
2024-07-16 22:52:25 +02:00
Anders Alfredsson 98554af952
Add unitHint to AbstractStorageBasedTypeProvider.ChannelTypeEntity (#4317)
* Add unitHint to AbstractStorageBasedTypeProvider.ChannelTypeEntity

Signed-off-by: Anders Alfredsson <andersb86@gmail.com>
2024-07-14 20:18:03 +02:00
Kai Kreuzer 21e605d212
Apply spotless after release, resolve bundles (#4301)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2024-07-07 23:22:27 +02:00
openhab-bot 07e23eac3c [unleash-maven-plugin] Preparation for next development cycle. 2024-07-07 16:05:56 +00:00
openhab-bot 2be44d1cb2
New Crowdin updates (#4292)
* New translations i18n.properties (Hungarian)

* New translations voice.properties (French)

* New translations addons.properties (French)

* New translations restauth.properties (French)

* New translations i18n.properties (French)

* New translations i18n.properties (Danish)

* New translations defaultsystemchannels.properties (Finnish)

* New translations addons.properties (Finnish)

* New translations languagesupport.properties (Portuguese)

* New translations languagesupport.properties (Portuguese, Brazilian)

* New translations i18n.properties (Hebrew)

* New translations i18n.properties (Dutch)

* New translations addons.properties (French)

* New translations languagesupport.properties (Portuguese)

* New translations languagesupport.properties (Portuguese, Brazilian)
2024-07-03 21:20:39 +02:00
openhab-bot 1a33e23fef
New Crowdin updates (#4285)
* New translations validation.properties (Dutch)

* New translations addons.properties (Dutch)

* New translations voice.properties (Dutch)

* New translations automation.properties (Dutch)

* New translations scriptprofile.properties (Dutch)

* New translations units.properties (Dutch)

* New translations systemprofiles.properties (Dutch)

* New translations defaultsystemchannels.properties (Dutch)

* New translations chart.properties (Dutch)

* New translations magic.properties (Dutch)

* New translations jsr223.properties (Dutch)

* New translations languagesupport.properties (Portuguese)

* New translations languagesupport.properties (Portuguese, Brazilian)
2024-06-30 10:38:54 +02:00
openhab-bot f150e8dd50
New Crowdin updates (#4280)
* New translations units.properties (French)

* New translations chart.properties (French)

* New translations voice.properties (French)

* New translations defaultsystemchannels.properties (French)

* New translations addons.properties (French)

* New translations voice.properties (French)

* New translations voice.properties (Hebrew)

* New translations voice.properties (Hungarian)
2024-06-24 20:04:47 +02:00
openhab-bot 7198c123a3
New Crowdin updates (#4261)
* New translations addons.properties (Hungarian)

* New translations defaultsystemchannels.properties (Hungarian)

* New translations addons.properties (Danish)

* New translations addons.properties (Italian)

* New translations chart.properties (Finnish)

* New translations languagesupport.properties (Portuguese)

* New translations languagesupport.properties (Portuguese, Brazilian)

* New translations addons.properties (Hebrew)
2024-06-01 10:45:27 +02:00
Jacob Laursen 3bacc4bb5d
Change icon for channel type system.mute (#4245)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-05-25 18:53:15 +02:00
openhab-bot 08b5dd1ba0
New translations systemprofiles.properties (Danish) (#4250) 2024-05-25 18:38:13 +02:00
openhab-bot 945900b52a
New Crowdin updates (#4243)
* New translations chart.properties (Hebrew)

* New translations voice.properties (Hebrew)

* New translations magic.properties (Hebrew)

* New translations jsr223.properties (Hebrew)

* New translations defaultsystemchannels.properties (Hebrew)

* New translations languagesupport.properties (Portuguese)

* New translations languagesupport.properties (Portuguese, Brazilian)
2024-05-23 15:39:11 +02:00
openhab-bot dcc3842386
New Crowdin updates (#4236)
* New translations addons.properties (Hungarian)

* New translations scriptprofile.properties (Hungarian)

* New translations systemprofiles.properties (Hungarian)

* New translations chart.properties (Hungarian)

* New translations voice.properties (Hungarian)

* New translations magic.properties (Hungarian)

* New translations jsr223.properties (Hungarian)

* New translations defaultsystemchannels.properties (Danish)
2024-05-22 21:27:54 +02:00
Timotheos Constambeys 83bd5fff2e
Fix brightness in generic ColorChannelHandler (#4242)
Signed-off-by: Timotheos Constambeys <timo0190@gmail.com>
2024-05-22 18:08:34 +02:00
Gaël L'hopital 6887db3b89
Adding UV Index system channel (#3878)
* Adding UV Index system channel

Signed-off-by: clinique <gael@lhopital.org>
2024-05-20 12:09:52 +02:00
J-N-K 895dcbb087
Enable spotless for schema XSD (#4218)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2024-05-18 19:23:21 +02:00
J-N-K 73f4722b91
Align I18nProviderImpl and thing description XSD (#4233)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2024-05-18 13:08:22 +02:00
J-N-K 88c5a0849f
Improve thing description XSD (#4217)
* Improve thing description XSD

Signed-off-by: Jan N. Klug <github@klug.nrw>
2024-05-17 23:17:13 +02:00
joerg1985 6aed435c77
Prevent potential incorrect cache lookup due to hash collisions (#4214)
* Prevent potential incorrect cache lookup due to hash collisions
Signed-off-by: Jörg Sautter <joerg.sautter@gmx.net>
2024-05-05 09:39:34 +02:00
openhab-bot 4dfbfb4995
New translations systemprofiles.properties (French) (#4210) 2024-05-03 20:45:52 +02:00
lolodomo 1fb949ba8f
Set a default presentation pattern for String/Number/Datetime items (#4175)
* Set a default presentation pattern for String/Number/Datetime items

A default state pattern was previously provided by ChannelStateDescriptionProvider only for String and Number items linked to a channel.
It is now the class DefaultStateDescriptionFragmentProvider which is responsible for providing the default state pattern for items, whether the item is linked to a channel or not.
This new class is the lowest ranked StateDescriptionFragmentProvider so that all other providers have priority in setting the state pattern.

Default pattern for string item: %s
Default pattern for datetime item or group with datetime state: %1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS
Default pattern for number item or group with number state: %.0f
Default pattern for number+dimension item or group with number+dimension state: %.0f %unit%

Closes #4071
Closes #3835

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-05-02 16:29:35 +02:00
openhab-bot d7f79ce7d4
New Crowdin updates (#4189)
* New translations tags.properties (Italian)

* New translations systemprofiles.properties (Finnish)

* New translations systemprofiles.properties (Hebrew)

* New translations systemprofiles.properties (Polish)

* New translations languagesupport.properties (Portuguese)

* New translations languagesupport.properties (Portuguese, Brazilian)
2024-04-28 18:02:53 +02:00
Holger Friedrich b563f1577a
More instanceof pattern matching (#4191)
* More instanceof pattern matching

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-04-21 21:22:37 +02:00
Holger Friedrich a79a9c651b
Reduce SAT warnings (#4187)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-04-20 19:17:47 +02:00
openhab-bot 0eeff02fcc
New translations systemprofiles.properties (Italian) (#4176) 2024-04-13 11:59:29 +02:00
Denis Tarasov cbb458e0c3
Improve description of hysteresis bounds (#4149)
* doc: improve description of hysteresis bounds

Signed-off-by: Denis Tarasov <dstarasov@skbkontur.ru>
2024-04-07 10:54:42 +02:00
Jacob Laursen 258b0991d8
Provide unit hint for system channel type atmospheric-humidity (#4170)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-04-07 10:53:47 +02:00