Premise "ShowAllLights" shows too many lights.

Motorola Premise

123

Senior Member
The "Show All Lights" command (in Premise Browser's Task list) displays all lights found in the entire home. Unfortunately, it does its job a little too well because it displays Lights whose "Navigation" property is set to "Hidden". To suppress the display of lights marked as "Hidden", you simply need to change one line of code.

1. Using Builder, navigate to:
Modules/AutomationBrowser/Lighting/Classes/RoomLighting/RenderPlugin

2. Find the following line:
set lights = sysevent.ClientSession.CurrentLocation.GetObjectsByType( Schema.Device.Lighting.Lighting, true)

3. Delete the line or convert it into a comment by entering a single quotation mark (') as the first character.

4. Add the following line of code:
set lights = sysevent.ClientSession.CurrentLocation.GetObjectsByTypeAndPropertyValue( Schema.Device.Lighting.Lighting.Path, "Navigation", 0, true)

5. Press F12 to save and commit the change to the Premise Server.

The new code restricts its search to lights whose Navigation property equals zero ("Default").
0 = "Default" (display the object)
1 = "Hidden" (don't display it)
2 = "Flat" (never implemented by the AutomationBrowser)
 
Back
Top