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

[eWeLink] WebSocket messge received: {"error":400,"reason":"Bad Request" #121

Open
gcorly opened this issue Nov 2, 2020 · 9 comments
Open

Comments

@gcorly
Copy link

gcorly commented Nov 2, 2020

Hi,

since yesterday I have an issue with ewelink plugin

I have this message : "[eWeLink] WebSocket messge received: {"error":400,"reason":"Bad Request","apikey":"xxxxx","sequence":"xxxxx","actionName":"userOnline"}

No change has been made :
Homebridge version v1.2.3

Plugins installed
Homebridge UI
homebridge-config-ui-x v4.31.0

Homebridge Ewelink Max
homebridge-ewelink-max v0.1.24

@gcorly
Copy link
Author

gcorly commented Nov 2, 2020

Just another comment, you may correct the message :"[eWeLink] WebSocket messge received" with ""[eWeLink] WebSocket message received"

@gcorly
Copy link
Author

gcorly commented Nov 2, 2020

Try to a stop an equipment

[2020-11-2 18:48:53] [eWeLink] Setting power state to [off] for device [PC 2]
[2020-11-2 18:48:53] [eWeLink] Requesting power state for [PC 2]
[2020-11-2 18:48:53] [eWeLink] WebSocket messge received: {"error":406,"sequence":"1604339333126"}
[2020-11-2 18:48:53] [eWeLink] WebSocket was closed. Reason [1006]
[2020-11-2 18:48:53] [eWeLink] API reported that [PC 2] is On
[2020-11-2 18:48:55] [eWeLink] Requesting power state for [Lampe (SONOFF 1)]
[2020-11-2 18:48:55] [eWeLink] Requesting power state for [Guirlande (SONOFF2)]
[2020-11-2 18:48:55] [eWeLink] Requesting power state for [Lanterne (SONOFF4)]
[2020-11-2 18:48:55] [eWeLink] Requesting power state for [PC 1]
[2020-11-2 18:48:55] [eWeLink] Requesting power state for [PC 2]
[2020-11-2 18:48:55] [eWeLink] Requesting power state for [New1]
[2020-11-2 18:48:55] [eWeLink] Requesting power state for [New2]
[2020-11-2 18:48:55] [eWeLink] Requesting power state for [New3]
[2020-11-2 18:48:55] [eWeLink] Sonoff API 503 error
[2020-11-2 18:48:55] [eWeLink] Sonoff API 503 error
[2020-11-2 18:48:55] [eWeLink] API reported that [PC 2] is On

@Patdic54
Copy link

Patdic54 commented Nov 3, 2020

Same problem

@bwp91
Copy link

bwp91 commented Nov 3, 2020

#120 (comment)

@gcorly
Copy link
Author

gcorly commented Nov 3, 2020

solved by uninstalling this plugin for me, and installing ewelink homebridge (verified)

@entavio
Copy link

entavio commented Nov 3, 2020

Not working for me..... no error any more but I still can’t control the sonoff

@lee7578kimo
Copy link

I build a new homebirdge with homebridge-ewelink
need change "email" to "username" in config.json
works fine now
not sure whether necessary to pay and upgrade ewelink account to Pro. I just paid.

@entavio
Copy link

entavio commented Nov 6, 2020

After second reinstall / reconfigure now it works :-)

@migabc
Copy link

migabc commented Nov 7, 2020

Any change of fixing this issue (400 - bad request) on this plugin (homebridge-ewelink-max)?
Or, alternatively allow the other plugin (homebridge-ewelink) to run under the stable/wanted version of homebridge 0.4.53

I tried to swap the homebridge-ewelink-max for the homebridge-ewelink but this plugin requires HomeBridge version >=1.0.0 and I'm currently using homebridge v0.4.53 (because homebridge-knx only runs on this stable version of homebridge)

So it seems I am stuck :-(

pi@raspberrypi:~ $ date; npm outdated -g --depth=0
Sat Nov 7 08:55:53 WET 2020
Package Current Wanted Latest Location
hap-nodejs 0.4.53 0.4.53 0.8.2 global
homebridge 0.4.53 0.4.53 1.1.6 global
homebridge-camera-ffmpeg 0.1.19 0.1.19 3.0.3 global

pi@raspberrypi:~ $ date; npm list --depth=0 -g
Sat Nov 7 09:31:26 WET 2020
/usr/lib
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

pi@raspberrypi:~ $

Any help appreciated

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

No branches or pull requests

6 participants