Smart switch wiring experience in an older house and 1 switch I need advice on

Here’s something I did as a work around a while back:

It’s kind of a PITA, but it works. The code referenced is old, but step 2 is still the important thing - “canChangeBackground: true”