Hello everyone, I’m quite desperate here and need some advice since I have troubles connecting a simple DHT22 sensor + D1 mini to my AP downstairs.
If i connect it to the main router there is no issue. When I try to connect it to my secondary router, the D1 mini doesn’t find the network.
I read almost all the topics and tried several combinations but I still don’t succeed.
The secondary router is a TP Link WR940N with dhcp disabled and set to IP 192.168.1.2 while the main sercom Router is 192.168.1.1
I can access to the secondary router with a PC connected to the main WIFI Network. I can access to the secondary router with my smartphone.
This is my last edited yaml configuration file uploades on the D1 mini.
Any help is much appreciated.
Thank you
esphome:
name: saletta_temp_sensor
platform: ESP8266
board: d1_mini
wifi:
ssid: "Dungeon"
password: "xxxxxxxxx"
manual_ip:
# Set this to the IP of the ESP
static_ip: 192.168.1.100
# Set this to the IP address of the router. Often ends with .1
gateway: 192.168.1.2
# The subnet of the network. 255.255.255.0 works for most home networks.
subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Saletta Temp Sensor"
password: "szx2EpE8Zwyc"
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
sensor:
- platform: dht
pin: D2
temperature:
name: "Saletta Temperature"
humidity:
name: "Saletta Humidity"
update_interval: 30s
model: DHT22
Router 1 is main router. Raspberry is connected here on wired lan. DNS 192.168.1.1
DHCP starting from 192.168.1.10
WI-FI network is called Disappinted 2.0
Router 2 is secondary router. Connected via cable to main router. DNS 192.168.1.2 . DHCP disabled. Wi-Fi network of secondary router is Dungeon.
INFO Reading configuration /config/esphome/saletta_temp_sensor.yaml...
INFO Starting log output from temp_humidity_saletta.local using esphome API
WARNING Error resolving IP address of temp_humidity_saletta.local. Is it connected to WiFi?
WARNING (If this error persists, please set a static IP address: https://esphome.io/components/wifi.html#manual-ips)
WARNING Initial connection failed. The ESP might not be connected to WiFi yet (Error resolving IP address: Error resolving address with mDNS: Did not respond. Maybe the device is offline., [Errno -5] No address associated with
The d1 mini is now 1 meter far away from the router. I also tried with bssid of the Dungeon network but the d1 mini simply doesn’ see it.
I tried with another d1 mini: same result. Connection possible to main router but no chances with the secondary router
The tplink router is 2,4 ghz only. I could connect 2 tekin plugs and 1 Wi-Fi strip led through smart life tuya integration to the Dungeon network and then to Home Assistant without problems.
Set security to WPA/WPA2
Version and encryption to: Auto
Make sure that your channel width is set to 20MHz.
Try using a fixed channel
don’t use spaces on your SSID or password.