and it’s needs to be the same mDNS on both networks using a reflector or something…
Guess there is no change to make it work with the “esp repeater” you linked
and it’s needs to be the same mDNS on both networks using a reflector or something…
Guess there is no change to make it work with the “esp repeater” you linked
Thanks
mDNS is not on board
but strange, I get the measured values in the log files
So I have to find another solution. I just want to connect to a ESP outside of the “normal” WLAN signal.
Could i switch to mqtt whit this repeater? Or if I make a mesh, can I shut my i-phone off that ugly slow repeated signal?
That’s true. I guess you have api:
inside your yaml? You could actually try from home assistant to add a new esphome device and try 192.168.178.161
as IP.
Still this topic was already mentioned couple of times on discord and there was never a real solution to it if you use NAT (meaning you actually cascade two networks).
no luck with a new sensor. Same effect: In the log everithing ok but the state are offline
i just juse “api:” here the full code:
esphome:
name: esp_windsensor
platform: ESP8266
board: d1_mini_lite
wifi:
ssid: "ESP_Sensor"
password: "xyxyxyxy"
manual_ip:
static_ip: 192.168.178.161
gateway: 192.168.178.161
subnet: 255.255.255.0
ap:
ssid: "POE_Fallback_Hotspot_Windsensor"
password: "BMbDBwnS72i9"
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
sensor:
- platform: adc
pin: A0
name: "Windsensor Spannung"
update_interval: 10s
filters:
- multiply: 3.3
- platform: wifi_signal
name: "WiFi Signal Sensor"
update_interval: 20s
Can you ping it?
Frome the primary side (router, homeassistant,…) to the repeater, seems ok(on picture, upper request).
From the secoundary side (other side of NAT) to the esp device seems also ok (on the picture the secend request - I change with the notebook to the “secoundary side wlan” for the secound request)
No one is interested in your screenshots of text.
Copy and paste was developed last century, please learn to use it.
ping is actually totally useless if you want to get the api to work…
Two different scenarios which could work for you are:
Try your luck with mqtt. As there is no mDNS involved directly it could work out with the configuration you have right now
Give esphome with esp-now a shot
Thank you for taking me back to the present.
Both ping requests were successful. I wonder which track you want to lead me on.
Thank you for your help. I think I choose the MQTT adventure.
ping
is always the first step on testing networking issues.
It really doesn’t matter because mDNS ≠ DNS. The later could be used to ping a hostname - or you ping the IP directly like @Yves_IF did. In anyway it doesn’t help at all for this particular issue @nickrout
It does prove that the device is reachable over the network. Then the next step is to work out why your particular service/or application is not responding as you would expect.
multicastDNS/bonjour can’t cross a NAT. So no way for api/ota (what @Yves_IF was trying).
So it does what is expected → it doesn’t work
Anyway alternative solutions like trying mqtt or esp-now are already on the table…
Read the first reply.
I read the second…
Just to add a solution that worked for me in order to put a router between HA and my ESP. Here is the config of the ESPHome that is behind the router:
wifi:
ssid: xxxx
password: yyyyy
fast_connect: true
use_address: 192.168.0.144 #this is the WAN IP of the router.
manual_ip:
static_ip: 192.168.4.144
gateway: 192.168.4.1
subnet: 255.255.255.0
On the router, you need to configure port forwarding for 6053 and 8266 ports.
When integrating the ESPHome device in HA, I use the WAN IP of the router.
I am using this w/o problems for 2 years now.
Hope this helps.
Thanks, this looks like a solution. 2 questions:
Thanks in advance
Edit: finally got it working. Steps below:
wifi:
ssid: xxxx #SSID of the ESP32 router
password: yyyy #pw of the SSID of the ESP32 router
fast_connect: true
use_address: 192.168.0.202 #this is the WAN IP of the ESP32 router on the main vlan.
manual_ip:
# Set this to the IP of the ESP device that is being connected
static_ip: 192.168.4.202
# Set this to the IP address of the router. Often ends with .1
gateway: 192.168.4.1
# The subnet of the network. 255.255.255.0 works for most home networks.
subnet: 255.255.255.0
This set up finally worked for me, the ESP32 device is visible. Thank for the advice in the thread
Glad it worked for you. Was trying to remember all the details as I did this long time ago and since then it was just the update to the ESPHome version that I needed to do.