-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cant get the list of devices #26
Comments
I am having the same issue. The only thing it prints out is: WARNING:sonoff.sonoff:Grace period activated! Does anybody know why it is happening?
|
Same issue here. All I get is "Grace period activated!" |
Does it have to do with the wrong call at ewelink login?
|
You can't use app and python at the same time with same credentials. Create another account and share access to your device. |
The new account approach won't work for me either 😞 |
I have also tried this one https://github.com/skydiver/ewelink-api/ and it works with the same credentials. |
The problem seems to go a bit further than this grace period message. I do not fully understand the purpose but I decided to wait for it. # we are in the grace period, no updates to the devices
if self._skipped_login and self.is_grace_period():
_LOGGER.info("Grace period active")
return self._devices So I decided to wait in my code to see what happens: s = sonoff.Sonoff("[email protected]", "mypassword", "eu")
while s.is_grace_period():
print(".")
time.sleep(1)
devices = s.get_devices(force_update=True)
pprint(devices) And I got this:
Note that I added a |
Hi everyone, |
Same issue here! |
This is most likely due to the app ID and secret not being update - see issue #24 which is direct outreach from the guys at eWelink. If you use a valid app ID / secret then listing and on/off switching appears to work - although this might only apply to VIP/paid accounts now (I don't have an unpaid account to test with). |
So... I guess this project is a dead end? Any other working python Sonoff packages out there? |
Check #27. I have posted there my code which works for me. |
I managed to correctly log in, but the list of devices is empty.
This is what I'm doing:
And I'm actively using the devices on the ewelink application and with google home.
Maybe something changed in the API?
The text was updated successfully, but these errors were encountered: