A system comprising an enclosure (1000, 111) and a switching device (1003, 110), the switching device comprising: a cover including: a hollow content area housing a plurality of connectors; and one or more openings (1004,115) designed to allow a plurality of conductors (1005, 114) passage into the hollow content area where the plurality of conductors are connected to the plurality of connectors, wherein the cover is mounted on the exterior side of the enclosure (1000, 111); one or more reflective agents (1008, 119) mounted on the cover such that changing a physical location of the cover or a part of the cover changes a location of the one or more reflective agents; a sensor (1002, 112) configured to sense the one or more reflective agents and output an electrical signal depending on a location of the one or more sensed reflective agents mounted on the cover, wherein the sensor is positioned outside of the hollow content area of the cover, in the interior side of the enclosure (1000, 111), in proximity to the inner surface of the enclosure (1000, 111) and the cover; and a controller (1050, 1150) configured to change a state of an electronic device (1051, 1151) enclosed by the enclosure (1000, 111) according to the output electrical signal of the sensor, wherein the sensor (1002, 112) includes a transmitting part and a receiving part, wherein the transmitting part comprises a magnet configured to induce a magnetic field towards the enclosure (1000, 111), and wherein the receiving part comprises an inductor carrying an induced current of a magnitude dependent on a magnetic force; and wherein the one or more reflective agents are magnetized agents configured to create a magnetic force and induce an inductor current in the inductor. a cover including: a hollow content area housing a plurality of connectors; and one or more openings (1004,115) designed to allow a plurality of conductors (1005, 114) passage into the hollow content area where the plurality of conductors are connected to the plurality of connectors, wherein the cover is mounted on the exterior side of the enclosure (1000, 111); a hollow content area housing a plurality of connectors; and one or more openings (1004,115) designed to allow a plurality of conductors (1005, 114) passage into the hollow content area where the plurality of conductors are connected to the plurality of connectors, wherein the cover is mounted on the exterior side of the enclosure (1000, 111); one or more reflective agents (1008, 119) mounted on the cover such that changing a physical location of the cover or a part of the cover changes a location of the one or more reflective agents; a sensor (1002, 112) configured to sense the one or more reflective agents and output an electrical signal depending on a location of the one or more sensed reflective agents mounted on the cover, wherein the sensor is positioned outside of the hollow content area of the cover, in the interior side of the enclosure (1000, 111), in proximity to the inner surface of the enclosure (1000, 111) and the cover; and a controller (1050, 1150) configured to change a state of an electronic device (1051, 1151) enclosed by the enclosure (1000, 111) according to the output electrical signal of the sensor, wherein the sensor (1002, 112) includes a transmitting part and a receiving part, wherein the transmitting part comprises a magnet configured to induce a magnetic field towards the enclosure (1000, 111), and wherein the receiving part comprises an inductor carrying an induced current of a magnitude dependent on a magnetic force; and wherein the one or more reflective agents are magnetized agents configured to create a magnetic force and induce an inductor current in the inductor.