nathan-gs / ha-map-card

A Map Card for Home Assistant
https://community.home-assistant.io/t/map-card-a-slightly-improved-map-card/693088
MIT License
33 stars 11 forks source link

[FR] Add an overriding "icon" option #84

Open ildar170975 opened 2 months ago

ildar170975 commented 2 months ago

Assume some entity has some icon (default or set by a user). If display: icon - then this icon will be shown on a marker. Is it possible to add a new option - icon? If it is set - then this icon will be shown instead of a "native" one.

I thought: since we have a possibility to set an image, then it would be great to have an icon as well ))))

MelleD commented 2 months ago

It would be cool to have an option to simply put an icon instead of a picture/image, also when the sensor do not include it.

The behavior when the sensor does not have an icon is also interesting. That HA somehow finds a suitable icon in the dialog.

For example on the map I see the label: display is icon

Bildschirmfoto 2024-09-10 um 00 13 44

If I click on it. I have an icon, but into the attributes there is no icon attribute.

Bildschirmfoto 2024-09-10 um 00 13 54

Would be nice, just to use the same logic like the detail dialog and/or give an option on the entity section to override the icon