How do I set min / max limits for a cover entity?

So I have some Zwave BALI shades that I am using, on these shades position 100 is fully closed / rolled up, and position 0 is fully unrolled / open. The issue is that fully unrolled is too far, and I really need the open position to be set to 30 rather than 0. I have scenes set for open / closed but I want to use a slider, and when I set the slider, its not working right since if i set it to “closed” then the blind has actually unrolled too far.

I am using this slider: https://github.com/mattieha/slider-button-card

So is it possible to define in the entity that closed = 30 rather than 0?

Also I don’t have the Bali remote so programming the limits on the shade isn’t really an option.

I don’t have that particular setup, but maybe defining “30” where “0” is might fix?

set_cover_position:
  name: Set position
  description: Move to specific position all or specified cover.
  target:
    entity:
      domain: cover
  fields:
    position:
      name: Position
      description: Position of the cover
      required: true
      selector:
        number:
          min: 0
          max: 100
          unit_of_measurement: "%"

More info may help here: core/homeassistant/components/cover at dev · home-assistant/core (github.com)

You can also look at this custom card for cover position presets: finity69x2/cover-position-preset-row: pluig-in for Home Assistant that provides an easy means set 3 fixed positions for a programmable cover entity. (github.com)

I’m trying to create a cover template to solve two issues with my cover. The first is that I need to flip the up and down positions. The second is that the closed position should be 11% instead o 0%. This is the template I have in my covers.yaml

- platform: template
  covers:
    danielle_s_shades:
      friendly_name: Danielle's shade
      position_template: "{{ 100 - (state_attr('cover.danielles_shades_window_covering', 'current_position') | int) }}"
      open_cover:
        service: cover.open_cover
        data:
          entity_id: cover.danielles_shades_window_covering
      close_cover:
        service: cover.close_cover
        data:
          entity_id: cover.danielles_shades_window_covering
      stop_cover:
        service: cover.stop_cover
        data:
          entity_id: cover.danielles_shades_window_covering
      set_cover_position:
        service: cover.set_cover_position
        data:
          entity_id: cover.danielles_shades_window_covering
          position: "{{ 100 - (position) }}"

Any suggestions for how to modify my template so the closed position is at 11%? My final objective is to use the mushroom cover card for this cover.

Did you ever figure this out? I have a very similar issue.

I ended up creating a cover template:

- platform: template
  covers:
    danielle_s_shades:
      friendly_name: Danielle's shade
      position_template: >-
          {% set p = (state_attr('cover.danielles_shades_window_covering', 'current_position') | int)%}
          {% if p > 11 %}{{ p }}
          {% else %} 0
          {% endif %}
      open_cover:
        service: cover.open_cover
        data:
          entity_id: cover.danielles_shades_window_covering
      close_cover:
        service: cover.close_cover
        data:
          entity_id: cover.danielles_shades_window_covering
      stop_cover:
        service: cover.stop_cover
        data:
          entity_id: cover.danielles_shades_window_covering
      set_cover_position:
        service: cover.set_cover_position
        data:
          position: "{{ this.attributes.position }}"
        target:
          entity_id: cover.danielles_shades_window_covering
      icon_template: >-
        {% if is_state('cover.danielle_s_shades','open') %}
          mdi:blinds-open
        {% else %}
          mdi:blinds
        {% endif %}