Greek automata. Steam machines and mechanical engines in the BC, giving you holy water vending machines, primitive binary computers, automatic doors and more.
Greek temples, while mere stone facades today in most cases, were actually very advanced with a lot of cool gadgets and even things like moving statues. Write that into a historical fiction/fantasy story today and people would accuse you of making it up, but it's all historical fact!
http://www.ancient-wisdom.com/greekautomata.htm
Here's some more goodies: The Book of Ingenious Devices, published in 850.