Trying to get the Z-Wave Plus Rare Earth Magnets Door & Window Sensor to trigger my. GE Enbrighten Z-Wave Plus Smart Light Switch

I am trying to get a Z-Wave Plus Rare Earth Magnets Door & Window Sensor to trigger my GE Enbrighten Z-Wave Plus Smart Light Switch on when it is dark outside (sunset till sunrise) and then turn off after 10 minutes.

I tried using the smrt app, but it is not working for me. I have the sensor on my door going out to my garage. I can see that it is being seen by the hub, but it is not triggering the light. Is there something special I need to or another app I should use to make this work. Seems to be something that should be easy to do. I had it working for 5 minutes then it stopped. ANy help here would be appreciated.
Thanks,
Dick