Bruce Ravenel 9ee81263b1 MSA-692: Allows control of Aeon Micro Motor Controller, a Z-Wave device, both from the mobile app tiles, and SmartApps. The device type maps the three hardware states into ST: Up, Down, Stop, and provides commands with the same names. When used with motor shades, generally the motor has an adjustable automatic stop at the full height or extension of the shade, so the physical switch would just select Up, and that was that. The motor stopped despite the switch. The physical switch would typically also have an Off position. The micro motor controller does as well, hence the stop() command. Below is the ReadMe for this device type:
To use this device type in SmartApps, use "capability.doorControl" in Preferences to select the controller.  
Then you can reference the state of the device with device.currentValue("motor") or device.currentMotor.  
The device can be in one of three states: up, down, stop, e.g. if(device.currentMotor == "up") {...}  
There are three commands available: up(), down(), stop(), e.g. device.up()

After you include the Aeon device into ST, edit its device type in the IDE to be "Aeon Motor Controller"

Down turns on motor M1, and Up turns on motor M2.
2015-11-17 17:23:58 -06:00
2015-08-04 15:49:03 -07:00

SmartThings Public Github Repo

An official list of SmartApps and Device Types from SmartThings.

Here are some links to help you get started coding right away:

Follow us on the web:

Description
SmartThings open-source DeviceTypeHandlers and SmartApps code
Readme 7.5 MiB
Languages
Groovy 100%