- Created the following value template and it worked perfect until I updated to the current release of home assistant 0,116.4. The template renders perfectly as well in the developer tools template editor returning the right values but because there is no longer an associated sensor, my automation does not work. Here is my value template.
sensor:
- platform: template
sensors:
front_door_code:
friendly_name: ‘Front Door Code’
value_template: >-
{% if is_state_attr(“lock.schlage_allegion_be468_touchscreen_deadbolt_locked_frontdoor”, “lock_status”, “Unlocked with Keypad by user 1”) %}
U1
{% elif is_state_attr(“lock.schlage_allegion_be468_touchscreen_deadbolt_locked_frontdoor”, “lock_status”, “Unlocked with Keypad by user 2”) %}
U2
{% elif is_state_attr(“lock.schlage_allegion_be468_touchscreen_deadbolt_locked_frontdoor”, “lock_status”, “Unlocked with Keypad by user 3”) %}
U3
{% elif is_state_attr(“lock.schlage_allegion_be468_touchscreen_deadbolt_locked_frontdoor”, “lock_status”, “Unlocked with Keypad by user 4”) %}
U4
{% elif is_state_attr(“lock.schlage_allegion_be468_touchscreen_deadbolt_locked_frontdoor”, “lock_status”, “Locked with Keypad by user 1”) %}
L1
{% elif is_state_attr(“lock.schlage_allegion_be468_touchscreen_deadbolt_locked_frontdoor”, “lock_status”, “Locked with Keypad by user 2”) %}
L2
{% elif is_state_attr(“lock.schlage_allegion_be468_touchscreen_deadbolt_locked_frontdoor”, “lock_status”, “Locked with Keypad by user 3”) %}
L3
{% elif is_state_attr(“lock.schlage_allegion_be468_touchscreen_deadbolt_locked_frontdoor”, “lock_status”, “Locked with Keypad by user 4”) %}
L4
{% endif %}
Reverted back to Home Assistant 0.110.1 and everything works fine. I like some of the feature of the new HA release and wish there was way to fix this problem.