Updating standards.
This commit is contained in:
@@ -12,44 +12,12 @@ esphome:
|
||||
- lambda: |-
|
||||
id(wake_up_reason) = log(esp_sleep_get_ext1_wakeup_status())/log(2);
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
manual_ip:
|
||||
static_ip: ${device_ip}
|
||||
gateway: 192.168.86.1
|
||||
subnet: 255.255.254.0
|
||||
fast_connect: True
|
||||
|
||||
# captive_portal:
|
||||
|
||||
# Enable logging
|
||||
<<: !include standard_wifi.yaml
|
||||
logger:
|
||||
level: INFO
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
|
||||
ota:
|
||||
<<: !include standard_mqtt.yaml
|
||||
# mqtt:
|
||||
# broker: !secret mqtt_broker
|
||||
# discovery: True
|
||||
# username: !secret mqtt_username
|
||||
# password: !secret mqtt_password
|
||||
# # keepalive: 2s
|
||||
# birth_message:
|
||||
# topic: ${device_name}/status
|
||||
# payload: coming_online_birth
|
||||
# will_message:
|
||||
# topic: ${device_name}/status
|
||||
# payload: going_offline_will
|
||||
# on_message:
|
||||
# topic: ${device_name}/ota_mode
|
||||
# payload: 'ON'
|
||||
# then:
|
||||
# - deep_sleep.prevent: deep_sleep_1
|
||||
|
||||
<<: !include standard_mqtt_deepsleep.yaml
|
||||
deep_sleep:
|
||||
run_duration: 20s
|
||||
sleep_duration: 40s #24h
|
||||
|
||||
8
standard_wifi.yaml
Normal file
8
standard_wifi.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
manual_ip:
|
||||
static_ip: ${device_ip}
|
||||
gateway: 192.168.86.1
|
||||
subnet: 255.255.254.0
|
||||
fast_connect: True
|
||||
Reference in New Issue
Block a user