I have changed routers and both are running dd-wrt with the same ssid and password but for some reason none of my diy devices (esp8266 and flashed sonoffs) want to connect to the new router.
I know this is a network issue and nothing to do with HA but hoping someone can help because I don’t know what else to try…
Are you using Tasmota or ESPhome (& api or mqtt)?
Are you 100% sure the password and ssid are the same (including upper/lower case)?
Have you tried power cycling the devices?
Have you tried recreating the network connection by using a serial connection to the devices and reuploading the firmware?
I don’t remember having trouble with Tasmota or ESPhome when moving from a netgear router to ubiquiti APs with the same ssid/pwd. That was a while ago though.
The sonoffs and esp’s are flashed with arduino code.
I’ve copied and pasted the ssid and password from the code into the router settings and I’ve changed routers before. I suspect it has something to do with the security and for some reason not letting them log on… i just don’t know what else to try anymore it’s driving me mad.
my router does appear to see the devices (all the LEGACY devices), they are all listed under the “status” bar under “wireless nodes” but when I check the network with my “fing” app they don’t show up and they also don’t register with HA.
I’m not sure if they are or are not connected to the router now?
Are your devices using static addresses or DHCP?
If DHCP, Is the DHCP server enabled on the router?
If static, are you using the same network IP address range as the old router?
E.g. if you have static addresses in the 10.1.1.x range defined in your devices and the new router is using a local network range of 192.168.1.x then they won’t connect.
I’m using both DHCP and static all in the 192.168.1.x range
I will double check the DHCP settings because the router can see the devices but not assigning IP addresses. It is assigning IP addresses to other DHCP clients though?
did you assign static ip addresses to the ESPs?
what do youi mean?
Personally I do have DHCP enabled, but I do assign a static address to each device connected to the network.
For my ESPs inside the ESPhome code (in your case inside Arduino code)
192.168.1.xxx (for each a different xxx)
255.255.255.0 (did you put this?)
192.168.1.254 (the router/gateway address)
Also what is ath0 and ath1 interfaces?
None of the DIY devices are set static IP addresses. Maybe that is an idea but there are probably about 30 of them and they don’t need to be static to work but might solve this. Static is for CCTV and hassio etc. Devices where i need fixed IP only. For static address on ddwrt I only ever need to assign Mac address, desired IP and device description.
Ath0 is 5ghz and not relevant for legacy ( also given a separate name which is not on the Arduino code) and the ath1 is 2.4ghz
In Esphome you can have a webserver for each device, for that is better a static ip
I think I may have another dodgy router…
Service provided router works perfectly but can’t assign static IP so limited HA usability.
Linksys WRT1900 (ddwrt) current router but is unreliable and drops out frequently. Unexplained internet drop outs and also dropping devices from time to time. Been a bit iffy since day one.
Linksys WRT32x (ddwrt) replacement and not assigning IP address to sit devices so kinda useless to me. All ddwrt settings are identical to previous router…
I’m looking into getting the stock software back on to see if that works and if not it’s going back.
I was also facing those issues with some esp. Try disabling 5ghz wifi fir not this solved my issues or just reflash them use esphome dashboard and you are fine to flash either via ota or serial
I tried dissabling ath0 and and ath2 still not working. this thing is broken man, I just wish I had tested it before installing ddwrt because I’m struggling to get the stock firmware back on now. Just wont load…
oh well it’s ebay or bin i guess then!
anyone have suggestions for good routers to run ddwrt?
I f you are going to be using a lot of wifi IoT devices in your network I highly recommend going the Ubiquiti route. The Hookup just did a video on it:
I’ve been using AP-AC-Lites. They’re cheap-ish and more than adequate for IoT and more than a few mobile devices like phones and tables.
Thanks for that, the pro should do for my home layout and use the controller add on in my HASSIO pi. Boom!
There are 3 things that are essential for me:
- Static IP allocation
- Device tracking on HA
- Radio scheduling
I have little doubt there will be a problem with static IP allocation and device tracking looks like it’s covered in HA components. Do you know if the Unify device has radio scheduling? My wife insists that the WiFi switches off at night
After reading some forums the lite is better for iot devices… It’s also cheap as chips!
It does indeed:
Though you will obviously loose contact with your wireless devices.
You can define more than one SSID and schedule per SSID. I’d just tell her it’s all off and leave the IoT SSID on (hidden)
Unifi Pro ordered. Bit of a pain to amend device tracker automations but hopefully this will stabilise my network, something I’ve not enjoyed for more than a few months at a time.
Thanks for the recommendation
The unifi AP arrived today and it;s plugged in and I’m connected to it. For some reason the conttroller is not picking up the AP
From the Android app I was able to change the SSID details but nothing else.
What am I doing wrong here?
It has been a while since I set mine up but this helped considerably (particularly from about 6m30s):
You can ignore the USG and switch stuff.
On the discovery I can (or at least I could, that isn’t working anymore either) see the AP so it’s just acting as a wifi extension at this stage and I can only change the ssid details from the android app.
Are you sure I don’t need a USG, I don’t understand how the AP can set static IP devices for my devices like HASSIO etc?
How can this AP do all that? This is a very confusing to set up…
I’ve dissabled my firewall and tried to control from PC, then from HASSIO but nothing is getting onto the controller. The only thing thats working is the android app, with that I can switch on and change the SSID to what I need.
Have you connected your AP straight to your modem?
Mine is modem into ethernet switch/splitter one into AP and one into HASSIO