Skip to content

Commit

Permalink
Update index.md (#528)
Browse files Browse the repository at this point in the history
* Update index.md

Add comment about button being GPIO0 and to yaml binary_sensor showing GPIO0 usage

* Fix linting finding

---------

Co-authored-by: Ryan Hoffman <tekmaven@users.noreply.github.com>
  • Loading branch information
nsolvepaul and tekmaven authored Oct 12, 2023
1 parent 73d0197 commit bdc1784
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/docs/devices/ESP32-Relay-X1/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Each relay has COM+NO+NC exposed. Each relay supports 10Amp max load.

The board can be powered either via 7-30VDC or via 5VDC (separate connectors).

The onboard button is connected to GPI00

I bought it from aliexpress.

## GPIO Pinout
Expand Down Expand Up @@ -79,4 +81,18 @@ switch:
pin: GPIO16
name: "ESP32 Relay"
id: ESP32_relay

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

```

0 comments on commit bdc1784

Please sign in to comment.