devices.esphome.io
Geeni Outdoor Duo
Geeni Outdoor Duo
Device Type: plugElectrical Standard: usBoard: esp8266
Product Image
Description
This device has two plugs, a green LED, a blue LED, and a button. The LEDs and button sit directly under a translucent rubber cap.
The plug is based on the Tuya WB3S module which is pin compatable with the ESP12 series of ESP8266 modules. The factory WB3S can be converted using tuya convert (untested on this model), but it is equally possible to replace the WB3S with an ESP12 with some basic hot air rework.
The control board is completely seperate from the relay board and can be removed easily for soldering.
If the module is going to be replaced with an ESP12 it is recommended to program the module using a USB board burning fixture, however it is still fairly straightforward to program the board using the using any 3.3v USB to Serial cable.
There are no pin headers broken out onto the board. First time programming connections will have to be made by soldering or spring pins.
GPIO Pinout - Cannont Use GPIO since its wb3s board
Pin | Function |
---|---|
P1 | Button (inverted) |
P8 | Green LED (inverted) |
P6 | Blue LED (inverted) |
P26 | Left (when facing device) plug |
P14 | Right (when facing device) plug |
Basic Configuration
esphome: name: greeni-duo friendly_name: greeni_duo
bk72xx: board: wb3s
# Enable logginglogger:
# Enable Home Assistant APIapi: encryption: key: "xxxxxxxxxxxxxx"
ota: - platform: esphome password: "xxxxxxxxxxxxxx"
wifi: ssid: !secret wifi_ssid password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "Greeni-Duo Fallback Hotspot" password: "xxxxxxxxxxxxxx"
captive_portal:
#web_server:# port: 80 # Running the web server may cause issues on lower memory modules
#----------------------------------------------------------------------
binary_sensor: - platform: gpio pin: number: P1 mode: INPUT_PULLUP inverted: True name: "Button" on_multi_click: # Support a single or double click to switch on each relay - timing: - ON for at most 1s - OFF for at least 0.5s then: - switch.toggle: relay_left - timing: - ON for at most 1s - OFF for at most 1s - ON for at most 1s - OFF for at least 0.2s then: - switch.toggle: relay_right
switch: - platform: gpio name: "Left plug" pin: P26 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: P14 id: relay_right on_turn_on: - light.turn_on: green_led on_turn_off: - light.turn_off: green_led
output: - platform: gpio pin: P8 inverted: True id: green_led_gpio - platform: gpio pin: P6 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