Skip to content

Instantly share code, notes, and snippets.

@jungervin
Last active March 30, 2024 13:08
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jungervin/e23a41062fd1b1190775e8b7f807e9f1 to your computer and use it in GitHub Desktop.
Save jungervin/e23a41062fd1b1190775e8b7f807e9f1 to your computer and use it in GitHub Desktop.
esphomeyaml:
name: test
platform: ESP8266
board: d1_mini
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
manual_ip:
static_ip: 192.168.1.31
gateway: 192.168.1.254
subnet: 255.255.255.0
# Example configuration entry
i2c:
sda: D2
scl: D1
scan: False
# Example configuration entry
sensor:
- platform: bme280
temperature:
name: "BME280-1 Temperature"
oversampling: 16x
pressure:
name: "BME280-1 Pressure"
humidity:
name: "BME280-1 Humidity"
# Address is not default!
address: 0x76
update_interval: 60s
# Example configuration entry
mqtt:
broker: !secret mqtt_addr
username: !secret mqtt_user
password: !secret mqtt_password
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
@patricker
Copy link

This helped me get the BME280 working on my D1 Mini. Thanks for posting it!

@klejejs
Copy link

klejejs commented Nov 29, 2022

Thanks very much for the configuration! It helped me too.

@HenrikSte
Copy link

Thanks!. same here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment