Devices and methods are disclosed for establishing interaction among electronic
devices of an environment. The device has a transmitter, receiver, memory for storing
interaction rules, and a processor for learning the interaction rules in association
with the transmitter, receiver, and other devices of the environment. The device
also includes components for performing the device specific functions and a state
sensor for determining the logical or physical state of the device. Methods involve
observing at one or more devices change of state activity among the plurality of
devices through receiving a change of state message that is transmitted to the
one or more devices. A set of rules are learned at the one or more devices based
upon observing the change of state activity. The learned set of rules are then
applied at the one or more devices to automatically control changes of state of
devices within the plurality of devices.