An iOS app integrating with iBeacon technology for automation