devices.esphome.io

Aukey SH-PA1 Wi-Fi Smart Plug

Aukey SH-PA1 Wi-Fi Smart Plug

Device Type: plug
Electrical Standard: us
Board: esp8266

alt text

GPIO Pinout

PinFunction
GPIO0Red LED (inverted)
GPIO2Blue LED (inverted)
GPIO13Push Button
GPIO15Relay

Basic Configuration

# Basic Config
esphome:
name: mini_tree
platform: ESP8266
board: esp01_1m
platformio_options:
upload_speed: 115200
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: !secret api_encryption_key
ota:
password: "ota_password"
output:
- platform: gpio
pin: GPIO15
id: plug_outlet
- platform: gpio
pin:
number: GPIO2
inverted: yes
id: blue_led_output
light:
- platform: binary
name: "Mini Tree"
id: mini_tree
output: plug_outlet
on_turn_on:
- light.turn_on: blue_led
on_turn_off:
- light.turn_off: blue_led
- platform: binary
id: blue_led
output: blue_led_output
binary_sensor:
- platform: gpio
pin:
number: GPIO13
id: mini_tree_button
on_press:
light.toggle: mini_tree
status_led:
# Red LED
pin:
number: GPIO0
inverted: yes
Edit this page on GitHub