Quick and dirty of it is that I have flashed multiple Shelly 1 Gen3 devices with ESPHome. I can add them to HA and view the web server, should I configure it. But for the life of me cannot get the relay to activate. Connects to Wi-Fi, shows temp, allows me to send the command to open the relay. Say it’s “on” but I never hear a click. I’ve tried Tasmota as well w/o luck. Unfortunately since they’ve been erased, I don’t seem to be able to factory reset to simply try with the Shelly app.
Any ideas as to what I am doing wrong?
Here is my ESPHome config for the device:
substitutions:
device_name: "Shelly 1 Gen3"
# Higher value gives lower watt readout
current_res: "0.001"
# Lower value gives lower voltage readout
voltage_div: "1925"
esphome:
name: shelly-1-g3
platformio_options:
board_build.f_cpu: 160000000L
esp32:
board: esp32-c3-devkitm-1
flash_size: 8MB
framework:
type: esp-idf
version: recommended
sdkconfig_options:
COMPILER_OPTIMIZATION_SIZE: y
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: "Shelly Office Fallback Hotspot"
password: !secret ap_password
logger:
api:
password: !secret api_password
ota:
password: !secret ota_password
platform: esphome
web_server:
port: 80
auth:
username: admin
password: !secret web_server_password
version: 2
output:
- platform: gpio
id: "relay_output"
pin: 7
switch:
- platform: output
id: "relay"
name: "Relay"
output: "relay_output"
binary_sensor:
- platform: gpio
name: "Switch"
pin: 10
on_press:
then:
- switch.toggle: "relay"
filters:
- delayed_on_off: 50ms
- platform: gpio
name: "Button"
pin:
number: 1
inverted: yes
mode:
input: true
pullup: true
Here is the wiring for the “smart” extension cord I am trying to make: