Cover (Blind) - Tilt position

Hello everyone,
I’ve 8 Shelly 2.5 configured in Rollershutter mode for controlling my blinds.

Three of these can be tilted (manually) like this showed in the photo below:

telai-a-sporgere-500x500-1

On these shutters I’ve added a RF Contact sensor due to which I can know if the blind is tilted.
What I want to achieve is to have a state on the cover object to avoid the movement so, if the cover object receive the OpenClose command, it skips the command on isTilted (true) state.

Has anyone did a similar thing before?

Hi,

You could use a cover template and hide the original cover. Here is an example of how I set up one of my electrical roof covers. They cannot be operated (except opened) if the input_booleans windalarm or frostalarm are activated:


cover:
  - platform: template
    covers:
      rollladen_schlafzimmer_etage_2_velux_template:
        device_class: blind
        friendly_name: "Rollladen Schlafzimmer Etage 2"
        unique_id: "template_window_rollladen_schlafzimmer_etage_2"
        position_template: >-
          {% if (state_attr('cover.rollladen_schlafzimmer_etage_2_velux', 'current_position')|int > 1) %}
            {{ state_attr('cover.rollladen_schlafzimmer_etage_2_velux', 'current_position') }}
          {% else %}
            0
          {% endif %}
        availability_template: >-
          {% if is_state('cover.rollladen_schlafzimmer_etage_2_velux', 'unavailable') %} 
            false 
          {% else %} 
            true 
          {% endif %}
        open_cover:
          service: cover.open_cover
          target:
            entity_id: cover.rollladen_schlafzimmer_etage_2_velux
        close_cover:
          - condition: state
            entity_id: input_boolean.windalarm
            state: "off"
          - condition: state
            entity_id: input_boolean.frostalarm
            state: "off"
          - service: cover.close_cover
            target:
              entity_id: cover.rollladen_schlafzimmer_etage_2_velux
        stop_cover:
          - condition: state
            entity_id: input_boolean.windalarm
            state: "off"
          - condition: state
            entity_id: input_boolean.frostalarm
            state: "off"
          - service: cover.stop_cover
            target:
              entity_id: cover.rollladen_schlafzimmer_etage_2_velux
        set_cover_position:
          - condition: state
            entity_id: input_boolean.windalarm
            state: "off"
          - condition: state
            entity_id: input_boolean.frostalarm
            state: "off"
          - service: cover.set_cover_position
            data:
              position: "{{ position }}"
            target:
              entity_id: cover.rollladen_schlafzimmer_etage_2_velux
        optimistic: false

Thank you!
That is exactly what I’m looking for!

It’s a pity that there is no possibility to extend an object rather than replace it :confused: