This is now tested and operating in HDP 3.1.4 but should work in any flavor of HDP 3.x I do not recommend using this in HDP 2.x. If you want to work in a flavor of HDP 2.x, please start with the original repo (here). However, you must know there are differences required to get the old repo to work. You can message me if you want to know what those differences are or just compare the repo file sets for differences.
I will be working on this repository to include Hue 4.x as time permits.