Create Applescript for Mac Indigo for Leviton lighting scenes. Indigo is a Mac Home Automation program. Applescript? experience? is a must. Knowledge of X10 and/or Indigo would be beneficial.?
You can look at the? Lighting? Scene Script ("scenes [login to view URL]") that comes with Indigo to get an idea, that script is for a different manufacturer than Leviton. I need a lighting scene script for Indigo that works with Leviton light dimmers.
All the codes needed for Leviton? light dimmers? are documented in the zip file.
You can download a free 45 day trial version of Indigo at: [login to view URL]
## Deliverables
**Project Description:**
**Create a Applescript for Indigo for Leviton scenes.**
**Similar to the Sample Indigo Scene Script in the zip file but modified to work with Leviton dimmers and Leviton Light modules and appliance modules.**
**Functions that need to be written:**
**SceneTurnOn (B,1) -- parameters (HC, SN)**
SceneTurnOff(B,1) -- parameters (HC, SN)
SceneDim(B,1) -- parameters (HC, SN)
SceneBrighten(B,1) -- parameters (HC, SN)
SceneAddDevice(“office light??, 1) ) --parameters (DeviceName, SN)
SceneAddAddress(B2, 1) -- parameters (HCUC, SN)
SceneRemoveDevice("office light", 1)-- parameters (DeviceName, SN)
SceneRemoveAddress(B2,1) -- parameters (HCUC, SN)
SceneCommandReceived()--Returns (TYPE, HC, SN) or? (TYPE, HCUC, SN)
**? **
HC = House Code (A thru P)
UC = Unit Code (1 thru 16)
SN = Scene Number (1 thru 64)
TYPE = On, Off, Dim, Brighten, Add, Remove
**? **
**Leviton devices offer very powerful Scene features.**
**A scene is a group of Leviton X-10 modules within one house code.**
**that can all be set to a predetermined level with a single X10 extended command. Scenes require the use of X-10 extended codes. (see separate pdf document for Leviton SceneExtended codes)**
**You can include a device with a house code and unit code in a scene.**
**Each Scene cable device can be part of up to 64 scenes.**
**Scenes are stored in the device itself.**
**? **
**You can turn on a scene**
**You can turn off a scene**
**You can dim a scene**
**You can brighten a scene**
**You can include a device at its current setting in a scene**
**You can remove a device from a scene**
**Use Scene numbering as in PC Excel VBA code in zip file to support 7 button scene controller scene numbering. (see separate PC Excel Leviton Scene VBA [login to view URL])**
Indigo X10 protocol:
[[login to view URL] command_send_x10_extended__Indigo_Main_Suite][1]
?
**More Indigo sample scripts**
**<[login to view URL]>**