ESPHome-Devices

Geeni Outdoor Plug

Geeni Outdoor Plug

GPIO Pinout

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

Basic Configuration

esphome:
name: geeni_outdoor_plug
platform: ESP8266
board: esp01_1m
wifi:
ssid: "wifi"
password: !secret wifi_password
ap:
ssid: "Fallback Hotspot"
password: !secret local_ap_password
captive_portal:
logger:
api:
ota:
web_server:
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