HASS-sonoff-ewelink icon indicating copy to clipboard operation
HASS-sonoff-ewelink copied to clipboard

Errors installing sonoff in HASS in all new installation

Open ruben27813 opened this issue 4 years ago • 7 comments

Follow everything, but:

Logger: homeassistant.util.package Source: util/package.py:95 First occurred: 17:33:10 (1 occurrences) Last logged: 17:33:10

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 55)) (from versions: 1.30) ERROR: No matching distribution found for uuid==1000000000.0.0 (from -c /usr/src/homeassistant/homeassistant/package_constraints.txt (line 55))

and:

Logger: homeassistant.loader Source: loader.py:533 First occurred: 17:32:50 (1 occurrences) Last logged: 17:32:50

You are using a custom integration for sonoff which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.

and:

Logger: homeassistant.components.hassio Source: components/hassio/init.py:326 Integration: Hass.io (documentation, issues) First occurred: 17:33:10 (1 occurrences) Last logged: 17:33:10

Component error: sonoff - Requirements for sonoff not found: ['uuid'].

Please Help.

ruben27813 avatar Oct 03 '20 15:10 ruben27813

same problem

zjph602xtc avatar Oct 03 '20 22:10 zjph602xtc

same problem to !!

eddydupuis avatar Oct 05 '20 00:10 eddydupuis

Same here

mnayef95 avatar Oct 05 '20 19:10 mnayef95

One more.

robertoalcantara avatar Oct 09 '20 13:10 robertoalcantara

my case:

${hassio_root} = /opt/homeassistant/application
${hassio_config_root}= /opt/homeassistant/application/config

Steps for fix error:

1) $ cd ${hassio_root}
2) $ source bin/activate
3) $ python3 -m pip install --upgrade uuid==1.30
4) $ python3 -m pip install --upgrade websocket-client==0.57.0
5) $ cd ${hassio_config_root}
6) $ rm -rf custom_components/sonoff/__pycache__/

save and restart home-assistant.

If you use manifest.json, do not forget to update it:

cat ${hassio_config_root}/custom_components/sonoff/manifest.json
{
    "domain": "sonoff",
    "name": "Sonoff / eWeLink",
    "documentation": "https://github.com/peterbuga/HASS-sonoff-ewelink",
    "dependencies": [],
    "codeowners": ["@peterbuga"],
    "requirements": ["uuid==1.30", "websocket-client==0.57.0"]
  }

Screenshot from 2020-10-09 18-38-42

ALX-TH avatar Oct 09 '20 15:10 ALX-TH

Easy fix for who (like me) is running on docker container and do not what to change the image.

Just edit __ init __.py on sonoff directory and and change: REQUIREMENTS = ['uuid', 'websocket-client==0.54.0'] to REQUIREMENTS = ['websocket-client==0.54.0']

To be honest this is not a HASS issue at all. Seems HA team want to deprecate uuid utilization fixing a nonsense version on requirements.txt. Will not broke anything since uuid still available.

robertoalcantara avatar Oct 09 '20 15:10 robertoalcantara

Thanks Roberto !!!

JosepLM999 avatar Oct 19 '20 08:10 JosepLM999