Brighten front porch lights, then return to recorded dim level

No comment about the code discussed in this topic, since I really haven’t taken the time to digest it. But, if you’re looking for a way to save the state of lights and/or switches so that you can return them to the same state at a later time, you might be interested in this: