Commit Graph

3183 Commits

Author SHA1 Message Date
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
Andrew Fiddian-Green
c9481d5c36
[hdpowerview] add duette/applause skylift shades (#13574)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2022-10-20 12:49:23 +02:00
GiviMAD
60c13b5cd1
[jellyfin] upgrade sdk, fixes json parse error (#13572)
Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
2022-10-20 07:26:39 +02:00
Andrew Fiddian-Green
66734bd5cf
[hdpowerview] support for shade types 26,27,28 (#13571)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2022-10-19 21:19:55 +02:00
Cody Cutrer
68b52ee15b
[homekit] Improve output of console's homekit show command (#13569)
* [homekit] Improve output of console's `homekit show` command

 * include the full JSON from all the characteristics, so you can confirm
   everything is configured correctly.
 * only use simple class names; the fully qualified package is just a
   distraction.
 * show linked services if they exist
 * include the class name of services, not just the GUID

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2022-10-19 20:17:55 +02:00
Cody Cutrer
91383250d4
[homekit] improve bundle deactivation time (#13566)
If you have many instances, it can take a while. So stop all the
instances in parallel. Also, fix a race condition where the update
debouncer might get called again after being stopped, because the
change listener was deregistered _after_ the debouncer was stopped.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2022-10-19 11:18:02 +02:00
lolodomo
77013bca39
[netatmo] Console command to show all devices/modules ids (#13555)
* [netatmo] Console command to show all devices/modules ids

Fix #13091

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-10-19 08:47:04 +02:00
lolodomo
dda2e9a288
[netatmo] more precision in doc where to find the refresh token (#13567)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-10-19 08:24:25 +02:00
Florian Hotze
bdefe17f08
[jsscripting] Upgrade openhab-js to 2.0.4 (#13565)
Fixes #13563.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2022-10-18 22:34:33 +02:00
GiviMAD
4bba6efe24
[voskstt] Fix load on linux arm (#13556)
Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
2022-10-18 19:29:15 +02:00
openhab-bot
df74075d31
New translations allplay.properties (Italian) (#13561) 2022-10-17 21:06:45 +02:00
Gaël L'hopital
5552220870
[MAP] Adds fallback to original value when input not found (#13560)
* [MAP] Adding fallback to original value
Solves #10092

Signed-off-by: clinique <gael@lhopital.org>
2022-10-17 19:43:12 +02:00
Dan Cunningham
03cdc5e1b4
[openhabcloud] Removing content encoding when proxing. (#13559)
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2022-10-17 08:06:08 +02:00
openhab-bot
a02e345f96
New Crowdin updates (#13558)
* New translations meater.properties (Italian)
* New translations tplinkrouter.properties (Italian)
2022-10-17 01:05:00 +02:00
GiviMAD
5762d239b3
[broadlinkthermostat] Aesthetic rename and add RM Mini (#13412)
* [broadlinkthermostat] Aesthetic rename and add RM Mini

Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
2022-10-16 23:13:12 +02:00
Jan Gustafsson
c75485df16
[meater] Initial contribution (#13400)
* First version.

Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
2022-10-16 10:13:18 +02:00
Olivier
73e18424b9
[tplinkrouter] Initial contribution (#13369)
* Initial commit

Signed-off-by: Olivier Marceau <hollysaiqs@marceau.ovh>
2022-10-15 21:52:33 +02:00
Wikibear
19b4c95103
[influxdb] Update README.md (#13541)
* Update README.md

At a link for further information what to do in a persist file.
2022-10-15 16:29:01 +02:00
billfor
39e2a29bcf
[tesla] Options to control polling frequency and sleep (#13337)
* Options to control polling frequency and sleep mode
* Update documentation
* Fix request token expiration calculation and additional logging for tokens

Signed-off-by: Bill Forsyth <git@billforsyth.net>
2022-10-15 14:25:29 +02:00
lolodomo
45bf7aeeda
[sonos] New codec id 61 for Dolby Atmos (#13551)
Fix #13540

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-10-15 11:48:20 +02:00
mlobstein
51054fe51b
Ignore NuvoNet events for sources not managed by openHAB (#13535)
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
2022-10-15 10:27:37 +02:00
Stian Kjoglum
6103c30830
Bug Fix - Websocket reconnect after server failure (#13537)
Signed-off-by: kjoglum <stiankj@online.no>
2022-10-15 10:22:58 +02:00
Matthew Skinner
90ac9c7b78
Fix indexing of presets and playlists. (#13543)
Signed-off-by: Matthew Skinner <matt@pcmus.com>
2022-10-15 10:07:49 +02:00
Gaël L'hopital
bdbd5a1ede
[gce] File based items are not updated (#13545)
* [gce] Correcting non updated input channels

Signed-off-by: clinique <gael@lhopital.org>
2022-10-15 10:02:01 +02:00
mlobstein
61b9e74c95
[epsonprojector] Log invalid number when expecting numeric response from projector (#13550)
* Log invalid number when expecting numeric response from projector

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
2022-10-15 09:35:14 +02:00
mlobstein
f5101b1764
Log invalid number when expecting numeric response from projector (#13549)
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
2022-10-15 09:33:12 +02:00