You can find Philips Hue Documentation here.
The first thing to do is to add the required dependencies to the build.gradle file.
We define data contracts. This classes represent data exchanged with Hub API (Request / Response).
Represents a light connected to the hub.
Represents the state of a light connected to the hub.
Command body to update light state
Interface representing hub API
Some functions to help with Retrofit (generates an implementation of
Some color conversion operations (More informations here)