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

Changing stacks of buttons into icons/logos

$
0
0

@Skye wrote:

I have a bunch of scripts behind buttons to launch TV channels. Currently they are just text on buttons but I would like to use logos.

The yaml is as follows:

cards:
  - cards:
      - entity: script.1560183642357
        hold_action:
          action: more-info
        icon_height: 50px
        name: Journaal
        show_icon: false
        show_name: true
        tap_action:
          action: toggle
        type: entity-button
    type: horizontal-stack
  - cards:
      - entity: script.1560008204659
        hold_action:
          action: more-inf
        icon_height: 100px
        name: VTM
        show_icon: false
        show_name: true
        tap_action:
          action: toggle
        type: entity-button
      - entity: script.1560010345656
        hold_action:
          action: more-info
        icon_height: 50px
        name: VIER
        show_icon: false
        show_name: true
        tap_action:
          action: toggle
        type: entity-button
      - entity: script.1560010397544
        hold_action:
          action: more-info
        icon_height: 50px
        name: VIJF
        show_icon: false
        show_name: true
        tap_action:
          action: toggle
        type: entity-button
    type: horizontal-stack
  - cards:
      - entity: script.1560010450589
        hold_action:
          action: more-info
        icon_height: 50px
        name: één
        show_icon: false
        show_name: true
        tap_action:
          action: toggle
        type: entity-button
      - entity: script.1560010591120
        hold_action:
          action: more-info
        icon_height: 50px
        name: Canvas
        show_icon: false
        show_name: true
        tap_action:
          action: toggle
        type: entity-button
      - entity: script.1560010552111
        hold_action:
          action: more-info
        icon_height: 50px
        name: Q2
        show_icon: false
        show_name: true
        tap_action:
          action: toggle
        type: entity-button
    type: horizontal-stack
type: vertical-stack

And it looks like

I figured if I add

icon: /local/path/to/img.png
show_icon: true

that that would work, though the image is not showing up.

Any ideas?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95414

Trending Articles



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