- platform: template
  covers:
    bedroom_curtains:
      device_class: curtain
      friendly_name: Bedroom Curtains
      open_cover:
        service: switch.turn_on
        entity_id: switch.bedroom_curtains
      close_cover:
        service: switch.turn_off
        entity_id: switch.bedroom_curtains
      value_template: >
        {% if states("sensor.bedroom_curtains_position") | int < 50 %}
          opening
        {% else %}
          closed
        {% endif %}
      icon_template: >
        {% if states("sensor.bedroom_curtains_position") | int < 50 %}
          mdi:window-shutter-open
        {% else %}
          mdi:window-shutter
        {% endif %}

- platform: template
  covers:
    bedroom_curtains:
      unique_id: bedroom_curtains_1
      friendly_name: Bedroom Curtains
      device_class: curtain
      open_cover:
        service: switch.turn_on
        entity_id: switch.bedroom_curtains
      close_cover:
        service: switch.turn_off
        entity_id: switch.bedroom_curtains
      value_template: >
        {% if states("sensor.bedroom_curtains_position") | int < 50 %}
          opening
        {% else %}
          closed
        {% endif %}
      icon_template: >
        {% if states("sensor.bedroom_curtains_position") | int < 50 %}
          mdi:window-shutter-open
        {% else %}
          mdi:window-shutter
        {% endif %}

Set unique_id as bedroom_curtains in HA
Set unique_id as bedroom_curtains in HA
