Can I combine two buttons in one dashboard card? I would like the two garage door buttons below to be in one Card on the dashboard. Is this possible?
Thanks in advance.
Can I combine two buttons in one dashboard card? I would like the two garage door buttons below to be in one Card on the dashboard. Is this possible?
Thanks in advance.
Pictures are great but yaml is better.
What type of cards is it, post the yaml.
Try entities card.
This one will need a bit of playing around with to see what best fits.
I think your best bet is to with either the glance card, or have a horizontal stack that’ll let you put the cards you currently have into one row. i.e. [Card] | [Card]
I tried Horizontal card stack but I don’t understand the error: “Config is not an object”. Yes, they are side-by-side but no icon and state.
Horizontal stack will stack cards, not entities
type: horizontal-stack
cards:
- type: entity
entity: cover.myq693
- type: entity
entity: cover.myq693
Button for MyQ693:
show_name: true
show_icon: true
type: button
tap_action:
action: none
entity: cover.myq693
show_state: true
hold_action:
action: none
icon_height: 50px
Button for MyQ151:
show_name: true
show_icon: true
type: button
tap_action:
action: none
entity: cover.myq151
show_state: true
hold_action:
action: none
icon_height: 50px
type: horizontal-stack
cards:
- type: button
tap_action:
action: none
entity: cover.myq693
show_state: true
hold_action:
action: none
icon_height: 50px
show_name: true
show_icon: true
- type: button
tap_action:
action: none
entity: cover.myq151
show_state: true
hold_action:
action: none
icon_height: 50px
show_name: true
show_icon: true
Don’t work in YAML view - work in Visual editor view. It’s much simpler and you’ll avoid issues like this
with the tap_action
, that will not do anything if you tap it
maybe tap_action
toggle?
With the Entities card, for garage doors, they show action which I don’t like because I might accidentally click/swipe which triggers the opening/closing of the garage door - BAD. And I can’t probably get rid of the action arrows.
OK use the buttons as shown above
One wants YAML codes but another wants Visual!!! I use visual then I look at the yaml code to see if I can insert something! Cheers.
Yes, yes,yes. This did it. Thank you so much, Holdestmade.
Guys, consider this closed. Thanks for your suggestions. They are now side-by-side which saves screen real estate.
See, that cannot be done in Visual mode!
You know you can change the name to something more obvious, either in the entity itself or on the button card only
This is because it’s easier to view/edit/copy/paste etc. YAML between systems.
My recommendation is generally to not work within YAML however as it avoids a lot of the pain you might experience.
Oh, I looked back to edit the stack in the visual mode, and this could be done in visual. I take my comment above that ‘that cannot be done in Visual mode!’. Sorry.
Agreed. Both visual and yaml works best. Thanks.