esphome:
  name: node1_bmp280
  platform: ESP8266
  board: nodemcuv2

# Enable logging
logger:

# Enable Home Assistant API
api:
  password: ""

ota:
  password: ""

wifi:
  ssid: "LBMerle9"
  password: "TurdusMerula"
  fast_connect: true
  manual_ip:
    static_ip: 192.168.1.14
    gateway: 192.168.1.1
    subnet: 255.255.255.0
    dns1: 192.168.1.1

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Linkymain Fallback Hotspot"
    password: "f1Nh0HPpmz3A"

# BMP280 sensor
# I2C goes on GPIO4=sda and GPIO5=scl
i2c:
  sda: 4
  scl: 5
  scan: true
  id: bus_a
  
sensor:
  - platform: bmp280
    temperature:
      name: "node1_temperature"
      oversampling: 16x
    pressure:
      name: "node1_pressure"
    address: 0x76
    update_interval: 60s