Commit Graph

3036 Commits

Author SHA1 Message Date
Jacob Laursen
22ea587d20
[jdbc] Add console command for checking/repairing schema integrity (#13765)
* Add console command for checking schema integrity
* Remove unneeded logging
* Add console command for fixing schema integrity
* Provide documentation
* Try to add support for Derby and PostgreSQL
* Sort alphabetically by item name

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-11-27 19:02:43 +01:00
Cody Cutrer
583da2d516
[homekit] add @ccutrer as a codeowner (#13784)
Signed-off-by: Cody Cutrer <cody@cutrer.us>

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2022-11-26 21:39:06 +01:00
Cody Cutrer
b00d58d0eb
[jrubyscripting] add @ccutrer and @jimtng as CODEOWNERS (#13783)
Signed-off-by: Cody Cutrer <cody@cutrer.us>

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2022-11-26 21:38:21 +01:00
Jerome Luckenbach
8681544e3b
Fix log and website build (#13781)
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
2022-11-26 15:05:14 +01:00
Thomas Traude
66d7496d7b
[knx] Remove obsolete public modifier in tests (#13776)
Since JUnit Jupiter test classes and methods do not need to be `public`.

It is recommended to omit the `public` modifier.
See https://junit.org/junit5/docs/current/user-guide/#writing-tests-classes-and-methods

"Class and method visibility
Test classes, test methods, and lifecycle methods are not required to be
`public`, but they must not be `private`.

It is generally recommended to omit the `public` modifier for test
classes, test methods, and lifecycle methods unless there is a technical
reason for doing so (...)"

Signed-off-by: Thomas Traude <t-riggs@gmx.net>
2022-11-26 12:19:43 +01:00
Cody Cutrer
4739f126a2
[jrubyscripting] log Ruby stacktrace on exception from JRuby (#13778)
Signed-off-by: Cody Cutrer <cody@cutrer.us>
2022-11-26 08:19:22 +01:00
Matthew Skinner
ea134d8215
[ipcamera] Improve support for newer 2k+ Instar cameras (#13773)
* Fix never ending WARN when HIK camera does not support alarm inputs.
* Streamline code.
* Update Instar support for 2k+ Generation.
* Fix alarm codes.
* Add CHANNEL_LAST_EVENT_DATA

Signed-off-by: Matthew Skinner <matt@pcmus.com>
2022-11-26 08:15:29 +01:00
Marcel
698bee7c3e
[miio] add support Xiaomi Smart Air Purifier 4 (modelId: zhimi.airp.mb5) (#13717)
* [miio] add support Xiaomi Smart Air Purifier 4 (modelId: zhimi.airp.mb5)

Adding support for the following models:
* Xiaomi Smart Air Purifier 4 (modelId: zhimi.airp.mb5)

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2022-11-26 06:59:34 +01:00
mlobstein
b4a5afd6a6
[nuvo] update rules examples in README (#13771)
* update rules examples

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
2022-11-25 08:08:59 +01:00
Florian Hotze
29d2578981
[jsscripting] Fix add-on name in feature/pom (#13764)
* Update pom.xml
* Update feature.xml
* [jsscripting] Rename from JSScripting to JavaScript Scripting

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2022-11-24 23:23:19 +01:00
openhab-bot
ac3feabf1a
New translations sensebox.properties (German) (#13774) 2022-11-24 13:03:33 +01:00
Patrik Gfeller
9fa30f5c35
Unfortunately I do not have the resources (and equipment) anymore (#13766)
to act as maintainer of this add-on; and therefore resign from this
role.
2022-11-23 20:05:36 +01:00
openhab-bot
ce4843f020
New translations sensebox.properties (German) (#13762) 2022-11-22 08:15:31 +01:00
Jacob Laursen
f9aa20e488
[jdbc] Fix date filter to be inclusive (#13734)
Fixes #9906

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-11-22 07:13:45 +01:00
Gaël L'hopital
1d23c32de1
Solves issue #11691 (#13758)
Signed-off-by: clinique <gael@lhopital.org>
2022-11-21 20:38:37 +01:00
openhab-bot
6c170db1bd
New translations boschshc.properties (Italian) (#13757) 2022-11-21 11:08:49 +01:00
David Pace
1251873843
[boschshc] Support smart light bulbs (#13725)
* [boschshc] Support smart light bulbs (#13707)

* add thing type definition for smart bulbs using system channels
* add constants for thing type and channels
* implement and register handler
* implement binary switch service (to switch on/off)
* implement multi-level switch service (allows to get/set brightness
from 0-100%)
* implement service to get and set colors
* add unit tests for handler and state classes
- update documentation

Signed-off-by: David Pace <dev@davidpace.de>
2022-11-20 22:12:49 +01:00
Florian Hotze
bfff07bb01
[jsscripting] Reimplement timer creation method of ScriptExecution (#13695)
* [jsscripting] Refactor ThreadsafeTimers to create futures inline instead of in an extra methods
* [jsscripting] Introduce utility class for providing easy access to script services
* [jsscripting] Reimplement timer creation methods from ScriptExecution for thread-safety
* [jsscripting] Add missing JavaDoc for reimplement timer creation methods
* [jsscripting] Remove the future from the map when setTimeout expires
* [jsscripting] Rename `GraalJSScriptServiceUtil` to `JSScriptServiceUtil`
* [jsscripting] Remove the `createTimerWithArgument` method
* [jsscripting] Replace the OSGi workaround of `JSScriptServiceUtil` with an injection mechanism
* [jsscripting] Use constructor to inject `JSScriptServiceUtil` into `GraalJSScriptEngineFactory`
* [jsscripting] Minor improvements by @J-N-K (#1)
* [jsscripting] Minor changes related to last commit to keep flexibility of `JSRuntimeFeatures`
* [jsscripting] Upgrade openhab-js to v2.1.1
* [jsscripting] Remove unused code

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Co-authored-by: Jan N. Klug <github@klug.nrw>
2022-11-20 22:08:19 +01:00
Fabian Wolter
d0736bdea9
[pwm] Fix NPE when disabling and improve logging (#13755)
* [pwm] Fix exception when disabling the module
* Improve logging

Signed-off-by: Fabian Wolter <github@fabian-wolter.de>
2022-11-20 20:38:00 +01:00
Florian Hotze
103619741d
[jsscripting] Fix the console.trace polyfill to log a stack trace & Stringify JS Error (#13749)
* [jsscripting] Fix the `console.trace` polyfill to log a stack trace & Stringify JS `Error`
* [jsscripting] Add myself to the codeowners

Fixes #12646

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2022-11-20 20:30:42 +01:00
eugen
54e934be3d
[homekit] simplify settings page, resize doc images (#13741)
* simplify config, resize images

Signed-off-by: Eugen <eugen@relotrust.com>
2022-11-20 20:07:45 +01:00
openhab-bot
34b2cead83
New translations sensebox.properties (German) (#13748) 2022-11-20 17:35:58 +01:00
Florian Hotze
4dde19203a
[jsscripting] Fix maven build (#13747)
This fixed the maven build, that fails because webpack-cli version 5.0.0 doesn’t properly process the given entrypoint.
Instead, webpack tries to use the entrypoint from openhab-js‘ webpack config file.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2022-11-20 17:30:23 +01:00
Jacob Laursen
d3348327a9
Fix PostgreSQL query for storing timestamps (#13745)
Fixes #13121

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-11-19 20:57:51 +01:00
Matthew Skinner
c9b9002b8e
Fix wrong textual format. (#13742)
Signed-off-by: Matthew Skinner <matt@pcmus.com>
2022-11-19 09:22:58 +01:00
mlobstein
ed96a39b99
[dscalarm] Fix broken link in README (#13743)
* Update README

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
2022-11-19 09:18:32 +01:00
Jacob Laursen
d075f141d7
Make itemsManageTable configurable (#13737)
Fixes #9637

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-11-18 17:34:10 +01:00
openhab-bot
63ecbc264a
New translations juicenet.properties (Italian) (#13736) 2022-11-17 22:56:36 +01:00
Jacob Laursen
ea49488b86
[harmonyhub] Fix reliability issues (#13702)
* Fix compiler info

Unsafe interpretation of method return type as '@NonNull' based on the receiver type 'java.util.Enumeration<java.net.@NonNull NetworkInterface>'. Type 'java.util.Enumeration<E>' doesn't seem to be designed with null type annotations in mind

* Improve robustness of job rescheduling and handler disposal

Handler tried updating thing although the handler was already disposed

Fixes #13701

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-11-17 20:48:28 +01:00
Jacob Laursen
b6f9f6339e
[jdbc] Add warning about using tableCaseSensitiveItemNames without dedicated schema (#13732)
* Add warning about using tableCaseSensitiveItemNames without dedicated schema
* Move warning to extended description
* Rephrase explanation
* Fix commands

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-11-17 20:05:10 +01:00
Jacob Laursen
dbf2358280
Do not modify index or create tables when uninitialized (#13728)
Fixes #13727

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-11-17 20:00:31 +01:00
Jacob Laursen
2f786b87b4
Add console command for reloading index/schema (#13733)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-11-17 19:52:54 +01:00
Doug Culnane
cc3ac23ae0
[awattar] Fix that allows bridge to be added via UI. (#13730)
Signed-off-by: Doug Culnane <doug@culnane.net>
2022-11-17 19:46:57 +01:00
Jacob Laursen
3ef974df17
Fix NoSuchElementException when there are no tables (#13731)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-11-17 00:58:14 +01:00
Marcel
cf241f8b4f
[miio] Fix dimming channels for several yeelights (#13724)
The majority of brightness channels were already converted to dimmer.
This PR applies same to the 'other'brightness channels like nightlight
and/or ambient

close: #9936

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2022-11-16 13:26:26 +01:00
Jacob Laursen
0873dd3ddf
[jdbc] Improve error handling safety (#13726)
* Wrap YankSQLException into checked exception for all Yank calls

* Move files into internal

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-11-16 09:28:46 +01:00
mlobstein
dff4d3b4fb
Add missing status (#13729)
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
2022-11-16 08:14:10 +01:00
Jacob Laursen
7eb2c9fb81
[jdbc] Improve error handling (#13719)
* Enable wrapped exceptions being thrown by Yank

Fixes #13718

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

* Fix SAT warning about hashCode implementation

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

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-11-15 08:44:12 +01:00
mlobstein
12980e7147
fix system_buttonpress not populating (#13721)
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
2022-11-15 00:30:34 +01:00
Konstantin Polihronov
1471709b52
[tesla] Add steering wheel heater command support for Model 3/Y (#13704)
* Add steering wheel heater channel for Model Y
* Add command for steering wheel heater

Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
2022-11-14 21:33:21 +01:00
robnielsen
0276d32897
[ecobee] Add air quality channels for Ecobee Smart Thermostat Premium (#13705)
* [ecobee] Add air quality channels for Ecobee Smart Thermostat Premium

Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com>
2022-11-14 21:29:34 +01:00
Florian Hotze
11d3c641e5
[jsscripting] Fix failure on some platforms & JDKs (#13714)
* [jsscripting] Downgrade GraalVM to fix issue with armv7l & OpenJDK 11.0.16

The community reported several cases where JS Scripting was not working due to some issue with the injection of the global script.
This issue seems to only occur on armv7l (e.g. Raspberry Pi 32bit) and OpenJDK 11.0.16.
Investigation showed that the occurrence of the problem depends on the GraalJS version.

See https://community.openhab.org/t/js-scripting-all-scripts-stop-working-when-upgrading-to-3-4-0-m4/140837.

* [jsscripting] Add logging for injection of JSRuntimeFeatures
* [jsscripting] Lint `@jsscripting-globals.js` with semistandard
* [jsscripting] Remove ICU4J as it moved to `org.graalvm.truffle`

Reference f5661d4655/CHANGELOG.md (version-2200).

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2022-11-14 20:30:44 +01:00
Christian Wild
40723a80a0
[tapocontrol] fixed configuration error (#13677)
* improved response logging and error handling

Signed-off-by: Christian Wild <christian@wildclan.de>
2022-11-14 10:13:05 +01:00
Florian Hotze
aee4d31d5b
[evcc] Fix data type issues in DTO (#13710)
* [evcc] Change DTO from double to float as the higher precision is not required
* [evcc] Change DTO from int/long to float
* [evcc] Update JavaDoc & small improvements
* [evcc] `EvccHandler`: Add exception message to the debug log

Fixes https://github.com/openhab/openhab-addons/issues/13646.
Avoids problems with changed data types in the future by generally using float instead of int.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2022-11-13 12:54:00 +01:00
jsjames
71d1226505
[juicenet] Initial contribution (#10768)
Signed-off-by: Jeff James <jeff@james-online.com>
2022-11-13 12:27:43 +01:00
Jørgen Austvik
fbd06ec709
[Nanoleaf] Visualize layout (#13552)
* Visualize Nanoleaf layout
* Only calculate image if channel is linked
* White background image
* Render more shapes

Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
2022-11-12 23:00:08 +01:00
mlobstein
160e0c2548
[nuvo] Add zone actions for rules (#13658)
* Add zone actions for rules
* Don't scan for NuvoNet source messages if openHAB NuvoNet sources are not being used

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
2022-11-12 16:57:22 +01:00
Sami Salonen
a1270c7822
[mqtt.homeassistant] Fix binding crash when home assistant discovery topics update with content (#13518)
* [mqtt.homeassistant] Fix for discovery topics that update with content

Fixes #13517
Possibly resolves #9711 and #12295 as well.

* [mqtt.homeassistant] Sort channels before changing thing
* [mqtt.homeassistant] logging + removed unnecessary synchronization
* Resolve bunch of warnings in homeassistant bundle
* [mqtt.homeassistant] Handling null warnings and unnecessary null checks
* [mqtt.homeassistant] Removing unnecessary null checks

Signed-off-by: Sami Salonen <ssalonen@gmail.com>
Co-Authored-by: @antroids github handle
2022-11-12 12:46:43 +01:00
Jacob Laursen
159054a99c
[jdbc] Add console maintenance commands (#13662)
* Add console command for listing tables
* Query row counts only when needed and while generating output
* Add cleanup command
* Add documentation

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-11-12 12:30:53 +01:00
Boris Krivonog
248ca1830a
If for some reason HP response fails to properly parse, i.e. java.lang.NumberFormatException: For input string: "##" exception is not handled and scheduler is not re-triggered (polling stops).Fixed build warnings. (#13685)
Signed-off-by: Boris Krivonog <boris.krivonog@inova.si>
2022-11-12 10:44:45 +01:00