Bed Automation

Has anyone here been able to make an integration with their bed? We have a Personal Comfort mattress, similar to a sleep number bed. wandering if anyone has made any integrations to be able to control the bed from HA. There is an app that connects locally that can control it but would like to integrate it into the rest of my automatons.