Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: custom:button-card
- entity: media_player.kitchen_homepod
- show_entity_picture: true
- styles:
- grid:
- - grid-template-areas: '"media"'
- - grid-template-columns: 1fr
- - grid-template-rows: 1fr
- card:
- - background-color: transparent
- border: solid 2px transparent
- height: 375px
- width: 302.5px
- padding: 0px
- margin: 0px 0px 0px 0px
- align-content: start
- justify-content: start
- align-self: start
- overflow-y: auto
- entity_picture:
- - height: 100%
- width: 160%
- opacity: 0.8
- object-fit: fit
- border-radius: 30px
- filter: blur(5px)
- custom_fields:
- shortcuts:
- - justify-self: start
- - background-color: transparent
- - align-self: start
- - width: 100%
- - padding: 0px 0px 0px 0px
- - margin: 0px 0px 0px 0px
- - border-radius: 15px
- show_state: false
- show_name: false
- show_icon: false
- custom_fields:
- shortcuts:
- card:
- type: custom:vertical-stack-in-card
- cards:
- - type: custom:button-card
- show_icon: false
- show_name: false
- show_state: false
- styles:
- grid:
- - grid-template-areas: '"content"'
- - grid-template-columns: 1fr
- - grid-template-rows: max-content
- card:
- - background-color: transparent
- - webkit-backdrop-filter: blur(20px); !important
- - box-shadow: none
- - border-radius: 30px
- - border-width: 0px
- - margin: 0px
- - padding: 10px
- custom_fields:
- content:
- card:
- type: vertical-stack
- cards:
- - type: custom:button-card
- entity: media_player.kitchen_homepod
- show_name: false
- show_icon: false
- show_label: false
- show_entity_picture: true
- styles:
- card:
- - background: none
- - padding: 0px
- - border-radius: 30px
- - border-width: 0px
- - padding: 10px 0px 10px 0px
- entity_picture:
- - height: 100%
- - width: 60%
- - object-fit: cover
- - border-radius: 20px
- - type: custom:button-card
- entity: media_player.kitchen_homepod
- show_name: false
- show_icon: false
- custom_fields:
- title:
- card:
- type: custom:button-card
- tap_action:
- action: none
- name: |
- [[[
- if (states['media_player.kitchen_homepod'].attributes.media_title != undefined)
- return states['media_player.kitchen_homepod'].attributes.media_title;
- ]]]
- show_icon: false
- styles:
- card:
- - box-shadow: none
- - background: none
- - padding: 0px
- - border-radius: 0px
- - border-width: 0px
- name:
- - justify-self: center
- - font-size: 20px
- - font-weight: 600
- - color: rgba(255,255,255,0.9)
- artist:
- card:
- type: custom:button-card
- tap_action:
- action: none
- name: |
- [[[
- if (states['media_player.kitchen_homepod'].attributes.media_artist != undefined)
- return states['media_player.kitchen_homepod'].attributes.media_artist;
- ]]]
- show_label: true
- show_icon: false
- styles:
- card:
- - box-shadow: none
- - background: none
- - padding: 0px
- - border-radius: 0px
- - border-width: 0px
- name:
- - justify-self: center
- - font-size: 20px
- - font-weight: 400
- - color: rgba(255,255,255,0.3)
- styles:
- grid:
- - grid-template-areas: ' "i" "title" "artist" "entity" '
- - grid-template-columns: 1fr
- - grid-template-rows: max-content 1fr 1fr 1fr
- - align-items: end
- card:
- - background: none
- - box-shadow: none
- - border-radius: 0px
- - border-width: 0px
- - padding: 0px 0px 0px 0px
- - margin: 5px 0px -10px 0px
- - height: 50px
- - type: custom:my-slider-v2
- entity: media_player.kitchen_homepod
- mode: seekbar
- min: 0
- max: 100
- styles:
- card:
- - height: 15px
- - box-shadow: none
- - margin: 20px 0 0 0
- - background: none
- container:
- - border-radius: 0px
- - background: none
- - padding: 0 0 0 5px
- track:
- - background: rgba(255,255,255,0.3)
- - border-radius: 99px
- - padding: 0 0px 0 0px
- - width: 97%
- - height: 7px
- - margin: 0px 0 0 0
- progress:
- - background: rgba(255,255,255,0.9)
- - border-radius: 25px 0px 0px 25px
- - height: 7px
- - margin: 0 0 0 0
- thumb:
- - background: rgba(255,255,255,0.9)
- - width: 5px
- - height: 7px
- - border-radius: 0px
- - type: custom:button-card
- entity: media_player.kitchen_homepod
- show_entity_picture: false
- show_name: false
- show_icon: false
- custom_fields:
- buttons:
- card:
- type: custom:button-card
- custom_fields:
- previous:
- card:
- type: custom:button-card
- tap_action:
- action: call-service
- service: media_player.media_previous_track
- target:
- entity_id: media_player.kitchen_homepod
- icon: mdi:rewind
- show_name: false
- styles:
- card:
- - border-radius: 5px
- - border-width: 0px
- - box-shadow: none
- - background: rgba(255,255,255,0.0)
- - align-self: end
- - align-content: end
- - padding: 0px
- - margin: 0px
- icon:
- - width: 45px
- - color: rgba(255,255,255,0.9)
- play:
- card:
- type: custom:button-card
- tap_action:
- action: call-service
- service: media_player.media_play_pause
- target:
- entity_id: media_player.kitchen_homepod
- hold_action:
- action: call-service
- service: media_player.turn_off
- target:
- entity_id:
- - media_player.kitchen_homepod
- entity: media_player.kitchen_homepod
- icon: mdi:play
- state:
- - value: playing
- icon: mdi:pause
- show_name: false
- styles:
- card:
- - border-radius: 5px
- - border-width: 0px
- - box-shadow: none
- - background: rgba(255,255,255,0.0)
- - align-self: end
- - align-content: end
- - padding: 0px
- - margin-bottom: 0px
- icon:
- - width: 55px
- - color: rgba(255,255,255,0.9)
- next:
- card:
- type: custom:button-card
- tap_action:
- action: call-service
- service: media_player.media_next_track
- target:
- entity_id: media_player.kitchen_homepod
- icon: mdi:fast-forward
- show_name: false
- styles:
- card:
- - border-radius: 5px
- - border-width: 0px
- - box-shadow: none
- - background: rgba(255,255,255,0.0)
- - align-self: end
- - align-content: end
- icon:
- - width: 45px
- - color: rgba(255,255,255,0.9)
- styles:
- grid:
- - grid-template-columns: 3fr 3fr 3fr
- - grid-template-rows: min-content
- - grid-template-areas: '"previous play next"'
- card:
- - padding: 0 0 0 0px
- - margin: '-0px 0px -6px 0px'
- - align-self: end
- - background: none
- - box-shadow: none
- - border-width: 0px
- - border-radius: 0px
- styles:
- grid:
- - grid-template-areas: '"buttons"'
- - grid-template-columns: 1fr
- - grid-template-rows: max-content max-content max-content max-content;
- - align-items: end
- card:
- - background: transparent
- - box-shadow: none
- - border-radius: 0px
- - border-width: 0px
- - padding: 0px 0px 15px 0px
- - margin: 0px 0px 0px 0px
- - type: custom:button-card
- entity: media_player.kitchen_homepod
- show_entity_picture: false
- show_name: false
- show_icon: false
- custom_fields:
- volume_control:
- card:
- type: horizontal-stack
- cards:
- - type: custom:button-card
- tap_action:
- action: call-service
- service: media_player.volume_down
- target:
- entity_id:
- - media_player.kitchen_homepod
- icon: mdi:volume-medium
- show_name: false
- styles:
- card:
- - border-radius: 5px
- - width: 30px
- - border-width: 0px
- - box-shadow: none
- - background: rgba(255,255,255,0.0)
- - align-self: end
- - align-content: end
- icon:
- - width: 20px
- - color: rgba(255,255,255,0.5)
- - type: custom:my-slider-v2
- entity: media_player.kitchen_homepod
- attribute: volume_level
- min: 0
- max: 100
- step: 2
- styles:
- card:
- - box-shadow: none
- - margin: 9px 0 0 0
- - background: none
- container:
- - border-radius: 0px
- - background: none
- - padding: 0 0 0 0px
- track:
- - background: rgba(255,255,255,0.3)
- - border-radius: 99px
- - width: 100%
- - height: 7px
- - margin: 0px 0 0 0
- progress:
- - background: rgba(255,255,255,0.9)
- - border-radius: 25px 0px 0px 25px
- - height: 7px
- thumb:
- - background: rgba(255,255,255,0.9)
- - width: 5px
- - height: 7px
- - border-radius: 0px
- - type: custom:button-card
- tap_action:
- action: call-service
- service: media_player.volume_up
- target:
- entity_id:
- - media_player.kitchen_homepod
- icon: mdi:volume-high
- show_name: false
- styles:
- card:
- - border-radius: 5px
- - width: 30px
- - border-width: 0px
- - box-shadow: none
- - background: rgba(255,255,255,0.0)
- - align-self: end
- - align-content: end
- icon:
- - width: 20px
- - color: rgba(255,255,255,0.5)
- styles:
- grid:
- - grid-template-areas: '"volume_control"'
- - grid-template-columns: 1fr
- - grid-template-rows: max-content;
- - align-items: end
- card:
- - background: none
- - box-shadow: none
- - border-radius: 0px
- - border-width: 0px
- - padding: 0px 0px 0px 0px
- - margin-bottom: '-5px'
- card_mod:
- style: |
- ha-card {
- background-color: transparent;}
- card_mod:
- style: |
- :host {
- display: block;
- position: relative; margin: 0px 6px 0px 0px;
- }
- :host::before {
- content: "";
- position: absolute;
- inset: 0;
- border-radius: 30px;
- -webkit-backdrop-filter: blur(50px);
- z-index: -1;
- padding: .1rem;
- background: linear-gradient(60deg,
- rgba(255,255,255,0.0) 0%,
- rgba(255,255,255,0.2) 49%,
- rgba(255,255,255,0.2) 51%,
- rgba(255,255,255,0.0) 100%);
- -webkit-mask:
- linear-gradient(#fff 0 0) content-box,
- linear-gradient(#fff 0 0);
- -webkit-mask-composite: xor;
- mask-composite: exclude;
- z-index: 0; filter: saturate(140%);
- }
- :host::after {
- content: "";
- background: linear-gradient(180deg, rgba(255,255,255, 0.1) 20%, rgba(255,255,255, 0.0) 100%);
- position: absolute;
- inset: 0;
- border-radius: 30px;
- box-shadow: inset -8px 10px 15px rgba(0, 0, 0, 0.1);
- z-index: -1;
- -webkit-backdrop-filter:blur(30px) saturate(110%) brightness(90%);
- filter: drop-shadow(3px 3px 10px rgba(0, 0, 0, 0.2)); }
Advertisement
Add Comment
Please, Sign In to add comment