Update to use latest folder-card options

This commit is contained in:
2020-04-18 18:16:55 +03:00
parent 7e7333cc34
commit 72e34f6ab8
+22 -15
View File
@@ -17,7 +17,7 @@ cards:
- sensor.cohhcarnage - sensor.cohhcarnage
- sensor.sacriel - sensor.sacriel
card: card:
type: vertical-stack type: vertical-stack
title: Twitch title: Twitch
cards: cards:
- type: horizontal-stack - type: horizontal-stack
@@ -46,24 +46,24 @@ cards:
channel: lirik channel: lirik
- type: horizontal-stack - type: horizontal-stack
cards: cards:
- type: picture-entity - type: picture-entity
entity: sensor.cohhcarnage entity: sensor.cohhcarnage
image: ${states['sensor.cohhcarnage'].attributes.entity_picture} image: ${states['sensor.cohhcarnage'].attributes.entity_picture}
state_filter: state_filter:
"online": brightness(110%) "online": brightness(110%)
"offline": brightness(50%) saturate(0) "offline": brightness(50%) saturate(0)
tap_action: tap_action:
action: call-service action: call-service
service: script.tv_twitch service: script.tv_twitch
service_data: service_data:
channel: cohhcarnage channel: cohhcarnage
- type: picture-entity - type: picture-entity
entity: sensor.sacriel entity: sensor.sacriel
image: ${states['sensor.sacriel'].attributes.entity_picture} image: ${states['sensor.sacriel'].attributes.entity_picture}
state_filter: state_filter:
"online": brightness(110%) "online": brightness(110%)
"offline": brightness(50%) saturate(0) "offline": brightness(50%) saturate(0)
tap_action: tap_action:
action: call-service action: call-service
service: script.tv_twitch service: script.tv_twitch
service_data: service_data:
@@ -104,6 +104,10 @@ cards:
action: call-service action: call-service
service: script.youtube_download_and_play service: script.youtube_download_and_play
- type: custom:folder-card - type: custom:folder-card
style: |
.card-header ha-icon {
color: red;
}
entity: sensor.youtube entity: sensor.youtube
title: Available Youtube title: Available Youtube
icon: "mdi:youtube" icon: "mdi:youtube"
@@ -132,6 +136,9 @@ cards:
entity: sensor.pds entity: sensor.pds
title: Available PDS title: Available PDS
icon: "mdi:youtube" icon: "mdi:youtube"
sort: "descending"
max_count: 10
show_count: true
tap_action: tap_action:
action: call-service action: call-service
service: script.youtube_play_file service: script.youtube_play_file