devices.esphome.io

Geeni Outdoor Plug

Geeni Outdoor Plug

Device Type: plug
Electrical Standard: us
Board: esp8266

GPIO Pinout

PinFunction
GPIO0Button (inverted)
GPIO5Green LED (inverted)
GPIO13Blue LED (inverted)
GPIO14Plug

Basic Configuration

esphome:
name: geeni_outdoor_plug
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 the Web Server component
webserver:
binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: True
name: "Button"
on_press:
then:
- switch.toggle: relay
switch:
- platform: gpio
name: "Plug"
pin: GPIO14
id: relay
on_turn_on:
- light.turn_on: blue_led
on_turn_off:
- light.turn_off: blue_led
output:
- platform: gpio
pin: GPIO5
inverted: True
id: green_led_gpio
- platform: gpio
pin: GPIO13
inverted: True
id: blue_led_gpio
light:
- platform: binary
name: "Green LED"
id: green_led
output: green_led_gpio
- platform: binary
name: "Blue LED"
id: blue_led
output: blue_led_gpio
Edit this page on GitHub