resoai / TileBoard

A simple yet highly configurable Dashboard for HomeAssistant
MIT License
1.63k stars 278 forks source link

Support for venetian blinds #700

Open yolani opened 3 years ago

yolani commented 3 years ago

Not an issue but a feature request: Are there any plans to support venetian blinds in a single card? Would require. a cover card that can also take care of the tilt_position attribute, for example here:

image
alphasixtyfive commented 3 years ago

How does this even look like in Lovelace?

yolani commented 3 years ago

You get 2 sliders, one for position and one tile_position:

image

And theoretically a second stop button but that's pretty useless.

yolani commented 3 years ago

I tried to add sliders[] to my TYPES.COVER object but it does not seem to support them.

{
                     position: [1, 0],
                     title: 'Raffstore',
                     id: 'cover.wohnzimmer_rs_wohnzimmer_31',
                     type: TYPES.COVER,
                     states: {
                        open: "Offen",
                        closed: "Geschlossen"
                     },
                     sliders: [
                        {
                           title: 'Position',
                           field: 'current_position',
                           max: 100,
                           min: 0,
                           step: 5,
                           request: {
                              type: "call_service",
                              domain: "cover",
                              service: "set_cover_position",
                              field: "position"
                           }
                        },
                        {
                           title: 'TiltPosition',
                           field: 'current_tilt_position',
                           max: 100,
                           min: 0,
                           step: 5,
                           request: {
                              type: "call_service",
                              domain: "cover",
                              service: "set_cover_tilt_position",
                              field: "tilt_position"
                           }
                        }
                     ],
                  }
alphasixtyfive commented 3 years ago

No, sliders are only for light tile. You can simply add a second tile with a slider.