LesTR / homeassistant-minimalistic-area-card

A minimalistic area card with sensors and buttons.
MIT License
12 stars 1 forks source link

[Bug]: Icon not showing #127

Closed LiquidPT closed 23 hours ago

LiquidPT commented 1 day ago

What happened?

I added the icon as instructed and it just makes a blank space next to the title. I'm using a Sections layout on the view

Card Version

1.2.0

Home Assistant Version

2024.11.0

Browser Version

Edge 130.0.2849.80

Relevant card config

type: custom:minimalistic-area-card
title: Living Room
area: living_room
hide_unavailable: true
state_color: true
icon: mdi-sofa
tap_action:
  action: navigate
  navigation_path: /dashboard-cameras/living-room
entities:
  - switch.xmas_tree
  - light.living_room
  - sensor.living_room_temperature
  - sensor.living_room_wallmote_quad_battery
  - binary_sensor.magic_areas_presence_tracking_living_room_area_state
grid_options:
  columns: 12
  rows: 2

Relevant javascript log output

No response

LesTR commented 23 hours ago

That's because icon: mdi-sofa is not a valid icon. It should be icon: mdi:sofa

Try this:

type: custom:minimalistic-area-card
title: Living Room
area: living_room
hide_unavailable: true
state_color: true
icon: mdi:sofa
show_area_icon: true
tap_action:
  action: navigate
  navigation_path: /dashboard-cameras/living-room
entities:
  - switch.xmas_tree
  - light.living_room
  - sensor.living_room_temperature
  - sensor.living_room_wallmote_quad_battery
  - binary_sensor.magic_areas_presence_tracking_living_room_area_state
grid_options:
  columns: 12
  rows: 2
LiquidPT commented 23 hours ago

I knew it had to be my issue. That's why I provided the whole YAML. Thanks.