Before I moved to home assistant I also automated my lights using my Pi: https://github.com/dylanowen/nanoleaf