hass-shutter-card
hass-shutter-card copied to clipboard
Tilt, offset, graphics, button positions, custom width.
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)
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.
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).
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 thanks for the bug report. Should be fixed.
Also the option to disable the buttons is there now, check the readme.
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
@Deejayfool any reason this is not merged ?
The only reason is the time :) . As soon as I'll be able to check it and try it, I'll consider merging it.
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
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.
@Jack77777777 use can_tilt: true
@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.
@chylek I have one more question. How can i set that the tilt opens or closes only 50% when using this buttons ?
@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.
@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
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?