HI ich versuche seit Tagen/Wochen ein Symbol bzw den ganzen “Knopf” wenn ein Fenster Z.B. geschlossen ist auszublenden…
Ich habe es ja schon mal geschafft das die Symbole zentriert sind und kein Hintergrund haben aber bekomme es nicht hin sie auszublenden.
Wer mir nen Tipp gibt welcher Früchte trägt bekommt n Bier
type: grid
cards:
- type: custom:mushroom-chips-card
chips:
- type: entity
entity: binary_sensor.tor_sensor2
name: Bad
icon: phu:lift-in-window-open1
content_info: name
use_entity_picture: false
icon_color: red
card_mod:
style: |
ha-card {
justify-content: space-between;
--chip-icon-size: 48px;
--chip-height: 58px;
--width: var(--chip-height) !important;
border-radius: 50% !important;
--chip-background: rgba(0, 0, 0, 0);
}
visibility: null
- condition: state
entity: binary_sensor.8ksensorbuero_sensor_2_tor
state: "on"
- type: entity
entity: binary_sensor.tor_sensor2
name: Tor
icon: phu:lift-in-window-open1
content_info: name
use_entity_picture: false
icon_color: red
card_mod:
style: |
ha-card {
justify-content: space-between;
--chip-icon-size: 48px;
--chip-height: 58px;
--width: var(--chip-height) !important;
border-radius: 50% !important;
--chip-background: rgba(0, 0, 0, 0);
}
visibility: null
- condition: state
entity: binary_sensor.8ksensorbuero_sensor_2_tor
state: "on"
- type: entity
entity: binary_sensor.tor_sensor2
name: Bad
icon: phu:lift-in-window-open1
content_info: name
use_entity_picture: false
icon_color: red
card_mod:
style: |
ha-card {
justify-content: space-between;
--chip-icon-size: 48px;
--chip-height: 58px;
--width: var(--chip-height) !important;
border-radius: 50% !important;
--chip-background: rgba(0, 0, 0, 0);
}
visibility: null
- condition: state
entity: binary_sensor.8ksensorbuero_sensor_2_tor
state: "on"
- type: entity
entity: binary_sensor.tor_sensor2
name: Tor
icon: phu:lift-in-window-open1
content_info: name
use_entity_picture: false
icon_color: red
card_mod:
style: |
ha-card {
justify-content: space-between;
--chip-icon-size: 48px;
--chip-height: 58px;
--width: var(--chip-height) !important;
border-radius: 50% !important;
--chip-background: rgba(0, 0, 0, 0);
}
visibility: null
- condition: state
entity: binary_sensor.8ksensorbuero_sensor_2_tor
state: "on"
grid_options:
columns: full
alignment: center
column_span: 3
Einer von denen:
OOODER diese hier zentrieren wenn sie sichtbar sind. Unsichtbar kann man sie machen aber sie werden immer rects ausgerichtet wenn sie sichtbar werden. Das ist einem Monk wie mir ein Graus…
Im Bearbeitungsmodus sind es ja eni paar mehr…
HIer der Code:
type: grid
cards:
- square: false
type: grid
cards:
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: binary_sensor.fenster_dominicbuero
name: Dominic 1
icon: phu:lift-in-window-open1
theme: Graphite Light
show_state: false
icon_height: 50px
visibility:
- condition: state
entity: binary_sensor.fenster_dominicbuero
state: "on"
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: binary_sensor.fenster_badezimmer
name: Bad
icon: phu:lift-in-window-open1
theme: Graphite Light
show_state: false
icon_height: 50px
visibility:
- condition: state
entity: binary_sensor.fenster_badezimmer
state: "on"
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: binary_sensor.fenster_dominicwohnzimmer
name: Dominic 2
icon: phu:lift-in-window-open1
theme: Graphite Light
show_state: false
icon_height: 50px
visibility:
- condition: state
entity: binary_sensor.fenster_dominicwohnzimmer
state: "on"
- show_name: true
- show_icon: true
type: button
tap_action:
action: toggle
entity: binary_sensor.fenster_dominicbuero
name: Dominic 1
icon: phu:lift-in-window-open1
theme: Graphite Light
show_state: false
icon_height: 50px
visibility:
- condition: state
entity: binary_sensor.fenster_dominicbuero
state: "on"
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: binary_sensor.fenster_badezimmer
name: Bad
icon: phu:lift-in-window-open1
theme: Graphite Light
show_state: false
icon_height: 50px
visibility:
- condition: state
entity: binary_sensor.fenster_badezimmer
state: "on"
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: binary_sensor.fenster_dominicwohnzimmer
name: Dominic 2
icon: phu:lift-in-window-open1
theme: Graphite Light
show_state: false
icon_height: 50px
visibility:
- condition: state
entity: binary_sensor.fenster_dominicwohnzimmer
state: "on"
columns: 12
grid_options:
columns: full
alignment: center
column_span: 3
grid_options:
"-columns": full
alignment: center