# Problem mit Z-Wave und Google Home

**URL:** <https://community.gladysassistant.com/t/probleme-zwave-et-google-home/6992>\
**Category:** Configuration\
**Created:** [24. Februar 2022 um 18:54 UTC](https://community.gladysassistant.com/t/probleme-zwave-et-google-home/6992 "2022-02-24T18:54:19Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![spenceur](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/spenceur/32/1961_2.png) [@spenceur](https://community.gladysassistant.com/u/spenceur)\
**Post date:** [23. März 2022 um 13:08 UTC](https://community.gladysassistant.com/t/probleme-zwave-et-google-home/6992/21 "2022-03-23T13:08:56Z")

</div>

Gleiches gilt ^^

```auto
pi@raspberrypi:~ $ dig plus.gladysassistant.com

; <<>> DiG 9.11.5-P4-5.1+deb10u5-Raspbian <<>> plus.gladysassistant.com
;; globale Optionen: +cmd
;; Antwort erhalten:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28120
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;plus.gladysassistant.com. IN A

;; ANSWER SECTION:
plus.gladysassistant.com. 300 IN A 188.114.97.3
plus.gladysassistant.com. 300 IN A 188.114.96.3

;; Query time: 72 msec
;; SERVER: 9.9.9.9#53(9.9.9.9)
;; WHEN: Wed Mar 23 14:08:19 CET 2022
;; MSG SIZE rcvd: 85

```

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [23. März 2022 um 13:12 UTC](https://community.gladysassistant.com/t/probleme-zwave-et-google-home/6992/22 "2022-03-23T13:12:05Z")

</div>

Hmm, ich weiß nicht so genau, also habe ich auch keinen lokalen Tipp. 😵‍💫

---

<div class="post-metadata">

**Author:** ![spenceur](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/spenceur/32/1961_2.png) [@spenceur](https://community.gladysassistant.com/u/spenceur)\
**Post date:** [23. März 2022 um 13:18 UTC](https://community.gladysassistant.com/t/probleme-zwave-et-google-home/6992/23 "2022-03-23T13:18:39Z")

</div>

Ich schau mir mal neue an, aber du hast keine Probleme?  
Falls nicht, dann warte ich halt auf die Syno-App, um eine Installation von vorne zu machen.

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [23. März 2022 um 15:53 UTC](https://community.gladysassistant.com/t/probleme-zwave-et-google-home/6992/24 "2022-03-23T15:53:45Z")

</div>

Nein, ich habe keine Probleme mit einer ähnlichen Konfiguration, deshalb verstehe ich das nicht.

---

<div class="post-metadata">

**Author:** ![spenceur](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/spenceur/32/1961_2.png) [@spenceur](https://community.gladysassistant.com/u/spenceur)\
**Post date:** [23. März 2022 um 16:09 UTC](https://community.gladysassistant.com/t/probleme-zwave-et-google-home/6992/25 "2022-03-23T16:09:59Z")

</div>

Ich habe neu gestartet, falls sich die Konfiguration nicht überall verbreitet hat. Ich werde weiter überwachen, danke.  
Ich hatte das gleiche Problem noch um 17 Uhr ^^

---

<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:** [23. März 2022 um 17:41 UTC](https://community.gladysassistant.com/t/probleme-zwave-et-google-home/6992/26 "2022-03-23T17:41:13Z")

</div>

@spenceur Ok, offensichtlich liegt das Problem nicht dort, wir kommen voran 🙂

Um dir besser zu erklären, was in dieser Funktion «&nbsp;reportState&nbsp;» passiert, also wie du Google Home verbunden hast, propagiert deine lokale Instanz an Google Home die Änderungen der Werte deiner Geräte, um den Zustand auf der Google Home-Seite zu aktualisieren. Das ermöglicht dir zum Beispiel, wenn du eine Lampe hast, den aktuellen Zustand deiner Lampe beim nächsten Mal zu sehen, wenn du die Google Home-App öffnest, selbst wenn es zwischendurch Änderungen auf Gladys-Seite gab.

Natürlich, um zu vermeiden, dass Gladys Plus Google Home spammt, wenn du sehr ausführliche Geräte lokal hast, sendet die lokale Instanz maximal ein Ereignis pro Gerät und alle 5 Sekunden.

Beispiel: Wenn du dein Licht an- und ausschaltest, an- und ausschaltest 12 Mal hintereinander, sendet Gladys nur ein Ereignis und nicht 12, ich habe mir das gut überlegt 😃 (Und wenn es keine Zustandsänderungen gibt, sendet Gladys nichts)

Andererseits, wenn du 10 verschiedene Lampen hast, die gleichzeitig bei dir angehen, wird Gladys 10 Anfragen mehr oder weniger gleichzeitig senden.

Und das ist der Punkt, an dem ich denke, dass es ein Problem geben könnte.

Fehler EAI\_AGAIN bedeuten nicht unbedingt, dass sie vom DNS-Server kommen, es kann auch der Dienst getaddrinfo sein, der lokal ins Stocken gerät, wenn er unter Last steht.

Und das ist der Punkt, an dem man überprüfen muss, ob das der Fall ist: Wenn die Integrationen, die du lokal verwendest, plötzlich alle sehr ausführlich werden (oder du eine Szene hast, die alle Lampen in deinem Haus gleichzeitig einschaltet), frage ich mich, ob das zu Problemen beim gleichzeitigen Zugriff auf diesen lokalen DNS-Dienst führen kann und zu Fehlern führen kann.

Man müsste bei dir sehen, wie oft du die Zustände deiner Geräte aktualisierst (das kann man in der Datenbank in der Tabelle t\_device\_feature\_state finden), und sehen, ob es Zeiten am Tag gibt, in denen es eine starke Konkurrenz gibt. Wenn das der Fall ist, bedeutet das nicht unbedingt, dass es das ist, aber es ist ein erster Hinweis.

Dennoch, keine Panik @spenceur, die einzige Folge dieser Fehler ist, dass Google Home nicht über den letzten lokalen Zustand informiert ist, das ist nicht kritisch für die Funktionsfähigkeit von Gladys 🙂

---

<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:** [25. März 2022 um 16:42 UTC](https://community.gladysassistant.com/t/probleme-zwave-et-google-home/6992/27 "2022-03-25T16:42:37Z")

</div>

Hallo @spenceur,

Wie besprochen heute Morgen habe ich einen PR erstellt, um die Häufigkeit der Aufrufe an Gladys Plus bei diesem Netzwerkaufruf «&nbsp;google home reportState&nbsp;» zu begrenzen.

Ich habe auf 2 gleichzeitige Aufrufe und mindestens 200ms pro Aufruf begrenzt, was verhindert, dass dein Pi bei einem lokalen Zustandsänderungs-Peak überlastet wird!

Der PR ist hier:

> <https://github.com/GladysAssistant/Gladys/pull/1486>
>
> \### 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:
> 
> \- \[\] If your changes affects code, did your write the tests?
> \- \[\] Are tests passing? (\`npm test\` on both front/server)
> \- \[\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- \[\] If you are adding a new features/services, did you run integration comparator? (\`npm run compare-translations\` on front)
> \- \[\] 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\](https://community.gladysassistant.com/) for testing before merging.
> \- \[\] If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)
> \- \[\] 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).
> \- \[\] 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
> 
> Please provide a description of the change here. It's always best with screenshots, so don't hesitate to add some!

Ich habe ihn heute Nachmittag gemerged, er wird in der nächsten Version von Gladys veröffentlicht, wahrscheinlich Anfang nächster Woche 🙂

---

<div class="post-metadata">

**Author:** ![spenceur](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/spenceur/32/1961_2.png) [@spenceur](https://community.gladysassistant.com/u/spenceur)\
**Post date:** [25. März 2022 um 18:28 UTC](https://community.gladysassistant.com/t/probleme-zwave-et-google-home/6992/28 "2022-03-25T18:28:33Z")

</div>

Und du hast nicht gefaulenzt!  
Bravo

---

<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:** [28. März 2022 um 12:17 UTC](https://community.gladysassistant.com/t/probleme-zwave-et-google-home/6992/29 "2022-03-28T12:17:44Z")

</div>

Zur Info, dieser Fix ist in Gladys Assistant v4.8.2 verfügbar 🙂

Ich hoffe, dass du mit diesem Fix weniger DNS-Fehler in deinen Logs siehst, halte uns auf dem Laufenden!

Weitere Informationen:

> [@Gladys Assistant v4.8.2 ist verfügbar, mit einer Reihe von Fehlerbehebungen 🛠️](https://community.gladysassistant.com/t/gladys-assistant-v4-8-2-est-disponible-avec-un-ensemble-de-correctifs/7107):
>
> Salut à tous ! C’est lundi, pas de temps à perdre, c’est l’heure d’une nouvelle version de Gladys avec un ensemble de correctifs smiley Les correctifs Les capteurs de Co2 affichent désormais une couleur en fonction de la concentration en Co2 dans l’air, selon les recommandations : Correction d’un bug où l’intégration Zigbee2mqtt créait des valeurs de capteurs au format “texte” dans la base de donnée (au lieu de flottants), ce qui créait des bugs sur l’agrégatio…

[Vorherige Seite](https://community.gladysassistant.com/t/probleme-zwave-et-google-home/6992.md?page=1)
