Hi.
To start with i am new to homeassistant and trying to learn yaml.
My next project is to build a card with buttons to control command on my harmony.
I have installed GitHub - custom-cards/button-card: ❇️ Lovelace button-card for home assistant. My problem is how to place the buttons inside the card. Now the buttons is on top of eachother.
Can someone give me a hint what i´m missing? Or is there a smarter way to do this?
type: horizontal-stack
cards:
- type: custom:button-card
styles:
card:
- width: 80px
- height: 120px
color: auto
color_type: card
icon: mdi:volume-plus
size: 40%
aspect_ratio: 1/1
action: service
service:
domain: remote
tap_action:
action: send_command
data:
entity_id: Apple TV 4
device: 63537456
command: VolumeUp
- type: custom:button-card
styles:
card:
- width: 120px
- height: 80px
color: auto
color_type: card
icon: mdi:volume-minus
size: 40%
aspect_ratio: 1/1
action: service
service:
domain: remote
tap_action:
action: send_command
data:
entity_id: Apple TV 4
device: 63537456
command: VolumeDown