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
esp8266:
board: esp01_1m
# OTA flashing
ota:
- platform: esphome
wifi: # Your Wifi network details
# Enable fallback hotspot in case wifi connection fails
ap:
# Enabling the logging component
logger:
# Enable Home Assistant API
api:
# Enable the captive portal
captive_portal:
# Enable WEB server for status and updates.
web_server:
# 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