Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 96123

Lovelace Card YAML Question

$
0
0

@jwelvaert wrote:

I have 2 cards that I would like to combine into one. If I combine the YAML into one card it makes the icons very small so I guess I need a vertical stack or Vertical Stack In Card? Here is the first one:

cards:
  - icon: 'mdi:arrow-up-bold'
    tap_action:
      action: call-service
      service: remote.send_command
      service_data:
        command: DirectionUp
        device: '41560655'
        entity_id: remote.living_room
    type: 'custom:button-card'
  - icon: 'mdi:arrow-down-bold'
    tap_action:
      action: call-service
      service: remote.send_command
      service_data:
        command: DirectionDown
        device: '41560655'
        entity_id: remote.living_room
    type: 'custom:button-card'
  - icon: 'mdi:arrow-left-bold'
    tap_action:
      action: call-service
      service: remote.send_command
      service_data:
        command: DirectionLeft
        device: '41560655'
        entity_id: remote.living_room
    type: 'custom:button-card'
  - icon: 'mdi:arrow-right-bold'
    tap_action:
      action: call-service
      service: remote.send_command
      service_data:
        command: DirectionRight
        device: '41560655'
        entity_id: remote.living_room
    type: 'custom:button-card'
  - icon: 'mdi:alpha-e-circle'
    tap_action:
      action: call-service
      service: remote.send_command
      service_data:
        command: Ok
        device: '41560655'
        entity_id: remote.living_room
    type: 'custom:button-card'
  - icon: 'mdi:home'
    tap_action:
      action: call-service
      service: remote.send_command
      service_data:
        command: Home
        device: '41560655'
        entity_id: remote.living_room
    type: 'custom:button-card'
type: horizontal-stack

Here is the second one:

cards:
  - icon: 'mdi:volume-plus'
    size: 25%
    tap_action:
      action: call-service
      service: remote.send_command
      service_data:
        command: VolumeUp
        device: '61379924'
        entity_id: remote.living_room
    type: 'custom:button-card'
  - icon: 'mdi:volume-minus'
    size: 25%
    tap_action:
      action: call-service
      service: remote.send_command
      service_data:
        command: VolumeDown
        device: '61379924'
        entity_id: remote.living_room
    type: 'custom:button-card'
  - icon: 'mdi:volume-off'
    size: 25%
    tap_action:
      action: call-service
      service: remote.send_command
      service_data:
        command: Mute
        device: '61379924'
        entity_id: remote.living_room
    type: 'custom:button-card'
  - icon: 'mdi:power-plug-off'
    size: 25%
    tap_action:
      action: call-service
      service: remote.turn_off
      service_data:
        entity_id: remote.living_room
    type: 'custom:button-card'
type: horizontal-stack

Posts: 6

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 96123

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>