public class ZwaveMultilevelSensor extends ZwaveDevice implements MultilevelSensor, SendDataListener
RequestFrameListener.RequestFrameError
node
UNKNOWN_NAME
Constructor and Description |
---|
ZwaveMultilevelSensor(ZwaveNode node) |
Modifier and Type | Method and Description |
---|---|
void |
callbackComplete(byte[] bytes,
int commandClassIndex) |
double |
getLastKnownValue()
Get the last known value of this device.
|
ZwaveNode |
getNode() |
void |
notifyComplete() |
void |
notifyError(RequestFrameListener.RequestFrameError error) |
void |
requestUpdate()
Request a value update.
|
void |
setValue(double value)
Sets the value.
|
getDescriptor, getName, getParent
getChildren
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildren, getDescriptor, getName, getParent
public ZwaveMultilevelSensor(ZwaveNode node)
node
- public void callbackComplete(byte[] bytes, int commandClassIndex)
callbackComplete
in interface SendDataListener
public double getLastKnownValue()
MultilevelSensor
getLastKnownValue
in interface MultilevelSensor
MultilevelValue.UNKNOWN
if unknown.public ZwaveNode getNode()
getNode
in interface SendDataListener
public void notifyComplete()
notifyComplete
in interface RequestFrameListener
public void notifyError(RequestFrameListener.RequestFrameError error)
notifyError
in interface RequestFrameListener
public void requestUpdate() throws IOException
MultilevelSensor
requestUpdate
in interface MultilevelSensor
IOException
- if there is a communication error with the devicepublic void setValue(double value)
value
- the value to set.