Sonoff /eWeLink component for original firmware

hi,
Hassio hangs and the lovelace UI stops working, while other services (e.g. SSH, Samba, etc.) continue to operate.
i am using your last version and getting the following error messages:
ERROR (Thread-2) [custom_components.sonoff] websocket error: [Errno 104] Connection reset by peer

The same here

Same thing with me too, but everything seems to work anyway.

Same issue here. Have you got yours fixed?

Same issue

I was having this issue and I don’t get it anymore. I’ve switched to a different HA component to deal with sonoff devices.

If anyone reading this is having this issue, I strongly recommend you remove the component from this thread and install the following instead:

It can be installed via copying component files or via HACS.

at home integration doesn’t want to settle down since hacs

hi , can you send a link about the sonoffintegration you use ?

It’s in the post you’re replying to :wink:
Here’s the direct link to Github:

1 Like

hi,
thanks,
when i try to call it from a service i am getting the following error:
2020-05-27 20:37:11 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/config/custom_components/sonoff/sonoff_cloud.py”, line 157, in _connect
resp = await self._send(‘post’, ‘dispatch/app’, {‘accept’: ‘ws’})
File “/config/custom_components/sonoff/sonoff_cloud.py”, line 89, in _send
headers=headers)
File “/usr/local/lib/python3.7/site-packages/aiohttp/client.py”, line 504, in _request
await resp.start(conn)
File “/usr/local/lib/python3.7/site-packages/aiohttp/client_reqrep.py”, line 860, in start
self._continue = None
File “/usr/local/lib/python3.7/site-packages/aiohttp/helpers.py”, line 586, in exit
raise asyncio.TimeoutError from None
concurrent.futures._base.TimeoutError

Hi, I getting this error message in my logs.

Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for sonoff doing I/O at custom_components/sonoff/init.py, line 372: r = requests…

Any idea to fix it??

I’m also geting a simiar error on the logs, can you advise if this something I need to worried about?
Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for sonoff doing I/O at custom_components/sonoff/init.py, line 175: r = requests.post(‘https://{}-api.coolkit.cc:8080/api/user/login’.format(self._api_region),
Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for sonoff doing I/O at custom_components/sonoff/init.py, line 372: r = requests.get(‘https://{}-api.coolkit.cc:8080/api/user/device?lang=en&apiKey={}&getTags=1&version=6&ts=%s&nonce=%s&appid=oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq&imei=%s&os=iOS&model=%s&romVersion=%s&appVersion=%s’.format(
Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for sonoff doing I/O at custom_components/sonoff/init.py, line 221: r = requests.post(‘https://%s-disp.coolkit.cc:8080/dispatch/app’ % self._api_region, headers=self._headers)

Last update broke sonoff integration

4 Likes

2020-09-17 21:08:20 ERROR (SyncWorker_10) [homeassistant.util.package] Unable to install package uuid: ERROR: Could not find a version that satisfies the requirement uuid==1000000000.0.0 (from -c /usr/src/homeassistant/homeassistant/package_constraints.txt (line 51)) (from versions: 1.30)

ERROR: No matching distribution found for uuid==1000000000.0.0 (from -c /usr/src/homeassistant/homeassistant/package_constraints.txt (line 51))

2020-09-17 21:08:20 ERROR (MainThread) [homeassistant.setup] Setup failed for sonoff: Requirements for sonoff not found: [‘uuid’].

1 Like

2020-09-17 21:08:20 ERROR (SyncWorker_10) [homeassistant.util.package] Unable to install package uuid: ERROR: Could not find a version that satisfies the requirement uuid==1000000000.0.0 (from -c /usr/src/homeassistant/homeassistant/package_constraints.txt (line 51)) (from versions: 1.30)
ERROR: No matching distribution found for uuid==1000000000.0.0 (from -c /usr/src/homeassistant/homeassistant/package_constraints.txt (line 51))
2020-09-17 21:08:20 ERROR (MainThread) [homeassistant.setup] Setup failed for sonoff: Requirements for sonoff not found: [‘uuid’].

Temporary workaround:

pip3 install uuid

not familiar with this, running my HA on pi3b+. how do i temp fix this?

Yeah latest 0.115.0 kills the integration. Any workaround?

Sonoff devices working fine for me on 0.115
actually I may have being having a “moment” when I posted this…my devices are working but I’m not using this component any more (sorry) :man_facepalming:…my devices are working on 0.115 with this custom component https://github.com/AlexxIT/SonoffLAN

For me also no more sonof - error message:

"2020-09-17 21:10:07 ERROR (MainThread) [homeassistant.setup] Setup failed for sonoff: Requirements for sonoff not found: [‘uuid’].

don’t know how/where to give command “pip3 install uuid” (have HA install on RP4)

same here.
Setup failed for sonoff: Requirements for sonoff not found: [‘uuid’].
using a hass VM