This is a forked branch from https://github.com/KrunkKracker/my-ha-config who is the original creator There are also examples used on his blog www.theautomationplace.com