Link

Azpen Home with USB port

  1. Product Images
  2. GPIO Pinout
  3. Basic Configuration

Product Images

Wall side of relay board
alt text

Socket side of relay board
alt text

ESP8266 board
alt text

GPIO Descriptions
alt text

GPIO Pinout

Pin Function
GPIO0 BLue Status LED
GPIO4 USB Relay
GPIO12 Mains Relay (with Red LED)
GPIO14 Switch Input

Basic Configuration

# Basic Config
esphome:
  name: azpenhome
  platform: ESP8266
  board: esp01_1m

# Enter you WIFI credentials
wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

# Enable Logging.
logger:

# Enable Home Assistant API.
api:

# Enable over-the-air updates.
ota:

# Enable WEB server for status and updates.
web_server:
  port: 80
  
# Button on top of plug.
binary_sensor:
  - platform: gpio
    pin:
      number: GPIO14
      mode: INPUT_PULLUP
      inverted: True
    name: "Relay Button"
    on_press:
      - switch.toggle: relay

# Status LED for blue light.
status_led:
  pin:
    number: GPIO0
    inverted: true

switch:
# Main relay
  - platform: gpio
    name: "Relay"
    pin: GPIO12
    id: relay

# USB Relay
  - platform: gpio
    name: "USB Relay"
    pin: GPIO4
    id: usbrelay