-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.yaml
60 lines (48 loc) · 1.1 KB
/
common.yaml
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
esphome:
name: ${device_name}
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
- platform: esphome
#on_error:
#- button.press: restart_button
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "${friendly_name} AP"
password: "1234567890"
captive_portal:
time:
- platform: homeassistant
id: homeassistant_time
binary_sensor:
- platform: status
name: "${friendly_name} Connect"
text_sensor:
- platform: wifi_info
ip_address:
name: "${friendly_name} IP Address"
ssid:
name: "${friendly_name} SSID"
mac_address:
name: "${friendly_name} MAC Address"
sensor:
- platform: wifi_signal
name: "${friendly_name} WiFi Strength"
update_interval: 60s
- platform: uptime
name: "${friendly_name} Uptime"
button:
- platform: restart
id: restart_button
name: "${friendly_name} reboot"
entity_category: config
switch:
- platform: safe_mode
name: ${friendly_name} Safe Mode
id: device_safe_mode
entity_category: config