devices.esphome.io
Aukey SH-PA1 Wi-Fi Smart Plug
Aukey SH-PA1 Wi-Fi Smart Plug
Device Type: plugElectrical Standard: usBoard: esp8266
GPIO Pinout
| Pin | Function |
|---|---|
| GPIO0 | Red LED (inverted) |
| GPIO2 | Blue LED (inverted) |
| GPIO13 | Push Button |
| GPIO15 | Relay |
Basic Configuration
# Basic Configesphome: name: mini_tree platformio_options: upload_speed: 115200 esp8266: board: esp01_1m # OTA flashingota: - platform: esphome
wifi: # Your Wifi network details # Enable fallback hotspot in case wifi connection fails ap:
# Enabling the logging componentlogger:
# Enable Home Assistant APIapi:
# Enable the captive portalcaptive_portal:
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