esphome / esphome/feature-requests

EspHome enabled wifi range extender, but missing nat

Open
#2,196 16 comments 3 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
450
Forks
29
PR merge metrics
No merged PRs in 30d

Description

**Describe the problem you have/What new integration you would like**
It would be nice to enable a range extender using and esp8266 and esp8285, by pressing one GPIO, i am able to enable the function, but without NAT option, there are not data, is only connecting, i found this way to enable range extender studing arduino code.
On platformio.io there is the library and there is on github also the file used to enable it on arduino:
https://github.com/esp8266/Arduino/blob/master/tools/sdk/lwip2/include/lwip/napt.h
Tasmota and arduino are able to enable an esp as wifi range extender, it would be nice if also esphome is able to do it, i setup a lot of esp with esphome, is more simple to program and you can do everything you need. that's why i decided to move from arduino ide to esphome, arduino was taking a lot of time to make all the code, esphome is much faster.

**Please describe your use case for this integration and alternatives you've tried:**
binary_sensor:
- platform: gpio
name: WiFi Extender
internal: false
pin:
number: GPIO01
inverted: true
mode:
input: true
pullup: true
on_press:
then:
lambda: |-
WiFi.setPhyMode(WIFI_PHY_MODE_11N); enable wifi to N
WiFi.mode(WIFI_AP_STA); Enable AP and STA
WiFi.softAPConfig(
IPAddress(192, 168, 4, 1),
IPAddress(192, 168, 4, 1),
IPAddress(255, 255, 255, 0)); Config IP, Gateway and Subnet
WiFi.softAP("APtest"); Give a name to AP (optional also password)
on_release:
then:
lambda: |-
WiFi.mode(WIFI_STA); Disable AP

**Additional context**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.