]> git.basschouten.com Git - openhab-addons.git/commit
[homematic] Improve (re)connect handling to Homematic gateways (#11429)
authorMartin Herbst <develop@mherbst.de>
Sat, 11 Dec 2021 17:34:22 +0000 (18:34 +0100)
committerGitHub <noreply@github.com>
Sat, 11 Dec 2021 17:34:22 +0000 (18:34 +0100)
commitadecb5304290aa8079c2050d5061857852a16522
tree54f50c178f5c7dc561cfcdfb62687299c2acdb44
parenta1cded9fa367b6a806f640830f13d2bb6066da5d
[homematic] Improve (re)connect handling to Homematic gateways (#11429)

* Use globally unique id for registration of callback to allow ...

the connection of multiple OH installations with one CCU.

The bridge id is not sufficient for this purpose because it is same in
all OH installations.

Signed-off-by: Martin Herbst <develop@mherbst.de>
* Retry callback re-registration after connection is resumed

Some services on the CCU need longer to start and are not available
immediately after the connection to the CCU has been resumed.

Improves the solution for #8808

Fixes #10439

Signed-off-by: Martin Herbst <develop@mherbst.de>
* Description was missing.

Signed-off-by: Martin Herbst <develop@mherbst.de>
* Changed setting name and description to avoid confusion

Signed-off-by: Martin Herbst <develop@mherbst.de>
* Added a troubleshooting tip to solve a communication problem

Signed-off-by: Martin Herbst <develop@mherbst.de>
* Shortened the label name to follow the guide lines

Signed-off-by: Martin Herbst <develop@mherbst.de>
* Print more information about the reason for the failure

Signed-off-by: Martin Herbst <develop@mherbst.de>
* Using scheduler thread pool and simplified configuration

Instead of configuring separate values for retry delays and number of
retries only the maximum time for retries can be configured.
The init method uses fixed delays.

Signed-off-by: Martin Herbst <develop@mherbst.de>
* Don't retry to send if gateway does not answer at all

Signed-off-by: Martin Herbst <develop@mherbst.de>
* Improved reconnect handling

- unregister callback not necessary if connection is lost
- wait 30s until clients and servers are restarted to give the gateway
some time to recover

Signed-off-by: Martin Herbst <develop@mherbst.de>
* Spotless

Signed-off-by: Martin Herbst <develop@mherbst.de>
* Cancel an active future if the binding is stopped

Signed-off-by: Martin Herbst <develop@mherbst.de>
bundles/org.openhab.binding.homematic/README.md
bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/HomematicBindingConstants.java
bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/common/HomematicConfig.java
bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/AbstractHomematicGateway.java
bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/client/BinRpcClient.java
bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/client/RpcClient.java
bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/client/XmlRpcClient.java
bundles/org.openhab.binding.homematic/src/main/resources/OH-INF/thing/bridge.xml