Is it okay to attach things to a smoke detector?
No, it is important that the area around the detector is clear so smoke can reach it quickly in a fire.