51 lines
858 B
YAML
Executable File
51 lines
858 B
YAML
Executable File
esphome:
|
|
name: betta-tank
|
|
|
|
esp8266:
|
|
board: nodemcuv2
|
|
|
|
# Enable logging
|
|
logger:
|
|
|
|
# Enable Home Assistant API
|
|
api:
|
|
password: "8zXQf2Bkam2oVt"
|
|
|
|
ota:
|
|
password: "8zXQf2Bkam2oVt"
|
|
|
|
wifi:
|
|
ssid: "Aperture"
|
|
password: "cavie007"
|
|
|
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
|
ap:
|
|
ssid: "Betta tank sensors"
|
|
password: "exjogUIFHifR"
|
|
|
|
captive_portal:
|
|
|
|
dallas:
|
|
- pin: GPIO12
|
|
|
|
|
|
i2c:
|
|
# SDA is connected to pin D1
|
|
sda: GPIO5
|
|
# SCL is connected to pin D2
|
|
scl: GPIO4
|
|
scan: true
|
|
|
|
sensor:
|
|
- platform: dallas
|
|
address: 0x62012112cc9b8f28
|
|
name: "Betta tank water temperature"
|
|
id: betta_water_temp
|
|
- platform: bmp280
|
|
temperature:
|
|
name: "Betta tank ambient temperature"
|
|
oversampling: 4x
|
|
pressure:
|
|
name: "Betta tank ambient pressure"
|
|
address: 0x76
|
|
update_interval: 60s |