Upgrades H2 database from 1.4.191 to 2.2.224.
Add ';NON_KEYWORDS=VALUE' to the JDBC URL because the add-on uses 'value' (which is also a keyword) as column name.
Also fixes some queries used by the command extension because H2 always uses upper case table names.
For the change log, see:
https://h2database.com/html/changelog.html
For migration notes, see:
https://h2database.com/html/migration-to-v2.htmlFixes#13115
Signed-off-by: Wouter Born <github@maindrain.net>
* Fix problem with DPT 251.600.
In the old implementation the datatype was implemented with byte 0-255.
The DPT 251.600 is defined with 0-100%, change this from byte to
PercentType.
Signed-off-by: Marco Mueller <marco@ms.mueller.ch>
The dependency change in #15659 caused slf4j to be embedded into the bundle.
As a result the bundle no longer uses Pax Logging so it cannot find an SLF4J provider and logs the following when it is installed:
SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.
Signed-off-by: Wouter Born <github@maindrain.net>
* Adding the possibility to disable websocket listening.
This is set up in order to ease debugging of the "Erreur Interne" issue.
* Enhancing websocket work with recurrent deconnection, simplification of listeners handling
* refactored function name
* Fixed the name of the channel where the refresh command is sent.
* Solving SAT issues
* Corrected doc error
* Added properties
* Removed gson 2.10 now that it is included into core.
---------
Signed-off-by: clinique <gael@lhopital.org>
* Convert to OH jetty HttpClient
* Adds a Stack for HttpClient storage
* Add synchronized to prevent exception
* fix binding
* Stop stack on close
* Resolves exception on registring forward actions
* Reduces client count to 5 to align to expected thread pool limit of 5
---------
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
Co-authored-by: Mark Herwege <mark.herwege@telenet.be>
* Update README.md
I had some struggles with setting up google TTS, got it to work eventually and now update the README to help users in the future.
This commit includes updating the information, including necessary tips, formatting und some minor details
Signed-off-by: Felix Schneider <fs@felix-schneider.org>
The cleanup includes:
* Use lambdas
* Use enhanced switches
* Make abstract class constructors protected
* Fix typos
Signed-off-by: Wouter Born <github@maindrain.net>
Adding support for the following models:
* Xiaomi Smart Humidifier 2 (modelId: deerma.humidifier.jsq2w)
closing #15639
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
* Upgrade to version 3
* Use ThreadPoolManager and add sleep
* Remove pool prefix, already added by thread pool manager
Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
* Add a buffer to lower Weather API requests
* Correcting typo identified in PR #15587 after merge
---------
Signed-off-by: clinique <gael@lhopital.org>
* Resolve itest runbundles
* Fix dependency issues
* Add specs features because Pax Web now depends on "asm"
Signed-off-by: Wouter Born <github@maindrain.net>
* New translations netatmo.properties (Italian)
* New translations danfossairunit.properties (Danish)
* New translations jsscripting.properties (Italian)
* Added connection check via IdleStateHandler events for sent onvif requests.
Also checking connect errors and setting new states connectError or refusedError accordingly.
On connect, only one request is sent to have less parallel actions in case of reconnect, timeout.
Moved GetCapabilities call to GetSystemDateAndTime response handler part.
Added support to disable automatic polling at startup.
* Fixed call of sendOnvifRequest (missed to remove one call of requestBuilder).
---------
Signed-off-by: Thomas Burri <th@thonojato.ch>
Signed-off-by: Matthew Skinner <matt@pcmus.com>
Co-authored-by: Matthew Skinner <matt@pcmus.com>
Migrating from OH 2.5 I tripped over this, as :power no longer exists and instead one has to send ON/OFF commands to the :color channel instead.
Looks like documentation wasn't fully updated with the code changes.
Signed-off-by: uqs <uqs@FreeBSD.org>
* Improve conversion of database value to item state
* Refactor test cases to reduce redundancy
* Refactor for type-safety
* Refactor type cast
Fixes#15433
---------
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Special handling for temperature differences in °F and °F/%,
DPT 9.002 and 9.003, needs to be adapted due to change in core.
Refs openhab/openhab-core#3792.
Implementation is valid for 4.0 and 4.x snapshot.
Fixes#15567.
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
* [miio] maintenance - update device names list
Update the list with latest device names
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
* [miio] Update device names list
Update the list with latest device names used by some of the support
tools
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
---------
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
* [Juicenet] Fix typos in setOverride()
Some obvious typos in setOverride() result in the timestamp being
ignored which causes it to fail
Fixes#15564
* [Juicenet] Allow disabling the override
- The charger has default settings upon plugin, changing the current state
sets the overide to Y, this makes override settable only in the N direction
to remove whatever settings were previously applied
* [Juicenet] Document new writable status of override
---------
Signed-off-by: Ed Martin <edman007@edman007.com>
* simplified determination of start/stop as the opMode now has new values (7+8) to show missing authentication (before this was included in value "2")
* refactored ChargerOpState to enum
---------
Signed-off-by: Alexander Friese <af944580@googlemail.com>
Signed-off-by: Alexander Friese <alexf2015@users.noreply.github.com>
Co-authored-by: lsiepel <leosiepel@gmail.com>
* Provide detailed error information on failed commands
* Log as info when command succeeds
* Revert collect(Collectors.toList()) refactoring
* Provide exception message in status description
Fixes#15511
---------
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* fixed problems with fingerprint codes which were received in decimal instead of hex
Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>
* correct format issues
Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>
* add test file for fingerprint codes
Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>
* Delete openhab-addons.code-workspace
Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>
---------
Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>
Co-authored-by: Andre Jendrysseck <ajendry@gwdg.de>
* [gardena] Improve and fix UoM support
Properly convert incoming UoM values for command durations, and output
measurements as UoM values where possible.
* [gardena] Fix signal strength channel value
Previously the binding sent 0..100, but the system expects 0..4 for the
system.signal-strength channel.
* [gardena] Update README
* [gardena] Use actual units in state description where appropriate
Signed-off-by: Danny Baumann <dannybaumann@web.de>
XMLInputFactory: Disable properties IS_SUPPORTING_EXTERNAL_ENTITIES and
SUPPORT_DTD which allow injecting external entities.
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
* Updated A5-10 EEP family (corrected readings, added new channels)
* Changed fanSpeedStage channel to type Number and added new options to it
* Added dayNightModeState channel
Fixes#15458
Signed-off-by: Daniel Weber <uni@fruggy.de>
* Remove build server specific timing from dynamodb and ruuvigateway
There should be no difference between running tests on your own PC or on a build server.
The ruuvigateway tests always fail for me during parallel builds due to its unrealistic timing.
Signed-off-by: Wouter Born <github@maindrain.net>
* [automation] Code optimization for Java17: instanceof matching and multiline strings
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
* [automation] Make use of Java17 features
Use Map/Set/List.of instead of Collections.
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
* review comment
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
---------
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
* Resolve runbundles for CXF upgrade
Related to openhab/openhab-core#3770
Signed-off-by: Wouter Born <github@maindrain.net>
* Replace Grizzly JAX-RS Client with Jetty HTTP client in hueemulation tests
It seems that the Grizzly JAX-RS Client implementation does not work well with the new CXF dependencies on the classpath.
As we do not use Grizzly anywhere else it is probably best to also stop using the Grizzly HTTP Server in these tests in the future.
Signed-off-by: Wouter Born <github@maindrain.net>
---------
Signed-off-by: Wouter Born <github@maindrain.net>
* Fix Paradox EVOHD zone parsing fail #10572
* Root cause is that EVOHD and EVO192 have much more zones which are
stored in a different memory map model. They should be treated the same
way. Fix is simple and can be downported to 3.x if decided by the
maintainers
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
Make sure that SecureRadom is used whenever the random number
is used for cryptographic operations, e.g. as nonce/salt.
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
* [jrubyscripting] Fix broken image in README.md
* [jrubyscripting] Update the base url in the regenerate instructions
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
* reworked the way to retrieve Charger state as API endpoint is now deprecated.
* fixed result processing: removed default handling by bridge handler which caused everything to go offline if a single charger had faulty config.
* additional channels / removed obsolete firmware channel
Signed-off-by: Alexander Friese <af944580@googlemail.com>
* [tr064] Fix clearing of auth (results)
In case of multiple root things the auth store (results and digests) was cleared for all clients instead of only removing the failed auth result or old authentication.
* fix TAM request
Signed-off-by: Jan N. Klug <github@klug.nrw>
* New translations hue.properties (Italian)
* New translations deconz.properties (Italian)
* New translations anel.properties (Italian)
* New translations atlona.properties (Italian)
* New translations electroluxair.properties (Italian)
* New translations groupepsa.properties (Italian)
* New translations somneo.properties (Italian)
* New translations meater.properties (Italian)
* New translations juicenet.properties (Italian)
* New translations volumio.properties (Italian)
* New translations asuswrt.properties (Italian)
* [pulseaudio] For source, default timeout should be disconnection ASAP
To avoid weird behaviour, such as pulseaudio server storing audio data between inputstream get/read and then sending the backlog all at once when finally reading, we must disconnect immediately thereafter.
---------
Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
Co-authored-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
It was found out that a recent change to the webpack config for the library injection bundle heavily affected performance of the evaluation of the cached injection.
openhab-js 4.5.1 fixes that regression and one minor bug, see https://github.com/openhab/openhab-js/blob/main/CHANGELOG.md#451.
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
* Reimplement Auth Digist to return response as http header field instead
of being part of post data; avoid sending Basic Auth for Gen2 and
/shelly
Signed-off-by: Markus Michels <markus7017@gmail.com>
Fix bundle unusable after #14023 (closes#15181)
Fix a case issue with some directory
Fix trigger channel issue
Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
* Reduce warnings 1
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* 2
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* 3
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Initial files and package refactoring
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Implemented zone commands without checksum calculation
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* More stuff
* Added the checksum functionality
* Added more examples to the test
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Implement ZoneCommand and necessary classes
* Refactor the common logic
* Extract interface Command
* CHange the Response class to use Switch/case
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Fully implement the test for creating zone command payload
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Fix build / add headers and author to the new files
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Add command handling to the zone handler
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Add command channel to the Zone thing
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Research of zone states and some TODO notes
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Retrieval of zone special states from the panel
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Fix build
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Add the new channels to the metadata file
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Add new channels to zone handler
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Fix indexing in memory map and add more logging
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Refactoring and potential NPE access fixes
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Add new property "label" to the discovered zones and partitions
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Fix zone command issues
* Fix checksum creation
* Fix the parse and confirmation of the response
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Add the new channels to the README.md
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Fixed issue with not updating new channels in the zones
* A silly copy/paste mistake
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Change the type of the new channels from contact to switch
As per community discussion this makes more sense and will be more
intuitive - when something is true -> make it ON, when it's false ->
make it OFF. OPEN and CLOSED are not fitting so well here...
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Fix issue that the channel label is always NULL
* For both zone and partitions
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Add new types and channels to the i18n
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
---------
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Include NuvoNet source favorites in zone `favorite` channel
* Use existing constants
* VALID_SOURCES to enum list
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
* New translations sonos.properties (German)
* New translations comfoair.properties (German)
* New translations publictransportswitzerland.properties (German)
* New translations watsonstt.properties (German)
* New translations sensorcommunity.properties (German)
* [openwebnet] Fixes changing and startup value for Weekly/Scenario modes
Fixes#12599
* [openwebnet] Thermo: Fixed CU setpointTemp not restored
Fixes#14449
* [openwebnet] fix update of atLeastOneProbeX channels for CU Fixes#15103
Bumped lib openwebnet4j to 0.10.1
Signed-off-by: Massimo Valla <mvcode00@gmail.com>
Updated: README, `where` parameter description for Things and channels descriptions.
Added `AUTO` option for mode channel-type.
Added `OFF` option for speedFanCoil channel-type.
Updated default translations.
Signed-off-by: Massimo Valla <mvcode00@gmail.com>
Added sample to play Web Radio URI.
I had to do a lot of searching to find out, that you have to put "x-rincon-mp3radio://" before the Stream-URL url. Hope this helps someone.
Signed-off-by: joke24 <info@jonaskemmer.de>
* New translations mail.properties (French)
* New translations renault.properties (French)
* New translations netatmo.properties (French)
* New translations bluetooth.properties (French)
* New translations anthem.properties (French)
* New translations plex.properties (French)
* New translations openwebnet.properties (Italian)
* New translations energidataservice.properties (Italian)
* New translations androidtv.properties (Italian)
* New translations netatmo.properties (French)
* [openwebnet] Backward support for CU configurations with where="0"
* [openwebnet] fix send in handleSetProgramNumber()
---------
Signed-off-by: Massimo Valla <mvcode00@gmail.com>
* New translations pollytts.properties (French)
* New translations energidataservice.properties (Danish)
* New translations pollytts.properties (German)
initialization if device doesn't support scripts (Pro4); fix resetMeter
for EM50 (has 2 power meters); removed channel sensors#open; removed
device#voltage updates for Plus/Pro, needs to be verified
Signed-off-by: Markus Michels <markus7017@gmail.com>
* FIX TAPO branded cameras require xAddr port to be different from the
main ONVIF PORT
* Fix for old API instar cameras.
---------
Signed-off-by: Matthew Skinner <matt@pcmus.com>
* [openwebnet] support for thermo cu discovery
* [openwebnet] fixed discovery for 4-zones CU and support in ThermoHandler
* [openwebnet] updated openwebnet.properties#cu.where.description
* [openwebnet] updated OwnIdTest with CU-4 test
* [openwebnet] Fix ownId for CU 4-zone case. Update README
---------
Signed-off-by: Massimo Valla <mvcode00@gmail.com>
* Shelly BLU support, various fixes
* Shelly Dimmer US added
* Reference to org.eclipse.jetty.websocket updated to 9.4.50.v20221201
* Support for Shelly Wall Display added
* Fixed#15052: channel totalKWH and totalRetruned: correct value is kw/h
(API value needs to be converted from Watt/Min to kw/h)
* Regular power meter returns Watt/Min, the EM/3EM meter returns W/h; this
needs to be handled differently
* Gen2 power meter returns Watt, which needs to be converted to W/h
(and then gets converted to kw&/h for the channel update)
* bug fixes around channel creation, some xml channel declarations fixed
* Support for 1Mini, 1PM Mini and PM Mini added
* Avoid NPE for devices having relay(s), but no meter (like Pro 2); README
updated
* Shelly Pro 3EM-50 added; fixes#15151, #15152 and more
* fix#15218 (only 1 device#resetTotals channel)
* Fix Pro EM50 (it's not a 3EM-50): thing type name is now shellyproem50,
use EM1DataDeleteAllData method rather then EMDataDeleteAllData
* <connection>local</connection> added to addon.xml
* channel group names for i4 fixed, Plus-Roller now has voltage
Signed-off-by: Markus Michels <markus7017@gmail.com>
* New translations lgwebos.properties (French)
* New translations openuv.properties (French)
* New translations exec.properties (French)
* New translations electroluxair.properties (French)
* New translations rollershutter.properties (French)
* New translations vat.properties (French)
* New translations chatgpt.properties (French)
* [mimictts] Add LRU cache
And simplifies code with new core capabilities (no more need to create temporary files implementing FixedLengthAudioStream)
---------
Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>