Need help replacing the old double switch (top two photos) for the new smart switch for my Grandma so she can have the lights come on at dusk till Dawn for security.
I am (mostly...) a fan of use the right tool for the job.
Can a WiFi controlled smart switch be programmed to track sunrise/sunset? Sure.
But how about a simple photocell fixture? That is a far simpler technology that has been around "forever". No computer, smartphone, etc. needed. No worry about forgetting how to program it. Automatically on/off every day with sunset/sunrise.
Alternatively, you can get a motion sensor light. Automatically turns on when it detects someone within range and stays on until there is no movement for a while.
one of 4 or 5 is the live and the other is the power feed to the lamp for switch 2
switch 1 is a multi-way switch circuit, probably the lamp end of it.
this is a guess: 2 to A2, 4 A1, 5 to A black to N. 1 and 3 unused (use a joiner to insulate them) if there are two groups of black use the group that the cables for 4 and 5 go to.
if switch 2 doesn't work with that swap 4 and 5
if switch 2 works and switch 1 doesn't work swap 1 and 2
Switch one was a multiway switch, you'll also have to find the other switches that were peers with switch 1 and replace them with remotes for the smart switch.