Unbekannter Fehler in configuration.yaml

Hallo Gemeinde

Der File Editor zeigt in meiner “configuration.yaml” diesen Feler an:

duplicated mapping key (75:1)

 72 |         state: >
 73 |             {{ ((735 - (float(s ...
 74 | 
 75 | frontend:
------^
 76 |   extra_module_url:
 77 |     - /local/card-mod.js

Und ich habe nicht den blassesten Schimmer, was das zu bedeuten hat und wie ich diesen Fehler loswerden könnte. Wie lange der Fehler schon besteht weiß ich leider nicht. Ich hab ihn heute erstmalig gesehen.
Hier ist meine “configuration.yaml”:

# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

 # Example configuration.yaml entry
command_line:
  - sensor:
      name: CPU Temperature
      command: "cat /sys/class/thermal/thermal_zone0/temp"
      # If errors occur, make sure configuration file is encoded as UTF-8
      unit_of_measurement: "°C"
      value_template: "{{ value | multiply(0.001) | round(1) }}"

# Full configuration.yaml entry
binary_sensor:
  - platform: rpi_gpio
    sensors:
      - port: 11
        name: "PIR Office"
        unique_id: "pir_office_sensor_port_11"
        bouncetime: 80
        invert_logic: true
        pull_mode: "DOWN"
      - port: 12
        name: "PIR Bedroom"
        unique_id: "pir_bedroom_sensor_port_12"

#--- InfluxDB ---
influxdb:
  username: xxxxx
  password: xxxxxxx
  tags:
    source: HA
  tags_attributes:
    - friendly_name
  default_measurement: state
  exclude:
    entities:
      - zone.home
    domains:
      - persistent_notification
      - person
  include:
    domains:
      - sensor
      - binary_sensor

# Example configuration.yaml entry
panel_custom:
  - name: panel_integrations
    sidebar_title: Integrationen
    sidebar_icon: mdi:audio-input-rca
    url_path: 'config/integrations'
    module_url: /api/hassio/app/entrypoint.js
    embed_iframe: true
    require_admin: true
    
# Heizölstand-Sensor
template:
  - sensor:
      - name: "Heizölstand 3 Tanks"
        unique_id: "Heizoelstand_3_Tanks"
        unit_of_measurement: "Liter"
        state_class: "measurement"
        state: >
            {{ ((735 - (float(states('sensor.heizoelstand_sr04_distance'))) * float (4,8963)) * 3 | float(0)) }}

frontend:
  extra_module_url:
    - /local/card-mod.js

# Example configuration.yaml entry for Google Mail.
notify:
  - name: "Garage Ost offen"
    platform: smtp
    server: "smtp.googlemail.com"
    port: 587
    timeout: 15
    sender: "xxxx.xxxx@googlemail.com"
    encryption: starttls
    username: "xxxx.xxxx@googlemail.com"
    password: "dbte ibhw cqdn wllh"
    recipient:
      - "xxxx.xxxx@icloud.com"
    sender_name: "Home Assistant"

du hast 2x frontend drin:

Setz den unteren Code mit nach oben.

Und vielleicht noch als Tipp bzw. Hinweis.

Da Deine configuration.yaml jetzt schon bereits sehr unübersichtlich ausschaut.
Schaue Die mal bitte das Thema Aufteilung der Konfiguration an. Schafft Ordnung und macht das ganze übersichtlicher.

Packages, kann ich sehr empfehlen.

Des Weiteren ist ein anständiger Code Editor sehr hilfreich. Empfehlen würde ich ich den Studio Code Server, gibt es als Addon.
Welcher Live-Syntaxprüfung und automatisches Ausfüllen verschiedener Home Assistant-Entitäten bietet.

Gruß
Osorkon

Hallo
Danke!
Jetzt hab ich den Fehler gefunden.
C.yaml ist jetzt grün.

Hallo
Danke für den guten Tipp.
Werd ich mir in jedem Fall anschauen.

1 „Gefällt mir“