While the centre of the room is the preferred location for smoke alarms, this is not a requirement. On the ceiling and they must be 300mm from corners or lights and 400mm from anything that may blow air such as an air conditioner or the edge of the blade of a ceiling fan. There are special requirements for sloping ceilings and ceilings with exposed beams.