So in case of Raspberry Pi restart or electricity failure the latest state of the units is saved and devices could be set again to the state earlier than the restart. This involves the utilization of a database server that maintains the state of every gadget. The last state record of every system is fetched and set once more to each gadget accordingly. The second mode of the network can be used when the user is away from home and desires to manage house home equipment remotely over the internet. On the verification of the user’s given credentials, the request is forwarded to concerning Raspberry Pi for additional processing.