Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icons for lock entities and their state #109

Closed
kevin-brown opened this issue Sep 13, 2022 · 0 comments
Closed

Icons for lock entities and their state #109

kevin-brown opened this issue Sep 13, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request T-Shirt-Size: S

Comments

@kevin-brown
Copy link

https://www.home-assistant.io/integrations/lock/

Currently the plugin does not have anything for handling locks within the factory for entity images, which isn't surprising because they're not the most common.

Recommended mapping (JS-ish pseudocode):

let icon = Mdi.mdiLockQuestion;
let color = this.colors.unavailable;

if (state === 'locked') {
    icon = Mdi.mdiLock;
    color = this.colors.ok;
} else if (state === 'locking') {
    icon = Mdi.mdiLockClock;
    color = this.colors.active;
} else if (state === 'unlocked') {
    icon = Mdi.mdiLockOpen;
    color = this.colors.warn;
}
@cgiesche cgiesche added the enhancement New feature or request label Sep 23, 2022
@cgiesche cgiesche self-assigned this Jan 27, 2023
cgiesche added a commit that referenced this issue Jan 27, 2023
Fixed #109: Icons for lock entities and their state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request T-Shirt-Size: S
Projects
None yet
Development

No branches or pull requests

2 participants