Kindly guide with good IOT platform primarily for Home Automation

Hello all kindly guide me which is the best open source IOT platform with features and support primarily focusing on home automation and controlling the devices in homes and offices.