public class ZwaveThermostat extends ZwaveDevice implements Thermostat, SendDataListener
RequestFrameListener.RequestFrameError
node
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(java.lang.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
public ZwaveThermostat(ZwaveNode node) throws java.io.IOException
node
- java.io.IOException
public void requestModesUpdate() throws java.io.IOException
java.io.IOException
public ThermostatMode[] getSupportedModes()
Thermostat
getSupportedModes
in interface Thermostat
public void setMode(ThermostatMode mode) throws java.io.IOException
Thermostat
setMode
in interface Thermostat
mode
- the mode to set.java.io.IOException
- if there is a communication error with the devicepublic ThermostatMode getLastknownMode()
Thermostat
getLastknownMode
in interface Thermostat
public void requestUpdate() throws java.io.IOException
Thermostat
requestUpdate
in interface Thermostat
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
public void setMode(byte[] bytes, int commandClassIndex)
bytes
- the mode.commandClassIndex
- the command class Index.public ZwaveThermostatMode getMode(java.lang.Integer modeId)
public void setModes(byte[] bytes, int start)
bytes
- bitmask.start
- start of the bite mask.