Custom-state-ui-card implementation problems

Hey there, i am trying to get the custom state ui to work. I copied the Files to /home/homeassistant/.homeassistant/www/custom_ui and edited the Configuration.yaml as below:

customize:
    entity_id: switch.KEQ0170945
      custom_ui_state_card: custom_light
      state_card_mode: break-slider
      slider_theme:
        min: 1
        max: 255
        pin: true
        off_when_min: false
        report_when_not_changed: false




The log shows me different error: (line 15 is the first line after customize: )

Apr 25 03:21:03 raspberrypi hass[1418]: expected <block end>, but found '?'

Apr 25 03:21:03 raspberrypi hass[1418]: in "/home/homeassistant/.homeassistant/configuration.yaml", line 25, column 5

Apr 25 03:21:03 raspberrypi hass[1418]: ERROR:homeassistant.bootstrap:Error loading /home/homeassistant/.homeassistant/configuration.yaml: while parsing a block collection

Apr 25 03:21:03 raspberrypi hass[1418]: in "/home/homeassistant/.homeassistant/configuration.yaml", line 15, column 5

Apr 25 03:21:03 raspberrypi hass[1418]: expected <block end>, but found '?'

Apr 25 03:21:03 raspberrypi hass[1418]: in "/home/homeassistant/.homeassistant/configuration.yaml", line 25, column 5

Apr 25 03:21:03 raspberrypi hass[1418]: Config directory: /home/homeassistant/.homeassistant

Apr 25 03:22:16 raspberrypi systemd[1]: Stopping Home Assistant...

Apr 25 03:22:16 raspberrypi systemd[1]: Starting Home Assistant...

Apr 25 03:22:16 raspberrypi systemd[1]: Started Home Assistant.

Apr 25 03:22:20 raspberrypi hass[1446]: ERROR:homeassistant.util.yaml:mapping values are not allowed here

Apr 25 03:22:20 raspberrypi hass[1446]: in "/home/homeassistant/.homeassistant/configuration.yaml", line 16, column 27

Apr 25 03:22:20 raspberrypi hass[1446]: ERROR:homeassistant.bootstrap:Error loading /home/homeassistant/.homeassistant/configuration.yaml: mapping values are not allowed here

Apr 25 03:22:20 raspberrypi hass[1446]: in "/home/homeassistant/.homeassistant/configuration.yaml", line 16, column 27

Apr 25 03:22:20 raspberrypi hass[1446]: Config directory: /home/homeassistant/.homeassistant

Does anyone have an idea what is going wrong here ?

In case you didn’t find the solution:

The correct format is:

customize:
  switch.KEQ0170945:
    custom_ui_state_card: custom_light
    ...