Deejayfool / hass-shutter-card

Shutter card for Home Assistant Lovelace UI
Apache License 2.0
270 stars 99 forks source link

Invert_percentage not working with graphic #50

Open KronosTheory opened 3 years ago

KronosTheory commented 3 years ago

When using the invert_percentage entity, the arrows on the card are correct and the graphic displays the correct position; however to use the graphic to set the position, I have to drag the graphic to the inverse.

(ex. If the blinds are set to have 30% of the window showing and want to set the blinds to have 40% of the window showing, I have to drag the graphic up to the 60% showing)

This might because the value for the position of a cover might not be inverted, while the lower and raise commands are simply swapped.

hibob224 commented 2 years ago

I recently setup an Aqara blind driver and had the same issue, neither true or false on the invert_percentage config option gives the correct result for both actual blind position and card blind position. I've had to split this config option into two separate options so I can provide true for the mouseUp action and false for the UI update.

Fork

tvgnl commented 2 years ago

I recently setup an Aqara blind driver and had the same issue, neither true or false on the invert_percentage config option gives the correct result for both actual blind position and card blind position. I've had to split this config option into two separate options so I can provide true for the mouseUp action and false for the UI update.

Fork

How have you don this?