home-assistant / frontend

:lollipop: Frontend for Home Assistant
https://demo.home-assistant.io
Other
4.03k stars 2.76k forks source link

Area card: icons for "switch" entities = not same as defined by a user #18735

Open ildar170975 opened 11 months ago

ildar170975 commented 11 months ago

Checklist

Describe the issue you are experiencing

Consider an Area card which contains some switches. Each switch may have an icon either customized via "customization" or defined by icon_template for template switches. But these changed icons will not be displayed on the card - instead a native "device_class" dependent icon is shown.

Describe the behavior you expected

If an entity is having an explicitly defined icon - show THIS icon.

Steps to reproduce the issue

as above

What version of Home Assistant Core has the issue?

2023.11.2

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Chrome 119.0.6045.160

Which operating system are you using to run this browser?

Win10x64

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

No response

github-actions[bot] commented 8 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

ildar170975 commented 8 months ago

Need to add some clarifications. Assume there are some entities associated with some area.

Some of these entities are numerical - like temperature, humidity. For each device class an average value is calculated and then shown: assume there are 2 temperature sensors in the area, so the average value is shown. And the displayed icon - corresponds to the device_class. THIS issue is NOT about these numerical sensors.

Also, THIS issue is not about "alerting" binary_sensors with standard icons (like "smoke", "motion").

THIS issue is about displaying icons for switches. A template switch may have OWN icons for both on/off states; suggest to show customized icons if there are any defined.

github-actions[bot] commented 5 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

ildar170975 commented 5 months ago

up

github-actions[bot] commented 2 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

ildar170975 commented 1 month ago

up