Is it possible to have the individual cards that are swiped through be conditional cards. For example, I am trying to make travel times change depending on everyone’s location. I tried something like this, but with no success:
## Testing swipe card with conditional cards
- type: custom:swipe-card
card_width: '185px'
start_card: 2
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: conditional
conditions:
- entity: device_tracker.me
state: "home"
card:
- type: sensor
entity: sensor.travel_time_to_me_work
graph: line
name: me Work
- type: conditional
conditions:
- entity: device_tracker.wife
state: "home"
card:
- type: sensor
entity: sensor.travel_time_to_wife_work
graph: line
name: wife Work
But get “No card type configured.” error.
I know with 2 cards as pictured here it might be possible to have the whole swipe card in the condition because there are only 4 possible combinations (me work/wife work, me work/wife home, me home/wife work, me home/wife home). But as I expand the number of cards, this would quickly become nearly impossible to upkeep. It would be nice to have the granularity to edit each slide card with conditions.
If someone knows how to do this, let me know!