front_door_status:
friendly_name: "Front Door Status"
value_template: >-
{% if is_state('binary_sensor.wyzesense_frontdoor', 'off') and not is_state('lock.frontdoor', 'unlocked') %}
Locked
{% elif is_state('binary_sensor.wyzesense_frontdoor', 'on') and not is_state('lock.frontdoor', 'locked') %}
Open
{% elif is_state('binary_sensor.wyzesense_frontdoor', 'off') and not is_state('lock.frontdoor', 'locked') %}
Unlocked
{% else %}
Unknown
{% endif %}
Id go with something like this.
Mine is way over complicated as well…