public class ZwaveThermostat extends ZwaveDevice implements Thermostat, SendDataListener
RequestFrameListener.RequestFrameError
node
UNKNOWN_NAME
Constructor and Description |
---|
ZwaveThermostat(ZwaveNode node) |
Modifier and Type | Method and Description |
---|---|
void |
callbackComplete(byte[] bytes,
int commandClassIndex) |
ThermostatMode |
getLastknownMode()
Gets the last known mode.
|
ZwaveThermostatMode |
getMode(Integer modeId) |
ZwaveNode |
getNode() |
ThermostatMode[] |
getSupportedModes()
Gets the modes managed by the thermostat.
|
void |
notifyComplete() |
void |
notifyError(RequestFrameListener.RequestFrameError error) |
void |
requestModesUpdate()
Update the list of modes.
|
void |
requestUpdate()
Request an update of the currentMode.
|
void |
setMode(byte[] bytes,
int commandClassIndex) |
void |
setMode(ThermostatMode mode)
Sets the last known mode.
|
void |
setModes(byte[] bytes,
int start)
Set the modes available.
|
getDescriptor, getName, getParent
getChildren
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildren, getDescriptor, getName, getParent
public ZwaveThermostat(ZwaveNode node) throws IOException
node
- IOException
public void callbackComplete(byte[] bytes, int commandClassIndex)
callbackComplete
in interface SendDataListener
public ThermostatMode getLastknownMode()
Thermostat
getLastknownMode
in interface Thermostat
public ZwaveThermostatMode getMode(Integer modeId)
public ZwaveNode getNode()
getNode
in interface SendDataListener
public ThermostatMode[] getSupportedModes()
Thermostat
getSupportedModes
in interface Thermostat
public void notifyComplete()
notifyComplete
in interface RequestFrameListener
public void notifyError(RequestFrameListener.RequestFrameError error)
notifyError
in interface RequestFrameListener
public void requestModesUpdate() throws IOException
IOException
public void requestUpdate() throws IOException
Thermostat
requestUpdate
in interface Thermostat
IOException
- if there is a communication error with the devicepublic void setMode(byte[] bytes, int commandClassIndex)
bytes
- the mode.commandClassIndex
- the command class Index.public void setMode(ThermostatMode mode) throws IOException
Thermostat
setMode
in interface Thermostat
mode
- the mode to set.IOException
- if there is a communication error with the devicepublic void setModes(byte[] bytes, int start)
bytes
- bitmask.start
- start of the bite mask.