Lamp sockets stay on

I have the pan cam and wyze lamp sockets. I can’t get the lights to go off at sunrise or on at sunset. Any help?