Patent ID: 8289137

Claim:
A method for distributed execution of residential device control comprising: receiving a system state definition for a plurality of residential devices, wherein the system state definition includes a definition for at least a first scene and a second scene, wherein the first scene at least indicates a first state to be set for a first residential device of the plurality of residential devices and wherein the second scene at least indicates a second state to be set for a second residential device of the plurality of residential devices; composing a set of instructions for the plurality of residential devices based at least in part on the system state definition; for each of the plurality of residential devices: filtering the set of instructions to identify a subset of instructions for a residential device; and distributing to the residential device at least a portion of the set of instructions; receiving an indication of a scene change at the residential device, wherein the scene change indicates a change from the first scene to the second scene; determining at the residential device whether the scene change is relevant to the residential device; in the event that the scene change is relevant to the device, executing at the residential device instructions of the subset of instructions for the residential device.