90 lines
2.0 KiB
YAML
90 lines
2.0 KiB
YAML
esphome:
|
|
name: lily11
|
|
platform: ESP32
|
|
board: esp32dev
|
|
|
|
wifi:
|
|
ssid: "Meneely"
|
|
password: "punxsutawney1"
|
|
|
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
|
ap:
|
|
ssid: "Lily Fallback Hotspot"
|
|
password: "QNWj7LmaNoD6"
|
|
manual_ip:
|
|
# Set this to the IP of the ESP
|
|
static_ip: 192.168.87.11
|
|
# Set this to the IP address of the router. Often ends with .1
|
|
gateway: 192.168.86.1
|
|
# The subnet of the network. 255.255.255.0 works for most home networks.
|
|
subnet: 255.255.254.0
|
|
|
|
captive_portal:
|
|
|
|
# Enable logging
|
|
logger:
|
|
level: debug
|
|
|
|
# Enable Home Assistant API
|
|
api:
|
|
|
|
ota:
|
|
|
|
spi:
|
|
clk_pin: 18
|
|
mosi_pin: 23
|
|
miso_pin: 17
|
|
|
|
time:
|
|
- platform: homeassistant
|
|
id: esptime
|
|
|
|
font:
|
|
- file: "arial.ttf"
|
|
id: font_arial
|
|
size: 20
|
|
- file: "arial.ttf"
|
|
id: font_arialbig
|
|
size: 24
|
|
- file: "times.ttf"
|
|
id: font_times
|
|
size: 16
|
|
- file: "arial.ttf"
|
|
id: font_arialtiny
|
|
size: 10
|
|
|
|
sensor:
|
|
- platform: homeassistant
|
|
id: timofficetemperature
|
|
internal: true
|
|
entity_id: sensor.tim_office_temperature
|
|
- platform: homeassistant
|
|
id: bedroomtemperature
|
|
internal: true
|
|
entity_id: sensor.bedroomtemperature
|
|
- platform: homeassistant
|
|
id: backyardtemperature
|
|
internal: true
|
|
entity_id: sensor.backyardtemperature
|
|
|
|
#Dimensions: 122 x 250
|
|
display:
|
|
- platform: waveshare_epaper
|
|
cs_pin: 5
|
|
dc_pin: 17
|
|
busy_pin: 4
|
|
reset_pin: 16
|
|
model: 2.13in-ttgo-b73
|
|
id: display_update
|
|
update_interval: 30s
|
|
full_update_every: 30
|
|
rotation: 90°
|
|
lambda: |-
|
|
it.strftime(125, 0, id(font_arialbig), TextAlign::TOP_CENTER, "%a %b %e %l:%M %P", id(esptime).now());
|
|
it.line(0,25,250,25);
|
|
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.11");
|
|
|