Hello guys,
Do someone managed to use the “custom:swipe-card” into this project?
I’m trying to figure out how to use it, but i’m getting white tiles with nothing inside:
My Code:
enableColumns: true
home: false
masonry: true
tileHoldAnimation: true
rows:
- columns:
- column: 1
entities:
- entities:
- card: 'custom:swipe-card'
wider: true
widerSize: 3
higher: true
higherSize: 3
cards:
- card: 'custom:mini-media-player'
noPadding: true
wider: true
widerSize: 3
higher: true
higherSize: 3
cardStyle: |
ha-card {
height: 100%;
background: none !important;
box-shadow: none !important;
position: relative;
font-size: 0.5vw !important;
image
}
ha-card{
overflow: hidden !important;
}
:host #primaryProgress{
background: #474A52 !important;
display: flex !important;
height: 100%;
}
cardOptions:
name: Apple TV
artwork: full-cover
entity: media_player.appletv_soggiorno
hide:
power: false
progress: false
runtime: false
icon: true
name: false
source: true
volume: false
controls: false
- card: 'custom:mini-media-player'
noPadding: true
wider: true
widerSize: 3
higher: true
higherSize: 3
cardStyle: |
ha-card {
height: 100%;
background: none !important;
box-shadow: none !important;
position: relative;
font-size: 0.5vw !important;
image
}
ha-card{
overflow: hidden !important;
}
:host #primaryProgress{
background: #474A52 !important;
display: flex !important;
height: 100%;
}
cardOptions:
name: Apple TV
artwork: full-cover
entity: media_player.appletv_soggiorno
hide:
power: false
progress: false
runtime: false
icon: true
name: false
source: true
volume: false
controls: false
title: Media
tileOnRow: 2
row: 1
- columns:
- column: 1
entities:
- entities:
- card: 'custom:mini-media-player'
noPadding: true
wider: true
widerSize: 3
higher: true
higherSize: 3
popup:
settings: true
type: 'custom:media_player-popup-card'
actions:
- service: media_player.media_previous_track
service_data:
entity_id: this
name: previous
icon: 'mdi:skip-previous'
- service: media_player.media_play_pause
service_data:
entity_id: this
name: play/pause
icon: 'mdi:play-pause'
- service: media_player.media_next_track
service_data:
entity_id: this
name: next
icon: 'mdi:skip-next'
hold_action:
action: popup
entity: media_player.appletv_soggiorno
cardStyle: |
ha-card {
height: 100%;
background: none !important;
box-shadow: none !important;
position: relative;
font-size: 0.5vw !important;
image
}
ha-card{
overflow: hidden !important;
}
:host #primaryProgress{
background: #474A52 !important;
display: flex !important;
height: 100%;
}
cardOptions:
name: Apple TV
artwork: full-cover
entity: media_player.appletv_soggiorno
hide:
power: false
progress: false
runtime: false
icon: true
name: false
source: true
volume: false
controls: false
title: Media
tileOnRow: 2
row: 2
statePositionTop: true
style: |
homekit-button[data-ent*="hideThis"] {
visibility: hidden;
}
title: Sistema
titleColor: '#FFF'
type: 'custom:homekit-card'
useBrightness: false
useTemperature: false
Result: