Home Assistant Community

Lovelace: Swiper card

#15

What version of home-assistant are you on? The sensor card you are using is only available in beta right now…

0 Likes

#16

Ah damn using version 0.79.2, wasn’t clear in the topic.

0 Likes

#17

The topic is about the slider, you can use it with any card.

You can use Lovelace: Mini graph card for now.

1 Like

#18

I’m still getting this error:

.../custom-lovelace/swipe-card/swipe-card.js?v=1.0:81:32 TypeError: element.setConfig is not a function. (In 'element.setConfig(item)', 'element.setConfig' is undefined)

Safari, and HassOS v. 0.79.3

0 Likes

#19

Same here, using iPad app. Love the card though!

0 Likes

#20

What is your config? Are you also using the sensor card? You should swap that below ha version 0.80 for Lovelace: Mini graph card if you want to do the same.

0 Likes

#21

Thank you for creating the card.

Is there a way to set a start position for the swiper?
I have 3 cards (mini graph card) in the swiper and would like to have te second card as start position.

0 Likes

#22

I added start_card:

      - type: custom:swipe-card
        start_card: 2
        parameters:
          ...
        cards:
          - ...
1 Like

#23

Thanks!

Works perfect !

0 Likes

#24

Would it be possible to use it in combination with button-card?

0 Likes

#25

I guess, have you tried?

0 Likes

#26

Yes I tries and is not working.

My goal is to have a card with multiple scene to swipe (the scene are light scenes: bright, dimmed, colored and so on).

Now I have a button-card for each scene (for each set of light) , but would save lots of space swiping (one card for each set of light and swiping for changing scene)

0 Likes

#27

Seems to work fine? Or is this not what you mean?

1 Like

#28

Oh now I see my mistake. Would it be possible to swipe each button?

0 Likes

#29

1 button per slide? yeah sure…

0 Likes

#30

Sorry for not being clear, I mean just each button

0 Likes

#31

I don’t understand?

0 Likes

#32

Sounds like they want a grid like in your first example, but where each square in the grid is individually swipeable, rather than swiping the entire grid at the same time. E.g. swipe “Living” and have it cycle through some things while all the other squares stay the same. Maybe? Just my guess.

1 Like

#33

Ohwww right… yeah that would also be possible…

2 Likes

#34

It does seems to not always play nice with the horizontal-stack…
Created PR to fix that… https://github.com/home-assistant/home-assistant-polymer/pull/1761

2 Likes