I do this the very simplest way, by using the maker channel/service IFTTT. This is how I integrate Ibeacons into my home automation system.
There are lots of other ways to do it, as were already mentioned. HAMBridge, CoRE, even some individual Smartapps.