WHY THE HECK can't we freely configure a Cover to interpret its percentage value as "percentage open" or "percentage closed"?

Then make a template cover to account for that in the meantime. And long term, write up an issue against that integration.

You can. You just need to define it properly.

cover:
  - platform: template
    covers:
      garage_door:
        device_class: garage
        friendly_name: "Garage Door"
        value_template: "{{ state_attr('cover.xxx', 'position') | int == 100 }}"
        open_cover:
          service: cover.open_cover
          entity_id: cover.xxx
        close_cover:
          service: cover.close_cover
          entity_id: cover.xxx
        stop_cover:
          service: cover.stop_cover
        position_template: "{{ 100 - state_attr('cover.xxx', 'position') | int }}"
        set_cover_position:
          service: cover.set_cover_position
          data_template:
            entity_id: cover.xxx
            position: "{{ 100 - position }}"

Seems overly complicated???

1 Like