public class ZwaveDryContact extends ZwaveDevice implements DryContact
node
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
public ZwaveDryContact(ZwaveNode node)
public void setState(int newBinaryState)
newBinaryState
- the new state of the switchpublic int getLastKnownState()
DryContact
getLastKnownState
in interface DryContact
BinaryState.ON
if the dry contact is closed or
BinaryState.OFF
if open.