Premise Simple x-10 Scene Script

Motorola Premise

xroentgen

New Member
Can some one give me an example of a simple Vb script?

All I want to do is activate a scene when I trigger an x-10 on.

Thanks
 
Can some one give me an example of a simple Vb script?
All I want to do is activate a scene when I trigger an x-10 on.
This example activates a Scene called "Evening" whenever a Light called "PorchLight" is turned on.
  1. In Builder, click Home in the Shortcut Bar.
  2. Navigate to a Light object somewhere in your Premise Home. This example uses one called "PorchLight".
  3. Right-click the PorchLight object and select New > Script > Property Change.
  4. Select the PowerState property.
  5. Premise will create a blank PropertyChange script called "OnChangePowerState"
  6. Enter the following script in the script editor (the big blank area!):
    Code:
    if sysevent.newVal = true then
    	Scenes.Evening.Play = true
    end if
  7. To commit the script (i.e. make Premise use it immediately) press F12 or simply click somewhere outside of the script editor.
What this script does:
Whenever PowerState is True (i.e. turned on) the Evening scene is activated.

For more information, search Premise's Help for "PropertyChange" scripts.
 
Back
Top