Electrical – Replacing dumb wall switch with smart one (wiring)

electricalwiring

Based on the first diagram below (which is the current wiring for my wall switch), is the way I have the second diagram set up correct? My biggest point of confusion is the line/load wires. Judging by the fact that there are two loads (presumably TR and BR), I am assuming that TL is the line. Would this be the correct way to install my new switch?

I am assuming based on the current wiring that the exposed copper wires are ground (green in the diagram), the white wires are neutral (yellow), and the black wires are line/load (red).

Does this work? Is it safe? Should I abort? 😛

enter image description here

Best Answer

Based on the information you've provided; and without knowing what TL, TR, and BR stand for, I'd say your proposed wiring looks correct. However, this is assuming that TL is the feed, and that TR and BR are devices you want to turn on/off.