Migrating Tasmota to ESPHome | Teckin SS30 YAML

I’m migrating from Tasmota to ESPHome on my Teckin SS30 Power Strip.

It has 4 power outlet relays and 4 USB Plugs (on one relay).

I flashed the device with Tuya-Convert and it’s been running Tasmota pretty great. However, I’m trying to get everything off MQTT and eventually be fully on ESPHome.

I wanted to share the proposed firmware and see if someone could review it before flashing - my concern is having it error out and have no way to recover it without opening it up!

This was my tasmota configuration:

Here is my ESPHome YAML Configuration

esphome:
  name: sonoff_powerstrip
  platform: ESP8266
  board: esp01_1m

wifi:
  ssid: "YourSSID"
  password: "YourPassword"

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:

switch:
  - platform: gpio
    name: "Relay1"
    id: relay1
    pin:
      number: GPIO14
      inverted: yes
  - platform: gpio
    name: "Relay2"
    id: relay2
    pin:
      number: GPIO4
      inverted: yes
  - platform: gpio
    name: "Relay3"
    pin:
      number: GPIO13
      inverted: yes
    id: relay3
  - platform: gpio
    name: "Relay4"
    id: relay4
    pin:
      number: GPIO12
      inverted: yes
  - platform: gpio
    name: "Relay5"
    id: relay5
    pin:
      number: GPIO16
      inverted: yes
      
# Led1i Red LED
# GPIO3
light:
  - platform: binary
    name: "Sonoff-PowerStrip-Red_LED"
    output: output_component_red
# Led1i Blue LED PWM
# GPIO0
  - platform: monochromatic
    name: "Sonoff-PowerStrip-Blue_LED"
    output: output_component_blue

output:
#Red LED
  - platform: gpio
    pin: GPIO3
    id: output_component_red
#Blue LED
  - platform: esp8266_pwm
    id: output_component_blue
    pin: GPIO0

# Button & Automation to toggle all switches
# GPIO5

binary_sensor:
  - platform: gpio
    pin: GPIO5
    id: button
    name: "Sonoff-PowerStrip_Button"
    on_press:
      - switch.toggle: relay1
      - switch.toggle: relay2
      - switch.toggle: relay3
      - switch.toggle: relay4
      - switch.toggle: relay5
    internal: True

The binary sensor automation should toggle all the relays on/off, like the original firmware.

Please let me know if you see anything that could be a problem. If it works, I’ll submit this to the cookbook on ESPHome.io

Thanks!

The biggest concern should be that the chip is not really an esp01_1m and then you might not be able to OTA again to it. Other than that there are no main issues.

The toggle will work, but if you toggle e.g. relay 2 off via HA when you use the button it will turn off all other relays and turn on relay 2. I wouldn’t expect it to behave like that.

hey @glmnet thanks for your insight and suggestions! I might create an automation to turn on/off all relays with a button double click or two second hold.

I did some more searching and found this post which references an australian clone of the teckin SS30:

it looks like that user also used the esp01_1m chip so it gives me some confidence in flashing it.
With all the home automation stuff its a balance between something just working and tinkering just to play around haha

I’ll report back when I flash it

Did you get this to work? I’m stuck.

What’s the issue that your experiencing?

I uploaded the binary but now it just sits there in a n ON state and reboots after about 5 minutes. I cannot reach it via the IP address anymore although I see it on my network.

I ended up using the config from here:

Is there a way to disable to status LED in ESPhome on this powerstrip?

You should be able to just remove the status_led portion of the YAML if you’re using the YAML linked above.

That did it! Thank you.

1 Like