Obstruction detection for MQTT Garage Integration

I am in the process of developing a custom garage door integration and can get the basic functionality working, however, I would like to include an obstruction detection warning in HA so that a user can be warned if the garage door can’t be opened or shut due to an obstruction.

I and configuring the device through the MQTT Discovery method but but don’t see a way of defining an “obstruction detection” state

Any help on this would be gratefully received