This has to do with the toggling in SmartLights smart app. The SmartApp runs locally. If you make an automation that says to toggle a light on/off with a button press, the SmartApp doesn't know the current state of the light when you press the button. Just what it was set to last. So if the toggle last had the light on, and then some other automation turns the light off (like the Goodbye routine when leaving the house), the next press of the button will be to turn the light off. But since it is already off, nothing appears to happen. When you press the button again, the light will turn on, and the button will be in "sync" until the issue happens again.