Is there a way to change the icon that is used for a z-wave lock showing unlocked?
I’m happy with mdi:lock for locked, but I want mdi:lock-open-variant for unlocked because the “normal” mdi:lock-open is too close to locked at a glance.
I attempted to change it in the customize-YAML using code that works with templates, but then I get no icon…
You cannot use jinjia templates for customizing an icon in the “customize” section.
Do you wish to redefine an icon for a particular card - or for everywhere (including more-info window)? If for a particular card - you may either use a template-supporting-card (like config-template-card) or card-mod (setting a “–card-mod-icon” variable). If for everywhere - probably a template switch will be the easiest way.
I don’t understand enough of what those are talking about, what to change on the card to make them appear like I want though. Is there documentation on that somewhere?
Simplest way - using card-mod:
here is how to set a STATIC icon: go to card-mod github, scroll to “changing icons”.
But you need it dynamic: on - icon 1, off - icon 2.
Then use a jinja template like: