Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update index.md #981

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 34 additions & 24 deletions src/docs/devices/Geeni-Outdoor-Duo/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,49 +26,59 @@ If the module is going to be replaced with an ESP12 it is recommended to program

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
## GPIO Pinout - Cannont Use GPIO since its wb3s board

| 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 |
| 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

```yaml
# Basic Config
esphome:
name: geeni_outdoor
friendly_name: geeni
platform: ESP8266
board: esp01_1m
# Change board to 'esp12e' if the original Tuya WB3S has been desoldered and replaced with an ESP12
name: greeni-duo
friendly_name: greeni_duo

wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
bk72xx:
board: wb3s

# Enable logging
logger:

# Enable Home Assistant API
api:
encryption:
key: !secret encryption_key
# Or copy the encription key from the "Add Device" menu of ESPHome
key: "xxxxxxxxxxxxxx"

ota:
password: !secret ota_password
- 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: GPIO0
number: P1
mode: INPUT_PULLUP
inverted: True
name: "Button"
Expand All @@ -90,15 +100,15 @@ binary_sensor:
switch:
- platform: gpio
name: "Left plug"
pin: GPIO14
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: GPIO16
pin: P14
id: relay_right
on_turn_on:
- light.turn_on: green_led
Expand All @@ -107,11 +117,11 @@ switch:

output:
- platform: gpio
pin: GPIO5
pin: P8
inverted: True
id: green_led_gpio
- platform: gpio
pin: GPIO13
pin: P6
inverted: True
id: blue_led_gpio

Expand All @@ -123,5 +133,5 @@ light:
- platform: binary
name: "Blue LED"
id: blue_led
output: blue_led_gpio
output: blue_led_gpio
```
Loading