peterbuga / HASS-sonoff-ewelink

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

Errors installing sonoff in HASS in all new installation #263

Open ruben27813 opened 3 years ago

ruben27813 commented 3 years ago

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.

zjph602xtc commented 3 years ago

same problem

eddydupuis commented 3 years ago

same problem to !!

mnayef95 commented 3 years ago

Same here

robertoalcantara commented 3 years ago

One more.

ALX-TH commented 3 years ago

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

robertoalcantara commented 3 years ago

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.

JosepLM999 commented 3 years ago

Thanks Roberto !!!