Coder Social home page Coder Social logo

ewelink-api-java's People

Contributors

realzimboguy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ewelink-api-java's Issues

User is not able to set the Device status, after a successfully login

Description
After a successfully login, I was not able to perform device status change.

Step to reproduce:

  1. Provide Valid Credential.
  2. Make sure that lib is successfully login
  3. Call method 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)"

Attached some pics with debug process
image
image

Temperature and humidity

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' },

It doesn't work anymore

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)

error while trying to change device status

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.