Commit Graph

3158 Commits

Author SHA1 Message Date
Jacob Laursen
70abb5d1f6
[jdbc] Add support for case sensitive table names reflecting item names 1:1 (#13544)
* Do not append number when using real item names
* Extract getTableName to separate class
* Add initial test coverage
* Extract migration logic to separate class
* Support migration from real names back to numbered
* Simplify zero-padding
* Fix NullPointerException
* Fix MySQL compatibility when CLIENT_MULTI_STATEMENTS option is not set
* Add option for case sensitive table names
* Add real name with suffix mode for backwards compatibility
* Remove real name in lower case without suffix mode
* Map directly from item name to table name
* Fix ambiguous table name scenario
* Add additional testcase
* Add migration path for changed table prefix
* Drop items table when using direct mapping
* Add configuration note
* Fix table alignment
* Extend description as more migration paths are now supported
* Do not stop halfway through a migration
* For clarity, do not use abbreviation for operating system

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-11-05 10:41:31 +01:00
alexf2015
f880ca91f9
adopted date parser due to changes in EASEE API (#13654)
Signed-off-by: Alexander Friese <af944580@googlemail.com>
2022-11-04 19:56:30 +01:00
Silviu Chingaru
1e07d1af03
[paradoxalarm] Handle multiple panels (#13641)
* Fixes #13640

Working with multiple Paradox panels

Tested with:
- rename things files;
- thing disable / enable on same instance of OpenHab;
- disable on one OpenHab instance > enable on other;

Everything works as espected.
All test passed even if no Login/Logout commands were sent to IP module

Signed-off-by: Silviu Chingaru <silviuchingaru@yahoo.com>
2022-11-04 19:01:39 +01:00
bruestel
5654b9f97a
[homeconnect] Fix login for simulator environment (#13653)
* Add redirect URI to oAuth request

Signed-off-by: Jonas Brüstel <jonas@bruestel.net>
2022-11-04 18:28:40 +01:00
Jacob Laursen
c114714a7b
[hdpowerview] Restructure DTO classes (#13630)
* Extract nested DTO's to separate classes
* Rename api to dto
* Move test classes into internal
* Finish moving of files and fix namespaces

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-11-04 18:24:39 +01:00
Mark Herwege
cf2a1afd56
[systeminfo] dynamic channels (#13562)
* Dynamic channels
* Status messages i8n
* Format fix
* Cache process load values
* Restore channel configs
* Fix test
* Stabilize tests
* Fix CpuLoad1-5-15 update
* Fix test bndrun
* String equals cleanup
* Fix potential null pointer in test

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2022-11-04 13:28:27 +01:00
Wouter Born
a4f6159f09
[mercedesme] Fix unstable ConfigurationTest (#13650)
* Make sure IPv4 is used with default callback URL
* Use a more reasonable timeout

Fixes #13531

Signed-off-by: Wouter Born <github@maindrain.net>
2022-11-03 22:16:07 +01:00
Martin Herbst
54ccf847da
Some HM devices are using relative humidity (% rH/rF) as units (#13626)
Fix #13553

Signed-off-by: Martin Herbst <develop@mherbst.de>
2022-11-03 19:21:13 +01:00
Andrea Cioni
d505c01a6f
Update README.md (#13642)
`color_mode` is not recognized as a channel parameter, instead, `colorMode` is
2022-11-02 08:20:58 +01:00
lolodomo
79bf9724fc
[netatmo] eventBuffer in SecurityCapability should not be static (#13636)
Also fix few findings by code analysis

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-11-02 08:16:25 +01:00
lolodomo
b85e9b43df
[sagercaster] Fix all code analysis findings (#13637)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-11-01 15:33:54 +01:00
lolodomo
aea2fd4002
[lifx] Fix all code analysis findings (#13638)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-11-01 15:31:37 +01:00
lolodomo
7728bbc232
[vigicrues] Fix few code analysis findings (#13639)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-11-01 15:30:29 +01:00
Thomas Weißschuh
894668ffce
[linuxinput] handle keys not known by libevdev (#13632)
* [linuxinput] handle keys not known by libevdev

Previously if libevdev could not resolve a numeric event code to a
symbolic name the name "null" was used.
This is useless for the user and may lead to duplicate-channel errors if
multiple unknown keys are encountered.

Instead use the numeric code itself as channel name if no symbolic code
could be determined.

Reported-in: https://community.openhab.org/t/linuxinput-binding-and-mouse-capture/122612/8
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>

* [linuxinput] add channel description

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2022-11-01 14:06:58 +01:00
openhab-bot
33de7b426b
New Crowdin updates (#13635)
* New translations hue.properties (French)

* New translations lgwebos.properties (French)

* New translations lgwebos.properties (French)
2022-11-01 14:03:15 +01:00
openhab-bot
813489c2de
New translations hue.properties (German) (#13634) 2022-11-01 10:55:11 +01:00
lolodomo
becb30187e
[netatmo] No restriction on max value for rain quantity (#13620)
* [netatmo] No max value for rain quantity

Fix #13619

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-10-31 20:55:26 +01:00
lolodomo
b6c073d088
[lgwebos] Actions: sendButton updated, sendRCButton removed, sendKeyboard added (#13618)
* README: make the list of remote control buttons less specific to a model

Fix #13600

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-10-31 19:57:46 +01:00
Konstantin Polihronov
ec90a091c6
Fixes #13628 (#13629)
* Change static config in bridge handler to non-static (fixes #13628)

Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
2022-10-31 18:11:15 +01:00
David Pace
71da06dac7
[boschshc] Support for Compact Smart Plugs (#13528) (#13533)
* add thing definition with ID "smart-plug-compact"
* add constant for thing type UID
* extract abstract implementation for devices with power switch and
energy monitoring
* let in-wall switch handler and smart plug handler extend the abstract
implementation
* register new handler
* add method with boolean parameter to fetch initial state actively
* make BoschSHCDeviceHandler abstract
* add documentation
* add unit tests

closes #13528

Signed-off-by: David Pace <dev@davidpace.de>
2022-10-31 17:21:25 +01:00
openhab-bot
e528564bb6
New translations hue.properties (Italian) (#13627) 2022-10-31 09:22:35 +01:00
Michi
6024eb84f6
[miio] Update yeelink.light.light15.json (#13554)
* Update yeelink.light.light15.json

changed Datatype form "Number" to "Dimmer" at channel "ambientBrightness"
same issue openhab#9936 (but already fixed)

Signed-off-by: Michi <michael.schmidts@online.de>
2022-10-30 20:41:13 +01:00
lolodomo
b9591222f5
[hue] Check HTTPS connection (download of PEM certificate) (#13617)
* [hue] Check HTTPS connection (download of PEM certificate)

Fix #13586

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-10-30 13:04:09 +01:00
mlobstein
99e309e991
[kaleidescape] update README (#13593)
* update README

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
2022-10-29 10:43:32 +02:00
Jacob Laursen
af4657f3db
Add console extension for showing IDs (#13615)
Fixes #13614

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-10-28 19:11:24 +02:00
Björn Lange
a84d170192
Fix missing web resource unregistration (#13613)
Signed-off-by: Björn Lange <bjoern.lange@itemis.de>
2022-10-28 12:58:16 +02: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
Cody Cutrer
26ad08cca9
[mqtt] set the proper unit in the state description (#13604)
So that other pieces of openhab can know what unit it's going to be,
without it having a value yet. Importantly, any necessary conversion
that need to be applied to the other portion of the state description -
min, max, and step.

See also https://github.com/openhab/openhab-core/pull/3132

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2022-10-27 08:34:50 +02:00
Matthew Skinner
234d354a2e
[ipcamera] Fix multiple WARNs when HIK camera does not support alarm inputs (#13606)
* Fix never ending WARN when HIK camera does not support alarm inputs.
* Streamline code.

Signed-off-by: Matthew Skinner <matt@pcmus.com>
2022-10-27 08:28:27 +02:00
jimtng
a68ff57c17
[jrubyscripting] Update to JRuby 9.3.9.0 (#13605)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2022-10-26 14:30:10 +02:00
lolodomo
4a8b792621
[freebox] Console command completion (#13591)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-10-25 09:32:34 +02:00
lolodomo
2c78c3bd53
[lgwebos] Console command completion (#13590)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-10-25 09:31:09 +02:00
lolodomo
1d5eb58619
[linky] Console command completion (#13589)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-10-25 09:29:58 +02:00
lolodomo
6a76a596b4
[hue] Console command completion (#13597)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-10-25 09:29:12 +02:00
lolodomo
6b8fb11445
[powermax] Console command completion (#13588)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-10-25 09:27:28 +02:00
lolodomo
91a0a274df
[somfytahoma] Console command completion (#13598)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-10-25 09:25:40 +02:00
Florian Hotze
eda5a562a0
[jsscripting] Name timers created by polyfills (#13576)
* [jsscripting] Name timers created by polyfills

Fixes #13478.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2022-10-24 23:40:44 +02:00
lolodomo
50d946e467
[netatmo] Console command completion (#13587)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-10-24 23:34:32 +02:00
Jacob Laursen
af8a941f1f
[meater] Add console extension for showing IDs (#13601)
* Add console extension for showing IDs

Fixes #13599

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-10-24 23:27:33 +02:00
Florian Hotze
cf47dc0f39
[jsscripting] Fix multi-thread access (#13582)
* [jsscripting] Share the lock mechanism that was used only for rules
This change moves the lock object that was originally created for ThreadsafeSimpleRuleDelegate to OpenhabGraalJSScriptEngine to make share it across the whole engine.

* [jsscripting] Inject the lock object into the JS runtime
* [jsscripting] Update `setTimeout` & `setInterval` polyfills to enable threadsafety
* [jsscripting] Upgrade GraalJS from 21.3.0 to 22.3.0
* [jsscripting] Reduce compiler warnings
* [jsscripting] Update node version of frontend-maven-plugin

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2022-10-24 13:35:33 +02:00
Jacob Laursen
671d2de9b2
Reinitialize properties after configuration change (#13592)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-10-23 22:07:14 +02:00
openhab-bot
42d93c3b97
New Crowdin updates (#13585)
* New translations exec.properties (French)
* New translations watsonstt.properties (French)
2022-10-22 23:41:33 +02:00
Christoph Weitkamp
ee34d92c17
[hue] Changed discovery to mDNS; added HTTPS handling; refactor HTTPClient to use jetty shared client (#11842)
* Changed discovery to MDNS; added HTTPS handling; refactor HTTPClient to use jetty shared client

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-10-22 23:39:51 +02:00
openhab-bot
d2efe69a73
New translations rotel.properties (French) (#13584) 2022-10-22 21:21:45 +02:00
Cody Cutrer
66c7211b26
[homekit] increase flexibility of ColorTemperature (#13538)
* [homekit] increase flexibility of ColorTemperature

allow Number or Dimmer items, and mired or Kelvin units.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2022-10-22 20:24:51 +02:00
openhab-bot
16c0bae0dd
New translations rotel.properties (French) (#13583) 2022-10-22 20:24:19 +02:00
Cody Cutrer
5f6241cbc6
[mqtt] support mired<->Kelvin unit conversion (#13575)
Just have to use the newer toInvertibleUnit method that allows
the dimension to change.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2022-10-22 20:07:33 +02:00
openhab-bot
790e5d58c4
New Crowdin updates (#13580)
* New translations tplinkrouter.properties (French)

* New translations meater.properties (French)
2022-10-22 14:18:31 +02:00
openhab-bot
6c72edd372
New Crowdin updates (#13579)
* New translations amplipi.properties (Italian)

* New translations anel.properties (Italian)
2022-10-22 12:15:52 +02:00
lolodomo
02820a9ebe
[netatmo] Extend example with things for energy stuff (#13568)
* [netatmo] Extend example with things for energy stuff

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-10-20 22:51:03 +02:00