adaptive-cover
adaptive-cover copied to clipboard
Q: How to only allow 0% and 100% (and nothing in between)?
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?
Hi, Let's have a look on this tutorial I made recently…
I’d advice to use plain automations then… or a simple blueprint.
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