openHAB is a widely accepted open source automation software for home, office, etc. It written in Java and is lightweight and can set up in Linux, OS X or Windows. You can run openHAB on RaspberryPi. openHAB project also includes mobile client applications for both iOS and Android.Details
Sometime ago we wrote about Sending Messages Using SNS , SQS Along with the push Notification Using Urbanairship. Many things have changes since and this post has much more details.