Initial Commit
This commit is contained in:
@@ -0,0 +1,85 @@
|
||||
|
||||
esphome:
|
||||
name: waveshare-test
|
||||
friendly_name: WaveShare Test
|
||||
|
||||
esp32:
|
||||
board: esp32dev
|
||||
framework:
|
||||
type: arduino
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
encryption:
|
||||
key: "tY/skPnkQn1sZRBYYJ4LL571z+aA1P463WvaX58ju2w="
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: "Esphome-Web-D05329"
|
||||
password: "ZqgvIQnFz4Ib"
|
||||
|
||||
captive_portal:
|
||||
|
||||
|
||||
spi:
|
||||
clk_pin: 13
|
||||
mosi_pin: 14
|
||||
|
||||
|
||||
|
||||
font:
|
||||
- file: './fonts/OpenSans-Light.ttf'
|
||||
id: font10
|
||||
size: 10
|
||||
|
||||
- file: './fonts/OpenSans-Light.ttf'
|
||||
id: font22
|
||||
size: 22
|
||||
|
||||
- file: './fonts/OpenSans-Light.ttf'
|
||||
id: font14
|
||||
size: 14
|
||||
|
||||
time:
|
||||
- platform: homeassistant
|
||||
id: esptime
|
||||
timezone: Europe/Berlin
|
||||
|
||||
sensor:
|
||||
|
||||
|
||||
|
||||
# Externe Wetter Sensoren
|
||||
- platform: homeassistant
|
||||
id: windgeschwindigkeit
|
||||
entity_id: sensor.mering_bauhof_windgeschwindigkeit
|
||||
internal: true
|
||||
|
||||
|
||||
display:
|
||||
- platform: waveshare_epaper
|
||||
cs_pin: 15
|
||||
dc_pin: 27
|
||||
busy_pin: 25
|
||||
reset_pin: 26
|
||||
model: 7.50inv2
|
||||
update_interval: 60s
|
||||
lambda: |-
|
||||
|
||||
|
||||
//Time
|
||||
it.strftime(540, 100, id(font22),TextAlign::BOTTOM_LEFT, "%H:%M", id(esptime).now());
|
||||
it.strftime(540, 110, id(font14),TextAlign::BOTTOM_LEFT, "%A, %d.%m.%y, KW %W", id(esptime).now());
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user