Not all solutions involve electronics or coding. I recently had rotator cuff surgery on my right shoulder and it’s more comfortable and better to sleep in a recliner for awhile after the surgery. Unfortunately, like the vast majority of recliners, ours has its controls on the right side, posing a problem for someone in a sling.
So I put some PVC pipe together before the surgery:
It’s a bit like lockpicking, you have to go totally by feel. While a bit awkward, it works!