Cannot get Grace period to work

@bravenel I'm running in to an issue with turning off the lights when I use the Grace period setting. The Grace period is activated as it should but after the grace timer runs out the lights are briefly turned off only to be turned on again within milliseconds. From what I glean from the logs it looks like the "Preset Off" is activated again immediately after the lights are turned off and with the lights turning on again that triggers the "Means to activate" and we're back to square one again. The rule works perfectly when not using the Grade Period, with and without "Preset off".

Logs for the issue:

Main settings:

Mode settings:

Preset Off settings:

I would appreciate any pointers as to what I may be missing when trying to configure this rule to use grace period.

Could the motion sensor be reacting to the change in light levels? Or to the bulbs cooling? Is it pointing directly at one of the lights? Or if the lights are not going off simultaneously it might appear to be movement. Check the logs for the motion sensor.

Am I wrong or is the Present Off mode set to turn the lights on? The green text is what the app will do when the mode is triggered. The text in parentheses is the current state of the device.

You have created a loop in the way you have it set up. By using the lights that are controlled as a Means to Turn Off, when they are turned off after the Grace period, that starts it all over again. Those lights should not be there unless they are qualified by Physical.

1 Like

Thanks all. I thought I must be doing something silly. I’ll try it out when I get home

Bang on the money. Works perfectly once I removed the switch from the means to turn off. Thanks @bravenel