Sami Salonen [Sun, 29 Nov 2020 10:24:16 +0000 (12:24 +0200)]
[dynamodb] Fixed persistence issues with zoneddatetime (#9157)
* [dynamodb] fix serialization of ZonedDateTime timestamps
Resolves #9156.
AWS SDK does not know how to serialize ZonedDateTime. We resolve this
by providing explicit serializer/deserializer.
In addition, integration tests had issue with timezones. The persistence
converts all timestamps from the DynamoDB to system timezone for display
purposes. This was not taken into account in the tests and failure was
expected with non-UTC system timezone.
Marcel [Sun, 29 Nov 2020 04:03:12 +0000 (05:03 +0100)]
[miio] Cloud Communication for devices (#8981)
* [miio] Cloud Communication for devices
Allows to define if communication to devices is direct or send via the
Xiaomi cloud.
Introduce additional channel to execute commands via cloud.
Other small improvements
* Use common method from abstract handler to send commands
* Common way to handle custom commands
* Introduce small delay before refreshing robot properties after sending
commands (similar to the basic handler) so devices have time to update
their properties
* [miio] simplify cloudconnector
* [miio] Cleanup all jobs when unloading
* [miio] update to use dedicated ScheduledExecutorService
Use dedicated ScheduledExecutorService to avoid unloading problems
* Update bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/handler/MiIoAbstractHandler.java
* [miio] fix for removeif
* miio- Improve scheduler
* [miio] fix communication error if device is not on the network
* [miio] update with comments from feedback
* remove scheduler tracking
* improve status setting for cloud communication
* [miio] update with feedback review
The channels 1-3 of LCN-B3I are mapped to binary channels 6-8. This could be anticipated from the Button Tables (B6-8) that it connects to. However, the added comments should help people to save a few hours and some gray hair ;-)
Boris Krivonog [Fri, 27 Nov 2020 01:02:49 +0000 (02:02 +0100)]
[nikobus] discovery for push buttons, (#9134)
* removed state update if value didn't change so expiry binding can actually - expire. If expire time was larger than refresh interval of the binding, expiration never happened ...
Signed-off-by: Boris Krivonog <boris.krivonog@inova.si>
Boris Krivonog [Thu, 26 Nov 2020 01:50:17 +0000 (02:50 +0100)]
[nikobus] fixed refresh handling (#9114)
* * fixed refresh handing due `channelLinked` not called anymore on startup for example (similar to https://github.com/openhab/openhab-core/issues/1707),
* "Impacted Modules" can be empty if button is configured as "standalone" and does not impact modules,
* minor doc fix
* * check if configured impacted module for `impactedModules` is referencing an existing thing,
* fixed warnings
* Fixed review comment.
Signed-off-by: Boris Krivonog <boris.krivonog@inova.si>
J-N-K [Wed, 25 Nov 2020 20:15:29 +0000 (21:15 +0100)]
[amazonechocontrol] improvements and bug fixes (#9057)
* fixed: InterrupedException
* changed: single and group queues to device queue
added: standard volume to speak request
* changed: log from info to debug
* fix compile warnings
* remove dependency on StringUtils
* more improvements
* fix HandlerPowerController
* attempt to solve stopping tts
* logging powercontroller
* fix smarthome devices not updating
* finalize smarthome device update fix
* additional device information logging for discovery
* fix color channel for smarthome devices
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de> Co-authored-by: Tom Blum <trinitus01@googlemail.com> Co-authored-by: Connor Petty <mistercpp2000@gmail.com>
M Valla [Mon, 23 Nov 2020 18:21:55 +0000 (19:21 +0100)]
[openwebnet] Fixed handling of ZigBee USB gateway and devices (fixes #8915 #8917 #8962) (#9076)
* [openwebnet] Fixed config, handling and discovery of ZigBee devices (fixes #8915 and fixes #8917). Added test for ownID. Now uses openwebnet4j v0.3.2
* [openwebnet] ZigBee: improved handling of wrong 'where' parameter. Updated README. Improved logging.
* [openwebnet] Improved discoveryByActivation to distinguish dimmers from lights. Now using openwebnet4j 0.3.2-1
Martin Herbst [Mon, 23 Nov 2020 10:10:08 +0000 (11:10 +0100)]
[homematic] Better OH3 compatibility (#9102)
* Max value and format pattern were not correct for dimmers (Fixes #8799)
* Fixed calls to deprecates methods/constructors
* Make sure channelLinked is executed at restart (see also: https://github.com/openhab/openhab-core/issues/1707)
Matthew Skinner [Sat, 21 Nov 2020 06:27:49 +0000 (17:27 +1100)]
[ipcamera] Improve ONVIF preset naming (#8948)
* Refactor to prevent endless loop.
* Allow `-rtsp_transport tcp` to be over-ridden.
* Display actual preset names
* Allow IP to not match due to Hostname given in setup.
* Fix index off by 1
* Bug fixes for HLS
* Compatibility fix for GotoPreset
* Improve default snapshot quality and allow FFmpeg arguments to be
changed.
Signed-off-by: Matthew Skinner <matt@pcmus.com> Co-authored-by: Connor Petty <mistercpp2000@gmail.com>
Georgios Moutsos [Thu, 19 Nov 2020 02:10:09 +0000 (04:10 +0200)]
[caddx] Fix wrongly handled discovery, off by 1 errors (#9030)
* Corrected caddx discovery bug
* Maintenance
- Changed refresh logic for the things
- Code cleanup
- Corrected off by one errors
- Added initial tests for the message parsing
* Corrected ParameterizedTest
* Changed new Date().getTime to System.currentTimeMillis()
Wouter Born [Mon, 16 Nov 2020 01:29:02 +0000 (02:29 +0100)]
[plugwise] Use ThingHandlerService for discovery (#9041)
This simplifies the PlugwiseHandlerFactory code so it no longer needs to register and keep track of a discovery service for each bridge.
Also contains a few other improvements:
* fix lastRequest timestamp not updated when sending messages to discover node properties
* use java.time Duration and Instant
* use List.of, Set.of
* remove redundant null suppression because of EEAs
Matthew Skinner [Wed, 11 Nov 2020 03:50:58 +0000 (14:50 +1100)]
[telegram] Add support for sendVideo (MP4) and sendAnimation (GIF) (#8969)
* Add sendVideo and sendAnimation features.
* Re-order functions to keep inline with other functions.
* Readme change to trigger new build.
* Add ability to use raw file paths to send video and animations.
* Change Paths.get to Path.of as JavaDocs recommend.
* Allow absolute paths in SendPhoto methods and update readme.md
* Support for no caption with photo.
* Add absolute path support for png and webp.
* Add all file types requested.
* Remove multiple OR and only do lowercase once.
Gaël L'hopital [Tue, 10 Nov 2020 17:08:02 +0000 (18:08 +0100)]
[Linky] Some enhancements and corrections on the linky binding (#8871)
* Some enhancements and corrections on the linky binding
spotless apply
Adressing code review comments
* Adressing potential NPR.
* Code review findings correction
* Pleasing SAT checks