109 lines
2.2 KiB
YAML
109 lines
2.2 KiB
YAML
|
|
esphome:
|
|
name: badesee01
|
|
platform: ESP32
|
|
board: heltec_wifi_lora_32_V2
|
|
|
|
#Sensoren Einbindung
|
|
dallas:
|
|
- pin: GPIO17
|
|
|
|
#Wassertemperaturen 1-4
|
|
sensor:
|
|
- platform: dallas
|
|
address: 0xC400000D09BE3328
|
|
name: "Wasser 0,5m: #1"
|
|
id: m1
|
|
- platform: dallas
|
|
address: 0x9400000D6A4F8C28
|
|
name: "Wasser 3,0m: #3"
|
|
id: m3
|
|
- platform: dallas
|
|
address: 0xB400000D0AC31928
|
|
name: "Wasser 2,0m: #2"
|
|
id: m2
|
|
- platform: dallas
|
|
address: 0xD400000D6A863528
|
|
name: "Wasser 4,0m: #4"
|
|
id: m4
|
|
|
|
#Luftwerte - Temperatur und Feuchtigkeit
|
|
- platform: dht
|
|
model: AM2302
|
|
pin: GPIO23
|
|
temperature:
|
|
name: "Schaltschrank Temperatur"
|
|
id: m5
|
|
humidity:
|
|
name: "Luftfeuchtigkeit"
|
|
id: m6
|
|
update_interval: 10s
|
|
|
|
# kleines Display im Schaltkasten Ansteuerung
|
|
font:
|
|
- file: "fonts/Calibri Bold.ttf"
|
|
id: font_cb
|
|
size: 15
|
|
|
|
i2c:
|
|
sda: GPIO4
|
|
scl: GPIO15
|
|
|
|
display:
|
|
- platform: ssd1306_i2c
|
|
model: "SSD1306 128x64"
|
|
reset_pin: GPIO16
|
|
address: 0x3C
|
|
|
|
lambda: |-
|
|
char displayString[30] = "";
|
|
it.printf(0, 0, id(font_cb), "Wasser 0,5m: %1.1f°C", id(m1).state);
|
|
it.printf(0, 12, id(font_cb), "Wasser 2,0m: %1.1f°C", id(m2).state);
|
|
it.printf(0, 24, id(font_cb), "Wasser 3,0m: %1.1f°C", id(m3).state);
|
|
it.printf(0, 36, id(font_cb), "Wasser 4,0m: %1.1f°C", id(m4).state);
|
|
# it.printf(0, 48, id(font_cb), "Luft auf Steg: 15°C");
|
|
# it.printf(0, 48, id(font_cb), "Luftfeuchtigkeit: 15°C");
|
|
|
|
|
|
|
|
# Anschlüsse vom ESP32 in die weite Welt ab hier
|
|
|
|
wifi:
|
|
networks:
|
|
- ssid: "BadeseeFritz"
|
|
password: "16746209631486215958"
|
|
- ssid: "1725-WLAN"
|
|
password: "2699233687601022"
|
|
|
|
|
|
# Enable logging
|
|
logger:
|
|
|
|
# Enable Home Assistant API
|
|
api:
|
|
password: ""
|
|
|
|
ota:
|
|
password: ""
|
|
|
|
#LoRaWan?????:
|
|
|
|
#mqtt:
|
|
# broker: !secret mqtt_broker
|
|
# username: !secret mqtt_username
|
|
# password: !secret mqtt_password
|
|
# port: !secret mqtt_port
|
|
# # Set to true when finished testing to set MQTT retain flag
|
|
# discovery_retain: false
|
|
|
|
|
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
|
# ap:
|
|
# ssid: "Badesee01 Fallback Hotspot"
|
|
# password: "CP8YLG1i7cOF"
|
|
|
|
switch:
|
|
- platform: restart
|
|
name: "Example Device Restart"
|
|
|