homeassistant-config/esphome/serverroom.yaml

57 lines
996 B
YAML

esphome:
name: serverroom
friendly_name: "Serverraum Luft"
platform: ESP32
board: nodemcu-32s
wifi:
ssid: "Voltage-legacy"
password: !secret voltage_legacy_psk
use_address: serverroom.home
power_save_mode: high
fast_connect: on
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Serverroom Fallback Hotspot"
password: !secret fallback_psk
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
password: !secret api
encryption:
key: !secret apikey
ota:
password: !secret ota
# Initialize I²C
i2c:
- id: bus_a
sda: 32
scl: 25
scan: true
# DHT22 sensor
sensor:
- platform: bmp280
i2c_id: bus_a
temperature:
name: "Serveraum Temperatur"
oversampling: 16x
pressure:
name: "Luftdruck"
address: 0x76
update_interval: 60s
# WiFi signal strength
- platform: wifi_signal
name: "WiFi Signalstärke"
id: wifisignal
update_interval: 60s