How to make devices mirror each other?

looking to do with with RGB lights under cabinets, what is the best way to implement this with color/brightness/state?