Sử dụng Trigger - Lighting Scene

Triggering Lighting Scenes - State Trigger Programming Guide

Application Note

Document Date:

November 2014

Document Supports:

da Vinci 7.0

Overview

The following document provides information on how to create a state trigger to activate a lighting scene based on a state within a Savant® system. By following the example provided, triggers can be created for various use cases.

Common Uses for Lighting Scene Triggers

  • Turning ON outside lights in the evening or turning them OFF in the morning.

  • Turning ON lights when an alarm is tripped or a security camera (with relays) detects motion.

Preparation for Lighting Scene Trigger Programming

Before a lighting scene trigger can be programmed, there are several items that must be configured and/or created. Creating these items in advance will allow for the programming of the lighting scene trigger to go smoothly and quickly.

  • Plan out the amount of required scenes, which lights they will control, and configure them within Blueprint.

  • Plan out what will trigger the lighting scene. Example: Turning ON outside lights in the evening or turning them OFF in the morning.

  • Create Scheduled Events to trigger lighting scenes based on a time of day. Example Events to Create: Dawn, Sunrise, Evening, etc. See State Trigger Overview: State Trigger Programming Guide for details on creating scheduled events.

Example Lighting Scene Trigger

In this example, a scene is created to turn on the outside lights at night. The scene will be triggered by the start of dusk everyday based on a scheduled event that is monitored by the trigger.

Creating the Dusk Scheduled Event

  1. In Blueprint, navigate to: Tools > Review > Scheduled Events.

  2. Create a scheduled event with the following parameters:

Name:

Dusk

Time:

Dusk

Frequency:

Everyday 1 Days

For more information on creating Scheduled Events, see State Trigger Overview: State Trigger Programming Guide.

Creating the Lighting Scene Trigger

It is important to note that unlike other states, lighting scenes cannot be added to a trigger directly. The ActivateScene or DeactivateScene command must be used. Once the command is added to the trigger, the scene is then added to the command.

Triggers are created in the State Trigger dialog located in the Tools > Review menu within Blueprint. For more information on the use of this dialog, see State Trigger Overview: State Trigger Programming Guide.

  1. Create a trigger to activate the scene.

  1. Add the state to monitor to activate the trigger. For this example, we are using a Scheduled Event for dusk that was created earlier.

  2. In the SRS upper list, navigate to: Other > Schedules

  3. In the SRS lower list, select the schedule and drag into the When Any of These States Change list.

  1. Add the ActivateScene command to the trigger Then actions.

  2. In the SRS upper list, navigate to: Service > Requests > <Zone> Lighting Control Service

  3. In the SRS lower list, navigate to: Requests > ActivateScene

  4. Select and drag the ActivateScene command into the Then actions for the trigger.

  1. Add the scene to the ActivateScene command in the Then actions list.

  2. In the SRS upper list, navigate to: Scenes

  3. Select the scene to use for the trigger and drag it into the ActivateScene command.

  1. Repeat step B for other scenes to activate with this command.

  2. Save the trigger and test.