Woke up this morning with Home Assistant saying I need to reconfigure my sonoff integration. I tried but it says appid is unauthorised and all my sonoff devices is unavailable.
Ive tried removing everything in my configuration.yaml and removing SonoffLAN and starting from scratch but get same error when adding the sonoff integration
Any Ideas?
1 Like
Issue is raised, need wait for the fix…
opened 06:14AM - 06 Jul 22 UTC
This just popped up after a restart of HA...

What's the low down and how do I rectify??
1 Like
@CrowCoke I have the same. Woke up and Sonoff needs reconfiguring. How did you solve it?
Thanks,
1 Like
Watching for a fix on the git thread. Something about changing the app key in cloud.py??
Still broken here
Changed that line 107 in cloud.py worked after the second time
async def login(self, username: str, password: str, app=0) → bool:
to
async def login(self, username: str, password: str, app=1) → bool:
Possibly just a temporary hack/bandage I imagine
Yep it worked for me! I am not sure if I have to change it back to 0 again. (There was a 0 for a reason I take it…)
Mine has also stopped working today, after being fine for years
Where can I find this cloud.py
file that needs editing please?
I see @Vetsus also has this issue.
Found it:
/custom_components/sonoff/core/ewelink/cloud.py
Interestingly, my Alexa has also stopped working with my sonoff / ewelink lights today too