Skip to content

Commit 1bbb0a7

Browse files
Old example was out of date and no longer works. (#1551)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
1 parent d2c9722 commit 1bbb0a7

1 file changed

Lines changed: 37 additions & 9 deletions

File tree

  • src/docs/devices/waveshare-6ch-relay

src/docs/devices/waveshare-6ch-relay/index.md

Lines changed: 37 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ It can bought from: [https://www.waveshare.com/esp32-s3-relay-6ch.htm](https://w
2929
## Basic Config
3030

3131
```yaml
32-
# based on https://github.com/ryansch/esphome-config/blob/main/waveshare-esp32-s3-relay-6ch.yaml
32+
# Home Assistant ESPHome yaml config file for Waveshare ESP32 S3 6ch relay box
33+
# 04/29/2026
34+
# Your secrets file needs to have these entries:
35+
# wifi_ssid: "SSID"
36+
# wifi_password: "PASS"
3337

3438
esphome:
3539
name: waveshare-6ch-relay
@@ -43,10 +47,7 @@ esp32:
4347
# Enable logging
4448
logger:
4549
level: DEBUG
46-
# Enable Home Assistant API
4750
api:
48-
password: !secret api_password
49-
# RTTTL play can be called from Dev Tools or from Scritps.
5051
actions:
5152
- action: rtttl_play
5253
variables:
@@ -57,7 +58,6 @@ api:
5758

5859
ota:
5960
- platform: esphome
60-
password: !secret ota_password
6161
id: zone_controller_ota
6262

6363
wifi:
@@ -93,6 +93,25 @@ binary_sensor:
9393
then:
9494
- button.press: restart_button
9595

96+
sensor:
97+
- platform: wifi_signal
98+
name: "WiFi Signal dB"
99+
update_interval: 60s
100+
101+
text_sensor:
102+
- platform: version
103+
name: "Firmware Version"
104+
- platform: wifi_info
105+
ip_address:
106+
name: "IP Address"
107+
entity_category: diagnostic
108+
ssid:
109+
name: "Connected SSID"
110+
entity_category: diagnostic
111+
mac_address:
112+
name: "Mac Address"
113+
entity_category: diagnostic
114+
96115

97116
switch:
98117
- platform: gpio
@@ -123,23 +142,32 @@ switch:
123142
ignore_strapping_warning: true
124143
id: relay6
125144
name: Relay 6
145+
- platform: template
146+
name: Buzzer
147+
icon: mdi:volume-high
148+
turn_on_action:
149+
- rtttl.play:
150+
id: rtttl_buzzer
151+
rtttl: 'beep:d=4,o=5,b=100:16e6'
152+
turn_off_action:
153+
- rtttl.stop:
154+
id: rtttl_buzzer
126155

127156
uart:
128157
tx_pin: GPIO17
129158
rx_pin: GPIO18
130159
baud_rate: 9600
131160
id: modbus_uart
132161

133-
# buzzer
134162
output:
135163
- platform: ledc
136164
pin: GPIO21
137-
id: buzzer
165+
id: buzzer_output
138166

139167
rtttl:
140-
output: buzzer
168+
output: buzzer_output
141169
id: rtttl_buzzer
142-
gain: 30%
170+
gain: 40%
143171

144172
light:
145173
- platform: esp32_rmt_led_strip

0 commit comments

Comments
 (0)