How does Electricity Work in the Home?

Electricity passes through a device. Device contains various electronic parts & digital electronic circuits. They perform their tasks as defined.