Florian Hotze [Sat, 24 Feb 2024 23:39:57 +0000 (00:39 +0100)]
[jsscripting] Improve logging on JS error (#16445)
* [jsscripting] Improve script error logging
* [jsscripting] Suppress some warnings
* [jsscripting] Throw ISE instead of RE
* [jsscripting] Minor null annotation improvements
Include fileName or ruleUID or transformation UID in the logger name used by the logged error stack trace.
MikeTheTux [Mon, 19 Feb 2024 17:49:23 +0000 (18:49 +0100)]
[evcc] Add support of heating devices and three new channels (#16378)
* added effectiveLimitSoC, chargerFeatureHeating and chargerFeatureIntegratedDevice channels
support of heating devices (temperature) in addition to vehicles (SoC)
Signed-off-by: Michael Weger <weger.michael@gmx.net>
Sönke Küper [Mon, 19 Feb 2024 13:54:21 +0000 (14:54 +0100)]
[sungrow] Initial contribution (#15130)
* 0000: Implementation
---------
Signed-off-by: Sönke Küper <soenkekueper@gmx.de> Signed-off-by: Leo Siepel <leosiepel@gmail.com> Co-authored-by: Wouter Born <github@maindrain.net> Co-authored-by: Eric Bodden <eric.bodden@upb.de> Co-authored-by: Leo Siepel <leosiepel@gmail.com>
Remove config description for removed UV Index Thing.
* [openweathermap] Fix OneCall Thing creates to many channels
The default setting is to create 0 minutes, 12 hours and 6 days of forecast channels.
When creating a new OneCall Thing, actually 60 minutes, 24 hours and 8 days of forecast were created due to the thing-types, but those not needed (as determined by the configuration) were not removed.
ulbi [Sat, 17 Feb 2024 09:58:14 +0000 (10:58 +0100)]
[mongodb] Upgrade DB driver, add more type handlings, fix QuantityType handling (#16333)
* #16308 #16310 Upgraded MongoDB driver, added initial unit tests
* #16308 #16310 Refactored the MongoDBPersistence adding helper, fixing type handling for HSBType, RawType and QuantityType
* #16308 Added backwardcompatibility for the old way of writting the data where possible
* #16308 Added test for larger ImageItems and the limit of 16 MB
Signed-off-by: René Ulbricht <rene_ulbricht@outlook.com>
Florian Hotze [Thu, 15 Feb 2024 13:29:51 +0000 (14:29 +0100)]
[openweathermap] Code clean-up (#16369)
* [openweathermap] Remove UV Index Thing
The UV Index API has been retired on 1st April 2021 and replaced by OneCall API 3.0.
Therefore, this Thing is not working anymore and can be removed from the source code.
* [openweathermap] Clean-Up DTOs
- Improve class JavaDoc.
- Remove setters as they are not needed. (All OWM APIs get required the data as query params.)
Henrik Tóth [Sat, 10 Feb 2024 14:17:43 +0000 (15:17 +0100)]
[solax] Add support for Solax X3MIC / G2 inverter and workmode channel (#16248)
* Support for Solax X3MIC / G2 inverter, and workmode channel for the existing X1, X3 also
* Add update instructions and make raise the target version to 1
* Refactor the workmode to be enum instead of string constants
Signed-off-by: Henrik Tóth <realthk@gmail.com> Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> Signed-off-by: Leo Siepel <leosiepel@gmail.com>
Wouter Born [Tue, 6 Feb 2024 16:18:02 +0000 (17:18 +0100)]
[network] Improve threading (#16315)
* [network] Improve threading
* Use timeouts with CompletableFutures
* Use seperate executor when waiting for results
* Catch exceptions when joining CompletableFutures
* Stop previous detection when starting a new one
lucaarn [Mon, 5 Feb 2024 19:49:57 +0000 (20:49 +0100)]
[evcc] Adjust to evcc version 0.123.1 (#16114)
* updated url of setTargetEnergy and setTargetSoC to match evcc version 0.123.1
* removed minSoc from Loadpoint (since evcc 0.123.0 part of vehicle)
* renamed from targetEnergy to limitEnergy to match new evcc version
* renamed from targetSoC to limitSoC to match new evcc version
* plementation of vehicle object to match new evcc version 0.123.1 -> new implementation of minSoC and plans (served by new api)
Signed-off-by: Luca Arnecke <luca@arnecke.name> Signed-off-by: Florian Hotze <florianh_dev@icloud.com> Signed-off-by: Michael Weger <weger.michael@gmx.net> Co-authored-by: Florian Hotze <florianh_dev@icloud.com> Co-authored-by: Michael Weger <weger.michael@gmx.net>
Rouven Schürch [Fri, 2 Feb 2024 23:00:00 +0000 (00:00 +0100)]
[digitalstrom] Fix initialization of temperature control devices (#16352)
* Fix UnsupportedOperation thrown when adding an element to a fixed-size list. Fixes #10649
* removed static modifier on SUPPORTED_EVENTS and made the field a normal member
[modbus.studer] Some little markdown and grammar corrections (#16324)
* modbus.studer: Some little markdown and grammar corrections
Signed-off-by: Thomas Karl Pietrowski <thopiekar@gmail.com> Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Thomas Karl Pietrowski <thopiekar@gmail.com>
Cody Cutrer [Tue, 30 Jan 2024 21:37:19 +0000 (14:37 -0700)]
[jpa] Do not log failure to persist item with duplicate timestamp as error (#15978)
* [jpa] ignore EntityExistsException
in case the user manually added a UNIQUE constraint to the database,
openHAB might send duplicate timestamps.
effectively this means the first attempt is kept, while others are
dropped. as long as you're using sub-second timestamps, this shouldn't
be an issue - the state updates truly should be duplicates
Cody Cutrer [Mon, 29 Jan 2024 22:05:37 +0000 (15:05 -0700)]
[mqtt] Treat incoming empty string as NULL for most types (#16307)
* [mqtt] Treat incoming empty string as NULL for most types
Empty strings are often received when deleting retained topics when a device
goes offline, or as the result of a transformation that is missing
a value (such as a "scene" event from zwave-js-ui, which sends JSON with
a timestamp and the scene value, then immediately sends a value to the topic
with only a timestamp).
For string channels, add a configuration value to allow setting a specific
string for treating as NULL, since empty string can make sense for that
type.
Holger Friedrich [Sun, 28 Jan 2024 20:44:09 +0000 (21:44 +0100)]
[knx] postUpdate for contact-control sends to bus (#16263)
contact-control items need to send to the bus like a switch item,
to trigger a state update in the external device.
* Add a new profile for contact-control items
* Add a profile factory and a profile advisor class
* Handle postUpdate like a command and send message on KNX bus
Fixes #16115.
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>