public class ZwaveThermostat extends ZwaveDevice implements ej.basedriver.Thermostat, SendDataListener
RequestFrameListener.RequestFrameError
node
Constructor and Description |
---|
ZwaveThermostat(ZwaveNode node) |
Modifier and Type | Method and Description |
---|---|
void |
callbackComplete(byte[] bytes,
int commandClassIndex) |
ej.basedriver.ThermostatMode |
getLastknownMode() |
ZwaveThermostatMode |
getMode(java.lang.Integer modeId) |
ZwaveNode |
getNode() |
ej.basedriver.ThermostatMode[] |
getSupportedModes() |
void |
notifyComplete() |
void |
notifyError(RequestFrameListener.RequestFrameError error) |
void |
requestModesUpdate()
Update the list of modes.
|
void |
requestUpdate() |
void |
setMode(byte[] bytes,
int commandClassIndex) |
void |
setMode(ej.basedriver.ThermostatMode mode) |
void |
setModes(byte[] bytes,
int start)
Set the modes available.
|
getDescriptor, getName, getParent
public ZwaveThermostat(ZwaveNode node) throws java.io.IOException
node
- java.io.IOException
public void requestModesUpdate() throws java.io.IOException
java.io.IOException
public ej.basedriver.ThermostatMode[] getSupportedModes()
getSupportedModes
in interface ej.basedriver.Thermostat
public void setMode(ej.basedriver.ThermostatMode mode) throws java.io.IOException
setMode
in interface ej.basedriver.Thermostat
java.io.IOException
public ej.basedriver.ThermostatMode getLastknownMode()
getLastknownMode
in interface ej.basedriver.Thermostat
public void requestUpdate() throws java.io.IOException
requestUpdate
in interface ej.basedriver.Thermostat
java.io.IOException
public 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.