Got another pair of these recently and am going to flash them soon!
I’ve been strapped for GPIOs with the ESP-01 boards I have around and it was just too tempting to leave some of the internal pins untouched with these sockets. I therefore drilled a small hole on the left side of the two plugs I’ve done already, nearest to the wall, to allow me to run a GND and RX wire out of the device to use as an additional switch.
# Disable TX/RX logging.
logger:
baud_rate: 0
And then farther down in the “binary_sensor” area:
binary_sensor:
- platform: gpio
id: button
name: ${socket_name}_input
pin:
# Connected to GPIO
number: GPIO3
mode: INPUT_PULLUP
inverted: true
filters:
# Small filter, to debounce the button press if needed
# - delayed_on: 10ms
# - delayed_off: 500ms
One additional note is that I’ve been using this for the ZooZee plugs, which are identical to the Teckin SP20, they have “Model: SA102” on the back and are just a rebranded version.
Attaching a diagram I made for my own reference off of @aweiss’s input for a quick reference in soldering: