Open jnavascues opened 2 years ago
Found the Issue! you need to update the Appid and Secret from the constants file
appId: 'R8Oq3y0eSZSYdKccHlrQzT1ACCOUT9Gv' appSecret: '1ve5Qk9GXfUhKAn1svnKwpAlxXkMarru'
Hi, I've also been working with this okay for some time and it stopped working a little while ago. I was searching for an answer until I saw your post here. Updating these app details also fixed it for me. Can you briefly explain how you got the updated values? Also is this something that needs to be periodically updated (expires)?
I got it from here. https://github.com/AlexxIT/SonoffLAN/commit/09539428536f83f1d733aca1ac6a51276e07d704 Looks like there are a lot of projects using these credentials and 5 days ago ewelink dropped the one we were using. Not sure how much time this one will last but at least I added some trycatchs so next time at least I will get notified instead of just failing silently.
Thanks @jnavascues ID and Secret change worked. You can create your own with Ewelink here https://dev.ewelink.cc/
Found the Issue! you need to update the Appid and Secret from the constants file
appId: 'R8Oq3y0eSZSYdKccHlrQzT1ACCOUT9Gv' appSecret: '1ve5Qk9GXfUhKAn1svnKwpAlxXkMarru'
Hey, how's it going? Where do I put this stuff? In my code? I found where it’s generated on the eWeLink site, but I’m not sure where to use it.
Today i found out that my automatizations were off which was very weird, I'm using a few smart reles with ewelink and so far they were working flawlessly. Debugging a bit I see there is an issue while login to ewelink service. are you guys seeing the same thing?
File "/eweapi.py", line 77, in process_health await client.login() File "/ewelink/client.py", line 53, in login self.user = ClientUser(data = await self.http.login(), http=self.http) File "/ewelink/models/user.py", line 32, in init self.email: str | None = data.get('email', None) AttributeError: 'NoneType' object has no attribute 'get' {'error': 403, 'msg': 'Sign:oauthClient enable invalid'} Unclosed client session