realzimboguy / ewelink-api-java Goto Github PK
View Code? Open in Web Editor NEWJava Api for the Sonoff ewelink
Home Page: http://ewelink-api-java.co.zw/
Java Api for the Sonoff ewelink
Home Page: http://ewelink-api-java.co.zw/
Description
After a successfully login, I was not able to perform device status change.
Step to reproduce:
setDeviceStatus
Tried to debug, seems that code is break bellow, but not sure why
return eweLinkWebSocketClient.sendAndWait(gson.toJson(statusChange),statusChange.getSequence());
Logs "org.java_websocket.exceptions.WebsocketNotConnectedException
at app//org.java_websocket.WebSocketImpl.send(WebSocketImpl.java:628)
at app//org.java_websocket.WebSocketImpl.send(WebSocketImpl.java:605)
at app//org.java_websocket.client.WebSocketClient.send(WebSocketClient.java:410)
at app//com.github.realzimboguy.ewelink.api.EweLinkWebSocketClient.sendAndWait(EweLinkWebSocketClient.java:83)
at app//com.github.realzimboguy.ewelink.api.EweLink.setDeviceStatus(EweLink.java:328)"
Hi. Will it be possible to switch family? Currently when program log in, it fetches data for the current family only.
I just noticed temperature and humidity values are missing from Params class so I'm not able to get none of them.
Could you please add the following properties? Thanks
Example data:
params: { subDevId: '......', parentid: '......', battery: 100, trigTime: '1610748707290', temperature: '-82', humidity: '7465' },
Hi, nice work!
but it is unable to control multi-channel devices, for example, TX2C.
Are you planning to support it?
Thank you
Ewelink changed something in their oauth login system:
Exception in thread "main" java.lang.Exception: Sign:oauthClient enable invalid
at com.github.realzimboguy.ewelink.api.EweLink.login(EweLink.java:124)
at hu.wfs.ewelinkbeci.EwelinkBeci.main(EwelinkBeci.java:17)
Skydiver's version 3.1.1 seems to be from 8/2020. This seems to be from 6/2021. But it is noted that not all has been implemented here. LAN-only mode (zeroconf) is essential to me. So wondering about it.
Thanks for all!
Hi
Thank for your job and java lib
A couple of days ago, the server started responding with the following error:
Server returned HTTP response code: 503 for URL: https://eu-api.coolkit.cc:8080/api//user/device?lang=en&appid=******&ts=****&version=8&getTags=1
Is there an alternative server or could the reason be something else?
org.java_websocket.exceptions.WebsocketNotConnectedException
at org.java_websocket.WebSocketImpl.send(WebSocketImpl.java:628)
at org.java_websocket.WebSocketImpl.send(WebSocketImpl.java:605)
at org.java_websocket.client.WebSocketClient.send(WebSocketClient.java:410)
at com.github.realzimboguy.ewelink.api.EweLinkWebSocketClient.sendAndWait(EweLinkWebSocketClient.java:83)
at com.github.realzimboguy.ewelink.api.EweLink.setDeviceStatus(EweLink.java:380)
at com.github.realzimboguy.ewelink.api.TestCode.main(TestCode.java:35)
when the code tries to execute ewelink.setDeviceStatus method this exception is thrown any fix?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.