METHOD AND SYSTEM FOR CONTROLLING LIGHTING

Abstract: A method and system for controlling environmental conditions, such as lighting. The lighting system provides an architecture that includes a scene description data structure. A scene defines one or more circuits and a target state for the lights on those circuits. The scene description data structure specifies circuits within a scene and specifies a target state for the lights on those circuits within a scene. The lighting system provides a lighting gateway that retrieves and provides scene descriptions to assist in generating a user interface for enabling scenes, and that receives requests to enable scenes and then requests a lighting controller to enable the target state for each circuit within the scene. Each space (e.g., area or room) within the environment has a lighting component that provides a standard programmatic interface to control the lights from a space. The lighting component re trieves scene descriptions from the lighting gateway and receives requests from a user control point device to enable a scene and then forwards the requests to the lighting gateway.

Description: METHOD AND SYSTEM FOR CONTROLLING LIGHTING TECHNICAL FIELD The described technology relates generally to a system for controlling environmental conditions and, more particularly, to a computer system architecture for controlling the environmental conditions. BACKGROUND A large environment, such as an office building, a factory, or a large house, may have many environmental conditions that can be contiolled. These environmental conditions may include lighting, room temperature, ventilation, other environmental conditions that may be electrically controlled, and so on. For example, such a large environment may have hundreds or thousands of lights that can be turned on or off or placed in an intermediate state using a dimmer. Multiple lights within such an environment may be wired to a single circuit. All the lights on a single circuit are controllable as a unit and are thus in the same state. For example, all lights on a circuit may be at 50% intensity when a dimmer is used. The lights in such large environments are typically controllable by light switches and a computer system. Light switches may be located throughout the environment in areas near where the lights are located. For example, in a large house, a light switch for controlling lights within the kitchen may be located in the kitchen itself. Computer systems have been developed to control the turning on and turning off lights within such environments. For example, a computer system that controls the lighting of a building may automatically turn off certain lights at night to conserve energy. These computer systems for controlling lights are generally remotely from the lights and centrally located in that a computer system at one location can control all the lights. Other environmental conditions also have manual controllers that may be located throughout the environment and a computer system controller that is centrally located. For example, a heating system may have a temperature control device located in each room of a house to control the temperature within the room, and a central heating system controller to control the temperature in any room. A person either sets the temperature for a room at the control device in the room or at the central controller. The use of only such locally located controller and a central computer system for controlling the environmental conditions has several disadvantages. For example, a person in one area who would like to control the environmental conditions in an adjacent area would typically either need go to the other area to adjust the environmental conditions or go to the central computer system and request that the computer system change the environmental condition in that other area. Another disadvantage is that the user interface of such a central computer system is typically cumbersome. It may be difficult to browse through and locate the user interface for controlling the desired environmental condition in the desired room. Also, it may be difficult for a user to fully appreciate the effects of the change (e.g., actual level of light intensity) unless that person is actually in the room. It would be desirable to have a technique that would overcome these disadvantages. SUMMARY A method and system for controlling environmental conditions is provided. In one embodiment, the environment controlling system provides a lighting system that controls the lighting of the environment. The lighting system provides an architecture that includes a scene description data structure. A scene defines one or more circuits and a target state for the lights on those circuits. The scene description data structure specifies circuits within a scene and specifies target a state for the lights on those circuits within a scene. The lighting system provides a lighting gateway that retrieves and provides scene descriptions to assist in generating a user interface for enabling scenes (i.e., putting the lights of the circuits of the scene in the target state), and that receives requests to enable scenes and then requests a lighting controller to enable the target state for each circuit within the scene. Each space (e.g., area or room) within the environment has a lighting component that provides a standard programmatic interface to the control the lights for that space. The lighting component retrieves scene descriptions from the lighting gateway and receives requests from a user control point device to enable a scene and then forwards the requests to the lighting gateway. The lighting system also allows for the specifying of groups of lights within a space. Each user control point device is associated with a primary group of lights. For example, the primary group of lights would typically be the circuits of lights within the room in which the user control point device is located. The lighting system initializes the user control point device to display a user interface for controlling the primary group of lights. A user can request the lighting system to display the user interface for another group of lights at that user control point device. Thus, the lighting system allows lights from multiple spaces to be controlled by a single user control point device located in one space. The lighting system also provides a feedback technique that notifies a user that the lighting controller has been successfully notified to enable a scene as requested by the user. The environment controlling system also provides an overall architecture for controlling the environmental conditions in a distributed object environment. In one embodiment, a group of environmental condition is associated with each space. A software component associated with the space provides a software component that is customized to each environmental condition that is related to that space. The software components provide an interface between a user interface component and an environmental gateway. The user interface component provides a user interface for controlling and viewing the environmental conditions. The environmental gateway receives commands for each of the associated software components and controls the environmental conditions through an environmental controller. In one embodiment, each environmental gateway controls one type of environmental condition. BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 illustrates the display of a user control point device for controlling lights in one embodiment. Figure 2 is a block diagram illustrating the hierarchical relationship of circuits within a building. Figure 3 illustrates a scene description table. Figure 4 illustrates a group table. Figure 5 illustrates a space/group table. Figure 6 is a block diagram illustrating the overall architecture of the lighting system. Figure 7 is a flow diagram of the processing performed by the lighting user interface component in one embodiment. Figure 8 is a flow diagram of a resource is up function of the lighting component ("LC"). Figure 9 is a flow diagram of a function for retrieving groups from the lighting component. Figure 10 is a flow diagram of an enable scene function of the lighting component. Figure 11 is a flow diagram of the enable scene function of the lighting gateway. DETAILED DESCRIPTION A method and system for controlling environmental conditions in an environment is provided. The environmental controlling system in one embodiment provides an architecture that allows environmental conditions to be controlled from a user control point device, such as a touch panel display. When the environmental controlling system controls lights, a lighting system allows for scenes to be defined which specify the state of lights controlled by that scene. A scene is a collection of circuits with a target state for the lights on those circuits. For example, a scene may include all the circuits within a room and may specify that the target state is to put the lights on those circuits at high intensity. Another scene may specify only a portion of the circuits within a room and indicate a target intensity that is low. To assist a user in selecting a scene to be enabled, the lighting system displays a visual indication of each possible scene on a user control point device. When the user selects one of visual indications, the lighting system requests a lighting controller to put each of the circuits of the scene into the target state of the scene. Each scene may also specify the transition time or change time that it should take to transition from the current state of the lights to the target state. The lighting system allows for the control of lights in rooms other then the room in which the user control point device is currently located. In addition, the lighting control system provides feedback when the lighting system has successfully notified the lighting controller that a scene is to be enable. The environmental controlling system provides an architecture that includes an environmental gateway, an environmental component, and a user interface component. The environmental gateway interfaces with an environmental controller and forwards requests from the environmental component to the environmental controller. The environment^ component receives requests from its user interface components to adjust the environmental condition and forwards those requests to the environmental gateway. The user interface module provides a user interface that allows a user to select a setting for a condition (e.g., a certain temperature) and then forwards that request to the environmental component. Figure 1 illustrates the display of a user control point device for controlling lights in one embodiment. The display 100, which may be a touch-sensitive device, includes a lighting panel 101. This display indicates that the user control point device is currently accessing the services associated with the swimming pool space. The display indicates that the user interface for the service associated with the lighting system is currently displayed. Other services may include controlling a stereo system or controlling a heating system. The lighting panel indicates that the "pool lights" can be controlled from the panel. The panel displays a visual indication of each scene that is defined for the swimming pool space. In this example, four scenes are defined for the space, which are "All Lights Bright," "All Lights Normal," "All Lights Dim," and "All Lights Off." When a user selects a visual indication of a scene by, for example, touching the visual indication, the lighting system causes the lights of the circuits of that scene to be set to the target state. The panel also includes a scroll bar 102 for setting the brightness level of the lights within the space. When selected, the select button 103 displays a list of other spaces whose lights can be controlled from this user control point device. When the user selects another space, the user interface system displays a lighting panel that is appropriate to that space in a format similar to that shown in Figure 1. In certain situations, it may not be easy to visually represent on the display the current state of all the lights in a space. For example, if one scene for a space includes less tlran all the circuits in the space (e.g., circuits for controlling the floor lights but not overhead lights) and that scene is enabled, then the state of the lights within the room is a combination of two scenes. The two scenes may be a scene that specifies that all lights in the space to be at high intensity and another scene that specifies that only the floor lights in the space are to be at a low intensity. It may be difficult to visually represent the states of the lights that may be a combination of many scenes. Moreover, the current state of the lights may not be readily apparent to a user when the user is controlling the lights from another space. To assist a user in knowing whether a scene has been enabled, the lighting system provides feedback or acknowledgement to the user after the light controller has been successfully instructed to enable a selected scene. In one embodiment, this feedback may be the momentary or temporaiy highlighting of the visual indication of the scene on the display. Alternatively, the feedback could be audio. Figure 2 is a block diagram illustrating the hierarchical relationship of circuits within a building. At the top of the hierarchy is a node 201 that represents the building. The building has spaces that are represented by nodes 202. Each space may have multiple groups of associated lights as represented by nodes 203. For example, a media room may have a group that specifies the scenes within the media room and may have a group that specifies scenes within an adjacent room, such as a hall. Also, two spaces, such as a media room and an adjacent hall, may share the same group. Each group may have multiple associated scenes as represented by nodes 204. Each scene may have multiple associated circuits as represented by nodes 205. Each scene also has a target state. For example, a target state may be to set the lights of the circuit to 50% intensity. One skilled in the art will appreciate that the target state may include other visual effects such as automatically varying the intensity of the lights. For example, the visual effect may be the blinking of the lights. In one embodiment, each scene also has an associated change time that indicates the time that it will take to transition the lights from their current state to their target state. For example, if the change time is 3 seconds and the lights are currently at 100% intensity, then when a 50% intensity scene is selected, it will take 3 seconds to transition from 100% to 50% intensity. Figures 3-5 illustrate the data structures that define scenes and groups. These data structures are part of a scene description file. Figure 3 illustrates a scene description table. The scene description table contains information describing the circuits and target state associated with each scene. In this example, each row of the scene description table corresponds to one scene. Each row contains the scene identifier, the target intensity for the scene, the transition time for the scene, the name of the scene, the identifiers of the circuits within the scene, and an event. For example, the row for the scene with an identifier of "2" indicates that the target intensity is 0, the transition time is 1 second, the scene name is "Rec Room Off," the circuits of the scene are 100, 101, and 102 and the event is "lights off." When a scene is enabled, the corresponding event can be broadcast to notify the various software components of the system. Figure 4 illustrates a group table. The group table identifies the scenes within a particular group. Each row of the group table corresponds to a single group. Each row includes a group identifier, a group name, and the identifiers of the scenes within that group. For example, the row for the scene with an identifier of "1" indicates that the name of the group is "TV Room" and that the identifiers of the scenes within that group are 3 and 4. Figure 5 illustrates a space/group table. The space/group table contains information describing the groups that are accessible from a given space. Each row of the space/group table corresponds to one space. Each row contains the name of the space and the identifiers of the groups within the space. For example, the row for the space with the name of "Hall" indicates that groups 1 and 2 are associated with that space. The space/group table may also indicate which group is the primary group for the space. Figure 6 is a block diagram illustrating the overall architecture of the lighting system. The lighting system may be implemented in a distributed computer system. Each computer may include a central processing unit, a memoiy, and input/output devices. The components of the lighting system may be implemented in software and use data structures that are stored on a computer-readable medium and that can be transmitted via a computer-readable data transmission medium. The lighting system includes a lighting gateway 601, a scene description file 602, lighting components 603, and lighting user interface components 604. The lighting user interface components interact with the user control point devices 605. The various components may execute on different computers and may be interconnected via communications channel 606. The communications channel may be a logical interconnection between components on the same computer. The dashed lines indicate which components directly communicate with each other. For example, a lighting user interface component communicates directly with a lighting component. The lighting gateway controls the lighting controller 607. The lighting controller provides the interface between the lighting system and the switching mechanism for the lights. The lighting gateway provides three primary services. First, it provides access to the scene description file, which includes the scene description table, the group table, and the space/group table. Second, it receives requests to enable a scene, retrieves the circuit information for that scene from the scene description file, and then instiucts the lighting controller to place the circuits of that scene in the target state. Third, the lighting gateway may send out a notification when the lighting controller becomes available or unavailable. The lighting components, one for each space, provide a programmatic interface for receiving requests to control lighting and to instruct the lighting gateway accordingly. The lighting user interface components are provided by the lighting components in one embodiment and serve as the interface between the user control point device and lighting components. The lighting user interface components are responsible for generating the user interface appropriate to control the lighting. In one embodiment, the components may be implemented as objects in the object-oriented sense. The lighting user interface component initially generates a display of the scenes that are available to control the lighting within the space associated with the lighting user interface component. The lighting user interface component retrieves the groups associated within the space from a lighting component, which in turn, retrieves the group associations from the lighting gateway. When a user selects a scene, the lighting user interface component requests the lighting component to enable the scene, which in turn passes the request to the lighting gateway, which instructs the lighting control to enable that scene. After the lighting controller has been successfully instructed, the lighting user interface component may provide feedback to the user. One skilled in the art will appreciate that the overall architecture of the lighting system can be used to control other environmental conditions. The concepts of a scene, however, may not be applicable when controlling some environmental conditions other than lighting. Figures 7-11 are flow diagrams illustrating example processing of components of the lighting system. Figure 7 is a flow diagram of the processing performed by the lighting user interface components in one embodiment. The lighting user interface components generate displays for controlling the lighting, receive requests from users to enable scenes, and forward the requests to the associated lighting component. In step 701, the component invokes the retrieve groups function of the lighting component to retrieve the groups associated with the space of the user control point device. In step 702, the component selects the primary group for the space, which may be the first group in a list of groups. In steps 703-711, the component loops displaying the user interface for the currently selected group and directing the lighting component to enable scenes selected by a user. In step 703, the component generates a display for the selected group. In step 704, the component displays the generated display. In step 705, the component waits for user input. In step 706, if the input is the selection on the new group, then the component continues at step 707, else the component continues at step 708. In step 707, the component selects the new group and loops to step 703 to display the user interface for the group. In step 708, if the input is the selection of a scene, then the component continues at step 709, else the component loops to step 705 to wait for other user input. In step 709, the component invokes the enable scene function of the lighting component passing the identifier of the scene and receiving a status in return. The status indicates whether the scene enabling instructions were successfully communicated to the lighting controller. If the lighting controller is for some reason off line or if an error is detected when invoking the functions of the components, then an error is returned. In step 710, if the status is okay, then the component continues at step 711, else the component loops to step 705 to wait for user input. In step 711, the component outputs a momentary acknowledgement that the scene was successfully enabled. In one embodiment, the acknowledgement is the momentary highlighting of the visual indication of the scene on the user control point device. The component then loops to step 705 to wait for user input. Figure 8 is a flow diagram of a resource is up function of the lighting component ("LC"). This function is invoked when the lighting gateway enters the up state, that is when it can receive requests to control the lights. The function retrieves the groups of scenes associated with the space. Each lighting component is configured to be associated with a space. In step 801, the function retrieves a pointer to the lighting gateway. In step 802, the function invokes the retrieve groups function of the lighting gateway passing an indication of the space and receiving the groups for that space in return. In step 803, the function stores the retrieved group information so that information can be provided when requested by the lighting user interface components. The function then returns. Figure 9 is a flow diagram of a function for retrieving groups from the lighting component. This function returns the group information that was previously provided by the lighting gateway. In step 901, if the lighting gateway is currently up, then the function retrieves and returns the group information that was previously stored. Otherwise, the function returns an error. Figure 10 is a flow diagram of an enable scene function of the lighting control interface component. The function is passed a scene identifier, instructs the light gateway component to enable the scene, and returns a status indicator. In step 1001, the function retrieves a pointer to the lighting gateway. In step 1002, the function invokes the enable scene function of the lighting gateway passing the scene identifier and receiving the status in return. The function then returns with that status. Figure 11 is a flow diagram of the enable scene function of the lighting gateway. This function is passed a scene identifier, directs the lighting controller to place the lights of the circuits of that scene in their target state, and returns the status. In step 1101, the function retrieves the information for the scene from the scene descriptor table. In steps 1102-1105, the function loops selecting each circuit in the scene and directing the lighting controller to put the circuit in its target state. In step 1102, the function selects the next circuit in the scene. In step 1103, if all circuits have already been selected, then the function returns a status of okay, else the function continues at step 1104. In step 1104, the function sends a message to the lighting controller to put the selected circuit in the target state. In step 1105, if an error occurs in sending the message to the lighting controller, then the function returns an error, else the function loops to step 1102 to select the next circuit in the scene. Although specific embodiments of, and examples of, the present invention are described for illustrative purposes, it is not intended that the invention be limited to these embodiments. Equivalent methods, structures, processes, steps, and other modifications within the spirit of the invention are within the scope of the invention. For example, in one embodiment, the lighting gateway may download a description of the scenes to the lighting controller. Thus, whenever the lighting gateway receives a request to enable a scene, it can check a local cache to determine whether the scene is valid. If the scene is valid, the lighting gateway requests the lighting controller to enable the scene. Otherwise, the lighting gateway reports an error. An environmental controlling system can use a spatial hierarchy for controlling environmental conditions in a manner that is analogous to controlling the displaying of images as described in the U.S. Patent Application entitled "Method and System for Distributing Art." An environmental controlling system may be implemented using the techniques and facilities described in the U.S. Patent Application entitled "Method and System for Tracking Software Components." Accordingly, the invention is not limited to the specific embodiments but instead the scope of the invention is specified by the following claims.

Claims: CLAIMS 1. A computer system for controlling lights within an environment, each light being on a circuit, comprising: a scene description data structure that specifies circuits within a scene and specifies target states for the circuits within a scene; a lighting gateway that retrieves and provides scene descriptions when requested and that receives requests to enable a scene and notifies a lighting controller to enable the target state for each circuit within the scene that is requested to be enabled; and a lighting component for each space from which lights can be controlled that requests and retrieves scene descriptions from the lighting gateway and that receives requests generated from a user control point device to enable a scene and forwards the request to the lighting gateway. 2. The computer system of claim 1 further including: a lighting user interface component for each space that requests the lighting component for scene descriptions and that contiols the user control point device to present a user interface for controlling the lights within the space. 3. The computer system of claim 1 wherein the lighting gateway notifies the lighting component when the lighting controller changes state. 4. The computer system of claim 1 wherein the scenes for a space are organized into a group and wherein a user can control scenes in multiple groups from a single control point device. 5. A method in a computer system for controlling lights through a lighting controller, each light being on a circuit, the circuits being organized into scenes, the method comprising: displaying a visual representation of scenes within an space that can be controlled; receiving a selection of one of the scenes from a user; and in response to receiving the selection of a scene, requesting the lighting controller to enable the selected scene; and when the lighting controller has been successfully requested, displaying a momentary feedback to the user indicating that the lighting controller has been successfully requested. 6. The method of claim 5 wherein the momentary feedback is highlighting of the visual representation of the selected scene. 7. The method of claim 5 wherein the momentary feedback is an audio feedback. 8. The method of claim 5 including: when the lighting controller has not been successfully requested, suppressing the displaying of the momentary feedback. 9. The method of claim 5 wherein the scenes can be enabled as a result of user input from more than one user control point device. 10. The method of claim 5 wherein a scene controls less than all of the circuits within a space. 11. A method in a computer system for controlling environmental conditions within an environment from a user control point device, the environment being divided into spaces, the method comprising: providing a specification of groups of environmental conditions, each group of environmental conditions associated with a space; associating a user control point device with a space; displaying at the user control point device an indication of options available for controlling the environmental conditions associated with space and displaying an indication that another group of environmental conditions is controllable from that user control point device; and receiving a request from a user to control the environmental conditions in the other group from the user control point device. 12. The method of claim 11 including after receiving the request from the user, displaying at the user control point device an indication of options available for controlling environmental conditions within the other space. 13. The method of claim 11 wherein the space and the other space are adjacent spaces within the environment.

Inventors: GELLAND TORSTEN, PYLE HARRY S, GELLAND, TORSTEN, PYLE, HARRY, S.
Applicants: GATES WILLIAM H III, GELLAND TORSTEN, PYLE HARRY S, GATES, WILLIAM, H., III, GELLAND, TORSTEN, PYLE, HARRY, S.
Application year: 2000
Main classification: G06F9
IPC codes: G06F9, G06T1, H04L12, H04L29, H05B37