# Entwicklung des Z-Wave JS UI-Dienstes

**URL:** <https://community.gladysassistant.com/t/evolution-du-service-z-wave-js-ui/8692>\
**Category:** Développement\
**Created:** [26. Januar 2024 um 08:43 UTC](https://community.gladysassistant.com/t/evolution-du-service-z-wave-js-ui/8692 "2024-01-26T08:43:14Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Sescandell](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/sescandell/32/3759_2.png) [@Sescandell](https://community.gladysassistant.com/u/Sescandell)\
**Post date:** [15. Februar 2024 um 21:03 UTC](https://community.gladysassistant.com/t/evolution-du-service-z-wave-js-ui/8692/21 "2024-02-15T21:03:57Z")

</div>

Hallo,

Versprochen ist versprochen.  
Neuer PR verfügbar auf Github: [[Zwavejs] Support Air Temperature & Power properties from Multilevel Sensor Command Class by sescandell · Pull Request #2027 · GladysAssistant/Gladys (github.com)](https://github.com/GladysAssistant/Gladys/pull/2027)

Unterstützung der Temperatur und Rückmeldung der Leistung:

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/f/f85bffc1ad1612b2eb9fb7ebeb96aae847c65154.png)

Ich habe eine Frage zum Code und den Parametern @pierre-gilles, bitte: Wofür dient die Eigenschaft `has_feedback` bei einem Gerät. Beispiel hier:

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/0/07f93438fa2683712060e9e7f9ecaf64d59e1674.png)

`keep_history` und `read_only` okay, das verstehe ich. Aber der Teil Feedback…

Danke,

---

<div class="post-metadata">

**Author:** ![cce66](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/8797f3/32.png) [@cce66](https://community.gladysassistant.com/u/cce66)\
**Post date:** [16. Februar 2024 um 00:08 UTC](https://community.gladysassistant.com/t/evolution-du-service-z-wave-js-ui/8692/22 "2024-02-16T00:08:41Z")

</div>

@Sescandell  
chat-gpt 😉 : also hier das Gerät (das ein Schalter sein muss) sendet, wenn es einen Befehl „von 0 auf 1“ erhält, das Gerät auf 1 und sendet eine Rückmeldung „Befehl ausgeführt, auf 1 gesetzt“ oder eine ähnliche Nachricht

> Im Kontext von Z-Wave-Geräten bezieht sich `has_feedback` wahrscheinlich auf eine Funktion, mit der festgestellt werden kann, ob ein Gerät nach dem Senden eines Befehls eine Rückmeldung erhalten hat.
> 
> Das Z-Wave-Protokoll ist so konzipiert, dass es bidirektional ist, was bedeutet, dass Geräte nicht nur Befehle empfangen, sondern auch Rückmeldungen senden können, um anzuzeigen, ob ein Befehl erfolgreich ausgeführt wurde oder eine Aktion durchgeführt wurde. Diese Funktion wird oft verwendet, um die Zuverlässigkeit von Befehlen zu gewährleisten und Informationen über den Status der Geräte zu erhalten.
> 
> Wenn `has_feedback` im Kontext eines Z-Wave-Geräts verwendet wird, gibt es in der Regel an, ob dieses Gerät in der Lage ist, nach der Ausführung eines Befehls eine Rückmeldung zu geben. Dies kann für Smart-Home- oder Überwachungssysteme nützlich sein, bei denen es wichtig ist zu wissen, ob die an die Geräte gesendeten Befehle tatsächlich ausgeführt wurden.

---

<div class="post-metadata">

**Author:** ![Sescandell](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/sescandell/32/3759_2.png) [@Sescandell](https://community.gladysassistant.com/u/Sescandell)\
**Post date:** [16. Februar 2024 um 06:27 UTC](https://community.gladysassistant.com/t/evolution-du-service-z-wave-js-ui/8692/23 "2024-02-16T06:27:26Z")

</div>

Hallo,

Vielleicht fehlte meiner Frage der Kontext: Es geht um eine Eigenschaft auf Gladys-Seite und nicht um eine spezifische zWave-Eigenschaft.

Ich habe den Code schnell durchgesehen. Ich sehe eine Verwendung bei einem saveState, aber ich bin nicht weiter zurückgegangen. Pierre Gilles sollte in der Lage sein, darauf zu antworten. Falls nicht, werde ich der Sache weiter nachgehen.

Danke für den Versuch 👍

---

<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:** [16. Februar 2024 um 07:26 UTC](https://community.gladysassistant.com/t/evolution-du-service-z-wave-js-ui/8692/24 "2024-02-16T07:26:13Z")

</div>

@Sescandell le **has\_feedback** bedeutet, dass das Gerät am Ende eine Statusrückmeldung sendet, nachdem Gladys ihm einen Befehl gesendet hat.

Dadurch kann Gladys feststellen, ob sie den Wert lokal speichern muss, falls eine Steuerung erfolgt, oder ob sie warten muss, bis das Gerät ein Event sendet, das besagt: „Ich wurde erfolgreich gesteuert“.

Beispiel für **has\_feedback = true** :

Ich steuere eine Steckdose über Gladys → Gladys sendet einen Befehl an die Steckdose → die Steckdose sendet ein Event „state changed“ an Gladys → Gladys speichert den neuen Zustand der Steckdose.

Ich weiß nicht, ob das klar ist 😄

---

<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:** [16. Februar 2024 um 08:19 UTC](https://community.gladysassistant.com/t/evolution-du-service-z-wave-js-ui/8692/25 "2024-02-16T08:19:33Z")

</div>

> [@Sescandell](#):
>
> Neuer PR auf Github verfügbar: [[Zwavejs] Support Air Temperature & Power properties from Multilevel Sensor Command Class by sescandell · Pull Request #2027 · GladysAssistant/Gladys (github.com)](https://github.com/GladysAssistant/Gladys/pull/2027)

Super! Gut gemacht 👏 Ich kann es kaum erwarten, das zu sehen 🙂

Ich weiß nicht, ob du es gesehen hast, aber deiner PR fehlt etwas Testabdeckung?

---

<div class="post-metadata">

**Author:** ![Sescandell](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/sescandell/32/3759_2.png) [@Sescandell](https://community.gladysassistant.com/u/Sescandell)\
**Post date:** [16. Februar 2024 um 15:31 UTC](https://community.gladysassistant.com/t/evolution-du-service-z-wave-js-ui/8692/26 "2024-02-16T15:31:12Z")

</div>

Alles klar, danke,

Ja, ich habe die Abdeckung gesehen… aber das sind Fälle, die der Linter mich zwingt hinzuzufügen, ohne dass es wirklich etwas bringt… ich werde sehen, was ich damit mache. Ich denke, in diesem Szenario werde ich einen undefinierten Wert zurückgeben, und wenn undefiniert, dann bedeutet das „unbekannte Anfrage“ und damit „Anfrageabbruch“. Das erscheint mir am logischsten.

Ich schaue, ob ich das heute Abend schaffen kann. Wenn nicht, dann nächste Woche, ich werde eine Woche lang abwesend sein

Ich melde mich

---

<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:** [16. Februar 2024 um 16:20 UTC](https://community.gladysassistant.com/t/evolution-du-service-z-wave-js-ui/8692/27 "2024-02-16T16:20:59Z")

</div>

ok, halt mich auf dem Laufenden! Wenn du nicht weiterkommst, kann ich dir helfen

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [20. Februar 2024 um 18:44 UTC](https://community.gladysassistant.com/t/evolution-du-service-z-wave-js-ui/8692/28 "2024-02-20T18:44:32Z")

</div>

Kleinen Bug bei der Zwave-Integration zu melden, ich habe pro Raum ein Zwave-Gerät, um jeden Heizkörper zu steuern. In zwavejs-ui habe ich daher den Namen als „Heizkörper“ und den Standort als Raum angegeben.

Allerdings sehe ich in Gladys nur Heizkörper (normal), aber es ist schwierig zu erkennen, welcher welcher ist. Vielleicht könnte man den Standort an einer Stelle hinzufügen, damit man die Geräte unterscheiden kann? Aber ich habe Angst, dass es zu einer Doppelfunktion mit dem Raum in Gladys kommt. Wie siehst du das, @pierre-gilles?

Zum eigentlichen Bug: Wenn ich versuche, meine Heizkörper zu Gladys hinzuzufügen, erhalte ich eine Fehlermeldung

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/6/6af7e1c668124799cb418b8f40d1e2fc8e3cf83e.png)

Es gibt einen Konflikt mit dem **selector** , der nicht eindeutig ist.

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/8/8aed89aa53f68ab10ad6215f2ca2c98b0d1c8797.png)

Beim Durchsehen des Codes habe ich keinen Selector in der Zwavejs-UI-Integration gefunden, daher denke ich, dass der Selector aus dem **name** gebildet wird, dank dieser Funktion.  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/5/57cbe58f6471e4b9962256fb5ccfe2ede5ecd4e6.png)

Ich versuche, etwas zur Korrektur des Selectors vorzuschlagen.

EDIT: Durch das Hinzufügen des Selectors kann ich alle meine Geräte speichern

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/e/e3848890971a4cee9182acd5734e0459abee2b0e.png)

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [20. Februar 2024 um 20:59 UTC](https://community.gladysassistant.com/t/evolution-du-service-z-wave-js-ui/8692/29 "2024-02-20T20:59:20Z")

</div>

@pierre-gilles, der PR

> <https://github.com/GladysAssistant/Gladys/pull/2030>
>
> \### 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)
> \- \[\] 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 (\[french forum\](https://community.gladysassistant.com/)/\[english forum\](https://en-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
> 
> Without selector there is a conflict issue when adding zwave device to Gladys so I propose to add selector when converting Zwave device to Gladys device.
> 
> !\[image\](https://github.com/GladysAssistant/Gladys/assets/11477113/3582369e-64cc-4056-a570-55907fa1d10d)
> !\[image\](https://github.com/GladysAssistant/Gladys/assets/11477113/bb69ca7d-b7c8-4b4e-80a9-3be3bc07ad6b)
> 
> 
> With the selector
> !\[image\](https://github.com/GladysAssistant/Gladys/assets/11477113/2c583b22-2cfb-4780-95d5-1893fbac3035)
> 
> 
> https://community.gladysassistant.com/t/evolution-du-service-z-wave-js-ui/8692/26

---

<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:** [22. Februar 2024 um 08:16 UTC](https://community.gladysassistant.com/t/evolution-du-service-z-wave-js-ui/8692/30 "2024-02-22T08:16:57Z")

</div>

Gut gesehen @Will_71! Ich habe dir einen Kommentar auf der PR hinterlassen 🙂

Ich denke, wir müssen die gleiche Arbeit am Feature-Selector durchführen, sonst wird es dort auch hängen bleiben, glaube ich.

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [22. Februar 2024 um 10:24 UTC](https://community.gladysassistant.com/t/evolution-du-service-z-wave-js-ui/8692/31 "2024-02-22T10:24:29Z")

</div>

Okay, ich kümmere mich darum, sobald es geht.

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [22. Februar 2024 um 18:47 UTC](https://community.gladysassistant.com/t/evolution-du-service-z-wave-js-ui/8692/32 "2024-02-22T18:47:07Z")

</div>

@pierre-gilles, ich habe die Änderungen am Pull Request vorgenommen.

---

<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. Februar 2024 um 08:48 UTC](https://community.gladysassistant.com/t/evolution-du-service-z-wave-js-ui/8692/33 "2024-02-23T08:48:45Z")

</div>

Danke @Will_71! Für mich ist das okay, es ist in master gemerged und wird in der nächsten Version von Gladys enthalten sein 🙂

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [23. Februar 2024 um 09:01 UTC](https://community.gladysassistant.com/t/evolution-du-service-z-wave-js-ui/8692/34 "2024-02-23T09:01:55Z")

</div>

Ok​👍.  
Ich warte dann auf den nächsten PR von @Sescandell, denn das, was er gemacht hat, wird es mir ermöglichen, ein neues Gerät hinzuzufügen.

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [23. Februar 2024 um 22:41 UTC](https://community.gladysassistant.com/t/evolution-du-service-z-wave-js-ui/8692/35 "2024-02-23T22:41:34Z")

</div>

Ich bereite auch gerade einen PR vor, um den «&nbsp;Standort&nbsp;» jedes Geräts zu integrieren

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/e/ef978384ca48312f8e68f0e1f6f13273c9ecb70a.png)

---

<div class="post-metadata">

**Author:** ![Sescandell](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/sescandell/32/3759_2.png) [@Sescandell](https://community.gladysassistant.com/u/Sescandell)\
**Post date:** [25. Februar 2024 um 16:36 UTC](https://community.gladysassistant.com/t/evolution-du-service-z-wave-js-ui/8692/36 "2024-02-25T16:36:49Z")

</div>

Hallo,

Ich habe den PR aktualisiert: Rebase auf master, um die letzten Änderungen von @Will_71 zu übernehmen und die Code-Coverage-Probleme zu beheben.

PR für die Dokumentation ist hier verfügbar: [Update Zwavejs UI doc by sescandell · Pull Request #255 · GladysAssistant/v4-website (github.com)](https://github.com/GladysAssistant/v4-website/pull/255)

Jetzt bist du dran @pierre-gilles 😉

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [25. Februar 2024 um 21:11 UTC](https://community.gladysassistant.com/t/evolution-du-service-z-wave-js-ui/8692/37 "2024-02-25T21:11:03Z")

</div>

@pierre-gilles, der PR für den Zusatz des «&nbsp;Orts&nbsp;»

> <https://github.com/GladysAssistant/Gladys/pull/2031>
>
> \### 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.
> \- \[\] 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
> 
> Add zwavejs-ui location to gladys device
> 
> !\[image\](https://github.com/GladysAssistant/Gladys/assets/11477113/f8348d65-5364-4259-af52-48dc80850cfc)
> 
> !\[image\](https://github.com/GladysAssistant/Gladys/assets/11477113/61ce37c3-0385-4544-b395-e3c7228284a3)

---

<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:** [26. Februar 2024 um 08:30 UTC](https://community.gladysassistant.com/t/evolution-du-service-z-wave-js-ui/8692/38 "2024-02-26T08:30:41Z")

</div>

@Sescandell Danke für das PR zur Temperatur + Leistung, das sieht für mich sehr gut aus 🙂 Ich habe gemerged und es wird in der nächsten Version von Gladys enthalten sein! Ich werde die Website mergen, sobald die Veröffentlichung live ist

@Will_71 Dein PR ist auch für mich in Ordnung, allerdings gibt es dadurch einen kleinen Konflikt mit dem PR von @Sescandell, das ich gerade vorher gemerged habe, kannst du das bitte prüfen?

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [26. Februar 2024 um 08:40 UTC](https://community.gladysassistant.com/t/evolution-du-service-z-wave-js-ui/8692/39 "2024-02-26T08:40:06Z")

</div>

Ich versuche, um Mittag während meiner Mittagspause zu schauen.

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [26. Februar 2024 um 12:22 UTC](https://community.gladysassistant.com/t/evolution-du-service-z-wave-js-ui/8692/40 "2024-02-26T12:22:34Z")

</div>

@pierre-gilles Alles klar, ich habe den Konflikt gelöst

[Vorherige Seite](https://community.gladysassistant.com/t/evolution-du-service-z-wave-js-ui/8692.md?page=1)

[Nächste Seite](https://community.gladysassistant.com/t/evolution-du-service-z-wave-js-ui/8692.md?page=3)
