20. The apparatus of claim 19 , wherein a third IoT device in the IoT network receives an event notification from the first or a second IoT device in the IoT network, maps event information in the received event notification to the generic entry in the events dictionary, and executes the home automation rules defined for the generic entry in the events dictionary.
19. The apparatus of claim 18 , wherein the at least one processor is further configured to define home automation rules based on generic events defined in the events dictionary; and wherein the transceiver is further configured to distribute the home automation rules to the other IoT devices in the IoT network.