Updating standards.
This commit is contained in:
@@ -12,44 +12,12 @@ esphome:
|
|||||||
- lambda: |-
|
- lambda: |-
|
||||||
id(wake_up_reason) = log(esp_sleep_get_ext1_wakeup_status())/log(2);
|
id(wake_up_reason) = log(esp_sleep_get_ext1_wakeup_status())/log(2);
|
||||||
|
|
||||||
wifi:
|
<<: !include standard_wifi.yaml
|
||||||
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
|
|
||||||
logger:
|
logger:
|
||||||
level: INFO
|
level: INFO
|
||||||
|
|
||||||
# Enable Home Assistant API
|
|
||||||
api:
|
api:
|
||||||
|
|
||||||
ota:
|
ota:
|
||||||
<<: !include standard_mqtt.yaml
|
<<: !include standard_mqtt_deepsleep.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
|
|
||||||
|
|
||||||
deep_sleep:
|
deep_sleep:
|
||||||
run_duration: 20s
|
run_duration: 20s
|
||||||
sleep_duration: 40s #24h
|
sleep_duration: 40s #24h
|
||||||
@@ -94,4 +62,4 @@ binary_sensor:
|
|||||||
number: GPIO35
|
number: GPIO35
|
||||||
mode: INPUT_PULLUP
|
mode: INPUT_PULLUP
|
||||||
name: "TKM Test 35 (green)"
|
name: "TKM Test 35 (green)"
|
||||||
id: tkm_test35
|
id: tkm_test35
|
||||||
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