I made a driver with the help of claude and some reverse engineering of my app for my bed frame. I have an Enso Sleep bedframe with a keeson wifi box connected to the control to have app control (with ergomotion) and such and I snooped the apps connection and noticed it sends commands locally via lan. This can also apply to other beds connected via wifi that use the same app or similar, may just need to tweak the exact commands being sent. I used claude to help figure out what commands come back from the bed for some status verification and figuring out toggling logistics for button presses and such. I will add on later more detailed explanations but in the meantime here you go.
channel: SmartThings Channel and Drivers