Connectivity and data flow
We chose, somewhat against the current trend, to make the data flow reside in the tablet acting as a home automation controller rather than in the cloud. This means that the latter is responsible for directly controlling the modules installed in the household (lamps, heaters, blinds, etc.) and that any order from another component of the system must go through it (except for switches directly wired to the lamps).
Since the tablet is physically located in the house, this solution guarantees that no sensitive user data leaves the house without prior action on their part.
In addition, it reduces the functionality of the cloud infrastructure to a simple command relay between the home automation controller and mobile applications, thus allowing end-to-end encryption to ensure the confidentiality of orders during transfer.