New version is on, please try
Really nice space saver, will try it out!
Just tested with the latest version:
swipe-card.js?v=1.0:81 Uncaught TypeError: element.setConfig is not a function at _cards.config.cards.map (swipe-card.js?v=1.0:81) at Array.map (<anonymous>) at HTMLElement.set hass [as hass] (swipe-card.js?v=1.0:73) at config.cards.map.cardConfig (27194aefb40e6f5b8d5f.chunk.js:1371) at Array.map (<anonymous>) at HTMLElement._createCards (27194aefb40e6f5b8d5f.chunk.js:1371) at Object.runMethodEffect [as fn] (app-084b7564.js:1067) at runEffectsForProperty (app-084b7564.js:1067) at runEffects (app-084b7564.js:1067) at HTMLElement._propertiesChanged (app-084b7564.js:1067)
- type: custom:swipe-card card_width: '185px' parameters: effect: 'coverflow' grabCursor: true centeredSlides: true slidesPerView: 'auto' coverflowEffect: rotate: 50 stretch: 0 depth: 100 modifier: 1 slideShadows : true pagination: type: 'bullets' cards: - type: sensor entity: sensor.serre_temperature name: Temperatuur line_width: 8 line_color: '#FF6384' - type: sensor entity: sensor.serre_humidity name: Luchtvochtigheid line_color: '#36A2EB' line_width: 8 - url: /local/custom-lovelace/swipe-card/swipe-card.js?v=1.0 type: js
What version of home-assistant are you on? The sensor card you are using is only available in beta right now…
Ah damn using version 0.79.2, wasn’t clear in the topic.
The topic is about the slider, you can use it with any card.
You can use Lovelace: Mini graph card for now.
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
Same here, using iPad app. Love the card though!
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.
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.
I added start_card:
- type: custom:swipe-card start_card: 2 parameters: ... cards: - ...
Works perfect !
Would it be possible to use it in combination with button-card?
I guess, have you tried?
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)
Oh now I see my mistake. Would it be possible to swipe each button?
Sorry for not being clear, I mean just each button
I don’t understand?