is it connected to a Hue bridge? this might do what you want, it piggy backs on a detected Hue Bridge in ST
Hue accessoires