devices.esphome.io

Emporia Smart Plug

Emporia Smart Plug

Device Type: plug
Electrical Standard: us
Board: esp8266
Difficulty: Soldering required, 4/5

Initial Install

You must dissasemble the case to access the VDD, GND, RX, and TX pins. They can be accessed on the ESP daughterboard or from under the main board at the board connection. Modifying the rear housing is required to access the daugherboard mounting pins.

GPIO Pinout

PinFunction
GPIO13Push Button (HIGH = off, LOW = on)
GPIO4Relay
GPIO15RED LED (HIGH = on, LOW = off)
GPIO12BL0937 SEL
GPIO5BL0937 CF
GPIO14BL0937 CF1
Blue LED

Basic Configuration

# Basic Config
esphome:
name: emporia_smart_plug
platform: ESP8266
board: esp01_1m
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
logger:
# Remove this line if you're not using Home Assistsant or your switch will restart every now and again
api:
ota:
# Device Specific Config
binary_sensor:
- platform: gpio
pin:
number: GPIO13
mode: INPUT_PULLUP
inverted: True
name: "Emporia Smart Plug Button"
on_press:
- switch.toggle: relay
- platform: status
name: "Emporia Smart Plug Status"
sensor:
- platform: wifi_signal
name: "Emporia Smart Plug WiFi Signal"
update_interval: 60s
- platform: hlw8012
model: BL0937
sel_pin:
number: 12
inverted: true
cf_pin: 5
cf1_pin: 14
current:
name: "Emporia Smart Plug Current"
voltage:
name: "Emporia Smart Plug Voltage"
power:
name: "Emporia Smart Plug Power"
id: my_power
energy:
name: "Emporia Smart Plug Energy"
update_interval: 30s
- platform: total_daily_energy
name: "Emporia Smart Plug Daily Energy"
power_id: my_power
switch:
- platform: gpio
name: "Emporia Smart Plug Relay"
pin: GPIO4
id: relay
on_turn_on:
- light.turn_on: status_light
on_turn_off:
- light.turn_off: status_light
time:
- platform: sntp
id: my_time
light:
- platform: status_led
pin: GPIO15
id: status_light
internal: true
Edit this page on GitHub