-
Notifications
You must be signed in to change notification settings - Fork 420
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
Appid is unauthorized! Error. #1201
Comments
+1 this is also happening to me |
+1 this is also happening to me |
Add me to that list. |
Same here. Rebooted my Home Assistant today and the Sonoff integration stopped working. Everything had been fine for months. I can still control my lights and switches using the eWeLink app on my phone and the official integration in Home Assistant, but this SonoffLAN integration fails to work as of today. -----Update----- |
same here. |
Just had the same issue. DId the line changing edit (line 107 and 157) in the /custom_components/sonoff/core/ewelink/cloud.py restarted HA and all good now |
Confirm also working after making that change |
Thanks. This worked. Re-authenticated and back in control. |
When the day starts like this lol :-) (mind you its night there now right?) |
+1 for me, same error and big red reconfigure on integrations page with appid error. With the integration itself, I'm using auto mode, and I can control all devices via LAN that have LAN functionality built in, but the few devices that are cloud only (Kingart covers) won't work. Energy values however which I must assume are retrieved from the could show as unavailable. |
Cloud API key was blocked. You need to comment this line:
So integration will use second key. But! Second key works only with Sonoff brand devices. It doesn't work with 3rd party ewelink devices... |
same to me . i also try to recover from yesterday backup, same problem |
That would explain my R2 switches working and my non-sonoff 4-way relay not... big problem for me |
It's Work! thank you. |
Is there likely to be any work around for this? I have a mix of Sonoff an ewelink devices. This is a major issue. |
I have sent a question to sonoff tech support asking if this is an intended change (stopping non-branded devices from working), or a mistake/bug that will be fixed. I will post their response (if I get one) |
async def login(self, username: str, password: str, app=1) -> bool: When I change the value of app from "0" to "1" in the line, Sonoff devices including Sonoff ZB work, but the thermostat working with Ewelink cannot be reached. |
@dpgh947 Sonoff team gave personal key for me (second key). It support only Sonoff brand devices. They not plan open all devices for this key. Some licensing issue. So I have been using a different key. Today it stopped working. |
Is any resolution in sight? |
@AlexxIT so this renders 3rd party devices useless for good? |
but all my devices are sonoff. |
Same issue |
in this case is better to leave the password field empty as it not does cloud syncing in that case, you will not have updates if you add a new device or have the devices available when using "cloud" in configuration but will still have all your devices (also 3rd gen) working in "auto" or "local" configuration IN CASE you already did use the fix you will need to replace the .JSON in config/.storage/sonoff with a old version where your 3rd party devices still where listed |
I can confirm this is working for now. Not great but at least things are working. - My advice would be to take a back up of the .JSON in config/.storage/sonoff |
I only replaced keys. No modify line 107 and 157. Ok all. |
I changed: line 107: line 39: comment this line: now every thing is working fine sonoff and third party Great job Alexx, thank you all for your support |
@AlexxIT Yes is working for my 3rd party PC switch by SANNTONG |
I have 2 devices - 1 sonoff and 1 ewelink. Both work with the key change.
From: leeandy1 ***@***.***>
Sent: Wednesday, July 26, 2023 3:19 PM
To: AlexxIT/SonoffLAN ***@***.***>
Cc: dinan5 ***@***.***>; Comment ***@***.***>
Subject: Re: [AlexxIT/SonoffLAN] Appid is unauthorized! Error. (Issue #1201)
@ninoger<https://github.com/ninoger> @leeandy1<https://github.com/leeandy1> @smarthomefamilyverrips<https://github.com/smarthomefamilyverrips> all of you have third-party devices and can confirm this key can control them? Sonoff brand devices are not interesting. They can be controlled with my key.
The problem is that this key is not allowed to get the user's homes list :)
Unfortunately it is not working for me .I am in the latest HA version
I can confirm the keys work with devices by Sonoff, DIYMORE, New Smart, Maker and BLu50.
I only replaced the first key and left line 107 as it was originally with the 0
-
Reply to this email directly, view it on GitHub<#1201 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ARAH6EGBV3T2Z2ZWILYO2R3XSFUTBANCNFSM6AAAAAA2YA5EBA>.
You are receiving this because you commented.Message ID: ***@***.******@***.***>>
|
Great work!
From: Alex X ***@***.***>
Sent: Wednesday, July 26, 2023 3:32 PM
To: AlexxIT/SonoffLAN ***@***.***>
Cc: ***@***.***; Comment ***@***.***>
Subject: Re: [AlexxIT/SonoffLAN] Appid is unauthorized! Error. (Issue #1201)
Closed #1201<#1201> as completed.
-
Reply to this email directly, view it on GitHub<#1201 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ARAH6ECVV6QQUO4FLCWLOD3XSFWBZANCNFSM6AAAAAA2YA5EBA>.
You are receiving this because you commented.Message ID: ***@***.******@***.***>>
|
Perfect! Works just fine! |
Same here! Thanks @AlexxIT !!! |
3.5.2 perfect. Thanks. |
Solved with 3.5.2. Thanks |
@AlexxIT i dunno which app id and key you are using now, but this could be an interesting read: |
Solved with 3.5.2. Thanks @AlexxIT you are fast and reliable man. |
Snappy resolution - Thanks @AlexxIT - Superstar. I had a power cut at home and this issue raised itself straight after - Also Alexa had similar problems which seem to have been resolved overnight. |
You don't need to change anything. update the plugin to the new version. All problems will be fixed.
Hakan Güreşçi
With Mobile
…-------- Orijinal mesaj --------
Kimden: Maderik72 ***@***.***>
Tarih: 28.07.2023 14:36 (GMT+03:00)
Alıcı: AlexxIT/SonoffLAN ***@***.***>
Cc: Hakan Güreşçi ***@***.***>, Comment ***@***.***>
Konu: Re: [AlexxIT/SonoffLAN] Appid is unauthorized! Error. (Issue #1201)
Hi guis,
I'm facing still issues.
please give a look on what I changed and the error message:
Have you other solutions?
[Schermata 2023-07-28 alle 13 24 39]<https://user-images.githubusercontent.com/114488345/256811130-ac1ed66d-12b4-417c-a682-f5f1ab61d19a.png>
[Schermata 2023-07-28 alle 13 24 19]<https://user-images.githubusercontent.com/114488345/256811133-4d23b80d-5b95-448d-8c71-0c9df30213e0.png>
—
Reply to this email directly, view it on GitHub<#1201 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A6WXBZM32CT5XV5KZOZFZMTXSOP3DANCNFSM6AAAAAA2YA5EBA>.
You are receiving this because you commented.Message ID: ***@***.***>
GIZLILIK NOTU: Bu mesaj ve ekleri yalnizca gönderildigi kisi(lere) ozeldir ve gizlidir. Mesaj sizin adiniza degilse, içerigini ve varsa ekindeki dosyalari kimseye göndermeyiniz ya da kopyalamayiniz. Bu mesajin herhangi bir sekilde açiklanmasi, kullanilmasi, kopyalanmasi, yayilmasi veya mesaj içerigi ile ilgili olarak herhangi bir islem yapilmasi kesinlikle yasaktir. Böyle bir durumda lütfen göndereni uyarip, mesaji siliniz. Alan adi sahibi bu mesajin içerigi ve ekleri ile ilgili olarak hiçbir hukuksal sorumlulugu kabul etmez. CONFIDENTIALITY NOTICE: This message and attachments are confidential and intended solely for the individual(s) stated in this message. If you received this message although you are not the addressee, you are responsible to keep the message confidential. If you are not the intended recipient please notify the sender immediately and destroy this e-mail. Owner of the domain does not accept legal responsibility for the contents and the attacments of this message.
|
Exactly as you said !!! Now it works, maybe I did not found the info before. |
I updated the plugin. Still all of my devices were unavailable. So I deleted the plugin and installed again. Now there are no devices. ?? EDIT: Ok I waited a while so all devices are back now. |
updated to v352 with hacs... I still have issues with 3rd party brand . Something I need to do? Any one have the same issue? Edit: solved... an authentication problem |
Still have probem with L1 and wireless sensors. All of them are ofline. In Ewelink app it is online. |
it's works, tks ;) |
I have the latest version of the integration and still experienced this issue. Commenting out line 40 seemed to work though. |
Plase update addon
Hakan Güreşçi
With Mobile
Telefon GSM : +90 505 424 47 57
Telefon İŞ : +90 212 809 09 11
Bahçeşehir / İstanbul
[cid:storage_emulated_0_Android_data_com_samsung_android_email_provider_files__EmailTempImage_1_TempSignature_signature_image003_png_1683494851522]
…-------- Orijinal mesaj --------
Kimden: DIY techie ***@***.***>
Tarih: 5.08.2023 02:07 (GMT+03:00)
Alıcı: AlexxIT/SonoffLAN ***@***.***>
Cc: Hakan Güreşçi ***@***.***>, Comment ***@***.***>
Konu: Re: [AlexxIT/SonoffLAN] Appid is unauthorized! Error. (Issue #1201)
I have the latest version of the integration and still experienced this issue. Commenting out line 40 seemed to work though.
—
Reply to this email directly, view it on GitHub<#1201 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A6WXBZKA7Z7HNO3WO7CUGSTXTV6DXANCNFSM6AAAAAA2YA5EBA>.
You are receiving this because you commented.Message ID: ***@***.***>
GIZLILIK NOTU: Bu mesaj ve ekleri yalnizca gönderildigi kisi(lere) ozeldir ve gizlidir. Mesaj sizin adiniza degilse, içerigini ve varsa ekindeki dosyalari kimseye göndermeyiniz ya da kopyalamayiniz. Bu mesajin herhangi bir sekilde açiklanmasi, kullanilmasi, kopyalanmasi, yayilmasi veya mesaj içerigi ile ilgili olarak herhangi bir islem yapilmasi kesinlikle yasaktir. Böyle bir durumda lütfen göndereni uyarip, mesaji siliniz. Alan adi sahibi bu mesajin içerigi ve ekleri ile ilgili olarak hiçbir hukuksal sorumlulugu kabul etmez. CONFIDENTIALITY NOTICE: This message and attachments are confidential and intended solely for the individual(s) stated in this message. If you received this message although you are not the addressee, you are responsible to keep the message confidential. If you are not the intended recipient please notify the sender immediately and destroy this e-mail. Owner of the domain does not accept legal responsibility for the contents and the attacments of this message.
|
This comment was marked as resolved.
This comment was marked as resolved.
Thanks. This worked well for me. |
Just started happening to my setup, it removed my access to my devices and wanted me to reconfigure the setup, trying to configure it again or even a full reinstall gives a Appid error for a response.
appid is unauthorized! KOBxGJna5qkk3JLXw3LHLX3wSNiPjAVi
Temporary work around is to manually change the API keys in your Sonof Cloud file found at /custom_components/sonoff/core/ewelink/cloud.py to the keys listed below. You can either replace or add a new line and comment out the other keys with a #
("4s1FXKC9FaGfoqXhmXSJneb3qcm1gOak", "oKvCM06gvwkRbfetd6qWRrbC3rFrbIpV")
#1201 (comment) (Posted by Alex)
The text was updated successfully, but these errors were encountered: