devices.esphome.io

Azpen Home with USB port

Azpen Home with USB port

Device Type: plug
Electrical Standard: us
Board: esp8266

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

PinFunction
GPIO0BLue Status LED
GPIO4USB Relay
GPIO12Mains Relay (with Red LED)
GPIO14Switch 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
Edit this page on GitHub