-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.yaml
More file actions
106 lines (89 loc) · 2.31 KB
/
common.yaml
File metadata and controls
106 lines (89 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# Gemeinsame Komponenten für erweiterte Konfiguration
# Diese Datei enthält zusätzliche Features, die die Basis-Pakete erweitern
# ESPHome Core-Konfiguration überschreiben
esphome:
name: ${devicename}
friendly_name: ${friendly_name}
comment: ${device_comment}
name_add_mac_suffix: false
# Logger-Konfiguration (INFO für normale Logs, DEBUG für Fehlersuche)
logger:
level: INFO
# WiFi-Konfiguration überschreiben
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
min_auth_mode: WPA2 # Nur sichere Verschlüsselung akzeptieren
# Fallback-AP wenn WiFi-Verbindung fehlschlägt
ap:
ssid: "${friendly_name} Fallback"
password: !secret ap_password
# API mit Verschlüsselung überschreiben
api:
encryption:
key: !secret encryption_key
# Zeit von Home Assistant synchronisieren
time:
- platform: homeassistant
id: homeassistant_time
# OTA-Updates mit Passwort aktivieren
ota:
- platform: esphome
password: !secret ota_password
# MQTT-Unterstützung aktivieren
mqtt:
broker: !secret mqtt_broker
discovery: false
# Topic-Präfix: Alle Geräte unter esphome/${friendly_name}
topic_prefix: esphome/${friendly_name}
# Web-Server aktivieren
web_server:
port: 80
# Captive Portal aktivieren (Fallback-Konfiguration bei WiFi-Problemen)
captive_portal:
# Debug-Komponente aktivieren
debug:
# Restart-Button für Fernwartung
button:
- platform: restart
name: "Restart"
entity_category: diagnostic
# Diagnostic-Sensoren
sensor:
# WiFi Signal Stärke
- platform: wifi_signal
name: "WiFi Signal"
update_interval: 60s
entity_category: diagnostic
# Betriebszeit seit letztem Neustart
- platform: uptime
name: "Betriebszeit"
update_interval: 60s
entity_category: diagnostic
# Text-Sensoren
text_sensor:
# WLAN-Konfiguration
- platform: wifi_info
ssid:
name: "WiFi SSID"
bssid:
name: "WiFi BSSID"
ip_address:
name: "IP Adresse"
mac_address:
name: "MAC Adresse"
# ESPHome Version
- platform: version
name: "ESPHome Version"
entity_category: diagnostic
# Debug Text-Sensoren
- platform: debug
reset_reason:
name: "Neustart Grund"
entity_category: diagnostic
# Binary-Sensoren
binary_sensor:
# Verbindungsstatus
- platform: status
name: "Status"
entity_category: diagnostic