Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/docs/devices/ESP32-Relay-X1/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ was unable to flash with a USB cable.

| GPIO | Connected onboard to |
| ------ | -------------------- |
| GPIO09 | Button |
| GPIO19 | Relay |
| GPIO02 | LED |
| GPIO00 | Button |
| GPIO16 | Relay |
| GPIO23 | LED |

## Basic Config

Expand Down Expand Up @@ -73,27 +73,27 @@ light:
name: "ESP32 Led"
restore_mode: ALWAYS_OFF
pin:
number: GPIO02
number: GPIO23
inverted: False

switch:
- platform: gpio
Comment thread
yaleman marked this conversation as resolved.
pin: GPIO19
pin: GPIO16
name: "ESP32 Relay"
id: ESP32_relay

binary_sensor:
- platform: gpio
pin:
number: GPIO09
number: GPIO00
mode: INPUT_PULLUP
name: Button
filters:
- invert
- delayed_on_off: 50ms
on_press:
then:
- switch.turn_on: ESP32_relay
- switch.toggle: ESP32_relay
```

## Enclosure
Expand Down
Loading