working eink display
This commit is contained in:
71
local_code/ESPHome/configuration.yaml
Normal file
71
local_code/ESPHome/configuration.yaml
Normal file
@ -0,0 +1,71 @@
|
||||
external_components:
|
||||
- source: my_components
|
||||
components: [waveshare_epaper]
|
||||
|
||||
esphome:
|
||||
name: doorwhat
|
||||
friendly_name: doorwhat
|
||||
|
||||
esp32:
|
||||
board: esp32dev
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
encryption:
|
||||
key: "gLfRXKqMU9IvvwZnIdrWYIclAnc4q5sHVwTkRzUxKyw="
|
||||
|
||||
ota:
|
||||
- platform: esphome
|
||||
password: "1618b7dc423684c5d3661481ce284359"
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: "Doorwhat Fallback Hotspot"
|
||||
password: "KBiNyP7EkHCJ"
|
||||
|
||||
captive_portal:
|
||||
|
||||
sensor:
|
||||
- platform: homeassistant
|
||||
entity_id: sensor.shellyhtg3_8cbfeaa53d88_humidity
|
||||
id: bad_feuchtigkeit
|
||||
|
||||
spi:
|
||||
clk_pin: 2
|
||||
mosi_pin: 15
|
||||
|
||||
|
||||
color:
|
||||
- id: red
|
||||
hex: "FF0000"
|
||||
- id: black
|
||||
hex: "FFFFFF"
|
||||
|
||||
display:
|
||||
- platform: waveshare_epaper
|
||||
model: 2.90in3c
|
||||
cs_pin: 4
|
||||
dc_pin: 16
|
||||
reset_pin: 17
|
||||
busy_pin: 5
|
||||
rotation: 270
|
||||
reset_duration: 2ms
|
||||
update_interval: 30s
|
||||
lambda: !lambda |-
|
||||
it.print(0, 4, id(my_font), id(black), "DoorWhat v0.1");
|
||||
it.print(0, 40, id(my_font), id(red), "Mehr kommt demnaechst");
|
||||
it.printf(0, 80, id(my_font), id(red), "Feuchtigkeit Bad %.1f", id(bad_feuchtigkeit).state);
|
||||
|
||||
font:
|
||||
- file: "gfonts://Roboto"
|
||||
id: my_font
|
||||
size: 20
|
Reference in New Issue
Block a user