forked from openhab/openhab-addons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[velux] hub discovery; representation properties; socket lock up issu…
…es (openhab#8777) * [velux] set explicit timeouts & keepalives on socket * [velux] implement mdns service * [velux] fix representation property names * [velux] fix representation properties * [velux] finalize mdns * [velux] spotless * [velux] use both mDNS and regular DNS to resolve ip addresses * [velux] complete class rewrite using asynchronous polling thread * [velux] refactor bridgeDirectCommunicate to simplify looping * [velux] asynchronous polling means Thread.sleep no longer needed * [velux] faster synch of actuator changes * [velux] use single thread executor instead of thread pool * [velux] faster synch of actuator changes * [velux] shut down task executor Signed-off-by: Andrew Fiddian-Green <[email protected]>
- Loading branch information
Showing
44 changed files
with
1,605 additions
and
572 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
....binding.velux/src/main/java/org/openhab/binding/velux/internal/action/IVeluxActions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/** | ||
* Copyright (c) 2010-2020 Contributors to the openHAB project | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package org.openhab.binding.velux.internal.action; | ||
|
||
import org.eclipse.jdt.annotation.NonNullByDefault; | ||
|
||
/** | ||
* The {@link IVeluxActions} defines rule action interface for rebooting the bridge | ||
* | ||
* @author Andrew Fiddian-Green - Initial contribution | ||
*/ | ||
@NonNullByDefault | ||
public interface IVeluxActions { | ||
|
||
/** | ||
* Action to send a reboot command to a Velux Bridge | ||
* | ||
* @return true if the command was sent | ||
* @throws IllegalStateException if something is wrong | ||
*/ | ||
Boolean rebootBridge() throws IllegalStateException; | ||
|
||
/** | ||
* Action to send a relative move command to a Velux actuator | ||
* | ||
* @param nodeId the node Id in the bridge | ||
* @param relativePercent the target position relative to its current position (-100% <= relativePercent <= +100%) | ||
* @return true if the command was sent | ||
* @throws NumberFormatException if either of the arguments is not an integer, or out of range | ||
* @throws IllegalStateException if anything else is wrong | ||
*/ | ||
Boolean moveRelative(String nodeId, String relativePercent) throws NumberFormatException, IllegalStateException; | ||
} |
Oops, something went wrong.