Link

Geeni Outdoor Duo

  1. GPIO Pinout
  2. Basic Configuration

GPIO Pinout

Pin Function
GPIO0 Button (inverted)
GPIO5 Green LED (inverted)
GPIO13 Blue LED (inverted)
GPIO14 Left (when facing device) plug
GPIO16 Right (when facing device) plug

Basic Configuration

# Basic Config
esphome:
  name: geeni_outdoor
  platform: ESP8266
  board: esp01_1m
  
wifi:
  ssid: 'ssid'
  password: 'wifi_password'
  
logger:

api:
  password: 'api_password'

ota:
  password: 'OTA_password'
  
web_server:

binary_sensor:
  - platform: gpio
    pin:
      number: GPIO0
      mode: INPUT_PULLUP
      inverted: True
    name: "Button"

switch:
  - platform: gpio
    name: "Left plug"
    pin: GPIO14
    id: relay_left
    on_turn_on:
      - light.turn_on: blue_led
    on_turn_off:
      - light.turn_off: blue_led
  - platform: gpio
    name: "Right plug"
    pin: GPIO16
    id: relay_right
    on_turn_on:
      - light.turn_on: green_led
    on_turn_off:
      - light.turn_off: green_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