peterbuga / HASS-sonoff-ewelink

Home Assistant component to control Sonoff/eWeLink devices with original firmware
MIT License
792 stars 296 forks source link

Sonoff attempted to create another Zeroconf instance #264

Closed rossbcan closed 3 years ago

rossbcan commented 3 years ago

HA (supervised) version: 0.115.6 Supervisor version: 245 Docker version: 19.03.12 Kernel: 5.4.50 OS: OpenWrt

Getting this exact error in log:

2020-10-05 09:02:55 WARNING (MainThread) [homeassistant.helpers.frame] Detected integration that attempted to create another Zeroconf instance. Please use the shared Zeroconf via await homeassistant.components.zeroconf.async_get_instance(hass). Please report issue to the custom component author for sonoff using this method at custom_components/sonoff/sonoff_local.py, line 74: self._zeroconf = Zeroconf()

Did some research and, same issue was fixed for esphome component:

https://github.com/esphome/aioesphomeapi/pull/13/files/eaf2aac7dcd40c7d2e082c36f50b0d8320547c95

Issue appears to cause a race condition and high CPU usage.

Unsure how to change sonoff-ewelink to fix.

Thanks; Bill

peterbuga commented 3 years ago

@rossbcan sorry to say this but your problem is related to another sonoff project not this one