Initial testing of ESPHome, mostly for Lily ePaper
This commit is contained in:
10
.gitignore
vendored
Normal file
10
.gitignore
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
# Gitignore settings for ESPHome
|
||||
# This is an example and may include too much for your use-case.
|
||||
# You can modify this file to suit your needs.
|
||||
/.esphome/
|
||||
**/.pioenvs/
|
||||
**/.piolibdeps/
|
||||
**/lib/
|
||||
**/src/
|
||||
**/platformio.ini
|
||||
/secrets.yaml
|
||||
6
lily/partitions.csv
Normal file
6
lily/partitions.csv
Normal file
@@ -0,0 +1,6 @@
|
||||
nvs, data, nvs, 0x009000, 0x005000,
|
||||
otadata, data, ota, 0x00e000, 0x002000,
|
||||
app0, app, ota_0, 0x010000, 0x1C0000,
|
||||
app1, app, ota_1, 0x1D0000, 0x1C0000,
|
||||
eeprom, data, 0x99, 0x390000, 0x001000,
|
||||
spiffs, data, spiffs, 0x391000, 0x00F000
|
||||
|
80
lily11.yaml
Normal file
80
lily11.yaml
Normal file
@@ -0,0 +1,80 @@
|
||||
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:
|
||||
|
||||
status_led:
|
||||
pin:
|
||||
number: 19
|
||||
# inverted: True
|
||||
|
||||
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
|
||||
|
||||
sensor:
|
||||
- platform: homeassistant
|
||||
id: bedroomtemperature
|
||||
internal: true
|
||||
entity_id: sensor.bedroomtemperature
|
||||
|
||||
#it.strftime(250, 0, id(font_arial), TextAlign::TOP_RIGHT, "%H:%M", id(esptime).now());
|
||||
#Dimensions: 122 x 250 not 128px x 296px
|
||||
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(250, 0, id(font_arialbig), TextAlign::TOP_RIGHT, "%a %b %e %l:%M %P", id(esptime).now());
|
||||
it.line(0,42,250,40);
|
||||
it.printf(1, 101, id(font_arial), "Bedroom: %.1f°F", id(bedroomtemperature).state);
|
||||
6
lily11/partitions.csv
Normal file
6
lily11/partitions.csv
Normal file
@@ -0,0 +1,6 @@
|
||||
nvs, data, nvs, 0x009000, 0x005000,
|
||||
otadata, data, ota, 0x00e000, 0x002000,
|
||||
app0, app, ota_0, 0x010000, 0x1C0000,
|
||||
app1, app, ota_1, 0x1D0000, 0x1C0000,
|
||||
eeprom, data, 0x99, 0x390000, 0x001000,
|
||||
spiffs, data, spiffs, 0x391000, 0x00F000
|
||||
|
79
lily15.yaml
Normal file
79
lily15.yaml
Normal file
@@ -0,0 +1,79 @@
|
||||
esphome:
|
||||
name: lily15
|
||||
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.15
|
||||
# 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
|
||||
|
||||
sensor:
|
||||
- platform: homeassistant
|
||||
id: timofficetemperature
|
||||
internal: true
|
||||
entity_id: sensor.tim_office_temperature
|
||||
- platform: homeassistant
|
||||
id: bedroomtemperature
|
||||
internal: true
|
||||
entity_id: sensor.bedroomtemperature
|
||||
|
||||
#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(250, 0, id(font_arialbig), TextAlign::TOP_RIGHT, "%a %b %e %l:%M %P", id(esptime).now());
|
||||
it.line(0,25,250,25);
|
||||
it.printf(0, 34, id(font_arial), "Office: %.1f°F", id(timofficetemperature).state);
|
||||
it.printf(0, 54, id(font_arial), "Bedroom: %.1f°F", id(bedroomtemperature).state);
|
||||
6
lily15/partitions.csv
Normal file
6
lily15/partitions.csv
Normal file
@@ -0,0 +1,6 @@
|
||||
nvs, data, nvs, 0x009000, 0x005000,
|
||||
otadata, data, ota, 0x00e000, 0x002000,
|
||||
app0, app, ota_0, 0x010000, 0x1C0000,
|
||||
app1, app, ota_1, 0x1D0000, 0x1C0000,
|
||||
eeprom, data, 0x99, 0x390000, 0x001000,
|
||||
spiffs, data, spiffs, 0x391000, 0x00F000
|
||||
|
1
lily15_upload
Normal file
1
lily15_upload
Normal file
@@ -0,0 +1 @@
|
||||
esphome lily15.yaml run --upload-port 192.168.87.15
|
||||
37
livingroom.yaml
Normal file
37
livingroom.yaml
Normal file
@@ -0,0 +1,37 @@
|
||||
esphome:
|
||||
name: livingroom
|
||||
platform: ESP8266
|
||||
board: esp12e
|
||||
|
||||
wifi:
|
||||
ssid: "Meneely"
|
||||
password: "punxsutawney1"
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: "Livingroom Fallback Hotspot"
|
||||
password: "QNWj7LmaNoD6"
|
||||
manual_ip:
|
||||
# Set this to the IP of the ESP
|
||||
static_ip: 192.168.87.10
|
||||
# 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:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
|
||||
ota:
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: "Living Room Dehumidifier"
|
||||
pin: 5
|
||||
|
||||
|
||||
BIN
monofonto.ttf
Normal file
BIN
monofonto.ttf
Normal file
Binary file not shown.
50
purple.yaml
Normal file
50
purple.yaml
Normal file
@@ -0,0 +1,50 @@
|
||||
esphome:
|
||||
name: purple
|
||||
platform: ESP8266
|
||||
board: nodemcuv2
|
||||
|
||||
wifi:
|
||||
ssid: "Meneely"
|
||||
password: "punxsutawney1"
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: "Purple 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:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
|
||||
ota:
|
||||
|
||||
i2c:
|
||||
sda: D2
|
||||
scl: D1
|
||||
scan: True
|
||||
id: bus_a
|
||||
|
||||
sensor:
|
||||
- platform: bme280
|
||||
temperature:
|
||||
name: "Purple_BME280 Temperature"
|
||||
oversampling: 16x
|
||||
pressure:
|
||||
name: "Purple_BME280 Pressure"
|
||||
humidity:
|
||||
name: "Purple_BME280 Humidity"
|
||||
address: 0x76
|
||||
update_interval: 60s
|
||||
|
||||
|
||||
1
write_lily
Normal file
1
write_lily
Normal file
@@ -0,0 +1 @@
|
||||
esphome lily.yaml run --upload-port /dev/ttyS6
|
||||
1
write_lily2
Normal file
1
write_lily2
Normal file
@@ -0,0 +1 @@
|
||||
esphome lily11.yaml run --upload-port /dev/ttyS9
|
||||
1
write_livingroom
Normal file
1
write_livingroom
Normal file
@@ -0,0 +1 @@
|
||||
esphome livingroom.yaml run --upload-port /dev/ttyS8
|
||||
1
write_purple
Normal file
1
write_purple
Normal file
@@ -0,0 +1 @@
|
||||
esphome purple.yaml run --upload-port /dev/ttyS8
|
||||
1
write_purple.bu
Normal file
1
write_purple.bu
Normal file
@@ -0,0 +1 @@
|
||||
esphome purple.yaml run --upload-port /dev/ttyS8 --upload-baud-rate=115200
|
||||
Reference in New Issue
Block a user