UPM API for Aeotec Smart Dimmer Gen 2.
More...
- Name: Aeotec Smart Dimmer Gen 2
- Connection: uart
This module allows for controlling and monitoring certain elements of an Aeotec Smart Dimmer Gen 2.
|
enum | INDEX_VALUES_T : int {
INDEX_Level = 0,
INDEX_Energy_kWh = 3,
INDEX_Power_Watts = 6,
INDEX_Volts = 9,
INDEX_Current = 12
} |
|
|
bool | m_debugging |
|
uint32_t | m_nodeID |
|
OZW * | m_instance |
|
bool | m_initialized |
|
These values correspond to the index values of the given node
AeotecSDG2 constructor
- Parameters
-
nodeID | The ZWave node number of the device we are interested in. Use the ozwdump example to see what nodes you have available. |
void setLevel |
( |
int |
level | ) |
|
Set the output level of the dimmer switch. This is a value between 0 (fully off) and 99 (fully on).
- Parameters
-
level | The desired output level of the dimmer switch. Valid values are between 0-99. |
Return the current output level of the dimmer switch. This will be a number between 0 (fully off) and 99 (fully on).
- Returns
- the current dimmer output level.
Turn the switch fully on by setting the highest level (99). This is equivalent to calling setLevel(99).
Turn the switch off by setting the lowest level (0). This is equivalent to calling setLevel(0).
Check to see if the switch is on or off. Any dimmer level greater that 0 is considered 'on'.
- Returns
- true if the dimmer switch is on, false otherwise.
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 Energy, Watts, Volts, Current, and dimmer Level status. The device may take some time to respond.
Return the device's accumulated energy usage in kilo-watt-hours (kWh).
- Returns
- The energy usage in kWh.
Return the device's current power consumption in Watts.
- Returns
- The current power consumption in Watts.
Return the device's current voltage measurement in Volts.
- Returns
- The volts measurement.
Return the device's current consumption in Amps.
- Returns
- The current consumption measurement in Amps.
The documentation for this class was generated from the following files:
- /iotdk/jenkins/workspace/upm-doc-stable/src/ozw/aeotecsdg2.hpp
- /iotdk/jenkins/workspace/upm-doc-stable/src/ozw/aeotecsdg2.cxx