# Service ewelink zeigt Fehler an

**URL:** <https://community.gladysassistant.com/t/service-ewelink-en-erreur/8323>\
**Category:** Configuration\
**Created:** [30. August 2023 um 06:00 UTC](https://community.gladysassistant.com/t/service-ewelink-en-erreur/8323 "2023-08-30T06:00:05Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![pascal\_sapin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pascal_sapin/32/8958_2.png) [@pascal\_sapin](https://community.gladysassistant.com/u/pascal_sapin)\
**Post date:** [5. September 2023 um 16:31 UTC](https://community.gladysassistant.com/t/service-ewelink-en-erreur/8323/21 "2023-09-05T16:31:50Z")

</div>

danke, ich werde warten. In der Zwischenzeit werde ich ewelink nutzen, keine Lust alles auseinanderzubauen, um zu flashen. Aber es ist trotzdem schade, dass sich diese APIs ständig ändern. Ich habe das Gefühl, dass wir uns alle auf Full Zigbee zubewegen. Warten wir ab.

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [3. Oktober 2023 um 13:17 UTC](https://community.gladysassistant.com/t/service-ewelink-en-erreur/8323/22 "2023-10-03T13:17:58Z")

</div>

Zur Information, ich habe gerade einige Tests mit ihrem Node.js-Modul durchgeführt, und alles schlägt ebenfalls fehl.

> **[Getting Started | eWeLink API](https://ewelink-api.vercel.app/docs/introduction)**
>
> Getting started with eWeLink API for JavaScript

Es scheint, dass sie die OAuth2-Authentifizierung aktiviert haben, und es erforderlich ist, wie bei GoogleHome oder Alexa vorzugehen, um sich bei seinem Konto anzumelden (eWeLink-Login-Maske, Code-Austausch, Verwendung von Client-ID/Secret…), und, wenn dies der Fall ist, wäre diese Integration nur über Gladys Plus verfügbar (sobald die notwendigen Änderungen vorgenommen wurden).

Ich setze meine Untersuchungen fort, indem ich die hier gefundenen Informationen folge:

> **[GitHub - nocmt/eWeLinkOAuthLoginDemo](https://github.com/nocmt/eWeLinkOAuthLoginDemo)**
>
> Contribuez au développement de nocmt/eWeLinkOAuthLoginDemo en créant un compte sur GitHub.

---

<div class="post-metadata">

**Author:** ![tiboys](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tiboys/32/17668_2.png) [@tiboys](https://community.gladysassistant.com/u/tiboys)\
**Post date:** [3. Oktober 2023 um 16:47 UTC](https://community.gladysassistant.com/t/service-ewelink-en-erreur/8323/23 "2023-10-03T16:47:13Z")

</div>

Ich verstehe nicht alles technisch, aber ich habe festgestellt, dass es sowohl auf Gladys- als auch auf IFTTT-Seite zu einem Verlust kam, der nun die IFTTT/Ewelink-Steuerung über ein Upgrade des Kontos (€) anbietet.  
Ich suchte nach einem Zwischendienst, um die Aktionen zu umgehen, aber vergeblich.  
HomeAssistant scheint zu den Kompatibilitäten zu gehören, daher muss ihr Verbindungsprinzip nun kostenpflichtig geworden sein.  
Danke für die Recherchearbeit .. 👍

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [6. Oktober 2023 um 10:15 UTC](https://community.gladysassistant.com/t/service-ewelink-en-erreur/8323/24 "2023-10-06T10:15:50Z")

</div>

Eine weitere Diskussion, die das Ende der API v1 für die Nutzung der API v2 ankündigt

> **[Node js api issue since Aug 10, 2023](https://forum.ewelink.cc/t/node-js-api-issue-since-aug-10-2023/20558/24)**
>
> Hello, I have the same authentication problem. I’m using the node-red contrib nodes, based on the standard ewelink API. I have a lot of ewelink devices , they are working with Alexa, but my domotic system is based on node-red that is not...

Hier ist die Dokumentation der API v2, mit den Kosten von 2.000$ pro Jahr für ein Unternehmen. Andernfalls ist der „persönliche“ Modus verfügbar, erfordert aber eine komplexere Konfiguration durch den Benutzer Gladys (eine Anwendung auf [https://dev.ewelink.cc/](https://dev.ewelink.cc/) erstellen, auf die Freigabe durch das eWelink-Team warten, Client ID/Secret OAuth2 abrufen…).

Das müssen wir mit @pierre-gilles besprechen, was wir vorhaben:

1. mit eWelink sprechen, um zu sehen, ob sie Gladys diesen Tarif berechnen, und OAuth2 in Gladys Plus integrieren (wie bei Google oder Alexa)
2. den „persönlichen“ Modus mit einem Tutorial öffnen, um das Konto richtig zu konfigurieren
3. wir verlassen eWelink und machen DIY ([DIY Sonoff pour une connexion locale](https://community.gladysassistant.com/t/diy-sonoff-pour-une-connexion-locale/8386?u=alextrovato)), aber ich glaube nicht, dass alle Geräte kompatibel sind

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [6. Oktober 2023 um 11:54 UTC](https://community.gladysassistant.com/t/service-ewelink-en-erreur/8323/25 "2023-10-06T11:54:49Z")

</div>

Ich weiß nicht, wie viele Leute Ewelink nutzen, aber 2000€ pro Jahr erscheinen mir im Moment selbst über Gladys Plus schwierig 😅

Im Moment sehe ich eher Option 2 oder 3.

Dann bleibt auch noch die Frage, wie Ewelink mit Matter plant umzugehen. Könnte nicht eine Matter-Integration dieses Problem lösen, falls die Ewelink-Geräte irgendwann Matter-kompatibel sind?

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [6. Oktober 2023 um 13:08 UTC](https://community.gladysassistant.com/t/service-ewelink-en-erreur/8323/26 "2023-10-06T13:08:55Z")

</div>

Ich denke, das ist ein guter Ansatz mit Matter !!!  
Ich kann das schnell mit Google Home als Tester testen.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [6. Oktober 2023 um 13:10 UTC](https://community.gladysassistant.com/t/service-ewelink-en-erreur/8323/27 "2023-10-06T13:10:06Z")

</div>

@AlexTrovato Wenn du Equipment brauchst, sag mir Bescheid, ich bezahl’s dir 🙂

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [6. Oktober 2023 um 15:31 UTC](https://community.gladysassistant.com/t/service-ewelink-en-erreur/8323/28 "2023-10-06T15:31:29Z")

</div>

Daher ist das von mir besessene Sonoff / eWelink-Material nicht mit Matter kompatibel, aber ich habe die Frage einer möglichen Firmware-Aktualisierung von Sonoff für ältere Geräte gestellt, um sie mit Matter kompatibel zu machen.  
Ich dachte, ich hätte Matter-Gerätesimulatoren gefunden, um einige Tests durchführen zu können, und es scheint, dass die nodejs-Bibliothek von Matter nicht vollständig ist. Daher werde ich mit dem Einfachsten beginnen, einem Ein-/Ausschaltgerät zu integrieren, und wir werden den Service iterativ weiterentwickeln.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [6. Oktober 2023 um 16:04 UTC](https://community.gladysassistant.com/t/service-ewelink-en-erreur/8323/29 "2023-10-06T16:04:38Z")

</div>

Ok, das funktioniert 🙂 Es ist immer zufriedenstellend zu sehen, dass es in der Praxis funktioniert. Also, falls du mal so etwas wie einen Matter-verbundenen Stecker brauchst, lass mich wissen!

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [8. Oktober 2023 um 07:32 UTC](https://community.gladysassistant.com/t/service-ewelink-en-erreur/8323/30 "2023-10-08T07:32:19Z")

</div>

Die Antwort von Sonoff:

> Sehr geehrter Alexandre Trovato,
> 
> Vielen Dank für Ihre E-Mail.
> 
> Da wir das Matter-fähige Gerät (MINIR4M) haben, haben wir keine Pläne, das Firmware der alten Geräte zu aktualisieren, um sie Matter-kompatibel zu machen.
> 
> Mit freundlichen Grüßen,  
> Taylor bei SONOFF

In der Zwischenzeit scheint Tasmota kompatibel zu sein:

> **[Matter - Tasmota](https://tasmota.github.io/docs/Matter/)**
>
> Documentation (Wiki) for Tasmota

Aber Node.js ist derzeit recht arm an Bibliotheken…

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [9. Oktober 2023 um 08:29 UTC](https://community.gladysassistant.com/t/service-ewelink-en-erreur/8323/31 "2023-10-09T08:29:27Z")

</div>

Schade!

> [@AlexTrovato](#):
>
> Aber Node.js ist im Moment noch recht arm an Bibliotheken…

Im Vergleich zu Matter? Dafür haben wir 2 Optionen:

- Entweder wir machen einen „nativen“ Dienst in Gladys mit einer Node.js Matter-Bibliothek (aber dann müssen wir schauen, ob ihre offizielle Bibliothek überhaupt verwendbar ist oder nicht)
- Oder wir starten einen Container wie bei Zigbee2mqtt, und der Matter-Container von Home Assistant ist Open-Source und hat eine Websocket-API, mit der wir uns integrieren könnten. Allerdings werden wir dann sehr abhängig von ihren Änderungen, und da es nicht unbedingt ein Container ist, der für andere Projekte gedacht ist, kann die API sich ändern…

Wenn du dich mit dem Thema Matter beschäftigen willst, können wir darüber in einem speziellen Thema sprechen, wenn du möchtest 😉

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [9. Oktober 2023 um 16:09 UTC](https://community.gladysassistant.com/t/service-ewelink-en-erreur/8323/32 "2023-10-09T16:09:09Z")

</div>

Ich werde damit beginnen, den eWelink-Dienst mit der persönlichen API und der Benutzergenerierung von Client-ID/Secret zu warten, inklusive der passenden Dokumentation; das gibt der Matter-Bibliothek etwas Zeit, um voranzukommen.

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [6. Dezember 2023 um 19:32 UTC](https://community.gladysassistant.com/t/service-ewelink-en-erreur/8323/33 "2023-12-06T19:32:39Z")

</div>

Hallo, ein paar Neuigkeiten dazu.

Ich bin mit den Änderungen gut vorangekommen, ich kann jetzt wieder die Geräte manipulieren.  
Ich muss noch ein paar Validierungen durchführen, aber ich bin zuversichtlich, dass dies sehr bald für eine Testphase kommt.

Es fehlt hauptsächlich die Dokumentation, die sehr wichtig wird, denn es gibt einige Aktionen, die auf Seiten von ewelink durchgeführt werden müssen, um Gladys zu integrieren.

In einer zweiten Phase werde ich sehen:

- die Geräte über das lokale Netzwerk zu verwenden, um zu viele API-Aufrufe zu vermeiden (da die neue API in der Anzahl der Aufrufe begrenzt ist)
- die Websockets mit ewelink zu testen, um das Polling zu vermeiden und damit die API-Aufrufe zu begrenzen (für Geräte, die nicht im lokalen Netzwerk sind)
- die Kompatibilität mit anderen Geräten hinzuzufügen

Bis bald

PS: Für die Interessierten, bereitet eine Testinstanz von Gladys vor, ich werde euch bald das Docker-Image und die Dokumentation geben.

---

<div class="post-metadata">

**Author:** ![tiboys](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tiboys/32/17668_2.png) [@tiboys](https://community.gladysassistant.com/u/tiboys)\
**Post date:** [6. Dezember 2023 um 19:51 UTC](https://community.gladysassistant.com/t/service-ewelink-en-erreur/8323/34 "2023-12-06T19:51:36Z")

</div>

Cool, das interessiert mich.  
Danke @AlexTrovato

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [6. Dezember 2023 um 20:06 UTC](https://community.gladysassistant.com/t/service-ewelink-en-erreur/8323/35 "2023-12-06T20:06:00Z")

</div>

> [@AlexTrovato](#):
>
> et la doc rapidement

In Notion gibt es bereits eine Seite, die du bearbeiten kannst.

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [6. Dezember 2023 um 20:51 UTC](https://community.gladysassistant.com/t/service-ewelink-en-erreur/8323/36 "2023-12-06T20:51:30Z")

</div>

> [@Tlse-vins](#):
>
> In Notion

Äh, da muss ich wohl eine Folge verpasst haben. Ich nehme an, ich finde Infos im Forum.

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [6. Dezember 2023 um 20:53 UTC](https://community.gladysassistant.com/t/service-ewelink-en-erreur/8323/37 "2023-12-06T20:53:48Z")

</div>

Hier findest du die Infos.

> [@Gladys Assistant: Lass uns gemeinsam mehr Inhalte erstellen!](https://community.gladysassistant.com/t/gladys-assistant-ecrivons-plus-de-contenu-ensemble/8492):
>
> Salut à tous slight_smile On en a parlé sur les dernières semaines, il manque clairement du contenu sur Gladys qui permettrait à de nouveaux utilisateurs de se projeter, et surtout d’attirer plus d’utilisateurs qui nous trouveraient via Google. J’ai commencé à recenser des sujets où il manque du contenu, et je pense qu’on pourrait se répartir les différents articles à écrire pour gagner du temps. En sachant que pour écrire du contenu, pas besoin de savoir coder, il faut juste savoir écrire …

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [7. Dezember 2023 um 09:43 UTC](https://community.gladysassistant.com/t/service-ewelink-en-erreur/8323/38 "2023-12-07T09:43:37Z")

</div>

Re

Die Dokumentation hier besagt, dass man ~48 Stunden warten muss, bis das eWeLink-Konto aktiv ist:

> <https://github.com/atrovato/v4-website/blob/ewelink-api-next/i18n/fr/docusaurus-plugin-content-docs/current/integrations/sonoff.md>

Und das Docker-Testbild:

`atrovato/gladys:ewelink`

Danke an alle.

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [15. Dezember 2023 um 11:53 UTC](https://community.gladysassistant.com/t/service-ewelink-en-erreur/8323/39 "2023-12-15T11:53:16Z")

</div>

Hallo,  
da habe ich mit dem WebSocket-Teil weitergemacht (um das zu tun, was in der offiziellen Dokumentation empfohlen wird), es ist immer noch der gleiche Bild-Tag `atrovato/gladys:ewelink` (in 2 Stunden verfügbar) und die gleiche Dokumentation.

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [15. Dezember 2023 um 19:24 UTC](https://community.gladysassistant.com/t/service-ewelink-en-erreur/8323/40 "2023-12-15T19:24:49Z")

</div>

Bis jemand anderes als ich die neue Version des Dienstes testet, stelle ich den PR bereit.

> <https://github.com/GladysAssistant/Gladys/pull/1977>
>
> \### Pull Request check-list
> 
> To ensure your Pull Request can be accepted as fa…st as possible, make sure to review and check all of these items:
> 
> \- \[x\] If your changes affects code, did your write the tests?
> \- \[x\] Are tests passing? (\`npm test\` on both front/server)
> \- \[x\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[x\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- \[x\] If you are adding a new features/services, did you run integration comparator? (\`npm run compare-translations\` on front)
> \- \[x\] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to the community (\[french forum\](https://community.gladysassistant.com/)/\[english forum\](https://en-community.gladysassistant.com/)) for testing before merging.
> \- \[x\] If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)
> \- \[x\] If you are adding a new features/services which needs explanation, did you modify the user documentation? See \[the GitHub repo\](https://github.com/GladysAssistant/v4-website) and the \[website\](https://gladysassistant.com).
> \- \[x\] Did you add fake requests data for the demo mode (\`front/src/config/demo.js\`) so that the demo website is working without a backend? (if needed) See \[https://demo.gladysassistant.com\](https://demo.gladysassistant.com).
> 
> NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
> 
> \### Description of change
> 
> Changes eWeLink API with OAuth2 authentication.
> Implements WebSocket connection as recommanded in developer documentation.
> 
> Documentation: https://github.com/GladysAssistant/v4-website/pull/232

Und die Dokumentation:

> <https://github.com/GladysAssistant/v4-website/pull/232>
>
> Relative code changes: https://github.com/GladysAssistant/Gladys/pull/1977

Es wird weitere Änderungen / Verbesserungen geben, die folgen, aber diese können in anderen PRs kommen, da sie die Implementierung der v2 der API nicht beeinflussen.

[Vorherige Seite](https://community.gladysassistant.com/t/service-ewelink-en-erreur/8323.md?page=1)

[Nächste Seite](https://community.gladysassistant.com/t/service-ewelink-en-erreur/8323.md?page=3)
