public class ZwaveMultilevelSensor extends ZwaveDevice implements MultilevelSensor, SendDataListener
RequestFrameListener.RequestFrameError
node
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
public ZwaveMultilevelSensor(ZwaveNode node)
node
- public void setValue(double value)
value
- the value to set.public double getLastKnownValue()
MultilevelSensor
getLastKnownValue
in interface MultilevelSensor
MultilevelValue.UNKNOWN
if unknown.public void requestUpdate() throws java.io.IOException
MultilevelSensor
requestUpdate
in interface MultilevelSensor
java.io.IOException
- if there is a communication error with the devicepublic void notifyComplete()
notifyComplete
in interface RequestFrameListener
public void notifyError(RequestFrameListener.RequestFrameError error)
notifyError
in interface RequestFrameListener
public ZwaveNode getNode()
getNode
in interface SendDataListener
public void callbackComplete(byte[] bytes, int commandClassIndex)
callbackComplete
in interface SendDataListener