Catching up.

This commit is contained in:
2020-12-23 15:55:17 -05:00
parent ca36b663ab
commit 6f96d1c534
10 changed files with 214 additions and 9 deletions

View File

@@ -9,7 +9,7 @@ wifi:
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Lily Fallback Hotspot"
ssid: "Lily15 Fallback Hotspot"
password: "QNWj7LmaNoD6"
manual_ip:
# Set this to the IP of the ESP
@@ -22,14 +22,36 @@ wifi:
captive_portal:
# Enable logging
logger:
level: debug
#logger:
# level: debug
# Enable Home Assistant API
api:
ota:
deep_sleep:
run_duration: 30sec
sleep_duration: 1min
id: deep_sleep_1
mqtt:
broker: 192.168.86.99
username: ha
password: lorrie
on_message:
topic: lily15/ota_mode
payload: 'ON'
then:
- deep_sleep.prevent: deep_sleep_1
text_sensor:
- platform: mqtt_subscribe
name: "Data from topic"
id: mqttsensor
topic: the/topic
spi:
clk_pin: 18
mosi_pin: 23
@@ -46,9 +68,9 @@ font:
- file: "arial.ttf"
id: font_arialbig
size: 24
- file: "times.ttf"
id: font_times
size: 16
# - file: "times.ttf"
# id: font_times
# size: 16
- file: "arial.ttf"
id: font_arialtiny
size: 10
@@ -76,8 +98,8 @@ display:
reset_pin: 16
model: 2.13in-ttgo-b73
id: display_update
update_interval: 30s
full_update_every: 30
update_interval: 10s
full_update_every: 300
rotation: 90°
lambda: |-
it.strftime(125, 0, id(font_arialbig), TextAlign::TOP_CENTER, "%a %b %e %l:%M %P", id(esptime).now());
@@ -85,5 +107,6 @@ display:
it.printf(0, 37, id(font_arial), "Tim office: %.1f°F", id(timofficetemperature).state);
it.printf(0, 57, id(font_arial), "Bedroom: %.1f°F", id(bedroomtemperature).state);
it.printf(0, 77, id(font_arial), "Outside: %.1f°F", id(backyardtemperature).state);
it.printf(125, 122, id(font_arialtiny), TextAlign::BOTTOM_CENTER, "192.168.87.15");
it.printf(0, 97, id(font_arial), "MQTT message: %s", id(mqttsensor).state.c_str());
it.printf(125, 132, id(font_arialtiny), TextAlign::BOTTOM_CENTER, "192.168.87.15");