homebridge-plugins / homebridge-ewelink

Homebridge plugin to integrate eWeLink devices into HomeKit.
MIT License
389 stars 127 forks source link

Login Error . Appid is not unauthorized #385

Closed lmartu closed 1 year ago

lmartu commented 2 years ago

Since this morning the Ewelink plugin is not connecting. The cloud is online and the credentials are correct. Yesterday everything was working, and no changes were made to the configs.

here is a screenshot of the logs, IMG_1255 Looks like Ewelink is no longer authorising the app key HB is using.

bwp91 commented 2 years ago

Hi @lmartu

Yes not long woken up to this šŸ¤Æ

Same thing for home assistant sonoff plugin https://github.com/AlexxIT/SonoffLAN/issues/887

Will look into this as soon as I can

bwp91 commented 2 years ago

Please try beta version 9.0.2-beta.4

arisarts commented 2 years ago

Please try beta version 9.0.2-beta.4

beta version 9.0.2-beta.4 is working.

dwemel commented 2 years ago

Amazing... such a quick support. Love it!

THANK YOU SO MUCH

bo-2221 commented 2 years ago

Bitte versuchen Sie die Beta-Version 9.0.2-beta.4

Thanks beta works

lmartu commented 2 years ago

Thanks, unfortuntely, I had uninstalled and reinstalled the plugin and ā€¦. Lost all my homekit automationsā€¦ Iā€™m going to have to re code them allā€¦

bo-2221 commented 2 years ago

Danke, leider hatte ich das Plugin deinstalliert und neu installiert und ā€¦. Ich habe alle meine Homekit-Automatisierungen verloren ... Ich muss sie alle neu codieren ...

Have you no Backups?

lmartu commented 2 years ago

Nopeā€¦ donā€™t think you can backup apple automations

bo-2221 commented 2 years ago

Danke, leider hatte ich das Plugin deinstalliert und neu installiert und ā€¦. Ich habe alle meine Homekit-Automatisierungen verloren ... Ich muss sie alle neu codieren ...

Have you no Backups?

If you set up the plugins as a subbridge, the devices are not immediately gone in the Homekit app. Then simply restore a backup from the Homebridge. By the way, Homebridge automatically makes a backup every night

lmartu commented 2 years ago

Danke, leider hatte ich das Plugin deinstalliert und neu installiert und ā€¦. Ich habe alle meine Homekit-Automatisierungen verloren ... Ich muss sie alle neu codieren ...

Have you no Backups?

If you set up the plugins as a subbridge, the devices are not immediately gone in the Homekit app. Then simply restore a backup from the Homebridge. By the way, Homebridge automatically makes a backup every night I wish I had knownā€¦ a bit late nowā€¦ Iā€™ll keep it in mind for the future

henkyfoo commented 2 years ago

I thought i was the only one, lucky i look for the issue here

bwp91 commented 2 years ago

The issue is that eWeLink seem to have revoked the app id and app secret the plug-in uses to connect to their servers. The fix has been to use a different app id and secret that I happened to find. Lets hope they donā€™t revoke the new one!

lmartu commented 2 years ago

Iā€™m sure this is going to happen again in the future, they must be seeing thousands of devices connecting with the same ID, and rightly be suspicious. how did you ā€œhappenā€ to find a new key and secret may I ask? :) any way of generating a per user ID in the future?

hakonorri commented 2 years ago

The beta works for me too. Thanks for a quick fix.

dswarne commented 2 years ago

Hi. Installed the beta, issue is resolved but one device the "KingArt KING-M4 dimmer switch is not discovered. Thanks for the assistance so far

dwemel commented 2 years ago

I have the same problem with the KingArt KING-M4 dimmer switch ā˜¹ļø

dswarne commented 2 years ago

Hopefully Ben can resolve it.

bwp91 commented 2 years ago

This time it is something totally out of my control. The old APPID and APPSECRET seemed to work for all device types like some master key.

The new APPID and SECRET only seems to work for some device types. This is something I cannot control.

The only thing I can do is get in contact with ewelink to see if theyā€™d be willing to continue to help projects like this exist fully. I will do this šŸ‘šŸ»

bwp91 commented 2 years ago

@coolkit-tony anything we can do here?

lmartu commented 2 years ago

I think I will try installing HAA firmware.. though that will only work for esp devicesā€¦ window sensors are not flashable AFAIK

lmartu commented 2 years ago

This time it is something totally out of my control. The old APPID and APPSECRET seemed to work for all device types like some master key.

The new APPID and SECRET only seems to work for some device types. This is something I cannot control.

The only thing I can do is get in contact with ewelink to see if theyā€™d be willing to continue to help projects like this exist fully. I will do this šŸ‘šŸ»

Good Ideaā€¦. I hope they doā€¦. but I doubt they willā€¦. Fingers crossed

ronron1982 commented 2 years ago

Thanks for great effort on this project, i 've upgraded to version v9.0.2-beta.4, the login is sucessful, but seems cannot discover my cloud device at all.

bwp91 commented 2 years ago

Thanks for great effort on this project, i 've upgraded to version v9.0.2-beta.4, the login is sucessful, but seems cannot discover my cloud device at all.

which device model?

ronron1982 commented 2 years ago

Thanks for great effort on this project, i 've upgraded to version v9.0.2-beta.4, the login is sucessful, but seems cannot discover my cloud device at all.

which device model?

i am not sure the model , but it is a 4g-lte (it connect to internet via the 4g network) switch for controller my garage gate. But i am been using with your homebridge plugin solid stable so far. (over 1 year) the product page: https://ewelink.eachen.cc/product/eachen-4g-lte-switch-dry-contact-relay-1ch-ewelink-app/

ronron1982 commented 2 years ago

It can connect and login , but cannot fetich the device at all .

[7/7/2022, 1:22:40 AM] [eWeLink] Fetching devices from eWeLink home/id [My Home] [60edXXXXXXXXXXb3]. [7/7/2022, 1:22:40 AM] [eWeLink] Web socket host received [as-pconnect2.coolkit.cc]. [7/7/2022, 1:22:41 AM] [eWeLink] Sending WS login request. [7/7/2022, 1:22:41 AM] [eWeLink] LAN discovery starting. [7/7/2022, 1:22:41 AM] [eWeLink] WS login successful. [7/7/2022, 1:22:44 AM] [eWeLink] LAN discovery complete. [7/7/2022, 1:22:44 AM] [eWeLink] LAN monitoring started. [7/7/2022, 1:22:46 AM] [eWeLink] āœ“ Setup complete. Interested in sponsoring this plugin? https://github.com/sponsors/bwp91

bwp91 commented 2 years ago

It can connect and login , but cannot fetich the device at all .

[7/7/2022, 1:22:40 AM] [eWeLink] Fetching devices from eWeLink home/id [My Home] [60edXXXXXXXXXXb3]. [7/7/2022, 1:22:40 AM] [eWeLink] Web socket host received [as-pconnect2.coolkit.cc]. [7/7/2022, 1:22:41 AM] [eWeLink] Sending WS login request. [7/7/2022, 1:22:41 AM] [eWeLink] LAN discovery starting. [7/7/2022, 1:22:41 AM] [eWeLink] WS login successful. [7/7/2022, 1:22:44 AM] [eWeLink] LAN discovery complete. [7/7/2022, 1:22:44 AM] [eWeLink] LAN monitoring started. [7/7/2022, 1:22:46 AM] [eWeLink] āœ“ Setup complete. Interested in sponsoring this plugin? https://github.com/sponsors/bwp91

This is most likely due to this comment above: https://github.com/bwp91/homebridge-ewelink/issues/385#issuecomment-1176457283

ronron1982 commented 2 years ago

It can connect and login , but cannot fetich the device at all . [7/7/2022, 1:22:40 AM] [eWeLink] Fetching devices from eWeLink home/id [My Home] [60edXXXXXXXXXXb3]. [7/7/2022, 1:22:40 AM] [eWeLink] Web socket host received [as-pconnect2.coolkit.cc]. [7/7/2022, 1:22:41 AM] [eWeLink] Sending WS login request. [7/7/2022, 1:22:41 AM] [eWeLink] LAN discovery starting. [7/7/2022, 1:22:41 AM] [eWeLink] WS login successful. [7/7/2022, 1:22:44 AM] [eWeLink] LAN discovery complete. [7/7/2022, 1:22:44 AM] [eWeLink] LAN monitoring started. [7/7/2022, 1:22:46 AM] [eWeLink] āœ“ Setup complete. Interested in sponsoring this plugin? https://github.com/sponsors/bwp91

This is most likely due to this comment above: #385 (comment)

Thanks, thanks anyway, Hope can solve this issue soon.

axelweichert commented 2 years ago

The Burnett BN-SZ01 Ceiling Light is also not being discovered since the issue. Curently running the 9.0.2-beta4.

bwp91 commented 2 years ago

It pains me to hear that devices have stopped working šŸ™ This ewelink plugin is my pride and joy and iā€™ve tried to make it work so well, so for something out of my control to diminish the functionality is really irritating me

erfanrahimian commented 2 years ago

Thanks Ben. The beta version is now working for me. If anything we can do like signing a petition or something, let us know.

tjq100 commented 2 years ago

Tried the beta. TH16R2 (switch with temp probe) Still wonā€™t work. On the other hand, my iFan04 worked through it all. Odd. If thereā€™s any debugging I can do from my end to shed light on this, let me know.

tjq100 commented 2 years ago

Tried the beta. TH16R2 (switch with temp probe) Still wonā€™t work. On the other hand, my iFan04 worked through it all. Odd. If thereā€™s any debugging I can do from my end to shed light on this, let me know.

Never mind. Restarted HomeBridge and itā€™s all working now. I think I might have forgotten to restart after installing the beta version. Thanks for the effort! Cool plug-in.

cvalord commented 2 years ago

It pains me to hear that devices have stopped working šŸ™ This ewelink plugin is my pride and joy and iā€™ve tried to make it work so well, so for something out of my control to diminish the functionality is really irritating me

Thank you a lot bwp91

i am the same side my inching devices dosent add to my devices dosent detected , erase the plug in reinstall , restart all do it I have 4 of them EACHEN 1-GANG DIY 5V SELF-LOCKING/INCHING SWITCH ST-UDC1 (EWelink APP)

thank you for your help !!

cvalord commented 2 years ago

The others works son off , mini son off and the 4 channels son off work ,only the eachen 1 gang dosent work

Phoenix-DH commented 2 years ago

Does anybody know if ITA-GZ1-GL still works? Is a Sonoff device.

DataWhig commented 2 years ago

4 Channel DM-585 not working here, can't see any mention of it in logs either.

Is there another 5v input multi channel switch that works?

bwp91 commented 2 years ago

4 Channel DM-585 not working here, can't see any mention of it in logs either.

Is there another 5v input multi channel switch that works?

can you try new beta 9.1.1-beta.0?

DataWhig commented 2 years ago

Hmm doesn't seem to change. But can see an error now:

[7/7/2022, 7:47:56 AM] [eWeLink] An error occurred during http getHomes(). [7/7/2022, 7:47:56 AM] [eWeLink] Disabling plugin. [7/7/2022, 7:47:56 AM] [eWeLink] { "error": 407, "msg": "the path of request is not allowed with appid:4s1FXKC9FaGfoqXhmXSJneb3qcm1gOak", "data": {} } "error": 407,.

Bizarrely, updating to previous version also reset about 36 lights associated with the hue plugin. Maybe I should run homebridge in bridged mode to avoid plugins interfering with each other, not seen that before.

Sonff mini is working.

cvalord commented 2 years ago

All working expect for the EACHEN 1-GANG DIY 5V SELF-LOCKING/INCHING SWITCH ST-UDC1 (EWelink APP) it dosent recognize , and with new beta 9.1.1 An error occurred during http getHomes(). [7/7/2022, 2:47:56 AM] [eWeLink] Disabling plugin.

neilheyes commented 2 years ago

Hi, thanks for fixing this. I did have only one of my R3s not connecting after the update. I rejoined it to the wifi (since I set this up I created a seprate SSID which is only on 2.5g) and now its discoverable. All the R3s are on the latest firmware. So its odd to say the least.

ddong3000 commented 2 years ago

D3AF4494-2137-429E-952A-C76CA7532526 my switch is not working

PelonVela commented 2 years ago

Thank you for work! I hope this helps.

ewelink v9.1.0 Working:

Not Working (Not added):

ewelink v9.1.1-beta.0 Nothing works and shows the following error.

image

bwp91 commented 2 years ago

Newest beta should work with all device types again.

The drawback is, it will log you out the ewelink app.

My suggestion (not ideal) is to create another ewelink account and share your devices to this account.

Most importantly, use your MAIN ewelink account for this plugin and your shared account with the ewelink app

RobLiekens commented 2 years ago

@bwp91 I just tested v 9.1.1-beta.1 and the devices that previously dissappeared were added to Homebridge again. Seems like the problem is resolved. Thanks!

eXCepT74 commented 2 years ago

Same problem - KingArt04 stopped working - I use Hoobs 4.2 and can install only 9.0.1. Can not install 9.0.2 beta 4 or 9.1. Those are not on the list for installation. Any solution ? Maybe by shell ?

dswarne commented 2 years ago

Nicely done Ben,

All working wonderfully, and no eWeLink app issues.

Regards

On Thu, Jul 7, 2022 at 22:28, eXCepT @.***> wrote:

Same problem - KingArt04 stopped working - I use Hoobs 4.2 and can install only 9.0.1. Can not install 9.0.2 beta 4 or 9.1. Those are not on the list for installation. Any solution ? Maybe by shell ?

ā€” Reply to this email directly, view it on GitHub https://github.com/bwp91/homebridge-ewelink/issues/385#issuecomment-1178188149, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQOBXP3AZJCT4RFHTQWP6Z3VS44XNANCNFSM52YVQS6A . You are receiving this because you commented.Message ID: @.***>

-- David Warne

bo-2221 commented 2 years ago

Die neueste Beta sollte wieder mit allen GerƤtetypen funktionieren.

Der Nachteil ist, dass Sie dadurch von der ewelink-App abgemeldet werden.

Mein Vorschlag (nicht ideal) ist, ein weiteres ewelink-Konto zu erstellen und Ihre GerƤte fĆ¼r dieses Konto freizugeben.

Am wichtigsten ist, dass Sie Ihr HAUPT-ewelink-Konto fĆ¼r dieses Plugin und Ihr gemeinsames Konto mit der ewelink-App verwenden

So I am not logged out in the app with the beta, I had problems before and could only log in the plugin or in the app, otherwise there were problems. With the beta everything is back to normal.

ddong3000 commented 2 years ago

My switch still doesn't work. I have been using the G1 switch as my account for over 2 years. When I see other people getting fixed, I feel very bad. The G1 switch is compatible with the ewelink app and I've been using it for over 2 years and it doesn't work now. Will G1 switches not be supported in the future?

ddong3000 commented 2 years ago

Both the lastest version and the beta version do not work.

ddong3000 commented 2 years ago

Trying with a shared account doesn't work. I am very sad Can you help?