HueHandler - added better lock handling (based on Boblight)