While there have been many home networking technologies such as UPnP and INSTEON, appliances supporting different home networking technologies cannot collaborate to finish Home Automation (HA). Although many studies of interoperability among home networking technologies have been done, researches on further HA in heterogeneous environments are still lacking. This paper proposes the MOM-based Home Automation Platform (MHAP), which accomplishes event-driven HA in incompatible home networks. MHAP is independent of any home networking technology and integrates home networking technologies in the home gateway. For users, MHAP provides the easy-to-use and standardized way to configure complex HA scenarios by rules. Through introducing Message Oriented Middleware (MOM) and Open Service Gateway Initiative (OSGi), MHAP offers reliable automatic operations, fault tolerant and reconfigurable HA, high extensibility and large scalable collaboration among appliances, other MHAP gateways and Internet services.