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