1. A device for establishing rules for device interaction in an environment having a plurality of devices where each device performs one or more unique functions within the environment with the one or more functions of each device being associated with various states, the device comprising: a transmitter; a receiver; a memory; components that acquire the various states upon performing the one or more unique functions of the device; a state sensor that is operably coupled to one or more of the components to recognize a current state of the device; and a processor in communication with the transmitter, receiver, memory, and state sensor, the processor being configured to observe change of state activity among the plurality of devices through receiving a change of state signal from the state sensor, learn a set of rules based upon observing the change of state activity, store the set of rules in the memory, and apply the stored set of rules to automatically control changes of state of devices within the plurality of devices.