when I create a cover entity for my covers, the behave not as expected. I use MDT aktors and in terms of position they are default configured as follows:
0% means they are fully opened.
100% means they are fully closed.
When I configure the cover entity and don’t toggle the invert button, the UI shows the following when they are fully closed:
Somehow the state is correct, however the position is not shown correct. The position address defnitly has 100% value instead of 0%, so it is inverted by the knx enitity.
When I setup the invert button here, the persentage is shown correctly, but the state is then shown wrongly:
I use the cover/slider type of a bubble card and when activating the Show entity state it always says the wrong state. In my case 0-98% means open and 99-100% means closed. I tried to override the state via:
state: >
{% set p = 100 - state_attr('cover.esszimmer_jalousie_sud_lamellen', 'current_position') | int(0) %}
{% if p >= 99 %}
closed
{% else %}
open
{% endif %}
but this doesn’t work. Does anybody know how to override the state object?