Allow overriding icon
for entities which set a device_class
#552
-
According to the developer documentation for
Proposal: Alternative: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
There are two reasons why the icon won't match:
|
Beta Was this translation helpful? Give feedback.
-
I think it's ok to allow custom icons for the rare cases when there's no better category possible. But I'd like us to not allow this to become a simple way out to avoid the very important task and problem that Home Assistant is solving, which is standardization of devices and services. A complimentary solution that I'd like to see is to add a label per device or service. The existing device class on entity level and the new device/service label would together be able to better describe the measurement feature. One example where this could be an improvement is in the frontend where depending on the context the frontend could decide to show either the entity device class icon or the new device/service category icon. Eg when looking at the device page it could be more interesting to distinguing the entity device classes with corresponding icons than showing the same device specific icon for all features. While on a panel with a mix of different devices it could be better to show the device specific icon. Weather service pressure measurements could be resolved from vessel device pressure measurements. Weather sensor measurements could automatically be grouped in a frontend card without needing a weather platform. I think there are many opportunities to be had from adding such a label. |
Beta Was this translation helpful? Give feedback.
-
PR to update the wording for |
Beta Was this translation helpful? Give feedback.
PR to update the wording for
Entity.icon
since we seem to agree we can tolerate overriding it: home-assistant/developers.home-assistant#894