berrywhite96 / lovelace-shutter-row

Home Assistant Lovelace Shutter Row Card
MIT License
19 stars 4 forks source link

Icon do's not update #24

Closed SirGarnet closed 2 weeks ago

SirGarnet commented 1 year ago

I would like to use the card for my windows, shutters and blinds, but the icon is alway the same. I've changed it in the entity, everything else (normal entity card, ...) updates the icon correctly.

System: Home Assistant 2023.3.5 Supervisor 2023.03.1 Operating System 9.5 Frontend 20230309.1 - latest

berrywhite96 commented 1 year ago

Please check if you are on 0.3.3.

  1. Call HA on desktop PC in Chrome
  2. Press F12 and click on Console
  3. There should be a yellow log entry with the loaded shutter row version.
SirGarnet commented 1 year ago

Yes there is the mentioned entry, I installed it via HACS the day I've opened this issue, so it should be up to date.

It is not a problem with a fixed set icon for an entity. If you change the device type (shutter / blind / door ...) it will use an other icon for the entity. But this icon is not shown in lovlace-shutter-row but when it's added as a normal entity.

berrywhite96 commented 1 year ago

Can you post the entity attributes from the developer tools?

SirGarnet commented 1 year ago
cover.schlafzimmer_oberlichtSchlafzimmer Oberlicht | closed | current_position: 0 device_class: window friendly_name: Schlafzimmer Oberlicht supported_features: 15 -- | -- | -- cover.schlafzimmer_jalousieSchlafzimmer Jalousie | open | current_position: 100 device_class: shutter friendly_name: Schlafzimmer Jalousie supported_features: 15

Here are two entities that I use. These are added via KNX, When the device_class changes, the used icon for the entity will be changed.

berrywhite96 commented 1 year ago

Device class icons are currently not supported, only if you set an custom icon for this entity you can change the icon.

KennethLavrsen commented 1 year ago

I would love to see this component use the default icons. There are so many covers and HA has becomes good at showing icons that reflect the state (open vs closed). You lose that when you set an icon yourself. I use this component for Venetian Blinds and the "Blinds" icons are much better at reflecting what it is than the roller shade icon that the component is locked on

berrywhite96 commented 2 weeks ago

There won't be any more features, just keep the project running.

KennethLavrsen commented 2 weeks ago

That is OK. Berry. Thanks for keeping it running.