Cover entity from multiple switches

I have an electric roller blind which is driven by providing 240v to either the up/down motors. Remote control is provided by two tasmotized sonoff mini devices. The blind does not have any position sensors so I assume that if the down sonoff is powered on the blind is down and same for up position.
Most of the time the blind goes up and down in accordance with a scheduling automation in HA, but I also have a local retractive switch which fires a tasmota rule to drive the blind up/down if necessary.
It would be neat to integrate the two switches into one cover, but I can’t quite figure out how to do this. Any pointers to worked examples would be appreciated.

The problem is/was that open_cover requires: turn off down motor and then turn on up motor. I was trying to inset a sequence in the service. Now I have got the two actions in one script it is working perfectly.

- platform: template
  covers:
    hallway_blind:
      friendly_name: "Hallway Blind"
      device_class: shade
      value_template: >-
        {% if states.switch.blinds_motor_up.state == 'on' %}
          open
        {% else %}
          closed
        {% endif %}
      open_cover:
        service: script.open_hall_blind
      close_cover:
        service: script.close_hall_blind
      icon_template: >-
        {% if states.switch.blinds_motor_up.state == 'on' %}
          mdi:blinds-open
        {% else %}
          mdi:blinds
        {% endif %}