Index

RgbLedLighting

  1. Description
  2. Configuration
  3. Example

Respond to events to control Colorstars Tristar LED lights. These are accessed over an RS485 serial interface.

Description

This event interface responds to events and send out serial commands as configured to control the LED lighting.

Configuration

The EventInterface element of this configuration has an additional attribute:

The handler specific configuration for this expects one or more 'action' elements within the event element. This contains the folllowing attributes

Attributes also required for the rgb task. Attributes also required for the command task. If the task is command then the command attribute must be given and have one of the following string velues.

The action element may be repeated to get multiple actions on a single event.

Example

    <eventInterface module='EventHandlers.RgbLedLighting' name='RgbLedLighting' serialport="com9">
        <eventtype type="internal">
            <eventsource source="cinema/lighting/red" >
                <event>
                    <action task="rgb" red="64" green="0" blue="0" />
                </event>
            </eventsource>
            <eventsource source="cinema/lighting/white" >
                <event>
                    <action task="command" command="white" />
                </event>
            </eventsource>
            <eventsource source="cinema/lighting/on" >
                <event>
                    <action task="command" command="on" />
                </event>
            </eventsource>
            <eventsource source="cinema/lighting/off" >
                <event>
                    <action task="command" command="off" />
                </event>
            </eventsource>
        </eventtype>
    </eventInterface>