Yale Zwave locks

Here’s another way to show the changes made at the lock and it shows the “true” method used to close or open instead of the previous method which shows “manual” for some that were actually keypad presses. The only potential drawback so far I’ve seen with this is that some of the changes are lengthy, so it will wrap lines in the card.

  - platform: template
    sensors:
      yale_lock_status:
        entity_id: lock.assa_abloy_unknown_type0004_idaa00_locked
        value_template: >-
          {% set lock_status = states.lock.assa_abloy_unknown_type0004_idaa00_locked.attributes.lock_status %}
          {% set lock_status = lock_status|replace('user 0', 'Master') %}
          {% set lock_status = lock_status|replace('user 1', 'John') %}
          {% set lock_status = lock_status|replace('user 2', 'Jane') %}
          {% set lock_status = lock_status|replace('user 3', 'Johnny') %}
          {% set lock_status = lock_status|replace('user 4', 'Janette') %}
          {{ lock_status }}

Anybody know how to apply this type of approach to the icon customization?

3 Likes