Video: Replicate Smart Cover sleep mode with a simple magnet