-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.yaml
59 lines (50 loc) · 1.11 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
esphome:
name: ${device_name}
comment: ${friendly_name}
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
reboot_timeout: 1h
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
# ssid: "ESPHOME"
ssid: ${device_name}
password: !secret fallback_hotspot_password
captive_portal:
ota:
password: !secret ota_password
logger:
level: INFO
web_server:
port: 80
auth:
username: !secret web_login
password: !secret web_password
switch:
- platform: restart
name: reboot
retain: false
sensor:
- platform: wifi_signal
id: wifi_signal_db
name: rssi
update_interval: 300s
- platform: copy # Reports the WiFi signal strength in %
source_id: wifi_signal_db
name: signal
filters:
- lambda: return min(max(2 * (x + 100.0), 0.0), 100.0);
unit_of_measurement: "Signal %"
- platform: uptime
name: uptime
text_sensor:
- platform: version
name: esphome_version
- platform: wifi_info
ip_address:
name: ip-address
mqtt:
broker: !secret mqtt_broker
discovery: false
reboot_timeout: 1h
id: mqtt_id