Text this: Intelligent distributed module for local control of lighting and electrical outlets in a home