You can do this with a PC if it has Bluetooth or Wi-Fi
A few years ago I created a program that would detect when a phone came in range and this would trigger a number of configurable things including a voice announcement, running another program or turning on/off things.