Skip to content

Commit

Permalink
Lock Management Dev (0.2.0.r13) - lock name vs notify device name
Browse files Browse the repository at this point in the history
  • Loading branch information
asucrews authored Apr 30, 2024
1 parent 167c023 commit 5ce2d78
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions automations/lock_management/dev/lock_management_dev.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blueprint:
name: Lock Management Dev (0.2.0.r12)
name: Lock Management Dev (0.2.0.r13)
description: lock Management
domain: automation
source_url: https://github.com/asucrews/ha-blueprints/blob/main/automations/lock_management/lock_management.yaml
Expand Down Expand Up @@ -90,11 +90,11 @@ action:
data:
message: >
{% if code_slot > 0 %}
"{{ device_attr(repeat.item, 'name') }} was unlocked by {{ code_slot_name }}"
"{{ device_attr(lock, 'name') }} was unlocked by {{ code_slot_name }}"
{% else %}
"{{ device_attr(repeat.item, 'name') }} was unlocked"
"{{ device_attr(lock, 'name') }} was unlocked"
{% endif %}
title: "{{ lock }}"
title: "{{ device_attr(lock, 'name') }}"
- conditions:
- condition: template
value_template: "{{ lock_state == 'unlocked' }}"
Expand Down Expand Up @@ -135,11 +135,11 @@ action:
data:
message: >
{% if code_slot > 0 %}
"{{ device_attr(repeat.item, 'name') }} was unlocked by {{ code_slot_name }}"
"{{ device_attr(lock, 'name') }} was unlocked by {{ code_slot_name }}"
{% else %}
"{{ device_attr(repeat.item, 'name') }} was unlocked"
"{{ device_attr(lock, 'name') }} was unlocked"
{% endif %}
title: "{{ device_attr(repeat.item, 'name') }}"
title: "{{ device_attr(lock, 'name') }}"
- conditions:
- condition: and
conditions:
Expand Down

0 comments on commit 5ce2d78

Please sign in to comment.