forked from landonr/lilygo-tdisplays3-esphome
-
Notifications
You must be signed in to change notification settings - Fork 1
/
s3.yaml
executable file
·62 lines (52 loc) · 1.25 KB
/
s3.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
esphome:
name: s3
includes:
- tdisplays3/tft_espi_display.h
- tdisplays3/Free_Fonts.h
libraries:
- SPI
- FS
- SPIFFS
- tdisplays3=https://github.com/landonr/lilygo-tdisplays3-esphome.git
esp32:
board: esp32-s3-devkitc-1
variant: esp32s3
framework:
type: arduino
version: 2.0.3
platform_version: 5.0.0
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
password: "6ada29f6f41ce1685d29d406efd25fa4"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "S3 Fallback Hotspot"
password: "zQ9tuPKIfFMu"
time:
- platform: homeassistant
id: ha_time
interval:
- interval: 1s
then:
- lambda: |-
// displayControllerComponent->clear();
displayControllerComponent->drawBar();
displayControllerComponent->drawString(id(ha_time).now().strftime("%Y-%m-%d %H:%M:%S:%S"));
switch:
- platform: gpio
pin: GPIO38
name: "Backlight"
id: backlight
internal: true
restore_mode: RESTORE_DEFAULT_ON
custom_component:
lambda: |-
App.register_component(displayControllerComponent);
return {displayControllerComponent};
id: displayComponent