2023-05-27 16:52:05 +02:00
|
|
|
substitutions:
|
|
|
|
name: "aussensensor"
|
|
|
|
friendly_name: "Außensensor"
|
|
|
|
|
2021-08-24 13:08:35 +02:00
|
|
|
esphome:
|
2023-05-27 16:52:05 +02:00
|
|
|
name: ${name}
|
|
|
|
friendly_name: ${friendly_name}
|
|
|
|
name_add_mac_suffix: false
|
|
|
|
project:
|
|
|
|
name: sensor.outdoor
|
|
|
|
version: "0.8"
|
|
|
|
min_version: 2022.1.0
|
|
|
|
|
|
|
|
esp32:
|
2021-08-24 13:08:35 +02:00
|
|
|
board: nodemcu-32s
|
2023-05-27 16:52:05 +02:00
|
|
|
framework:
|
|
|
|
type: arduino
|
2021-08-24 13:08:35 +02:00
|
|
|
|
|
|
|
wifi:
|
|
|
|
ssid: "Voltage-legacy"
|
|
|
|
password: !secret voltage_legacy_psk
|
2023-05-27 16:52:05 +02:00
|
|
|
use_address: ${name}.home
|
2021-08-24 13:08:35 +02:00
|
|
|
power_save_mode: high
|
|
|
|
fast_connect: on
|
|
|
|
|
|
|
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
|
|
|
ap:
|
|
|
|
ssid: "Aussensensor Fallback Hotspot"
|
|
|
|
password: !secret fallback_psk
|
|
|
|
|
|
|
|
captive_portal:
|
|
|
|
|
|
|
|
# Enable logging
|
|
|
|
logger:
|
|
|
|
|
|
|
|
# Enable Home Assistant API
|
|
|
|
api:
|
2021-10-08 11:27:55 +02:00
|
|
|
encryption:
|
|
|
|
key: !secret apikey
|
2021-08-24 13:08:35 +02:00
|
|
|
|
|
|
|
ota:
|
|
|
|
password: !secret ota
|
|
|
|
|
|
|
|
# DHT22 sensor
|
|
|
|
sensor:
|
|
|
|
- platform: dht
|
|
|
|
model: dht22
|
|
|
|
pin: 25
|
|
|
|
temperature:
|
|
|
|
name: "Temperatur außen"
|
|
|
|
humidity:
|
|
|
|
name: "Luftfeuchtigkeit außen"
|
|
|
|
update_interval: 60s
|
|
|
|
# WiFi signal strength
|
|
|
|
- platform: wifi_signal
|
|
|
|
name: "WiFi Signalstärke"
|
|
|
|
update_interval: 60s
|