Blockchain has proven to be a disruptive technology having a tremendous impact on cryptocurrencies management. The blockchain technology potential is one to be applied in other fields. The development of new/small/cheap SoC processors boards will systematically flood our homes, businesses, buildings and cities with Internet connection capable devices. The M2AP is an architecture that proposes a unified and micromanage ecosystem for these devices. Fully interconnected like a network mesh but better prepare to control the data flow due to its device classification based on purpose and data usage. In this paper it is proposed an M2AP architecture that uses blockchain for identity identification, security and trust delivery management applied to a home automation system. A Trust currency is introduced, a modified blockchain structure is utilized, and a proof of Trust is presented.