AeotecSDG2 Class
- ID: dg2
- Name: Aeotec Smart Dimmer Gen 2
- Connection: uart
- Category: wifi
- Manufacturer: aeon
- Link: http://aeotec.com/z-wave-in-wall-switches/877-micro-sei-2e-manual-instructions.html
This module allows for controlling and monitoring certain elements of an Aeotec Smart Dimmer Gen 2.
Item Index
Methods
AeotecSDG2
-
nodeID
AeotecSDG2 constructor
Parameters:
-
nodeID
NumberThe ZWave node number of the device we are interested in. Use the ozwdump example to see what nodes you have available.
Returns:
setLevel
-
level
Set the output level of the dimmer switch. This is a value between 0 (fully off) and 99 (fully on).
Parameters:
-
level
NumberThe desired output level of the dimmer switch. Valid values are between 0-99.
getLevel
()
Number
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.
on
()
Turn the switch fully on by setting the highest level (99). This is equivalent to calling setLevel(99).
off
()
Turn the switch off by setting the lowest level (0). This is equivalent to calling setLevel(0).
isOn
()
Boolean
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.
update
()
Query the device and update internal state. Strictly speaking, this is not really neccessary b 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.
getEnergy
()
Number
Return the device's accumulated energy usage in kilo-watt-hours (kWh).
Returns:
The energy usage in kWh.
getWatts
()
Number
Return the device's current power consumption in Watts.
Returns:
The current power consumption in Watts.
getVolts
()
Number
Return the device's current voltage measurement in Volts.
Returns:
The volts measurement.
getCurrent
()
Number
Return the device's current consumption in Amps.
Returns:
The current consumption measurement in Amps.