public class ZwavePowerMeter extends ZwaveDevice implements PowerMeter
node
UNKNOWN_VALUE
UNKNOWN_NAME
Constructor and Description |
---|
ZwavePowerMeter(ZwaveNode node) |
Modifier and Type | Method and Description |
---|---|
int |
getAccumulatedConsumption()
Get the accumulated power consumption in Watts / hour (positive integer).
|
int |
getInstantConsumption()
Get the instant power consumption in Watts (positive integer).
|
void |
requestAccumulatedConsumptionUpdate()
Ask for accumulated consumption to be updated.
|
void |
requestInstantConsumptionUpdate()
Ask for instant consumption to be updated.
|
void |
resetAccumulatedConsumption()
Reset the accumulated power consumption to zero.
|
getDescriptor, getName, getParent
getChildren
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildren, getDescriptor, getName, getParent
public ZwavePowerMeter(ZwaveNode node)
node
- public int getAccumulatedConsumption()
PowerMeter
getAccumulatedConsumption
in interface PowerMeter
PowerMeter.UNKNOWN_VALUE
if unknown.public int getInstantConsumption()
PowerMeter
getInstantConsumption
in interface PowerMeter
PowerMeter.UNKNOWN_VALUE
if unknown.public void requestAccumulatedConsumptionUpdate() throws IOException
PowerMeter
requestAccumulatedConsumptionUpdate
in interface PowerMeter
IOException
- if there is a communication error with the devicepublic void requestInstantConsumptionUpdate() throws IOException
PowerMeter
requestInstantConsumptionUpdate
in interface PowerMeter
IOException
- if there is a communication error with the devicepublic void resetAccumulatedConsumption()
PowerMeter
resetAccumulatedConsumption
in interface PowerMeter