2024-01-20 00:03:43 +01:00
|
|
|
substitutions:
|
|
|
|
name: "serverroom"
|
2023-05-27 16:52:05 +02:00
|
|
|
friendly_name: "Serverraum Luft"
|
2024-01-20 00:03:43 +01:00
|
|
|
|
|
|
|
esphome:
|
|
|
|
name: ${name}
|
|
|
|
friendly_name: ${friendly_name}
|
|
|
|
name_add_mac_suffix: false
|
|
|
|
project:
|
|
|
|
name: sensor.outdoor
|
|
|
|
version: "0.8"
|
|
|
|
min_version: 2022.1.0
|
|
|
|
|
|
|
|
esp32:
|
|
|
|
board: esp32-c3-devkitm-1
|
|
|
|
framework:
|
|
|
|
type: arduino
|
2021-10-08 15:57:20 +02:00
|
|
|
|
|
|
|
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:
|
|
|
|
encryption:
|
|
|
|
key: !secret apikey
|
|
|
|
|
|
|
|
ota:
|
|
|
|
password: !secret ota
|
|
|
|
|
2021-12-31 00:41:07 +01:00
|
|
|
# Initialize I²C
|
|
|
|
i2c:
|
|
|
|
- id: bus_a
|
2024-01-20 00:03:43 +01:00
|
|
|
sda: 4
|
|
|
|
scl: 3
|
2021-12-31 00:41:07 +01:00
|
|
|
scan: true
|
|
|
|
|
2024-01-20 00:03:43 +01:00
|
|
|
# BMP280 sensor
|
2021-10-08 15:57:20 +02:00
|
|
|
sensor:
|
2021-12-31 00:41:07 +01:00
|
|
|
- platform: bmp280
|
|
|
|
i2c_id: bus_a
|
2021-10-08 15:57:20 +02:00
|
|
|
temperature:
|
2021-12-31 00:41:07 +01:00
|
|
|
name: "Serveraum Temperatur"
|
|
|
|
oversampling: 16x
|
|
|
|
pressure:
|
|
|
|
name: "Luftdruck"
|
|
|
|
address: 0x76
|
2021-10-08 15:57:20 +02:00
|
|
|
update_interval: 60s
|
|
|
|
|
|
|
|
# WiFi signal strength
|
|
|
|
- platform: wifi_signal
|
|
|
|
name: "WiFi Signalstärke"
|
|
|
|
id: wifisignal
|
|
|
|
update_interval: 60s
|