Smart Audio system..Need Help!

Hello! I would like to make a multiroom audio system, controlled by an application, wich, when I (with the phone) enter in the room, the music (speakers) starts singing, and when I exit the room, they turn off. And when I enter the other room, works the same way. How can I do that?

The speakers that I want to use, already have bluetooth in.

Thank you !