Fehler im Yaml Code - bitte um Hilfe

ESPHome: mein Yaml Code:

esphome:
name: d1mini-bme280-ha02
friendly_name: D1mini_bme280-ha02

esp8266:
board: d1_mini

Enable logging

logger:

Enable Home Assistant API

api:
encryption:
key: “3YCMNeGENSKpvhJ0NgIAkiSYZnylZYgwsHqSHovpkFg=”

ota:

  • platform: esphome
    password: “05b58bce6c96d9aa4ae1d2df3468ac88”

wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password

Enable fallback hotspot (captive portal) in case wifi connection fails

ap:
ssid: “D1Mini-Bme280-Ha02”
password: “4H7x32xfAsYN”

captive_portal:

Beispielkonfigurationseintrag

i2c:
sda: D2
scl: D1
Scan: Falsch

Beispielkonfigurationseintrag

Sensor:

  • Plattform: bme280
    Temperatur:
    Name: „BME280-1 Temperatur“
    Überabtastung: 16x
    Druck:
    Name: „BME280-1 Druck“
    Feuchtigkeit:
    Name: „BME280-1 Luftfeuchtigkeit“

    Adresse ist nicht Standard!

    Adresse: 0x76
    Aktualisierungsintervall: 60 s

Beispielkonfigurationseintrag

mqtt:
Broker: Home Assistant
Benutzername: mqtt-user
Passwort: 2024mqtt2024

Aktiviere das Logging

Logger:

Home Assistant API aktivieren

API:

Fehlermeldung:
INFO ESPHome 2024.7.3
INFO Reading configuration /config/esphome/d1mini-bme280-ha02.yaml…
Failed config

Sensor: [source /config/esphome/d1mini-bme280-ha02.yaml:40]

Component not found: Sensor.

  • Plattform: bme280
    Temperatur:
    Name: „BME280-1 Temperatur“
    Überabtastung: 16x
    Druck:
    Name: „BME280-1 Druck“
    Feuchtigkeit:
    Name: „BME280-1 Luftfeuchtigkeit“
    Adresse: 118
    Aktualisierungsintervall: 60 s

Please format your code proper

f6be36681e0da431418ec7781fb6c62712941803

Maybe also ask in English. Will reach wider audience.

And also, please post in English. Use Google Translate if you have to, but it helps everyone who reads this, so we won’t all need to use a translate service.

If you must use German, there are other communities for Home Assistant for those who want to use their native language.

1 Like

No question asked but I wonder if its gonna be about esp device disconnecting due to using mqtt and api together.