Light status not updated with switch template toggling

Use Case:
I want to turn all my kitchen lights on with an Alexa Command “Alexa turn on the kitchen lights”.

I have this working by creating 2 scenes, one which turns all kitchen lights on and one that turns all kitchen lights off. Then I have a switch defined that executes either one depending on the state of the switch. All of this works.

What does not work is that when the switch calls the scene to turn off the kitchen lights the UI still shows one of the lights as being ON even though it’s OFF.

Relevant Configuration

zwave:
  usb_path: /dev/ttyACM0
  config_path: /srv/homeassistant/src/python-openzwave/openzwave/config
  device_config:
    light.kitchen_table_level:
      polling_intensity: 1
      refresh_value: true
      delay: 3
switch:
  - platform: template
    switches:
      kitchen_scene_switch:
        friendly_name: "Kitchen Lights"
        value_template: "{{ is_state('kitchen_scene_switch', 'on') }}"
        turn_on:
          service: scene.turn_on
          entity_id: scene.kitchen_on
        turn_off:
          service: scene.turn_on
          entity_id: scene.kitchen_off
scene:
  - name: 'Kitchen On'
    entities:
      light.kitchen_table_light_level:
        state: on
      switch.kitchen_light_switch:
        state: on
  - name: "Kitchen Off"
    entities:
      light.kitchen_table_light_level:
        state: off
      switch.kitchen_light_switch:
        state: off

Anyone have advice and how I might troubleshoot this?

Ok. I did figure this out. I had a typo on the zwave configuration. After naming the entity_id properly to light.kitchen_table_light_level it started working properly.