Cover platform combine rpi_gpio for relay and binanry sensor for state

I understand how to create a Cover for my Garage Door like this using GPIO for relay and state, but I’m trying to figure out if it’s possible to use my existing Binary_Sensor on my Garage Door (DSC control) for the State instead of another sensor tied to a GPIO pin???

cover:
  - platform: rpi_gpio
    covers:
      - relay_pin: 10
        state_pin: 11

You can use a Template cover.