I am trying to use the horizontal custom layout card within a vertical stack card. Is this possible?
It doesn’t seem to want to be laid out horizontally, and instead just stacks vertically. See the lights group in the image below.
# Section 3
- cards:
- color: 'rgb(44, 109, 214)'
color_type: label-card
name: Lights
type: 'custom:button-card'
- layout: horizontal
type: 'custom:layout-card'
cards:
- aspect_ratio: 1/1
color: 'rgb(66, 134, 244)'
color_type: card
entity: light.kitchen_lights
icon: 'mdi:lightbulb-on-outline'
name: Lights
tap_action:
action: more-info
type: 'custom:button-card'
- aspect_ratio: 1/1
color: 'rgb(66, 134, 244)'
color_type: card
icon: 'mdi:ceiling-light'
name: Dim All Lights
show_icon: true
show_state: false
tap_action:
action: call-service
service: mqtt.publish
service_data:
payload: tv_lights
topic: lights
type: 'custom:button-card'
type: vertical-stack