I turned an old motorized bed into a smart bed. I control both the head end of the bed and the feet end with a ‘cover’ control. I incorporated the controls with a Sonoff 4CH Pro running ESPhome. Would it be possible to add a device type of ‘bed’ for the cover category?