Problem with AVM Fritz Dect 200

I have added the Dect 200 as a switch.
Now I wanted to integrate the sensors according to the instructions.
As soon as I add total_consumption the configuration is no longer OK when checking.

    - platform: template
      sensors:
        pool_salz_watts:
          friendly_name_template: "{{ states.switch.pool_salz.name}} Aktueller Verbrauch"
          value_template: '{{ states.switch.pool_salz.attributes["current_power_w"] | float }}'
          unit_of_measurement: 'W'
        pool_salz_total_kWh:
          friendly_name_template: "{{ states.switch.pool_salz.name}} Gesamt Verbrauch"
          value_template: '{{ states.switch.pool_salz.attributes["total_consumption"] | float }}'
          unit_of_measurement: 'kWh'
        pool_salz_temperature:
          friendly_name_template: "{{ states.switch.pool_salz.name}} Aktuelle Temperatur"
          value_template: '{{ states.switch.pool_salz.attributes["temperature"] | float }}'
          unit_of_measurement: '°C'
  Invalid config for [sensor.template]: invalid slug pool_salz_total_kWh (try pool_salz_total_kwh) for dictionary value @ data['sensors']. Got OrderedDict([('pool_salz_watts', OrderedDict([('friendly_name_template', '{{ states.switch.pool_salz.name}} Aktueller Verbrauch'), ('value_template', '{{ states.switch.pool_salz.attributes["current_power_w"] | float }}'), ('unit_of_measurement', 'W')])), ('pool_salz_temperature', OrderedDict([('friendly_name_template', '{{ states.switch.pool_salz.name}} Aktuelle Temperatur'), ('value_template', '{{ states.switch.pool_salz.attributes["temperature"] | float }}'), ('unit_of_measurement', '°C')]).... (See ?, line ?). 

you need to use lowercase only names for sensor names.