Problem with Lighting Director

I use lighting director to turn on lights if the lux value is below 650 and the time is between 4-6:30PM and only once per day.

This routine is used in conjunction with my sunset routine to turn the lights on a little earlier than the sunset routine only if it is unusually dark, such as a cloudy rainy day.

The problem comes when I am away from home and my regular sunset app turns on the lights. When I come home the mode changes from away to home which triggers the lighting director routine. For some strange reason when the mode changes the lighting director is turning “OFF” the lights when it shouldn’t be doing anything.

This causes my house to go dark until I get inside the house and motion is detected and turns them back on.