HASS-sonoff-ewelink
HASS-sonoff-ewelink copied to clipboard
The component stopped working today I see alot of Bad Requests in the log
So, I see tons of: error 400 and 406 in the log (below) The interesting part is that state does synchronize after some time (if I manually switch on/off or use the app) so it seems they changed protocol maybe.
I'm using a different account to which I shared my devices and not my main account to login I verified that in the app that account works correctly
I tried using both master branch and the dev branch (log below is from dev)
019-12-17 16:56:04 DEBUG (MainThread) [custom_components.sonoff] Received state event change for: 10008d7ce2 2019-12-17 16:56:04 DEBUG (MainThread) [custom_components.sonoff] Device
10008d7ce2change to: {"switch": "off"} 2019-12-17 16:56:04 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"error":406,"sequence":"15765945641975293"} 2019-12-17 16:56:04 ERROR (Thread-2) [custom_components.sonoff] websocket error: Connection is already closed. 2019-12-17 16:56:04 DEBUG (Thread-2) [custom_components.sonoff] websocket closed 2019-12-17 16:56:04 DEBUG (Thread-2) [custom_components.sonoff] (re)init websocket 2019-12-17 16:56:06 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"error":400,"reason":"Bad Request","apikey":"068468a7-08fe-4e7f-9ace-e357723a788f","sequence":"15765945657868495","actionName":"userOnline"} 2019-12-17 16:56:38 DEBUG (MainThread) [custom_components.sonoff] Received state event change for: 10008d7ce2 2019-12-17 16:56:39 DEBUG (MainThread) [custom_components.sonoff] Device
10008d7ce2change to: {"switch": "off"} 2019-12-17 16:56:39 DEBUG (MainThread) [custom_components.sonoff] Received state event change for: 10007f77df 2019-12-17 16:56:39 DEBUG (MainThread) [custom_components.sonoff] Device
10007f77dfchange to: {"switch": "off"} 2019-12-17 16:56:39 DEBUG (MainThread) [custom_components.sonoff] Received state event change for: 10008d79ea 2019-12-17 16:56:39 DEBUG (MainThread) [custom_components.sonoff] Device
10008d79eachange to: {"switch": "off"} 2019-12-17 16:56:39 DEBUG (MainThread) [custom_components.sonoff] Received state event change for: 1000333ca7 2019-12-17 16:56:39 DEBUG (MainThread) [custom_components.sonoff] Device
1000333ca7change to: {"switch": "off"} 2019-12-17 16:56:39 DEBUG (MainThread) [custom_components.sonoff] Received state event change for: 1000856dae 2019-12-17 16:56:39 DEBUG (MainThread) [custom_components.sonoff] Device
1000856daechange to: {"switch": "off"} 2019-12-17 16:56:39 DEBUG (MainThread) [custom_components.sonoff] Received state event change for: 1000857248 2019-12-17 16:56:39 DEBUG (MainThread) [custom_components.sonoff] Device
1000857248change to: {"switch": "off"} 2019-12-17 16:56:39 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"error":406,"sequence":"15765945990022745"} 2019-12-17 16:56:39 ERROR (Thread-2) [custom_components.sonoff] websocket error: Connection is already closed.
It happen with me too.
happen with me, too
2019-12-18 01:33:32 ERROR (Thread-2) [custom_components.sonoff] websocket error: Connection is already closed. 2019-12-18 01:33:33 ERROR (Thread-2) [custom_components.sonoff] websocket error: Connection is already closed. 2019-12-18 01:33:43 ERROR (Thread-2) [custom_components.sonoff] websocket error: Connection is already closed. 2019-12-18 01:33:44 ERROR (Thread-2) [custom_components.sonoff] websocket error: Connection is already closed. 2019-12-18 01:33:44 ERROR (Thread-2) [custom_components.sonoff] websocket error: Connection is already closed. 2019-12-18 01:33:45 ERROR (Thread-2) [custom_components.sonoff] websocket error: Connection is already closed. 2019-12-18 01:33:46 ERROR (Thread-2) [custom_components.sonoff] websocket error: Connection is already closed. 2019-12-18 01:36:00 ERROR (Thread-2) [custom_components.sonoff] websocket error: Connection is already closed. 2019-12-18 01:36:01 ERROR (Thread-2) [custom_components.sonoff] websocket error: Connection is already closed. 2019-12-18 01:36:02 ERROR (Thread-2) [custom_components.sonoff] websocket error: Connection is already closed. 2019-12-18 01:36:02 ERROR (MainThread) [custom_components.sonoff] websocket is not connected 2019-12-18 01:36:03 ERROR (Thread-2) [custom_components.sonoff] websocket error: Connection is already closed. 2019-12-18 01:36:03 ERROR (Thread-2) [custom_components.sonoff] websocket error: Connection is already closed. 2019-12-18 01:36:53 ERROR (Thread-2) [custom_components.sonoff] websocket error: Connection is already closed. 2019-12-18 01:36:53 ERROR (Thread-2) [custom_components.sonoff] websocket error: Connection is already closed.
Hi Same problem nothing is working. I keep receive this error in the log (Thread-2) [custom_components.sonoff] websocket error: Connection is already closed. Please help Regards David,
Same issue here.
2019-12-18 09:04:58 ERROR (Thread-2) [custom_components.sonoff] websocket error: Connection is already closed. 2019-12-18 09:05:02 ERROR (Thread-2) [custom_components.sonoff] websocket error: Connection is already closed. 2019-12-18 09:05:04 ERROR (Thread-2) [custom_components.sonoff] websocket error: Connection is already closed. 2019-12-18 09:05:05 ERROR (Thread-2) [custom_components.sonoff] websocket error: Connection is already closed.
Regards Scott,
hi.. im facing the same issue also...
websocket error: Connection is already closed. 8:02 PM custom_components/sonoff/init.py (ERROR) - message first occurred at 8:02 PM and shows up 2 times
This is the Sonoff debug . --------------COPY-FROM-HERE--------------
2019-12-17 21:18:39.820 [S] {"entity_id": "1000359fa9", "new_state": "on", "outlet": 0}
2019-12-17 21:18:39.864 [W] {"error": 406, "sequence": "15765887198143337"}
2019-12-17 21:18:40.212 [W] {"actionName": "userOnline", "apikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "error": 400, "reason": "Bad Request", "sequence": "15765887201624284"}
2019-12-17 21:18:43.276 [S] {"entity_id": "1000359fa9", "new_state": "on", "outlet": 1}
2019-12-17 21:18:43.322 [W] {"error": 406, "sequence": "15765887232747319"}
2019-12-17 21:18:43.668 [W] {"actionName": "userOnline", "apikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "error": 400, "reason": "Bad Request", "sequence": "15765887236189022"}
"houston we have a problem" type of situation here :expressionless:
unfortunately the timing is quite bad for me, i'll try to take a look at it but i'm quite swamped today in particular... weekend the latest
@peterbuga An update Miraculously sometime during the night it started working again
its still doesnt work for me even now..
It's work again for me
@peterbuga An update Miraculously sometime during the night it started working again
same here! this is a must have component. wish @peterbuga had more time for updates.
I think there was a problem with the as region Websocket server , i succeed to connect to us and eu region's servers. now its working so i guess they fix something...
its working for me now.. i think there is some problem with as region servers and theyve fix it now..
its working for me now.. i think there is some problem with as region servers and theyve fix it now..
Had the same issue on AS region for the time being I'm using EU region and everything is back to normal.
"houston we have a problem" type of situation here π
unfortunately the timing is quite bad for me, i'll try to take a look at it but i'm quite swamped today in particular... weekend the latest
peterbuga long time no c . Hope everything is fine with u.
Had the same issue on AS region for the time being I'm using EU region and everything is back to normal.
I can't make it work using eu
. How can you switch region without getting this:
found new region: >>> as <<< (you should change api_region option to this value in configuration.yaml)
Thanks.
Had the same issue on AS region for the time being I'm using EU region and everything is back to normal.
I can't make it work using
eu
. How can you switch region without getting this:found new region: >>> as <<< (you should change api_region option to this value in configuration.yaml)
Thanks.
I just ignored the warning. :D
Had the same issue on AS region for the time being I'm using EU region and everything is back to normal.
I can't make it work using
eu
. How can you switch region without getting this:found new region: >>> as <<< (you should change api_region option to this value in configuration.yaml)
Thanks.
I just ignored the warning. :D
it doesnt works for me even with other region.. tried changing to as, eu, us and cn region. all sonoff doesnt works.. :(
Had the same issue on AS region for the time being I'm using EU region and everything is back to normal.
I can't make it work using
eu
. How can you switch region without getting this:found new region: >>> as <<< (you should change api_region option to this value in configuration.yaml)
Thanks.
I just ignored the warning. :D
it doesnt works for me even with other region.. tried changing to as, eu, us and cn region. all sonoff doesnt works.. :(
There is no sense behind what I'm going to say:) but you can try your luck. Open ewelink app change the state of several sonoff switches. add grace period to 300 set the region to eu reboot HA and leave it for a while. (Went to sleep. I walk up the second day without any issue.) That's what I did while troubleshooting my prob from the beginning.
i have same issue.
2019-12-19 23:14:31 ERROR (Thread-2) [custom_components.sonoff] websocket error: Connection is already closed. 2019-12-19 23:14:39 ERROR (Thread-2) [custom_components.sonoff] websocket error: Connection is already closed. 2019-12-19 23:14:40 ERROR (Thread-2) [custom_components.sonoff] websocket error: Connection is already closed.
does anyone with this problem, experience any problems with mobile app too? (i'm EU region and so far i had no problems on my side, can't properly debug the problem)
does anyone with this problem, experience any problems with mobile app too? (i'm EU region and so far i had no problems on my side, can't properly debug the problem)
Just joined the club component stopped π
Still got the problem even change region
does anyone with this problem, experience any problems with mobile app too? (i'm EU region and so far i had no problems on my side, can't properly debug the problem)
same with the mobile device
debug
Can use with app but not with hass component
It's work again for me
And now again every thing not working
no working again here too
μ΄ λ¬Έμ κ°μλ μ¬λμ λꡬλ λͺ¨λ°μΌ μ±μ λ¬Έμ κ° μμ΅λκΉ? (λλ EU μ§μμ΄κ³ μ§κΈκΉμ§ λ¬Έμ κ° μμμ΅λλ€. λ¬Έμ λ₯Ό μ¬λ°λ₯΄κ² λλ²κΉ ν μ μμ΅λλ€)
Try restarting the HASS service.
It resolves after time, but appears unconditionally after restarting the service.
What I tried the following:
- Service to restart = same issue.
- Update HASS package = same issue.
- Downgrade HASS package = same issue.
- Component upgrade = same issue.
- Region change = same issue. (all EU, US, AS, CN)
- Same problem with ewelink plugin for home bridge. Only works properly in the ewelink app.
After 2 days, it worked normally.
But restarting the hass service today started to fail again.
Normal operation until restarted.
@elserge82 thanks for your suggestion.. ive tried but still no luck.. ive tried again this morning with all the region change n everything but still it doesnt work..
i found a fix , you need to add : 'appid': 'oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq', to the payload of ws on open. (this is where i found it : https://github.com/CoolKit-Technologies/apiDocs/blob/28e8c33cbb70d63651b8824539ff0b4f28a4aca4/pages/mydoc/application.md)
i found a fix , you need to add : 'appid': 'oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq', to the payload of ws on open. (this is where i found it : https://github.com/CoolKit-Technologies/apiDocs/blob/28e8c33cbb70d63651b8824539ff0b4f28a4aca4/pages/mydoc/application.md)
can you explain further. The exact entry to the config.yaml file