If your interesting is specifically running it on your PI have a look at this; https://home-assistant.io/ its easy to install and setup. Has some great products already integrated and loads of Youtube videos to help with installation and setup.