As you can see things can get complicated, and maybe expensive.
From my point of view who doesn't have the knowledge electronic wise I went this way.
using Train-Tech projects.
As a previous comment, Fully Automatic.
Rather than go into how, have a look at their website, look under Tips.
Find the one that features. Lights & Tail Light using an Inspection coach.