I would like to introduce you to another project of mine. For this I have integrated the control of the motor of my couch to Home-Assistant.
If you are interested, maybe I can create a tutorial how to do that. But I noticed that the individual motors are controlled differently. A generic solution would be hard to find and need help from the community.
But here is a video of what I did…
Hope you like it