adaptive-cover icon indicating copy to clipboard operation
adaptive-cover copied to clipboard

Q: How to only allow 0% and 100% (and nothing in between)?

Open klaptafel opened this issue 8 months ago • 3 comments

I don't like any cover position except for 0% and 100%. Is it possible to skip al mathematics and just close or open the cover when needed?

klaptafel avatar Apr 07 '25 14:04 klaptafel

Hi, Let's have a look on this tutorial I made recently…

patrickp78 avatar Apr 18 '25 08:04 patrickp78

I’d advice to use plain automations then… or a simple blueprint.

miezie avatar Apr 30 '25 22:04 miezie

I had the same requirement and would advice: Configure adaptive cover and then make an automation and test if sensor.xxx_position is greater 99 or lower than 100. If higher than 99 open, i lower close.

Something like:

if:
  - condition: or
    conditions:
      - condition: template
        value_template: |-
          {% if 'cloud' in states('weather.musterstadt') or 'rainy' in
                                states('weather.musterstadt') or 'pouring' in
                                states('weather.musterstadt') %}
                                    true
                                {% else %}
                                    false
                                {% endif %}
        alias: schlechtes Wetter
      - condition: numeric_state
        entity_id: sensor.vertical_xxx_position
        above: 99
      - condition: numeric_state
        entity_id: sun.sun
        attribute: elevation
        below: -10
        enabled: true
then:
  - action: cover.open_cover
    data: {}
    enabled: true
    target:
      entity_id: cover.rollo_xxx
else:
  - action: cover.close_cover
    data: {}
    enabled: true
    target:
      entity_id: cover.rollo_xxx

JokerGermany avatar Jun 03 '25 17:06 JokerGermany