Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: custom:button-card
- tap_action:
- action: navigate
- navigation_path: "#nursery_homepod"
- 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: rgba(0,0,0,0.3)
- - webkit-backdrop-filter: blur(10px); !important;}
- - box-shadow: none
- - border-radius: 20px
- - border-width: 0px
- - padding: 10px
- - margin: 0px
- custom_fields:
- content:
- card:
- type: vertical-stack
- cards:
- - type: custom:button-card
- entity: media_player.nursery
- show_entity_picture: true
- show_name: false
- show_icon: false
- custom_fields:
- entity:
- card:
- type: custom:button-card
- tap_action:
- action: navigate
- navigation_path: "#nursery_homepod"
- name: Nursery
- show_label: true
- show_icon: false
- styles:
- card:
- - box-shadow: none
- - background: none
- - padding: 0px
- - border-radius: 0px
- - border-width: 0px
- name:
- - justify-self: start
- - padding-left: 15px
- - font-size: 13px
- - font-weight: 600
- - color: rgba(255,255,255,0.3)
- title:
- card:
- type: custom:button-card
- tap_action:
- action: navigate
- navigation_path: "#nursery_homepod"
- name: |
- [[[
- if (states['media_player.nursery'].attributes.media_title != undefined)
- return states['media_player.nursery'].attributes.media_title;
- ]]]
- show_icon: false
- styles:
- card:
- - box-shadow: none
- - background: none
- - padding: 0px
- - border-radius: 0px
- - border-width: 0px
- name:
- - justify-self: start
- - padding-left: 15px
- - padding-top: 5px
- - font-size: 20px
- - font-weight: 600
- - color: rgba(255,255,255,0.9)
- artist:
- card:
- type: custom:button-card
- tap_action:
- action: navigate
- navigation_path: "#nursery_homepod"
- name: |
- [[[
- if (states['media_player.nursery'].attributes.media_artist != undefined)
- return states['media_player.nursery'].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: start
- - padding-left: 15px
- - font-size: 20px
- - font-weight: 400
- - color: rgba(255,255,255,0.3)
- styles:
- grid:
- - grid-template-areas: "\"i entity\" \"i title\" \"i artist\" \"i album\" "
- - grid-template-columns: max-content 1fr
- - grid-template-rows: max-content max-content max-content;
- - align-items: end
- card:
- - background: none
- - box-shadow: none
- - border-radius: 0px
- - border-width: 0px
- - padding: 0px 0px 0 5px
- - margin: 5px 0 -10px 0
- entity_picture:
- - align-self: start
- - justify-self: start
- - width: 70px
- - border-radius: 10px
- - type: custom:my-slider-v2
- entity: media_player.nursery
- mode: seekbar
- min: 0
- max: 100
- styles:
- card:
- - height: 20px
- - 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.nursery
- 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.nursery
- 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: 35px
- - color: rgba(255,255,255,0.5)
- play:
- card:
- type: custom:button-card
- tap_action:
- action: call-service
- service: media_player.media_play_pause
- target:
- entity_id: media_player.nursery
- hold_action:
- action: call-service
- service: media_player.turn_off
- target:
- entity_id:
- - media_player.nursery
- entity: media_player.nursery
- 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: 45px
- - color: rgba(255,255,255,0.5)
- next:
- card:
- type: custom:button-card
- tap_action:
- action: call-service
- service: media_player.media_next_track
- target:
- entity_id: media_player.nursery
- 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: 35px
- - color: rgba(255,255,255,0.5)
- star:
- card:
- type: custom:button-card
- tap_action:
- action: url
- url_path: shortcuts://run-shortcut?name=HomeKit
- icon: mdi:apple-keyboard-command
- 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: 25px
- - color: rgba(255,255,255,0.5)
- menu:
- card:
- type: custom:button-card
- entity: media_player.nursery
- tap_action:
- action: more-info
- icon: mdi:menu
- 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: 25px
- - color: rgba(255,255,255,0.5)
- styles:
- grid:
- - grid-template-columns: 2fr 3fr 3fr 3fr 2fr
- - grid-template-rows: min-content
- - grid-template-areas: "\"star previous play next menu\""
- card:
- - padding: 0 0 0 0px
- - margin: 3px 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: "-10px 0px -15px 0px"
- - type: custom:button-card
- entity: media_player.nursery
- 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.nursery
- 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.nursery
- 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.nursery
- 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: rgba(0, 0, 0, 0.3); !important;
- -webkit-backdrop-filter: blur(10px); !important;}
- }
Advertisement
Add Comment
Please, Sign In to add comment