Skip to content

Instantly share code, notes, and snippets.

@peyanski
Created December 27, 2022 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peyanski/5a0dd74ff1bca4df2367ad14f7c321b2 to your computer and use it in GitHub Desktop.
Save peyanski/5a0dd74ff1bca4df2367ad14f7c321b2 to your computer and use it in GitHub Desktop.
esphome:
name: temperature-sensor-bmp280
esp8266:
board: d1_mini
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Temperature-Sensor-Bmp280"
password: "E19mmSDVlWnt"
captive_portal:
i2c:
sda: 4
scl: 5
scan: True
sensor:
- platform: bmp280
temperature:
name: "BMP280 Temperature"
oversampling: 16x
pressure:
name: "BMP280 Pressure"
address: 0x76
update_interval: 60s
web_server:
port: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment