1810, a method of signaling, from homo- (1) "same" + -graph "something written." Meaning "a word of identical spelling with another, but of different origin and meaning, is from 1873. Related: Homographic; homography.
1. In the process of studying English, it is likely to confuse homograph, homonym, and homophone.