streamdeck-homeassistant
streamdeck-homeassistant copied to clipboard
Icons for lock entities and their state
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;
}