Update smartlight.c