upm
1.7.1
Sensor/Actuator repository for libmraa (v2.0.0)
|
UPM API for Aeotec Home Energy Meter Gen 1. More...
This module allows for monitoring certain elements of an Aeotec Home Energy Meter Gen 1.
Public Types | |
enum | INDEX_VALUES_T : int { INDEX_PowerC1 = 0, INDEX_PowerC2 = 1, INDEX_PowerC3 = 2, INDEX_EnergyC1 = 3, INDEX_EnergyC2 = 4, INDEX_EnergyC3 = 5, INDEX_BatteryLevel = 18 } |
Public Member Functions | |
AeotecDSB09104 (int nodeID) | |
~AeotecDSB09104 () | |
float | getWattsC1 () |
float | getWattsC2 () |
float | getWattsC3 () |
float | getEnergyC1 () |
float | getEnergyC2 () |
float | getEnergyC3 () |
void | update () |
int | getBatteryLevel () |
Public Member Functions inherited from ozwInterface | |
ozwInterface (int nodeID) | |
virtual | ~ozwInterface () |
virtual void | setDebug (bool enable) |
virtual void | optionsCreate (std::string configPath="/etc/openzwave", std::string userConfigDir="", std::string cmdLine="") |
virtual void | optionAddInt (std::string name, int val) |
virtual void | optionAddBool (std::string name, bool val) |
virtual void | optionAddString (std::string name, std::string val, bool append) |
virtual void | optionsLock () |
virtual void | init (std::string devicePath, bool isHID=false) |
virtual void | dumpNodes (bool all=false) |
virtual std::string | getValueUnits (int index) |
virtual std::string | getValueLabel (int index) |
Additional Inherited Members | |
Protected Attributes inherited from ozwInterface | |
bool | m_debugging |
uint32_t | m_nodeID |
OZW * | m_instance |
bool | m_initialized |
enum INDEX_VALUES_T : int |
These values correspond to the index values of the given node
AeotecDSB09104 | ( | int | nodeID | ) |
AeotecDSB09104 constructor
nodeID | The ZWave node number of the device we are interested in. Use the ozwdump example to see what nodes you have available. |
~AeotecDSB09104 | ( | ) |
AeotecDSB09104 Destructor
float getWattsC1 | ( | ) |
Get the current Watts reading from Channel 1.
float getWattsC2 | ( | ) |
Get the current Watts reading from Channel 2.
float getWattsC3 | ( | ) |
Get the current Watts reading from Channel 3.
float getEnergyC1 | ( | ) |
Get the current Energy reading from Channel 1. The value is in kWh.
float getEnergyC2 | ( | ) |
Get the current Energy reading from Channel 2. The value is in kWh.
float getEnergyC3 | ( | ) |
Get the current Energy reading from Channel 3. The value is in kWh.
void update | ( | void | ) |
Query the device and update internal state. Strictly speaking, this is not really neccessary – a device may send this data on it's own at periodic intervals if configured to do so. This method causes OZW to specifically query the device for it's current Energy, Watts, and Battery Level status. The device may take some time to respond.
int getBatteryLevel | ( | ) |
Return the current bettery level of the meter as a percentage. The number returned will be between 0-100.