public class ZwaveDryContact extends ZwaveDevice implements DryContact
node
UNKNOWN_NAME
Constructor and Description |
---|
ZwaveDryContact(ZwaveNode node) |
Modifier and Type | Method and Description |
---|---|
int |
getLastKnownState()
Get the last known state of this device.
|
void |
setState(int newBinaryState)
Update the last known state of the switch.
|
getDescriptor, getName, getParent
getChildren
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildren, getDescriptor, getName, getParent
public ZwaveDryContact(ZwaveNode node)
public int getLastKnownState()
DryContact
getLastKnownState
in interface DryContact
BinaryState.ON
if the dry contact is closed or
BinaryState.OFF
if open.public void setState(int newBinaryState)
newBinaryState
- the new state of the switch