I don't think anybody really thought much about it before the discovery of the Antikythera Mechanism, but at least in retrospect there seem to be clear reference to such devices in ancient contemporary literature. Particularly, Cicero described such devices and attributed them to Archimedes.