hass-shutter-card icon indicating copy to clipboard operation
hass-shutter-card copied to clipboard

Tilt, offset, graphics, button positions, custom width.

Open chylek opened this issue 2 years ago • 6 comments

This PR unfortunately adds many things. I just couldn't stop myself and do it properly in mulltiple PRs. Sorry.

  • adds support for shutters with tilt (#32)
  • adds support for shutters with offset (related to #24, #60 and PR #27)
  • adds optional shortcut button for closing/opening to predefined position
  • adds graphics to visualize when the shutters are opening/closing
  • adds translated labels to most of the buttons
  • allows buttons to be at the top/bottom of the shutter graphic (#25)
  • allows customizing the width of the shutter visualization (#10, #6)
  • adds option to disable up/down buttons when in opened/closed state (respectively)

chylek avatar Mar 17 '22 21:03 chylek

This is what it looks like when tilt, custom width and buttons on bottom are configured. The text on the rights says the shutters have been closed. This is configurable, there can still be percentage as before.

image

This is what it looks like when offset, buttons on bottom and shortcut to partially closed position are configured. You can see the "have been closed" text is accompanied by percentage. Because offset was defined, this percentage shows how much movement there is left until the shutters are fully closed. (because the offset has been reached, you see the shutters closed in the visualization).

image

chylek avatar Mar 17 '22 22:03 chylek

Amazing! Looks really good to me!

The always_percentage option is just not working for me. Could you check that please ? Also could you please add an option to disable the "Down" button when the shutter is fully closed (100% | not adjusted - HAs 0%) and vice versa with the open button ?

I would really appreciate that :)

Xyaren avatar Mar 28 '22 19:03 Xyaren

@Xyaren thanks for the bug report. Should be fixed.

Also the option to disable the buttons is there now, check the readme.

chylek avatar Mar 31 '22 13:03 chylek

I was checking the code and I saw that you documented the attribute tilt on the readme, when instead the attribute name is can_tilt

patrix252 avatar May 02 '22 08:05 patrix252

@Deejayfool any reason this is not merged ?

Xyaren avatar May 04 '22 18:05 Xyaren

The only reason is the time :) . As soon as I'll be able to check it and try it, I'll consider merging it.

Deejayfool avatar May 05 '22 08:05 Deejayfool

The only reason is the time :) . As soon as I'll be able to check it and try it, I'll consider merging it.

Hi Deejayfool I know, time is a precious thing. Do you have an idea when you would find some to test and merge the PR? You both spend so much time in this, so it would be nice if we can use it.

Thank you very much

PatrickOnGit avatar Feb 26 '23 22:02 PatrickOnGit

Hi Guys, @chylek I have the Homematic HmIP-DRBLI4 to control my venetian blinds. When i set tilt: true there are no arrows in the card to control tilt. When i click on the name of the shutter you can see there are tilt´s which can be controlled here. image image

Jack77777777 avatar Mar 12 '23 18:03 Jack77777777

@Jack77777777 use can_tilt: true

chylek avatar Mar 13 '23 07:03 chylek

@chylek got it. I was using your fork and after merge changed to the original from Deejayfool and was not aware tilt was changed to can_tilt. It´s working now. Thanks a lot.

Jack77777777 avatar Mar 13 '23 14:03 Jack77777777

@chylek I have one more question. How can i set that the tilt opens or closes only 50% when using this buttons ? image

Jack77777777 avatar Mar 15 '23 18:03 Jack77777777

@Jack77777777 I don't think you will be able to do that using this card. Maybe create a separate button card that calls the "Cover: Set tilt position" service.

chylek avatar Mar 17 '23 12:03 chylek

@Jack77777777 I don't think you will be able to do that using this card. Maybe create a separate button card that calls the "Cover: Set tilt position" service.

I will do it this way then. Thanks

Jack77777777 avatar Mar 17 '23 19:03 Jack77777777

Fibaro FGR-223 has separate entities for opening/closing the ventian blinds (cover.fgr_223_switch_01) and for setting the tilt (cover.fgr_223_switch_01_2).

I use Z-Wave JS, entities were created automatically.

Is there a way to setup the card to use a different entity id for the tilt?

archont00 avatar Jun 26 '23 19:06 archont00