Hello everyone, I just can’t manage to reduce the overall size of the door sensor test (closed) in width. When the door is open, the correct icon is displayed with the correct text Open. How can I make the width smaller so that I can display two entities next to each other? Or is this not possible with the custom-botton cards?
Many thanks for your help!!!
Best regrads Novell1
<sup>ttype: custom:button-card
show_entity_picture: true
size: 15%
state:
- value: 'off'
icon: mdi:door
color: green
card:
- width: 50px
- height: 30px
- value: 'on'
icon: mdi:door-open
color: red
card:
- width: 50px
- height: 30px
tap_action:
action: toggle
entity: binary_sensor.hm_sec_sco_oeq0567303_frei
show_state: false
show_label: true
label: |
[[[
if (states['binary_sensor.hm_sec_sco_oeq0567303_frei'].state === "on")
return "Offen";
else if (states['binary_sensor.hm_sec_sco_oeq0567303_frei'].state === "off")
return "Geschlossen";
]]]

