peribeir / homeassistant-rademacher

This custom integration provides access to Rademacher Devices connected to a HomePilot (or Start2Smart) bridge.
GNU General Public License v3.0
55 stars 8 forks source link

Position attribute of Rohrmotor-Aktor 9471-1 (cover) is inverted #111

Open rhmunich opened 5 months ago

rhmunich commented 5 months ago

I have multiple “DuoFern Rohrmotor-Aktor 9471-1” integrated into Home Assistant as covers.

The cover entities have the attribute current_position which I can show with the template {{state_attr('cover.rollo_arbeitszimmer_ost','current_position')}} and change via the service cover.set_cover_position.

However, the problem is that the attribute current_position is inverted to what is being shown in the Rademacher App as well as the Rademacher web-interface (i.e. when the cover is open and the Rademacher app shows the position as 0, the attribute current_position is 100 and vice versa). Also, when the covers are used in slider or shutter cards, the position and the icons are inverted.

I am aware that there is a quite academic discussion around whether an open cover should be defined as 0% or 100% but I think the integration should show the position in the same way as the Rademacher app does.

Whilst the issue can be solved when using the service cover.set_cover_position by calculating the inverted position (but cumbersome), there are no good workarounds for slider cards or shutter cards.

Can this feature be changed, please?