working first stage implementation of SmartLight