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

Cannot set icon variable in Button Card

$
0
0

@aristosv wrote:

In the button card documentation it says I can use the variable “icon” to overwrite icon or entity picture. So I did this:

- type: vertical-stack
  title: Cartoons
  cards:
  
  - type: button
    entity: script.disneyxd
    icon: /local/disney_xd.jpg
    icon_height: 50px
    icon_width: 50px
    tap_action:
     action: call-service
     service: script.turn_on
     service_data:
      entity_id: script.disneyxd

and placed “disney_xd.jpg” inside the “www” folder

The result was that the default icon disappeared.
What I’m I doing wrong here?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95394

Trending Articles



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