Kwikset Locks status. Tried others solutions, still no luck

Hi everyone. I’m super new to all this but trying to power through.

I am running HA via the AIO installer on a RPi3B with a Aeotec Z-Stick Gen 5. I’ve successfully gotten my front end running, and have Z-Wave up and running and have paired several light bulbs and switches to it at this point and it all works great.

I just installed a Kwikset 910 Z-Wave deadbolt. I’ve used these in previous houses on other, non-HASS home automation systems to great effect but I can’t get it to report the states properly (at all actually). It is paired to Z-Stick. I edited options.xml and created a secure key and all that jazz and the lock is there just essentially no information regarding it.

I found another thread that talked about setting up a sensor to monitor its status and I tried to copy it (and swapped out my entity ID for the OPs) but not the front end doesn’t even launch with that code in the configuration.yaml file, with it removed everything works as described above. I think it’s a spacing issue in the code but I’m too inexperienced apparently to properly diagnose what is going wrong.

Without further ado, here is the relevant portion of the configuration.yaml file:

sensor:
   - platform: template
    sensors:
     lock.kwikset_touchpad_electronic_deadbolt_locked_8_0:
      friendly_name: 'Front Door'
      value_template: >
      {% if is_state("lock.kwikset_touchpad_electronic_deadbolt_locked_8_0", "24") %}
        locked with Home Assistant
      {%  elif is_state("lock.kwikset_touchpad_electronic_deadbolt_locked_8_0", "25") %}
        unlocked with Home Assistant
      {%  elif is_state("lock.kwikset_touchpad_electronic_deadbolt_locked_8_0", "21") %}
        locked manually
      {%  elif is_state("lock.kwikset_touchpad_electronic_deadbolt_locked_8_0", "22") %}
        lock manually
      {% else %}
        unknown
      {% endif %}
    

- alias: 'Sync Lock/Unlock State front door'
  trigger:
  platform: state
  entity_id: sensor.kwikset_touchpad_electronic_deadbolt_alarm_type_10_0
  action:
  service_template: >
  {%- if ( (trigger.to_state.state == "22") or
           (trigger.to_state.state == "25") )
  -%}
    lock.unlock
  {%- else -%}
    lock.lock
  {% endif %}
  entity_id: lock.kwikset_touchpad_electronic_deadbolt_locked_8_0

Any help you can provide to get this up and running will be greatly appreciated!