Hello everyone,
I’m having trouble configuring an SGP40 sensor with ESPHome. I’ve copied the example configuration from the ESPHome documentation, but I keep getting an error message that says Platform not found: 'sensor.sgp4x'
. I’ve double-checked the formatting and syntax of my configuration file and everything appears to be correct. I’ve also updated ESPHome to the latest version.
Has anyone else experienced this issue or have any suggestions on how to resolve it? Any help would be greatly appreciated.
Thank you!
esphome:
name: test
esp8266:
board: d1_mini
# Enable logging
#logger:
# Enable Home Assistant API
api:
ota:
password: "*"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "test"
password: "*"
captive_portal:
# Enables i2c
i2c:
sda: 4
scl: 5
scan: true
id: bus_a
sensor:
# SHT40
- platform: sht4x
temperature:
name: "Temperature A"
accuracy_decimals: 2
humidity:
name: "Humidity A"
accuracy_decimals: 2
address: 0x44
update_interval: 30s
- platform: sgp4x
voc:
name: "VOC Index A"
INFO Reading configuration /config/esphome/test.yaml...
Failed config
sensor.sgp4x: [source /config/esphome/test.yaml:69]
Platform not found: 'sensor.sgp4x'.
platform: sgp4x
voc:
name: VOC Index