UI icon indicating copy to clipboard operation
UI copied to clipboard

Cover template has hardcoded icons that can't be changed by user

Open willyp713 opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe. Cover template is hardcoded to use mdi:window-shutter and mdi:window-shutter-open. This icon doesn't make sense for other types of covers: garages, gates, etc.

Describe the solution you'd like Allow the icon to be set by the user for Card Cover with Buttons.

Describe alternatives you've considered Tried making a custom version of cover.yaml but it broke the UI. It appears that these internal cards behave differently than custom cards.

Additional context n/a

willyp713 avatar Jan 28 '22 05:01 willyp713

Sorry this should probably be enhancement not feature request. Didn't read closely enough :(

willyp713 avatar Jan 28 '22 05:01 willyp713

This is partially resolved by @yagrasdemonde in #621 except for a tiny issue: if you choose "garage" it only shows the large garage icon. Example: if you only have a 1-car garage, but the icon is for a 2-car garage.

Small garage uses these icons:

mdi:garage
mdi:garage-alert
mdi:garage-lock
mdi:garage-open

Large garage uses these icons:

mdi:garage-variant
mdi:garage-alert-variant
mdi:garage-variant-lock
mdi:garage-open-variant

It also looks like we don't have an icon for alert in the code for the Cover Card. In case the garage gets stuck and returns an alert (or hits something, etc.)

willyp713 avatar Jun 17 '22 19:06 willyp713

Alert icons still need work to implement. This is different to other many other cards as the Icon is set manually to allow for blind/garage/gate etc... and varies depending on the State (open/closed)

ben-burwood avatar Dec 07 '22 17:12 ben-burwood