upm
1.7.1
Sensor/Actuator repository for libmraa (v2.0.0)
|
UPM API for Trane TZEMT400 Z-Wave Thermostat. More...
This module allows for monitoring certain elements of a Trane TZEMT400 Z-Wave Thermostat. It was tested with a Trane TZEMT400BB32MAA variant.
Public Types | |
enum | INDEX_VALUES_T : int { INDEX_Temperature = 0, INDEX_Mode = 1, INDEX_Operating_State = 2, INDEX_Heating_Point = 3, INDEX_Cooling_Point = 4, INDEX_Fan_Mode = 5, INDEX_Fan_State = 6, INDEX_FC_Units = 14 } |
Public Member Functions | |
TZEMT400 (int nodeID) | |
~TZEMT400 () | |
float | getTemperature (bool fahrenheit=false) |
std::string | getMode () |
std::string | getOperatingState () |
float | getHeatingPointTemperature (bool fahrenheit=false) |
float | getCoolingPointTemperature (bool fahrenheit=false) |
std::string | getFanMode () |
std::string | getFanState () |
void | update () |
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
TZEMT400 | ( | int | nodeID | ) |
TZEMT400 constructor
nodeID | The ZWave node number of the device we are interested in. Use the ozwdump example to see what nodes you have available. |
float getTemperature | ( | bool | fahrenheit = false | ) |
Return the current measured temperature in Celsius or Fahrenheit.
fahrenheit | true to return data in Fahrenheit, false for Celicus. Celsius is the default. |
string getMode | ( | ) |
Return a string representing the current Mode. This is usually something like "Cool", "Heat", "Auto", etc.
string getOperatingState | ( | ) |
Return a string representing the current Operating State. This is usually something like "Idle", or "Cooling".
float getHeatingPointTemperature | ( | bool | fahrenheit = false | ) |
Return the current Heating Point temperature in Celsius or Fahrenheit. This is the temperature at which the thermostat will want to engage Heat.
fahrenheit | true to return data in Fahrenheit, false for Celicus. Celsius is the default. |
float getCoolingPointTemperature | ( | bool | fahrenheit = false | ) |
Return the current Cooling Point temperature in Celsius or Fahrenheit. This is the temperature at which the thermostat will want to engage Cooling.
fahrenheit | true to return data in Fahrenheit, false for Celicus. Celsius is the default. |
string getFanMode | ( | ) |
Return a string representing the current Fan Mode. This is usually something like "Auto Low".
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. This method causes OZW to specifically query the device for it's current information. The device may take some time to respond.