mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-07 17:34:42 +00:00
73 lines
2.1 KiB
YAML
73 lines
2.1 KiB
YAML
title: Media
|
|
path: media
|
|
panel: false
|
|
icon: mdi:youtube
|
|
badges: []
|
|
cards:
|
|
- type: vertical-stack
|
|
cards:
|
|
- type: entities
|
|
style: |
|
|
ha-icon {
|
|
color: red;
|
|
}
|
|
title: Youtube controls
|
|
icon: mdi:youtube
|
|
show_header_toggle: false
|
|
entities:
|
|
- entity: input_text.youtube_download_url
|
|
type: "custom:text-input-row"
|
|
- entity: input_text.youtube_download_name
|
|
type: "custom:text-input-row"
|
|
|
|
- type: horizontal-stack
|
|
cards:
|
|
- type: entity-button
|
|
entity: script.youtube_download_selected
|
|
name: Download
|
|
icon: mdi:download
|
|
icon_height: 48px
|
|
tap_action:
|
|
action: call-service
|
|
service: script.youtube_download_selected
|
|
- type: entity-button
|
|
entity: script.youtube_download_and_play
|
|
name: Download & Play
|
|
icon: mdi:youtube-tv
|
|
icon_height: 48px
|
|
tap_action:
|
|
action: call-service
|
|
service: script.youtube_download_and_play
|
|
- type: custom:folder-card
|
|
entity: sensor.youtube
|
|
title: Available Youtube
|
|
icon: "mdi:youtube"
|
|
tap_action:
|
|
action: call-service
|
|
service: script.youtube_play_file
|
|
|
|
- type: custom:config-template-card
|
|
entities:
|
|
- sensor.philip_defranco
|
|
- sensor.pds
|
|
card:
|
|
type: vertical-stack
|
|
cards:
|
|
- type: picture-entity
|
|
entity: sensor.philip_defranco
|
|
image: "${states['sensor.philip_defranco'].attributes.entity_picture}"
|
|
name: "Play the latest PDS"
|
|
show_state: false
|
|
tap_action:
|
|
action: call-service
|
|
service: script.youtube_play_latest_pds
|
|
- type: markdown
|
|
content: "${states['sensor.philip_defranco'].state}"
|
|
- type: custom:folder-card
|
|
entity: sensor.pds
|
|
title: Available PDS
|
|
icon: "mdi:youtube"
|
|
tap_action:
|
|
action: call-service
|
|
service: script.youtube_play_file
|