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

Is there a known-issue with Unifi + EP Lite? #177

Open
scrampker opened this issue Sep 27, 2024 · 6 comments
Open

Is there a known-issue with Unifi + EP Lite? #177

scrampker opened this issue Sep 27, 2024 · 6 comments

Comments

@scrampker
Copy link

Recently either ESPHome, or my Unifi network was updated and now I'm getting ~/2 minute reboots. Unboxed new sensor just to check. Same issue. EPL was working fine for months.

I've seen various threads on this, related to ESPHome, but most of it is irrelevant. Seems like a lot of people were able to fix it by changing Wi-Fi power saving setting to 'none,' but that's no longer an option.

This happens even when doing a fresh install via USB from the ESH website through MS Edge using the web installer. I purposefully did not adopt into HASS ESPHome module -- just into HASS itself. It's about 2 minutes, and I see the same issue with both sensors. Interestingly enough the ESP32 baked into one of my Mi Smart Fan, running ESPHome does not have this issue.

The pings are wild against this sensor as well. Sometimes 13s, but the average is about 2000ms when it's not completely unresponsive.

Network

Network: Network v8.5.1

  • Unifi UDM SE, Unifi OS: v4.0.20
  • U6 Enterprise APs, v6.7.6

Home Assistant
Core 2024.9.3
Supervisor 2024.09.1
Operating System 13.1
Frontend 20240909.1

@EverythingSmartHome
Copy link
Owner

Do you happen to have internet blocked to the device? There is currently a bug in ESPHome which will cause a boot loop when the device checks for updates and is unable to such as when internet is blocked. This is an unintentional bug of course and normally the device is completely fine to block internet on

@scrampker
Copy link
Author

Apologies for the delay on this response. Loss in the chaos. The unit should have access to the internet. The only things network-related that seem worth mentioning are:

  1. I use a MAC filter on this Wi-Fi network, and this unit is whitelisted... otherwise I'd never be able to communicate to it.
  2. The sensor is on my IoT VLAN/subnet, and my hass instance is on a separate.
  3. I do have multiple APs in my house.

Both units appears to legit be rebooting. The red LED starts to blink, and pings drop if I have a console open running tests. Sometimes I get weird pauses even when it hasn't rebooted yet. Overall there's definitely something weird going on with the network connection.

image

@EverythingSmartHome
Copy link
Owner

This is very similar to the bug I mention above. Make sure DNS servers handed out by DHCP are correct (DNS 1 needs to be working), and ensure no firewall rules on the subnet

@scrampker
Copy link
Author

Interesting. I just read that ESP32 cannot use BLE and Wi-Fi at the same time. So perhaps every time the EPL is doing a scan or talking to BLE devices, it drops Wi-Fi? I had never heard of this before. I guess does some sort of time-slicing since it shares the same antenna.

I read that some people improve the situation by adding the following:
wifi:
fast_connect: true

I'm flashing from the web again and seeing if I can get this thing working. I'll avoid adopting into hass. I'm wondering if somehow the default yaml that it uses is reprogramming it and causing issues.

@scrampker
Copy link
Author

I just wanted to say that there does seem to be some sort of issue with ESP devices, and Unifi APs. Found this thread and modified the minimum data rate for my 2.4GHz IoT Wi-Fi network, and now I'm seeing nearly 99% successful pings... much lower. Very seldom do I have 1000ms+ responses. Almost no drop-outs. I've been sitting watching my EPL for 15 minutes and it hasn't disconnected from hass, or blinked red even one time. The parameters are updating very rapidly.

Essentially, night-and-day difference. Previously I would see sluggish updates in the hass UI. It's a crazy improvement.

image

@scrampker
Copy link
Author

scrampker commented Oct 31, 2024

2 weeks later and right back in the same boat. I just re-adjusted the density to lower it from 12 to 11mbps. I seem to be getting decently-consistent results again. Seems odd that this keeps happening, or that it would matter at all in the first place.

Really feels like it has something to do with the way ESP32 devices switch between BLE and Wi-Fi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants