Struggled a bit with this light.  The first one showed up without the motion sensor so a replacement was sent and the function was hit and miss with that one.  On the plus side it’s really cute up!