question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Temporary fix HA 0.115 UUID issue. Setup failed for sonoff: Requirements for sonoff not found: ['uuid'].

See original GitHub issue

UUID is some hex

Generate uuid from a python command python -c 'import uuid; print(uuid.uuid4())' or simply type any hex with the following format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

eg. PLEASE CHANGE THIS 12345678-abcd-1234-abcd-123456789012

Open init.py file

Remove UUID requirement Line 45 REQUIREMENTS = ['websocket-client==0.54.0']

Comment out Line 210 #import uuid

Line 223 self._imei = 'your uuid here'

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:14
  • Comments:10

github_iconTop GitHub Comments

4reactions
gtrancillocommented, Oct 7, 2020

@tyjtyj You are right. But your line numbers are wrong, These are the correct ones.

Generate UUID from a python command python -c ‘import uuid; print(uuid.uuid4())’ or simply type any hex with the following format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

Replace line 26: REQUIREMENTS = ['uuid', 'websocket-client==0.54.0'] for this: REQUIREMENTS = ['websocket-client==0.54.0']

Line 121: import uuid for #import uuid

Line 134: self._imei = str(uuid.uuid4()) for self._imei = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'

1reaction
TrommlerHHcommented, Oct 31, 2020

Sorry, I am completely stuck as a newbie.

I tried to install the AlexxIT-sonoff-ingetragtion with HACS, but I also ended up with this “requirements not found”-error.

I do not understand what to do with the phyton-command. It should not be added to the init-file, right?

I also checked my init-file but I could not find the mentioned lines. Searching the entire file for “requirements” or “websocket” failed.

This is how the first lines of my init-file look like: init py

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sonoff /eWeLink component for original firmware
Temporary fix HA 0.115 UUID issue. Setup failed for sonoff: Requirements for sonoff not found: ['uuid']. UUID is some hex Generate uuid from...
Read more >
How to Use SONOFF Dongle Plus on Home Assistant? How to ...
Just plug the dongle into your computer, it will be automatically discovered, click “CONFIGURE” to complete the configuration automatically, and ...
Read more >
Update from 0.114.1 to 0.115.X breaking switches and more
Hi all, I had this issue when the 0.115 update was first announced ... Setup failed for sonoff: Requirements for sonoff not found:...
Read more >
A subtraction of 2 sensor values in a Lovelace Gauge card
I tried them, restarted my pc, but no matter what I did HA could not find the ... get Setup failed for sonoff:...
Read more >
HOW TO - Sonoff Zigbee 3.0 Dongle Plus in Home Assistant ...
In todays video we are looking at Sonoffs Zigbee 3.0 USB Dongle Plus. These dongles are great and come pre flashed with the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found