Shelly 1 Gen3 - Relay will not work (multiple devices) - What is issue?

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:

I think it uses different gpio than Mini.
Try :
pin: 5
for the output

Thanks, I will try pin 5 and report back shortly. Pretty sure I tried that but maybe not…

Worked like a charm. Kinda feel dumb as I thought I had tried that. Maybe it was a another non-working combo. Either way, all I needed to change was pin 7 to pin 5 and we’re golden!

Easy win! Thanks!

You’re welcome!

Old topic but… any idea what the i2c gpio’s are?
No luck, I think, with
sda: GPIO6
scl: GPIO7
or

sda: GPIO12
scl: GPIO14

What you mean with that?
Shelly doesn’t have specific I2C gpios exposed.

Probably for the sensors.

Like here for the two pm.

I am actually looking into that too at the moment. Would be nice to switch off the relay if the temperature gets too high.

At the moment I am torn between the 1 and the 1 mini. The one mini needs soldering, but it’s hard to find a full config for the 1. I haven’t found one for the one that includes all the sensors.

Old one but I found the exposed gpio’s, power and ground I could use for i2c. Flashed esphome and have them running i2c sensors. Needs to be on DC though due to the way the power routes and AC potential if you go line voltage.

Does anyone know which GPIO are used for the switch and button and if this has a bl0942 UART connected?