@ymerj - I was curious about this integration so I decided to give it a try. I was able to get your code running with ease. Nicely done! I then decided to try to add support for a basic dimmable light (e.g. a normal Dimmer Switch, not a CT/RGBW bulb.) Here is the result, which seems to work very well in my very limited testing. It is still a work in progress...
EDIT (interim code removed as it is all now in @ymerj's GitHub Repo)
UPDATE: I finished adding in the HA to HE dimmer level updates as well. Again, it is work in progress, and there are opportunities for some code refactoring to clean things up a bit, and to simplify the design. Thanks again @ymerj for kick-starting this effort!
UPDATE2: Fixing some edge cases and simplified the code a bit.
UPDATE3: Fixed another bug in the dimmer logic
UPDATE4: Current code can be found here