/
T-Relay-ESP32S3.yaml
110 lines (95 loc) · 1.94 KB
/
T-Relay-ESP32S3.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
esphome:
name: LilyGo-T-RelayS3
friendly_name: relay
esp32:
board: esp32-s3-devkitc-1
framework:
type: arduino
sn74hc595:
- id: "sn74hc595_hub"
data_pin: 7
clock_pin: 5
latch_pin: 6
sr_count: 1
# Individual outputs
switch:
- platform: gpio
# SN74HC595 Pin #0
name: "Switch 1"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 0
number: 0
inverted: false
id: relay1
- platform: gpio
# SN74HC595 Pin #1
name: "Switch 2"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 1
number: 1
inverted: false
id: relay2
- platform: gpio
# SN74HC595 Pin #2
name: "Switch 3"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 2
number: 2
inverted: false
id: relay3
- platform: gpio
# SN74HC595 Pin #3
name: "Switch 4"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 3
number: 3
inverted: false
id: relay4
- platform: gpio
# SN74HC595 Pin #4
name: "Switch 5"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 4
number: 4
inverted: false
id: relay5
- platform: gpio
# SN74HC595 Pin #5
name: "Switch 6"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 5
number: 5
inverted: false
id: relay6
mqtt:
broker: Your MQTT server
# username: Your MQTT Username
# password: Your MQTT Password
port: Your MQTT port
# Enable logging
logger:
level: DEBUG
baud_rate: 115200
logs:
mqtt.component: DEBUG
mqtt.client: ERROR
# Enable Home Assistant API
api:
encryption:
key: "E4AvftHULay+f6wwnKgHzsu7q7nzUdcrHp/Mjhyyjvk="
ota:
password: "0204c885b8f04777ae94a8e51b4619c5"
wifi:
ssid: "Your WiFi ssid"
password: "Your WiFi password"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Relay Fallback Hotspot"
password: "fltzKdbsbDEn"
captive_portal: