Commit Graph

167 Commits

Author SHA1 Message Date
J-N-K
cb31f420ff
[tr064] Enhancements, code improvements and fixes (#14468)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-02-24 16:06:53 +01:00
Mark Hilbush
253b25631f
[sleepiq] Rework cloud API and other enhancements (#14180)
Signed-off-by: Mark Hilbush <mark@hilbush.com>
2023-02-18 16:26:57 +01:00
J-N-K
5ea0dcbda9
[onewire] Code improvements and bug fixes (#14400)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-02-16 18:49:00 +01:00
J-N-K
fc57f02fca
[snmp] Upgrades and enhancements (#14330)
* [snmp] Upgrades and enhancements

- bug: improve test stability
- enhancement: add support for UoM
- bug: fix misleading error message
- bug: fix initialization exceptions
- enhancement: Add support for SNMPv3
- enhancement: add opaque value handling

Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-02-04 15:47:30 +01:00
Wouter Born
88c0b720c6
[jsscriptingnashorn] JavaScript Scripting Nashorn Automation (#14013)
* [jsscriptingnashorn] JavaScript Scripting Nashorn Automation

This add-on allows you to use your older JavaScript (ECMAScript 5.1) rules on newer Java versions until they are migrated to JavaScript (ECMAScript 2021+).
The add-on uses a standalone [Nashorn Engine](https://github.com/openjdk/nashorn) which was part of Java until it was removed in Java 15.

* Update parent to 3.4.0-SNAPSHOT and nashorn-core to 15.4

For the Nashorn changelog, see:

https://github.com/openjdk/nashorn/blob/main/CHANGELOG.md

* Update parent to 4.0.0-SNAPSHOT
* Remove removeUnsupportedNashornArgs
* Update scriptTypes
* Add CODEOWNERS entry
* Recycle ScriptScopeOSGiTest.java

It got removed in openhab/openhab-core#2994

* Remove redundant new line from pom.xml

Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-26 15:27:03 +01:00
Christoph Weitkamp
528140d7ad
[darksky] Remove DarkSky binding due to EOL of their API (#13037)
* Remove DarkSky binding due to EOL of their API

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-12-21 17:24:57 +01:00
J-N-K
9f3b8e1c04
Raise minimum JDK version to 17 (#13276)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-19 20:39:42 +01:00
mlobstein
0c53ce998c
[atlona] Update README (#13867)
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
2022-12-07 21:33:00 +01:00
mlobstein
fc529777e4
[vizio] Vizio TV binding - Initial contribution (#13309)
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
2022-12-06 15:37:54 +01:00
Cody Cutrer
52b7b7981f
[bondhome] Initial contribution (#13459)
* First commit on newly created branch, taking code from c8b8e210dfd23f98526763782eadbca49509baf9
* [bondhome] update snapshot version, and some typos
* [bondhome] Address (most) comments from prior review from #7260
* [bondhome] simplify channels

 * lastUpdate is unnecessary; turn on persistence or add a rule on update if
   you care to keep track of it
 * use a single string command channel for all shoot-and-forget commands, instead
   of multiple switch channels
 * use a rollershutter channel for shades (accepting UP, DOWN, STOP, 0%, and 100%)
 * on all dimmer channels, accept ON and OFF, as well as 0% to imply OFF, instead
   of having to write rules to control ON/OFF state separately.
 * if the dimmer channel exists, prune the corresponding power channel, since
   the dimmer channel is now a pure superset of its functionality
 * overload fan#speed to be ceiling fan or a fireplace's fan, depending on the
   device type
* [bondhome] add bundle to the BOM pom
* [bondhome] clean up BondDeviceHandler a bit

 * there's no need to delay initialization; ThingManager won't
   even attempt to initialize a child thing until its bridge is online
 * Remove some extra initialization checks that can never be false
 * slightly refactor some methods to return early, rather than
   nest a giant `else`
 * remove some info logging that will get triggered in normal usage
* [bondhome] fix bridge discovery

 * Bridge property and config serial number need to be the same name
 * Don't arbitrarily delay the BPUPListener
 * Automatically update the IP if the BPUPListener finds it
 * Provide the new bridge with its discovered IP to avoid an additional
   DNS query
 * Don't get the bridge version after every keep-alive response
* [bondhome] trigger end-device discovery as soon as the bridge comes online
* [bondhome] remove internal binding version
* [bondhome] change addr property to string

Certain values seen in the wild when interpreted as a long are too big for that
storage. Also, the Bond API documentation describes the addr property on a
device to be a string.

OpenHAB already has infrastructure to have things update their
channel definitions when a binding is updated.

* [bondhome] ignore any device that starts with _

In v3 of their API, Bond added a new special entry of __. Because no valid
device id would start with an underscore, ignore everything that starts with an
underscore to fix v3 and maybe futureproof.

* address review comments

mostly adding i18n to error states, and cleaning up error handling of
HTTP requests.

* use builtin translation services

instead of plumbing our own provider through

* use System.nanoTime instead of currentTimeMillis

so that it will be a monotonic clock, not (as) susceptible to the clock
changing

* [bondhome] ignore BPUP messasges that aren't state

In recent firmware, bond is now sending action messages via BPUP as well as state.
This change ignores all messages that aren't state.

* [bondhome] Improve error handling, and remove dummy constants

Just use a single BondException class to communicate any sort of
error from within bond, and avoid throwing, catching, and re-throwing
the same (or slightly modified) exception.

Also remove dummy constants that might give the wrong impression
of the details of your Bond device. Then implement proper null checks,
especially setting a configuration error if key config properties
aren't set on the thing.

* [bondhome] avoid setting device status when bridge just went offline

* address static analysis tool problems

Also-by: Sara Damiano <sdamiano@stroudcenter.org>
Also-by: Keith T. Garner <kgarner@kgarner.com>
Signed-off-by: Cody Cutrer <cody@cutrer.us>
2022-12-05 17:19:35 +01:00
Wouter Born
741f7decac
[groupepsa] Add missing code owner (#13838)
This seems to have been forgotten as part of #10332.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-04 17:23:27 +01:00
Tom Deckers
b696aebb36
[webexteams] Initial contribution (#13492)
* [webexteams] Initial contribution

Signed-off-by: Tom Deckers <tom@ducbase.com>
2022-12-04 12:15:42 +01:00
Gwendal Roulleau
0c1728511f
[smsmodem] Add codeowners (#13834)
Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
2022-12-04 11:30:00 +01:00
Dan Cunningham
1d9bf63d5e
[qolsysiq] Initial contribution of the Qolsys IQ Binding (#13699)
* [qolsysiq] Initial contribution of the Qolsys IQ Binding

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2022-11-27 19:25:31 +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
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
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
jsjames
71d1226505
[juicenet] Initial contribution (#10768)
Signed-off-by: Jeff James <jeff@james-online.com>
2022-11-13 12:27:43 +01:00
lolodomo
a33f08f517
[vesync] Add author in CODEOWNERS (#13676)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-11-07 18:48:51 +01:00
lolodomo
bf804ce42c
[mercedesme] Add author in CODEOWNERS (#13675)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-11-07 18:45:19 +01:00
lolodomo
b9c19f5156
[easee] Add author in CODEOWNERS (#13674)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-11-07 18:44:56 +01: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
Hilbrand Bouwkamp
f87a49dbeb
[unifi] Fix PoE port mode for 24V (#13539)
* [unifi] Fix PoE port mode for 24V

The value UniFi expects is actually pasv24. Tested with different UniFi controller versions.

* [unifi] Added Hilbrand as codeowner to UniFi binding

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2022-10-13 14:34:28 +02:00
Andrew Fiddian-Green
5c7eaa33ac
[tado] Channels are visible depending on device type and capabilities (#13301)
* [tado] create zone channels dynamically
* [tado] add JUnit test classes
* [tado] eliminate maven compiler warnings
* [tado] code optimisation
* [tado] read me
* [tado] current temperature & humidity also dynamic
* [tado] battery/window channels
* [tado] simplify channel builder
* [tado] fix bundle initialisation bug
* [tado] fix insert positions
* [tado] add channel type categories
* [tado] refactor battery checker
* [tado] create capabilities support in caller vs callee
* [tado] method doesn't throw exception
* [tado] remove new line
* [velux] add self to code owners
* [tado] capitalize categories

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2022-10-02 17:46:16 +02:00
Michael Barker
c244391d08
[echonetlite] Initial contribution (#11999)
* First implementation of Echonet Lite Java Bindings.  Only supports Mitsubishi Home Heat Pumps.

Signed-off-by: Michael Barker <mikeb01@gmail.com>
2022-09-28 23:23:57 +02:00
Jamie Townsend
015a370392
[solarmax] Initial contribution (#10414)
* SolarMax Binding Initial implementation

Signed-off-by: Jamie Townsend <jamie_townsend@hotmail.com>

* #10413 camelCaserizeTheChannelNames

Signed-off-by: Jamie Townsend <jamie_townsend@hotmail.com>

* #10413 Delete commented code and Refactor Brute Force Command Discovery into something commitable

Signed-off-by: Jamie Townsend <jamie_townsend@hotmail.com>

* 10413 Delete commented code and Refactor Brute Force Command Discovery into something commitable

Signed-off-by: Jamie Townsend <jamie_townsend@hotmail.com>

* #10413 Codestyle

Signed-off-by: Jamie Townsend <jamie_townsend@hotmail.com>

* 10413 Codestyle

Signed-off-by: Jamie Townsend <jamie_townsend@hotmail.com>

* #10413 corrected sat-plugin errors

Signed-off-by: Jamie Townsend <jamie_townsend@hotmail.com>

* #10413 updates from code reviews in PR #10414

Signed-off-by: Jamie Townsend <jamie_townsend@hotmail.com>

* 10413 mvn spotless:apply

Signed-off-by: Jamie Townsend <jamie_townsend@hotmail.com>

* 10413 Updated to 3.2.0-SNAPSHOT

Signed-off-by: Jamie Townsend <jamie_townsend@hotmail.com>

* Fixed conflicts introduced by foreign commit.

Signed-off-by: Jamie Townsend <jamie_townsend@hotmail.com>

* Updated copyright years

Signed-off-by: Jamie Townsend <jamie_townsend@hotmail.com>

* Ran  mvn spotless:apply to resolve formatting issues

Signed-off-by: Jamie Townsend <jamie_townsend@hotmail.com>

* Updates from review

Signed-off-by: Jamie Townsend <jamie_townsend@hotmail.com>

* Switch to using Units & move softwareVersion & buildNumber to properties

Signed-off-by: Jamie Townsend <jamie_townsend@hotmail.com>

* A couple of review related updates

Signed-off-by: Jamie Townsend <jamie_townsend@hotmail.com>

* A couple more review related changes.

Signed-off-by: Jamie Townsend <jamie_townsend@hotmail.com>

* Added Full Example to README.md

Signed-off-by: Jamie Townsend <jamie_townsend@hotmail.com>

* Update parent pom.xml version

Signed-off-by: Jamie Townsend <jamie_townsend@hotmail.com>

* Update bundles/org.openhab.binding.solarmax/src/main/java/org/openhab/binding/solarmax/internal/SolarMaxHandlerFactory.java

Signed-off-by: Fabian Wolter <github@fabian-wolter.de>

* Update bundles/org.openhab.binding.solarmax/src/main/java/org/openhab/binding/solarmax/internal/SolarMaxHandlerFactory.java

Signed-off-by: Fabian Wolter <github@fabian-wolter.de>

Signed-off-by: Jamie Townsend <jamie_townsend@hotmail.com>
Signed-off-by: Fabian Wolter <github@fabian-wolter.de>
Co-authored-by: Fabian Wolter <github@fabian-wolter.de>
2022-09-27 07:51:10 +02:00
Andrew Fiddian-Green
a3eafebbf3
Added a second code owner (#13442)
* Added codeowner

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2022-09-26 13:24:15 +02:00
lolodomo
6ebf20f183
[ecowatt] Initial contribution (#13404)
* [ecowatt] Initial contribution

This binding uses the Ecowatt API to expose clear signals to adopt the right gestures and to ensure a good supply of electricity for all in France.

Close #13351

Signed-off-by: Laurent Garnier <lg.hc@free.fr>

* Update bundles/org.openhab.binding.ecowatt/src/main/resources/OH-INF/thing/thing-types.xml

Signed-off-by: Fabian Wolter <github@fabian-wolter.de>

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Fabian Wolter <github@fabian-wolter.de>
Co-authored-by: Fabian Wolter <github@fabian-wolter.de>
2022-09-18 17:52:18 +02:00
Espen Fossen
bc9cf8e07a
[nobohub] Initial contribution (#12937)
* Added NoboHub binding.

Signed-off-by: Espen Fossen <espenaf@junta.no>
2022-08-22 23:27:24 +02:00
0x4d4d
3b8567bd9e
[somneo] Initial contribution (#12321)
* [somneo] Initial contribution

Signed-off-by: Michael Myrcik <michael.myrcik@web.de>
2022-07-27 10:38:06 +02:00
Jacob Laursen
96e78c12e4
Add jlaur as code owner for Bosch Indego binding (#13161)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-07-23 10:33:04 +02:00
Gwendal Roulleau
7a53e313cd
[mimictts] Initial contribution (#13045)
* [mimictts] Initial contribution

Add a voice service for Mimic (version 3) TTS from Mycroft AI. 

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
2022-07-12 18:49:01 +02:00
simon-dengler
9bd8854e0b
[mcd] Initial contribution (#13051)
Signed-off-by: Simon Dengler <simon_dengler@gmx.de>
2022-07-10 20:20:23 +02:00
Christoph Weitkamp
bb640eeaac
Update CODEOWNERS, removed myself for Netatmo binding (#13036)
- removed myself for Netatmo binding

Thanks @clinique for the refactoring.

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-06-29 14:01:12 +02:00
Daniel Demus
56f4c8943b
[wundergroundupdatereceiver] Initial contribution (#10105)
* [wundergroundupdatereceiver] Initial implementation

Signed-off-by: Daniel Demus <daniel-github@demus.dk>

* [wundergroundupdatereceiver] Code review

Signed-off-by: Daniel Demus <daniel-github@demus.dk>

* [wundergroundupdatereceiver] Fix some description formatting

Signed-off-by: Daniel Demus <daniel-github@demus.dk>

* [wundergroundupdatereceiver] Add some more channel types per request

Signed-off-by: Daniel Demus <daniel-github@demus.dk>

* [wundergroundupdatereceiver] Add more headers to response



Signed-off-by: Daniel Demus <daniel-github@demus.dk>
Based on the observed headers from actual traffic to wunderground.com.

* [wundergroundupdatereceiver] Discovery service

Signed-off-by: Daniel Demus <daniel-github@demus.dk>

* [wundergroundupdatereceiver] Upgrade to 3.2, fix group name constants

Signed-off-by: Daniel Demus <daniel-github@demus.dk>

* [wundergroundupdatereceiver] Add a list of channel types

Signed-off-by: Daniel Demus <daniel-github@demus.dk>

* [wundergroundupdatereceiver] Add dateutc as synthetic DateTime channel

Also add som emore constants
Signed-off-by: Daniel Demus <daniel-github@demus.dk>

* [wundergroundupdatereceiver] Do more programmatic configuration

Signed-off-by: Daniel Demus <daniel-github@demus.dk>

* [wundergroundupdatereceiver] More readme

Signed-off-by: Daniel Demus <daniel-github@demus.dk>

* [wundergroundupdatereceiver] Update copyright year

Signed-off-by: Daniel Demus <daniel-github@demus.dk>

* [wundergroundupdatereceiver] Handle multiple instance request parameters

Signed-off-by: Daniel Demus <daniel-github@demus.dk>
Ie. those that can have an index number in the name, fx. temp1f, temp2f

* [wundergroundupdatereceiver] Add unmapped but mappable channels

To support multiple devices any new parameters that are submitted cause a new channel to be created
Signed-off-by: Daniel Demus <daniel-github@demus.dk>

* [wundergroundupdatereceiver] Don't pass superfluous config to channels

Also documentation additions
Signed-off-by: Daniel Demus <daniel-github@demus.dk>

* [wundergroundupdatereceiver] Add generated i18n file

Signed-off-by: Daniel Demus <daniel-github@demus.dk>

* [wundergroundupdatereceiver] Re-case test method names

Signed-off-by: Daniel Demus <daniel-github@demus.dk>

* [wundergroundupdatereceiver] Re-word thing file section of README

Signed-off-by: Daniel Demus <daniel-github@demus.dk>

Co-authored-by: Daniel Demus <dde@nine.dk>
2022-06-19 17:01:54 +02:00
GiviMAD
daea9ae5b2
[actiontemplatehli] Initial contribution (#12260)
* [actiontemplatehli] initial contribution

Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
2022-06-19 13:39:31 +02:00
GiviMAD
11aa3207a6
[rustpotterks] initial contribution (#12606)
* [rustpotterks] initial contribution

Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
2022-06-19 11:06:33 +02:00
Sven Strohschein
25660991e6
[livisismarthome] New binding (successor of innogysmarthome with local API and some improvements) (#12440)
- Initial version added (copied and renamed from the innogysmarthome binding)
- The local API is now used, authorization, bridge initialization and discovery is already working
- Potential NullPointerExceptions fixed
- Adding battery-low-Channel support for ISC2
- More optimizations and local API changes in the ReadMe
- The key button counter channels are now updated correctly. The according trigger channels should now also work fine.
- Bug fixes regarding button pressed event. The pressed event is now executed along with short and long press events, so if someone want to react on a button press (short or long), the PRESSED trigger event can get checked. And the pressed event isn't senseless executed on a binding restart anymore.
- Error messages improved
- Deprecation-Notice
- New deprecation warning integrated in the innogysmarthome binding
- Livisi renamed to LIVISI
- SHC channels are now initialized correctly
- New "status" channel for the SHC with the values ACTIVE, INITIALIZING and SHUTTINGDOWN
- Code and documentation optimizations
- Fix for PT-PSS action
- Support for SHC classic - The websocket is hosted on another port.
- Update for Temperature-Channel-Definitions and Translations (de)
- Update for Power-Channel-Definitions
- Further translations (de) for devices and channels
- Refactoring branch integrated (some tests added and a lot of code optimizations for example smaller methods, better method names, more simple flows without continue and return in void methods, improved NULL handling, etc.)
- Code optimization (special handling for VariableActuator removed which seems to be not required anymore)
- The thing status is now set to offline when the device is not reachable (even on binding start up)
- The thing status is now set to online again when the device is reachable again
- Clearer description of the invert switch of the RollerShutter (ISR2)
- Copyright notices corrected
- Imports optimized
- Changed handling of pointTemperature (QuantityType instead of DecimalType)
- Code optimization (device status listeners are now registered with device id, so it isn't necessary anymore to call all listeners to find the right matching listener for the device event).
- Code optimization (not working mDNS bridge discovery removed).
- Explicit idle timeout removed (seems not to be required anymore for the local API and may cause problems with SHC 1, there occur EOFExceptions)
- Code optimizations (Debug code removed which isn't required anymore)
- Warn message added which is logged when the temperature to set is not between min and max temperature (this can happen when the user uses the REST-API instead of MainUI or probably also when set via a rule).
- Code optimizations (stronger/consequent use of QuantityType instead of DecimalType)
- Temperature values outside the possible range of 6 - 30 °C are now set to 6 / 30 °C. Therefore a temperature channel can get set to 0 °C for example by a rule and this is automatically changed to 6 °C (and causes a debug message).
- Code optimizations
- Bug fixes regarding UnitsOfMeasurements (Number:Power)
- Tests repaired
- The local API returns "[]" for empty objects which should only get used for arrays... This is now handled by the binding with replacing "[]" by "null". This error occurred with SHC 1, it isn't known if SHC 2 is also affected.
- Number:Dimensionless (percent) introduced for humidity and luminance
- Button events are now supported for SHC 1 (Classic), but without information about short or long press (isn't available for this SHC model).
- Button events are now supported for SHC 1 (Classic), but without information about short or long press (isn't available for this SHC model).
- The configVersion is now also available for SHC 1 bridges.
- More changes to Descriptions, Translations, Icons, Channel-Order, Channel-Config
- Trace logging of responses added to increase the traceability
- The SHC channels should now also get filled for SHC classic
- cpu, memory and disc channels are now defined as percentage (Number:Dimensionless)
- Jetty-HttpClient replaced by simple UrlConnection, because Jetty-HttpClient has problems with high frequency execution of requests. There were EOFExceptions with SHC classic when 2 or more requests were executed within the same second...
- Readme updated
- Copyright notices corrected
- Additions in ReadMe for RST2 / WRT
- The bridge channels (cpu, memory, disc and operation state) are now updated every minute for SHC 1 / classic (because there are no such events for SHC 1 / classic)
- Bug-fix for SHC 1 / classic: Device attributes are now updated correctly for SHC 1 / classic (there is another response structure, which caused that some attributes were not found / update). This should have affected battery low and reachable (thing status) information.
- There are also raw events which report changes regarding the bridge channels (cpu, memory, disc and operation status). There are now processed.
- Token request JSON changed to lower-case (to be compatible with the new SHC firmware update and this should enable to use the standard logics)
- SHC 2 can now get authenticated with the OAuth 2.0 standard logics of OpenHAB (with x-www-form-urlencoded instead of json). The old special json logic is still there to support SHC 1 (but SHC 1 will also get updated soon).
- SHC 1 supports now short and long button pressed events
- Outdated custom login logics removed. SHC 2 and SHC 1 / classic supports now OAuth 2.0 login requests, therefore the default login logics of OpenHAB can now get used.
- README updated for the required software version of SHC 1 / classic
- Code review findings fixed
- Code review findings fixed (Channel Ids renamed to lowerCamelCase)
- Unused code removed
- Code review findings fixed (Device status messages localized)
- Code review findings fixed (label of BooleanStateActuator renamed)
- Code review findings fixed (hard-coded units resolved)
- Code review findings fixed (unit of measurements changed form Power to Energy when it is unit Wh instead of W)
- Code review findings fixed (thing status BRIDGE_OFFLINE changed to COMMUNICATION_ERROR, because BRIDGE_OFFLINE is intended for sub/child devices, not for the bridge thing)
- Code review findings fixed ("initialize" is now returned faster and all requests are executed asynchronously)
- Code review findings fixed ("initialize" is now returned faster and all requests are executed asynchronously)
- Compiler warnings fixed
- Code review findings fixed
- Code review findings fixed (channel ids renamed)
- Code review findings fixed (tags for temperature and humidity added)
- Code review findings fixed (properties renamed to lowerCamelCase like the default properties)
- Code review findings fixed (non-null warnings fixed, performance increased by reducing requests)
- Code review findings fixed (non-null warnings fixed)
- Code review findings fixed (non-null warnings fixed in tests)
- Copyright notices updated
- Unnecessary log line removed
- Code review findings fixed (non-null warnings fixed in tests)
- Test fixed (WebSocketClient can't get mocked completely which caused an Exception)
- Code review findings fixed (various code optimizations)
- Code review findings fixed (channel-type-ids renamed to lowerCamelCase)
- Code review findings fixed (translation simplified)
- Code review findings fixed (temperature point handling converted in UoM)
- Code review findings fixed (Exception handling improved)
- Code review findings fixed (offline state precised when the bridge isn't found/configured)
- Code review findings fixed (exception logs deactivated within tests to reduce to console output when running the tests)
- Code review findings fixed (thing status is now checked instead of bridge status)
- Code review findings fixed (DeviceStructureManager can now be marked as NonNull because it is initialized within the initialize method)
- Code review findings fixed (LivisiClient can now be marked as NonNull because it is initialized within the initialize method)
- Code review findings fixed (OAuthService can now be marked as NonNull because it is initialized within the initialize method)
- Code review findings fixed (unnecessary type check removed)
- Code review findings fixed (warning messages within tests reduced)
- Code review findings fixed (more when the bridge connection state changes)
- Code review findings fixed (reconnect job changed from scheduleAtFixedRate to scheduleWithFixedDelay - recommended by the SAT warnings).
- Code review findings fixed (unused method removed).
- Representation property introduced to auto-ignore textual defined things at discovery/scan
- Code review findings fixed (more detailed error message for SHC not reachable added).
- Fix ChannelTypeID in Readme.md sample
- Code review findings fixed ("/event/ControllerConnectivityChanged" doesn't change the bridge thing to offline anymore, because it isn't important for the local API anymore).
- Code review findings fixed (point temperature commands with DecimalType instead of QuantityType can now also get handled).
- Tests added regarding handleCommand
- Code optimization (constant for the "invert" channel parameter added)
- Code optimization (log messages within tests avoided)

Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
Co-authored-by: RalphSester <ralph.sester@sester-edv.de>
2022-06-14 23:21:39 +02:00
Andreas Berger
66bb27275d
[fineoffsetweatherstation] Initial contribution (#12464)
* [fineoffsetweatherstation] initial commit
* [fineoffsetweatherstation] add missing measure type for air quality
* [fineoffsetweatherstation] add names to sensors
* [fineoffsetweatherstation] add missing channel types for lightning and water leak
* [fineoffsetweatherstation] adjust label names and replaced images + pdf so there are no copyright issues
* [fineoffsetweatherstation] remove wrong semantic tags
* [fineoffsetweatherstation] add missing measurands for WH45 (CO2) and WH35 (Leaf wetness)
* [fineoffsetweatherstation] fix typos
* [fineoffsetweatherstation] improve error handling for unstable connections
* [fineoffsetweatherstation] set online status after successful discovery
* [fineoffsetweatherstation] adjustments after review
* [fineoffsetweatherstation] adjustments after review
* Fix typo
* use `system.wind-speed` where applicable
* fix naming of channel type constants

Signed-off-by: Andreas Berger <andreas@berger-freelancer.com>
2022-05-19 20:52:17 +02:00
Florian Hotze
2e1fbdd86f
[evcc] Initial contribution (#12611)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2022-05-12 19:31:45 +02:00
Kai Kreuzer
8d92e9d31e
Update KNX code owner (#12694)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2022-05-07 08:39:33 +02:00
Wolfgang Klimt
61de1a5387
[awattar] Initial contribution (#11976)
* First alpha version of the awattar binding

Signed-off-by: wolfii <wolfgang.klimt@consol.de>
Signed-off-by: Wolfgang Klimt <github@klimt.de>

* Corrected typos

Signed-off-by: wolfii <wolfgang.klimt@consol.de>
Signed-off-by: Wolfgang Klimt <github@klimt.de>

* More typos

Signed-off-by: wolfii <wolfgang.klimt@consol.de>
Signed-off-by: Wolfgang Klimt <github@klimt.de>

* Improved time handling to consider time zone.

Signed-off-by: wolfii <wolfgang.klimt@consol.de>
Signed-off-by: Wolfgang Klimt <github@klimt.de>

* Corrected logical time problem, start adding nextprice thing

Signed-off-by: wolfii <wolfgang.klimt@consol.de>
Signed-off-by: Wolfgang Klimt <github@klimt.de>

* Added support for Austria

Signed-off-by: wolfii <wolfgang.klimt@consol.de>
Signed-off-by: Wolfgang Klimt <github@klimt.de>

* Use List instead of Set

Signed-off-by: wolfii <wolfgang.klimt@consol.de>
Signed-off-by: Wolfgang Klimt <github@klimt.de>

* Minor corrections

Signed-off-by: Wolfgang Klimt <github@klimt.de>

* Removed unneeded handler, corrected fetching of prices

Signed-off-by: Wolfgang Klimt <github@klimt.de>

* Added i18n, updated documentation

Signed-off-by: Wolfgang Klimt <github@klimt.de>

* Corrected pom.xml after rebase

Signed-off-by: Wolfgang Klimt <github@klimt.de>

* Updated version to 3.3.0-SNAPSHOT

Signed-off-by: Wolfgang Klimt <github@klimt.de>

* Corrected findings of Code analysis tool

Signed-off-by: Wolfgang Klimt <github@klimt.de>

* Updated copyright notice

Signed-off-by: Wolfgang Klimt <github@klimt.de>

* Updates to get rid of compiler warnings

Signed-off-by: Wolfgang Klimt <github@klimt.de>

* Worked on review comments from @fwolter

Obeyed most of the review comments. Exceptions:

* binding is already added to bom/openhab-addons/pom.xml (at least I found it there and there was a commit notice in git log)
* mvn license:format brought back 2021, so I manually set everything to 2022. Should I try to rebase my whole branch?
* In two places the binding needs to adjust to minute boundaries, hence scheduleWithFixedDelay will not work.
* I removed empty trailing lines, but mvn spotless:apply brought them back
* The OhInfXmlUsageCheck seems to be wrong.
* The ConstantNameCheck in AwattarUtil seems to be mislead by the fact that all members of the class are static, including the logger. From my point of view it is not a real "constant".

Signed-off-by: Wolfgang Klimt <github@klimt.de>

* Updated Readme to match code changes

Signed-off-by: Wolfgang Klimt <github@klimt.de>

* Further work on review comments from @fwolter

Signed-off-by: Wolfgang Klimt <github@klimt.de>

* Corrected config definition

Signed-off-by: Wolfgang Klimt <github@klimt.de>

* Changed Copyright to 2022

Signed-off-by: Wolfgang Klimt <github@klimt.de>

* Review comments from @fwolter. Improved timezone handling

Signed-off-by: Wolfgang Klimt <github@klimt.de>

Co-authored-by: wolfii <wolfgang.klimt@consol.de>
2022-05-02 08:22:47 +02:00
GiviMAD
e6628cf63a
[jellyfin] initial contribution (#11939)
* [jellyfin] initial contribution

Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>

* [jellyfin] update parent version

Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>

* update license header year

Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>

* add example to readme

Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>

* apply pr review

Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>

* apply pr review

Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>

* apply pr review

Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>

* add third-party info

Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>

* upgrade sdk to release 1.2.0

Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>
2022-04-30 10:58:14 +02:00
Bernd Weymann
c8d64ddeeb
[mybmw] new binding contribution (#12006)
* solve pom.xml conflict

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* authorization working

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* Fully Authorization integration & cleanup

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* make project compilable

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* make code compilable & buildable

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* fix discovery test

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* fix property test

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* fix unit tests

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* unit tests fixed

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* solve checkstyle high & medium

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* include all status update channel calls

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* correct Closed/Connected/Locked states

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* add charge statistics

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* add ChargingProfile channels

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* add charging sessions

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* add discovery properties

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* provide general check-control info

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* add test data for different vehicles

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* fix some checkstyle

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* add more vehicles to unit test

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* add F11 test

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* add service mileage

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* add check controls

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* add fingerprint mechanism

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* cleanup channels after rework

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* bugfixe requesting vehicles

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* fix brand handling

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* anonymous fingerprint

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* add charge statistics channels

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* add tire channels

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* remove range max channels

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* resolve last checkstyle issues

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* fix chrge profile updates

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* fix remote service execution

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* fix image handling

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* adapt service & checkcontrol handling

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* bugfix session selection

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* rework km / mi handling

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* introduce fallbacks for range calculations

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* unit tests for all available vehicle fingerprints

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* bugfixes during creation of HMI and translations

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* bugfix translation and language selection

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* introduce climate-now start / stop

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* bugfixes translation

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* add all fuelindicator fields

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* correct remote service ids, commands and translations

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* cleanup remote requsts and responses

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* add remote response examples

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* rework command options

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* remove unused timezoneprovider

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* locale language debugging

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* fix range value calculation

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* introduce charge-info channel

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* localize charge info string

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* smaller charge status fixes

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* 1st readme adaptions plus corresponding bugfixes

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* bugfix date time conversion

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* readme channel group update

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* add motion status

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* raw test anonymous fingerprint

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* revert motion status

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* bugfixes todo sections

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* china login

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* remove unnecessary info logging

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* spell check and example update

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* resolve codeowner conflicts

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* delete rex responses

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* bugfix linux characters

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* bugfix unit test with static time comparison

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* Copyright header adaption

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* add raw data channel

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* add address channel

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* add motion channel

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* add mild hybrid vehicle support

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* review comment corrections

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* correct review comments

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>

* resolve bom conflict

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
2022-04-25 08:12:55 +02:00
Bernd Weymann
3aaebde800
BMW ConnectedDrive binding removal (#12634)
Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
2022-04-22 10:47:53 +02:00
jesperskriasoft
873d615316
[luxom] Initial contribution (#12310)
Signed-off-by: Kris Jespers <kriasoft@telenet.be>
2022-04-05 20:02:27 +02:00
Mark Herwege
7c29e4d565
[elroconnects] New binding for Elro Connects (#11189)
* Adjustments after review.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>

* Fix pom.xml formatting.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>

* Some fixes and removed redundant null checks.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>

* Proper thread naming.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>

* Adjust brand name capitalization. Some README adjustments.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>

* Fix format issue.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>

* Fix threadname.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>

* Update development cycle

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>

* Review fixes

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>

* Avoid communication restart when disposing

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>

* Update CODEOWNERS

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>

* Code review.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>

* Background discovery

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>

* Fix formatting

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>

* Create i18n properties file

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>

* Add IP Adress parameter

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>

* Moved hostname resolving out of initialize

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2022-03-20 20:18:57 +01:00
Ondrej Pecta
43fe75ba2e
[prowl] Initial contribution (#10967)
Signed-off-by: Ondrej Pecta <opecta@gmail.com>
2022-03-13 17:37:59 +01:00