fix
ci/woodpecker/push/woodpecker Pipeline was successful Details

main
TheSt1tch 4 weeks ago
parent 57745bc0b1
commit 9db765cb54

@ -9,104 +9,104 @@
??? example title="Пример" ??? example title="Пример"
```yaml ```yaml
type: custom:stack-in-card type: custom:stack-in-card
cards:
- type: custom:layout-card
layout_type: custom:grid-layout
layout:
grid-template-columns: auto 20px
margin: '-4px -4px -8px -4px'
cards: cards:
- type: custom:mushroom-media-player-card - type: custom:layout-card
entity: media_player.shield_universal layout_type: custom:grid-layout
name: Shield TV layout:
icon: mdi:play grid-template-columns: auto 20px
use_media_info: true margin: '-4px -4px -8px -4px'
use_media_artwork: false cards:
show_volume_level: true - type: custom:mushroom-media-player-card
media_controls: entity: media_player.shield_universal
- on_off name: Shield TV
- play_pause_stop icon: mdi:play
- previous use_media_info: true
- next use_media_artwork: false
volume_controls: show_volume_level: true
- volume_set media_controls:
- volume_mute - on_off
fill_container: true - play_pause_stop
card_mod: - previous
style: | - next
mushroom-shape-icon { volume_controls:
{% set media_type = state_attr(config.entity, 'media_content_type') %} - volume_set
--card-mod-icon: - volume_mute
{% if media_type == 'tvshow' %} fill_container: true
mdi:television-classic card_mod:
{% elif media_type == 'movie' %} style: |
mdi:movie-open mushroom-shape-icon {
{% elif media_type == 'music' %} {% set media_type = state_attr(config.entity, 'media_content_type') %}
mdi:music --card-mod-icon:
{% elif media_type == 'playlist' %} {% if media_type == 'tvshow' %}
mdi:music mdi:television-classic
{% else %} {% elif media_type == 'movie' %}
mdi:play mdi:movie-open
{% endif %}; {% elif media_type == 'music' %}
} mdi:music
:host { {% elif media_type == 'playlist' %}
{% if not is_state(config.entity, 'off') %} mdi:music
background: url( '{{ state_attr(config.entity, "entity_picture") }}' ), linear-gradient(to left, transparent, rgb(var(--rgb-card-background-color)) 50%); {% else %}
{% endif %} mdi:play
background-size: 50%, 100%; {% endif %};
background-position: right; }
background-repeat: no-repeat; :host {
background-blend-mode: lighten; {% if not is_state(config.entity, 'off') %}
} background: url( '{{ state_attr(config.entity, "entity_picture") }}' ), linear-gradient(to left, transparent, rgb(var(--rgb-card-background-color)) 50%);
:host([dark-mode]) { {% endif %}
background-blend-mode: darken; background-size: 50%, 100%;
} background-position: right;
background-repeat: no-repeat;
background-blend-mode: lighten;
}
:host([dark-mode]) {
background-blend-mode: darken;
}
ha-card { ha-card {
background: none; background: none;
--ha-card-box-shadow: 0px; --ha-card-box-shadow: 0px;
} }
- type: custom:mushroom-template-card - type: custom:mushroom-template-card
entity: input_boolean.ambilight_dropdown entity: input_boolean.ambilight_dropdown
primary: '' primary: ''
secondary: '' secondary: ''
icon: >- icon: >-
{{ 'mdi:chevron-down' if is_state(entity, 'off') else 'mdi:chevron-up' {{ 'mdi:chevron-down' if is_state(entity, 'off') else 'mdi:chevron-up'
}} }}
icon_color: disabled icon_color: disabled
hold_action: hold_action:
action: none action: none
card_mod: card_mod:
style: | style: |
ha-card { ha-card {
align-items: flex-end; align-items: flex-end;
background: none; background: none;
--ha-card-box-shadow: 0px; --ha-card-box-shadow: 0px;
} }
mushroom-shape-icon { mushroom-shape-icon {
--shape-color: none !important; --shape-color: none !important;
} }
- type: conditional - type: conditional
conditions: conditions:
- entity: input_boolean.ambilight_dropdown - entity: input_boolean.ambilight_dropdown
state: 'on' state: 'on'
card: card:
type: custom:stack-in-card type: custom:stack-in-card
cards: cards:
- type: custom:mushroom-light-card - type: custom:mushroom-light-card
entity: light.ambilight_wled entity: light.ambilight_wled
icon: mdi:television-ambient-light icon: mdi:television-ambient-light
name: Ambilight name: Ambilight
layout: horizontal layout: horizontal
show_brightness_control: true show_brightness_control: true
show_color_temp_control: true show_color_temp_control: true
show_color_control: true show_color_control: true
use_light_color: true use_light_color: true
card_mod: card_mod:
style: | style: |
ha-card { ha-card {
background: none; background: none;
--ha-card-box-shadow: 0px; --ha-card-box-shadow: 0px;
} }
``` ```

Loading…
Cancel
Save