Commit Graph

36 Commits

Author SHA1 Message Date
Holger Friedrich
533cc666ab
Apply spotless after release (#16097)
* Apply spotless after release
* itests: resolve bundles

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-12-22 23:30:38 +01:00
openhab-bot
83e0485219 [unleash-maven-plugin] Preparation for next development cycle. 2023-12-22 14:37:48 +00:00
Holger Friedrich
cbf4411034
Improve javadoc for all addons (#15667)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-09-30 21:49:12 +02:00
Holger Friedrich
cf10b3e9c7
Java 17 features (A-G) (#15516)
- add missing @override
- Java style array syntax
- remove redundant modifiers
- always move String constants to left side in comparisons
- simplify lambda expressions and return statements
- use replace instead of replaceAll w/o regex
- instanceof matching and multiline strings

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-09-05 22:30:16 +02:00
Kai Kreuzer
72607d3bee Apply spotless
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2023-07-24 01:20:31 +02:00
openhab-bot
809fceaff3 [unleash-maven-plugin] Preparation for next development cycle. 2023-07-23 19:19:01 +00:00
mlobstein
6e2dddfe73
Declare connection for bindings G thru M (#14902)
* Declare connection for bindings G-M

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
2023-04-29 20:24:54 +02:00
J-N-K
89d0689e36
fix i18n for bindings (#14235)
Also-By: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-01-21 12:14:51 +01:00
J-N-K
5f8214f08a
Adapt to core changes (addon.xml) (#13289)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-01-15 20:31:42 +01:00
Jacob Laursen
4dd6d3a8a2
Update license headers to 2023 (#14154)
* Update copyright year in configuration
* Update license headers

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-01-06 09:49:54 +01:00
J-N-K
4d6d6443ef
fix spotless after release (#14014)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-19 15:22:17 +01:00
openhab-bot
7993786dc9 [unleash-maven-plugin] Preparation for next development cycle. 2022-12-19 00:55:11 +00:00
Jerome Luckenbach
0e68936663
[Documentation] Markdown improvements f to m (#13866)
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2022-12-08 21:36:05 +01:00
Wouter Born
0470d3978f
[groheondus] Upgrade dependencies (#13665)
* Upgrade commons-text to 1.10.0 (prevents CVE-2022-42889)
* Upgrade commons-lang3 to 3.12.0
* Remove commons-text, wrap from feature because it is embedded into the bundle

Signed-off-by: Wouter Born <github@maindrain.net>
2022-11-06 20:22:08 +01:00
Arne Seime
618b7a4e3a
[groheondus] Fix missing automatic refresh ++ (#11955)
* Fix scheduling of thing and token update, tries to avoid service rate limiting. Added more logging. Added some missing null checks. Ensure recent data is fetched, not data from yesterday

Signed-off-by: Arne Seime <arne.seime@gmail.com>

* Updated to latest versio of API lib

Signed-off-by: Arne Seime <arne.seime@gmail.com>

* Added new channel waterconsumption_since_midnight that sums todays water consumption (same as in the Grohe app)

Signed-off-by: Arne Seime <arne.seime@gmail.com>

* Add more debug logging

Signed-off-by: Arne Seime <arne.seime@gmail.com>

* More null checks, also set channels to Undef if a value is missing

Signed-off-by: Arne Seime <arne.seime@gmail.com>

* Fixed missing embedding of commons-text as it is a dependency of the api lib

Signed-off-by: Arne Seime <arne.seime@gmail.com>

* Refresh token 1 hour before expiry

Signed-off-by: Arne Seime <arne.seime@gmail.com>

* Re-login in case token refresh fails

Signed-off-by: Arne Seime <arne.seime@gmail.com>

* Factor in timezone when calculating consum since midnight

Signed-off-by: Arne Seime <arne.seime@gmail.com>

* Use QuantityType<Volume> for water consumption

Signed-off-by: Arne Seime <arne.seime@gmail.com>

* Minor

Signed-off-by: Arne Seime <arne.seime@gmail.com>

* i18n of dynamic error messages

Signed-off-by: Arne Seime <arne.seime@gmail.com>

* More i18n. Plus retry of failed refresh token - with a delay to possibly avoid rate limiting

Signed-off-by: Arne Seime <arne.seime@gmail.com>

* Adjust refresh token timeout to 5 minutes before expire. Also retry with username/pwd login if token login fails (could be an expired token)

Signed-off-by: Arne Seime <arne.seime@gmail.com>

* Clear old discovery results

Signed-off-by: Arne Seime <arne.seime@gmail.com>

* Fetch data further back to ensure battery device has been online

Signed-off-by: Arne Seime <arne.seime@gmail.com>

* Updated README with old data warning

Signed-off-by: Arne Seime <arne.seime@gmail.com>

* Typo

Signed-off-by: Arne Seime <arne.seime@gmail.com>

* Do not allow polling interval less than 900 as rate limiting most likely will block the calls

Signed-off-by: Arne Seime <arne.seime@gmail.com>

* Fix failed token refresh giving up

Signed-off-by: Arne Seime <arne.seime@gmail.com>

* Removed refresh token login webpage. Another attempt at handling token refresh

Signed-off-by: Arne Seime <arne.seime@gmail.com>

* Fix status detail

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Restore formatting

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Fix newly introduced warnings

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Remove redundant logging

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

Signed-off-by: Arne Seime <arne.seime@gmail.com>
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Co-authored-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-10-27 09:03:17 +02:00
Kai Kreuzer
440f603e88
Apply spotless and resolver (#13027)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2022-06-27 16:00:37 +02:00
openhab-bot
ed4858ebbb [unleash-maven-plugin] Preparation for next development cycle. 2022-06-26 18:18:40 +00:00
Hilbrand Bouwkamp
da59cdd255
Update license headers to 2022 (#11973)
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2022-01-06 18:14:47 +01:00
Christoph Weitkamp
167f8ebc49
Avoid UnsupportedEncodingException & use const from StandardCharsets (#11948)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-01-03 16:05:08 +01:00
Marcel
cc47ef7f3e
pom update from http to https reference (#11833)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-12-23 19:40:44 +01:00
Kai Kreuzer
48746f5e3f Apply spotless
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-12-20 09:07:55 +01:00
openhab-bot
6dc031e6cf [unleash-maven-plugin] Preparation for next development cycle. 2021-12-20 00:30:46 +00:00
Wouter Born
07a1976c81
Add default translations for binding add-ons (#11760)
* Add default translations for binding add-ons

This makes the texts used by these add-ons translatable with Crowdin.

To keep the PR simple, it only adds default translations for add-ons which do not yet have any default translations properties file.
We can do follow up PRs for adding missing key/values to add-ons that already have these files or to remove duplications.

There are several add-ons in this PR that do have non-English translation files, so I'll upload those to Crowdin when the PR is merged.

Signed-off-by: Wouter Born <github@maindrain.net>
2021-12-15 18:40:21 +01:00
Wouter Born
3253fbece8
Align translation filenames with Crowdin (#11362)
Crowdin is configured to generate translations for languages without countries.

Signed-off-by: Wouter Born <github@maindrain.net>
2021-10-10 11:02:53 +02:00
Wouter Born
798abaa4ca
Switch properties files encoding from ISO-8859-1 to UTF-8 (#11349)
* Switch properties files encoding from ISO-8859-1 to UTF-8

Crowdin will generate translations in this encoding, so this prevents a lot of diffs which makes it easier to review future Crowdin PRs.

Related to openhab/openhab-core#2298

Signed-off-by: Wouter Born <github@maindrain.net>
2021-10-09 19:56:49 +02:00
Kai Kreuzer
bebab9ce29 applied spotless
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-06-27 23:25:35 +02:00
jenkins
8c5c81e256 [unleash-maven-plugin] Preparation for next development cycle. 2021-06-27 17:35:01 +00:00
Florian
aa97da083c
Clarify if username/password fields are required (#10416)
The fields are used to login with username and password instead of a refreshToken.
They're therefore not required.

Signed-off-by: Florian Schmidt <florian.schmidt.welzow@t-online.de>
2021-03-31 21:38:39 +02:00
Wouter Born
d6364aceb1
Update license headers to 2021 (#9620)
Signed-off-by: Wouter Born <github@maindrain.net>
2021-01-02 22:03:14 +01:00
Wouter Born
ecac667258
Apply Spotless, update skeleton project version, resolve itest runbundles (#9459)
Signed-off-by: Wouter Born <github@maindrain.net>
2020-12-22 10:37:44 +01:00
jenkins
e4554f4aa6 [unleash-maven-plugin] Preparation for next development cycle. 2020-12-21 10:36:42 +00:00
Wouter Born
ac6f08908f
Use renamed Units class (#9267)
Signed-off-by: Wouter Born <github@maindrain.net>
2020-12-07 10:34:02 +01:00
Kai Kreuzer
007c3b56e5
removed deprecated author information from binding.xml (#9113)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-11-23 19:06:33 -08:00
Wouter Born
b423f93b1f
Remove Map null annotation workarounds (#8916)
These workarounds to prevent false positives can be removed now the EEAs allow for proper null analysis.

Signed-off-by: Wouter Born <github@maindrain.net>
2020-11-04 13:57:24 +01:00
Wouter Born
7f39d01a0f
Remove/ignore Eclipse project files (#8529)
Fixes #8451

Signed-off-by: Wouter Born <github@maindrain.net>
2020-09-21 22:50:37 +02:00
Kai Kreuzer
6df6783b60 added migrated 2.x add-ons
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-09-21 03:37:19 +02:00