Lovelace doesn't show button state

I can’t understand what’s wrong with this code:

- entity: switch.sw_two
    image: 'http://dshgmbh.ru/uploads/light_bulb_off.png'
    state_filter:
      'off': brightness(80%) saturate(0.8)
      'on': brightness(130%) saturate(1.5) drop-shadow(0px 0px 10px gold)
    state_image:
      'on': 'http://dshgmbh.ru/uploads/light_bulb_on.png'
    style:
      left: 78%
      padding: 10px
      top: 65%
      width: 7%
    tap_action:
      action: toggle
    type: image
  - entity: sensor.kitchen_wall_button
    image: 'http://dshgmbh.ru/uploads/light_bulb_off.png'
    state_filter:
      'off': brightness(80%) saturate(0.8)
      'on': brightness(130%) saturate(1.5) drop-shadow(0px 0px 10px gold)
    state_image:
      'on': 'http://dshgmbh.ru/uploads/light_bulb_on.png'
    style:
      left: 85%
      padding: 10px
      top: 25%
      width: 7%
    type: image

The switch -sw_two - work fine, but sensor - kitchen_wall_button doesn’t change image on a floor plane. (both the data goes and come back to same device).
The history view for kitchen button show that state changed.

- entity: switch.sw_two
    image: 'http://dshgmbh.ru/uploads/light_bulb_off.png'
    state_filter:
      'off': brightness(80%) saturate(0.8)
      'on': brightness(130%) saturate(1.5) drop-shadow(0px 0px 10px gold)
    state_image:
      'on': 'http://dshgmbh.ru/uploads/light_bulb_on.png'
    style:
      left: 78%
      padding: 10px
      top: 65%
      width: 7%
    tap_action:
      action: toggle
    type: image
- entity: sensor.kitchen_wall_button  ### This was indented too far ###
    image: 'http://dshgmbh.ru/uploads/light_bulb_off.png'
    state_filter:
      'off': brightness(80%) saturate(0.8)
      'on': brightness(130%) saturate(1.5) drop-shadow(0px 0px 10px gold)
    state_image:
      'on': 'http://dshgmbh.ru/uploads/light_bulb_on.png'
    style:
      left: 85%
      padding: 10px
      top: 25%
      width: 7%
    type: image

Hello Tom, thank you for reply. I have checked level of ‘entity’ it goes on same position (same spaces from left) as others. Here are group of entities that related to ‘elements’ that shows on floor plane.
Here are full code of this part

elements:
  - entity: switch.sw_one
    image: 'http://dshgmbh.ru/uploads/light_bulb_off.png'
    state_filter:
      'off': brightness(80%) saturate(0.8)
      'on': brightness(130%) saturate(1.5) drop-shadow(0px 0px 10px gold)
    state_image:
      'on': 'http://dshgmbh.ru/uploads/light_bulb_on.png'
    style:
      left: 48%
      padding: 10px
      top: 32%
      width: 7%
    tap_action:
      action: toggle
    type: image
  - entity: switch.sw_two
    image: 'http://dshgmbh.ru/uploads/light_bulb_off.png'
    state_filter:
      'off': brightness(80%) saturate(0.8)
      'on': brightness(130%) saturate(1.5) drop-shadow(0px 0px 10px gold)
    state_image:
      'on': 'http://dshgmbh.ru/uploads/light_bulb_on.png'
    style:
      left: 78%
      padding: 10px
      top: 65%
      width: 7%
    tap_action:
      action: toggle
    type: image
  - entity: sensor.kitchen_wall_button
    image: 'http://dshgmbh.ru/uploads/light_bulb_off.png'
    state_filter:
      'off': brightness(80%) saturate(0.8)
      'on': brightness(130%) saturate(1.5) drop-shadow(0px 0px 10px gold)
    state_image:
      'on': 'http://dshgmbh.ru/uploads/light_bulb_on.png'
    style:
      left: 85%
      padding: 10px
      top: 25%
      width: 7%
    type: image
  - image: 'http://dshgmbh.ru/uploads/Walking_man_green 200x300.png'
    style:
      left: 50%
      padding: 10px
      top: 80%
      width: 7%
    type: image
  - enitity: sensor.motion_steps
    image: 'http://dshgmbh.ru/uploads/walking-man_black 200x300.png'
    state_filter:
      'off': brightness(80%) saturate(0.2)
      'on': brightness(130%) saturate(1.5)
    state_image:
      'off': 'http://dshgmbh.ru/uploads/Walking_man_green 200x300.png'
      'on': 'http://dshgmbh.ru/uploads/Walking_man_yellow 200x300.png'
    style:
      left: 55%
      padding: 10px
      top: 54%
      width: 7%
    type: image
  - entity: sensor.kitchen_door
    state_filter:
      'off': brightness(80%) saturate(0.2)
      'on': brightness(130%) saturate(1)
    state_image:
      'off': 'http://dshgmbh.ru/uploads/walking-man_black 200x300.png'
      'on': 'http://dshgmbh.ru/uploads/Walking_man_green 200x300.png'
    style:
      left: 15%
      padding: 10px
      top: 80%
      width: 7%
    type: image
  - entity: switch.motion_steps
    image: 'http://dshgmbh.ru/uploads/light_bulb_off.png'
    state_filter:
      'off': brightness(80%) saturate(0.8)
      'on': brightness(130%) saturate(1.5) drop-shadow(0px 0px 10px gold)
    state_image:
      'on': 'http://dshgmbh.ru/uploads/light_bulb_on.png'
    style:
      left: 15%
      padding: 10px
      top: 28%
      width: 7%
    type: image
image: 'http://dshgmbh.ru/uploads/main.png'
type: picture-elements

Only two entities “won’t to play” (change picture) - sensor.kitchen_wall_button and switch.motion_steps. Here are same problem with motion_steps - i can see changing state in this part:

entities:
  - entity: binary_sensor.motion_sensor_158d0002b43093
  - entity: sensor.motion_steps
  - entity: binary_sensor.door_window_sensor_158d0002b825ef
    icon: 'mdi:door'
title: Датчики Xiaomi
type: entities

but on floor plane it doesn’t want to change picture.

I have find a solution for kitchen_wall_button - I have changed the answer code (json) instead to get from my ESP8266 “1” or “0”, my ESP send - “on”/“off” - this solved my problem with changing picture. Now it works.

But motion_steps - this signal comes from Xiaomi motion sensor, and I can to understand how to recognise that answer. At this widget:

entities:
  - entity: binary_sensor.motion_sensor_158d0002b43093
  - entity: sensor.motion_steps
  - entity: binary_sensor.door_window_sensor_158d0002b825ef
    icon: 'mdi:door'
  - entity: sensor.kitchen_wall_button
title: Датчики Xiaomi
type: entities

I can see motion_steps changing on/off but on the floor plane it doesn’t change picture. Perhaps I have to change this part of configuretion.yaml:

    - platform: template
      sensors:
        kitchen_door:
            friendly_name: "Кухонная дверь"
            value_template: "{{states.binary_sensor.door_window_sensor_158d0002b825ef.state}}"
        motion_steps:
            friendly_name: "Движение на лестнице"
            value_template: >
                {% if is_state('binary_sensor.motion_sensor_158d0002b43093', 'on') %}
                on
                {% else %}
                off
                {% endif %}

It seems that sensor send me wrong on/off that can’t be recognize by image widget…

Well that was not what you posted. Please take care to post your exact configuration in future.

Have you any idea about motion sensor (from {Xiaomi)
(see descr above)