When where alarms invented?

The Greeks came up with alarms in 615c.e. After they had faced a series of invasions, they came up with an "alarm" that would sound when someone would enter an area.