Link

Teckin SS30

  1. GPIO Pinout
  2. Basic Configuration

GPIO Pinout

Pin Function
GPIO00 Status LED
GPIO04 Relay 1 inverted
GPIO05 Push Button
GPIO12 Relay 3 inverted
GPIO13 Relay 2 inverted
GPIO14 Relay 4 inverted
GPIO16 Relay 5 not inverted

Basic Configuration

# Basic Config
---
esphome:
  name: bedroom_ss30
  platform: ESP8266
  board: esp01_1m

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  manual_ip:
    static_ip: !secret bedroom_ss30_ip
    gateway: !secret house_gateway
    subnet: 255.255.255.0

# Enable logging
logger:

# Enable Home Assistant API
api:
  password: !secret ha_esp_api_pw

ota:
  password: !secret bedroom_ss30_ota
  
  
sensor:
  - platform: wifi_signal
    name: "Bedroom SS30 WiFi signal"
    update_interval: 60s

  - platform: uptime
    name: "Bedroom SS30 uptime"

text_sensor:
  - platform: version
    name: "Bedroom SS30 ESPHome version"  

switch:
  - platform: gpio
    name: "Bedroom SS30 relay 1"
    pin: GPIO04
    inverted: yes
    id: relay1
  - platform: gpio
    name: "Bedroom SS30 relay 2"
    pin: GPIO13
    inverted: yes
    id: relay2
  - platform: gpio
    name: "Bedroom SS30 relay 3"
    pin: GPIO12
    inverted: yes
    id: relay3
  - platform: gpio
    name: "Bedroom SS30 relay 4"
    pin: GPIO14
    inverted: yes
    id: relay4
  - platform: gpio
    name: "Bedroom SS30 relay 5"
    pin: GPIO16
    id: relay5

binary_sensor:
  - platform: gpio
    pin:
      number: GPIO5
      mode: INPUT_PULLUP
      inverted: False
    name: "Bedroom SS30 button"
    on_press:
      - switch.turn_off: relay1
      - switch.turn_off: relay2
      - switch.turn_off: relay3
      - switch.turn_off: relay4
      - switch.turn_off: relay5

  - platform: status
    name: "Bedroom SS30 Status"


status_led:
  pin:
    number: GPIO00