Skip to content
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

S31 attributes only show when ewelink is open #69

Closed
Jgil10 opened this issue Mar 31, 2020 · 11 comments
Closed

S31 attributes only show when ewelink is open #69

Jgil10 opened this issue Mar 31, 2020 · 11 comments
Labels
enhancement New feature or request

Comments

@Jgil10
Copy link

Jgil10 commented Mar 31, 2020

In Home Assistsnt the Sonoff S31 plug power on or off work fine without ewelink on the phone. The attributes work as expected only while the ewelink app is open and connected on the phone. Otherwise the previous state shows.

@thedesp
Copy link

thedesp commented Apr 1, 2020

+1
same here.

What is your integration setup? I'm using devicekey (apikey).
May be try using ewelink account integration?

@Jgil10
Copy link
Author

Jgil10 commented Apr 2, 2020

I have tried adding the keys to the configuration.yaml under sonoff, also just leaving the /config/.sonoff.json file which also retrieves the keys. No difference either way. It works as a switched outlet just fine both ways. The attributes only work right if the ewelink is app is open and connected on the phone

@AlexxIT
Copy link
Owner

AlexxIT commented Apr 2, 2020

Unfortunately I do not have devices that transmit data constantly.
To debug this situation.

@Jgil10
Copy link
Author

Jgil10 commented Apr 2, 2020

It would be good to have this working to save opening the device. For now, since I need to use it, I have opened the S31, flashed it with tasmota and configured it with their S31 template. It is integrated with Home Assistant and working fine. Thanks.

@whyitsbob
Copy link

I have the same issue with a Sonoff POW2 and a couple of S31's. The attributes only get updated when the app is open.

@AlexxIT AlexxIT added the enhancement New feature or request label May 11, 2020
@AlexxIT
Copy link
Owner

AlexxIT commented May 12, 2020

Try new version #99
Perhaps updates via the cloud will come more often. Local mode will continue to work

@rledwa2
Copy link

rledwa2 commented May 17, 2020

I have the same problem. It seems the attributes are not pulled regularly (at all), unless you trigger the S31 by turning it on/off --OR-- have the Ewlink app open..

@AlexxIT I'd be happy to donate the money for you to get one or ship one to you to integrate better. Just let me know how.

Cheers,Rob

@AlexxIT
Copy link
Owner

AlexxIT commented May 17, 2020

@rledwa2 try this advice #14 (comment)

@rledwa2
Copy link

rledwa2 commented May 17, 2020

@AlexxIT Works perfectly! It's not elegant but it works. Perhaps you could add a refresh option within the component so it automatically gets the update (Every X seconds/minutes, if ON set state to ON, if OFF, set state to OFF) which will get the current attributes...

@AlexxIT
Copy link
Owner

AlexxIT commented May 18, 2020

@rledwa2 I plan to do it someday

@AlexxIT
Copy link
Owner

AlexxIT commented May 25, 2020

I found time for your problem (in latest master beta version):
https://github.com/AlexxIT/SonoffLAN#refresh-interval-for-th-and-pow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants