I’m experimenting with the custom:decluttering-card
It is making live easy. except I can not change the size of the card>
I’m using a custom:bubble-card
code:
type: custom:bubble-card
card_type: button
entity: binary_sensor.deursensor_woonkamer
show_state: true
show_last_changed: true
show_attribute: false
tap_action:
action: none
button_action:
tap_action:
action: none
double_tap_action:
action: none
card_layout: large
columns: 2
rows: 1
name: woonkamerdeur
scrolling_effect: false
styles: >
.bubble-button-background { background-color: ${state === 'on' ? '#1982C4FF' :
''} !important; opacity: 1 !important;} .bubble-icon { color: ${state ===
'on' ? '#1982C4FF' : 'white'} !important; opacity: 1 !important;}
.bubble-state { color: ${state === 'on' ? 'black' : ''} !important; opacity: 1
!important;} .bubble-name { color: ${state === 'on' ? 'white' : ''}
!important; opacity: 1 !important;}
double_tap_action:
action: none
I did create the template:
decluttering_templates:
bubble:
card:
type: custom:bubble-card
card_type: button
entity: '[[entity]]'
name: '[[name]]'
show_state: true
show_last_changed: true
show_attribute: false
tap_action:
action: none
button_action:
tap_action:
action: none
double_tap_action:
action: none
card_layout: large
columns: 2
rows: 1
scrolling_effect: false
styles: >
.bubble-button-background { background-color: ${state === 'on' ?
'#1982C4FF' : ''} !important; opacity: 1 !important;} .bubble-icon {
color: ${state === 'on' ? '#1982C4FF' : 'white'} !important; opacity: 1
!important;} .bubble-state { color: ${state === 'on' ? 'black' : ''}
!important; opacity: 1 !important;} .bubble-name { color: ${state ===
'on' ? 'white' : ''} !important; opacity: 1 !important;}
double_tap_action:
action: none
and using the template:
type: custom:decluttering-card
template: bubble
variables:
- entity: binary_sensor.deursensor_woonkamer
- name: Woonkamer
It is working.
Except the size of the card is different:
what I want:
what the template gives:
I changed the originall size with:
but this option is not available with the template card.
How to change the size of the template?
Thanks