forked from oberasoftware/zwave
-
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.
Several fixes to make command class polling fully functional for Swit…
…chBinary and Meter commands. Also fixed several discovery issue in node detection and action transaction completion detection.
- Loading branch information
Showing
21 changed files
with
172 additions
and
61 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
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
4 changes: 2 additions & 2 deletions
4
src/main/java/com/oberasoftware/home/zwave/api/actions/devices/RequestNodeInfoAction.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
48 changes: 48 additions & 0 deletions
48
src/main/java/com/oberasoftware/home/zwave/api/events/devices/MeterScalesEvent.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,48 @@ | ||
package com.oberasoftware.home.zwave.api.events.devices; | ||
|
||
import com.oberasoftware.home.zwave.api.events.controller.TransactionEvent; | ||
import com.oberasoftware.home.zwave.api.messages.types.MeterScale; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @author renarj | ||
*/ | ||
public class MeterScalesEvent implements DeviceEvent, TransactionEvent { | ||
private final int nodeId; | ||
private final int endpointId; | ||
private final List<MeterScale> scales; | ||
|
||
public MeterScalesEvent(int nodeId, int endpointId, List<MeterScale> scales) { | ||
this.nodeId = nodeId; | ||
this.endpointId = endpointId; | ||
this.scales = scales; | ||
} | ||
|
||
@Override | ||
public int getNodeId() { | ||
return nodeId; | ||
} | ||
|
||
public int getEndpointId() { | ||
return endpointId; | ||
} | ||
|
||
public List<MeterScale> getScales() { | ||
return scales; | ||
} | ||
|
||
@Override | ||
public boolean isTransactionCompleted() { | ||
return true; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "MeterScalesEvent{" + | ||
"nodeId=" + nodeId + | ||
", endpointId=" + endpointId + | ||
", scales=" + scales + | ||
'}'; | ||
} | ||
} |
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
Oops, something went wrong.