Install smoke alarms on inner walls away from openings like these. Getting too close to a furnace or fireplace increase the odds of a false alarm, and can deteoriate smoke detectors more quickly.
Place smoke detectors either on the ceiling at least 4" away from the wall, or high on the wall, 4–12" from the ceiling. Just because it's there, doesn't mean it's working! According to the ...