forked from dashdrum/esphome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflespi-test.yaml
65 lines (54 loc) · 1.2 KB
/
flespi-test.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
61
62
63
64
65
substitutions:
device_name: flespi-test
upper_device_name: Flespi Test
ip_address: 192.168.37.220
esphome:
name: $device_name
platform: ESP8266
board: d1_mini
wifi:
networks:
- ssid: $gentryrv_ssid
password: $gentryrv_password
- ssid: !secret wifi_iot_ssid
password: !secret wifi_iot_password
manual_ip:
static_ip: $ip_address
gateway: 192.168.37.1
subnet: 255.255.255.0
dns1: 8.8.8.8
dns2: 1.1.1.1
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: $upper_device_name
password: !secret hotspot_password
captive_portal:
# Enable logging
logger:
level: DEBUG
web_server:
port: 80
# mqtt:
mqtt:
id: mqtt_client
broker: !secret flespi_broker
port: !secret flespi_port
username: !secret flespi_token
birth_message:
topic: $device_name/availability
payload: online
will_message:
topic: $device_name/availability
payload: offline
# Enable Home Assistant API
# api:
ota:
id: my_ota
sensor:
- platform: wifi_signal
name: $upper_device_name WiFi Signal
update_interval: 60s
icon: mdi:wifi
button:
- platform: restart
name: $upper_device_name Restart