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!